ChangeLog 669 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508
  1. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Updated po templates.
  3. * po/aria2.pot
  4. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  6. causes name resolution error when none of network interface has
  7. IPv4 address.
  8. * src/main.cc
  9. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  10. Bump up version number to 1.8.0.
  11. * configure.ac
  12. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  13. Use info hash as a filename when saving BitTorrent metadata.
  14. * src/UTMetadataPostDownloadHandler.cc
  15. * test/UTMetadataPostDownloadHandlerTest.cc
  16. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  17. Documented system.multicall XML-RPC method in man page.
  18. * doc/aria2c.1.txt
  19. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  20. Added signal handler for SIGHUP to save .aria2 file when terminal
  21. is closed. The handler is the same one for SIGINT and SIGTERM.
  22. * src/MultiUrlRequestInfo.cc
  23. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  24. Defined method name in XmlRpcMethod subclasses.
  25. * src/XmlRpcMethodFactory.cc
  26. * src/XmlRpcMethodImpl.cc
  27. * src/XmlRpcMethodImpl.h
  28. * test/XmlRpcMethodTest.cc
  29. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  30. Added system.multicall XML-RPC method.
  31. * src/XmlRpcMethod.cc
  32. * src/XmlRpcMethod.h
  33. * src/XmlRpcMethodFactory.cc
  34. * src/XmlRpcMethodImpl.cc
  35. * src/XmlRpcMethodImpl.h
  36. * test/XmlRpcMethodTest.cc
  37. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  38. Check structure depth when decoding.
  39. * src/bencode.cc
  40. * src/bencode.h
  41. * test/BencodeTest.cc
  42. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  43. Documented tellStopped XML-RPC method in man page.
  44. * doc/aria2c.1.txt
  45. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  46. Added tellStopped XML-RPC method to aria2rpc.
  47. * doc/xmlrpc/aria2rpc
  48. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  49. Added tellStopped XML-RPC method. This method returns stopped
  50. download in the specified range. It takes same parameters with
  51. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  52. * src/XmlRpcMethodFactory.cc
  53. * src/XmlRpcMethodImpl.cc
  54. * src/XmlRpcMethodImpl.h
  55. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  56. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  57. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  58. when conducting unit tests because they fail if networking
  59. interface is not configured with IPv4 address.
  60. * src/NameResolver.cc
  61. * src/SocketCore.cc
  62. * src/SocketCore.h
  63. * src/a2netcompat.h
  64. * test/AllTest.cc
  65. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  66. Fixed unit test error
  67. * test/UTMetadataPostDownloadHandlerTest.cc
  68. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  69. Defined static string constants for efficiency.
  70. * src/XmlRpcMethodImpl.cc
  71. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  72. Added --bt-save-metadata option. When true is given, it saves
  73. metadata as .torrent file. This option has effect only when
  74. BitTorrent Magnet URI is used. The filename is name in metadata
  75. with suffix .torrent. The directory to be saved is the same
  76. directory where download file is saved. If the same file already
  77. exists, metdata is not saved.
  78. * src/OptionHandlerFactory.cc
  79. * src/UTMetadataPostDownloadHandler.cc
  80. * src/UTMetadataPostDownloadHandler.h
  81. * src/message.h
  82. * src/prefs.cc
  83. * src/prefs.h
  84. * src/usage_text.h
  85. * test/UTMetadataDataExtensionMessageTest.cc
  86. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  87. Added util::saveAs() function. Use it in Signature::save().
  88. * src/Signature.cc
  89. * src/util.cc
  90. * src/util.h
  91. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  92. Upcase info hash in Magnet URI.
  93. * doc/aria2c.1.txt
  94. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  95. Refactored RequestGroupMan::changeReservedGroupPosition()
  96. * src/RequestGroupMan.cc
  97. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  98. Updated the description for aria2.addTorrent XML-RPC method.
  99. * doc/aria2c.1.txt
  100. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  101. Added changePosition to aria2rpc.
  102. * doc/xmlrpc/aria2rpc
  103. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  104. Documented changePosition XML-RPC method in man page.
  105. * doc/aria2c.1.txt
  106. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  107. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  108. pos and how. This method changes the position of download denoted
  109. by gid. If how is POS_SET, it moves the download to a position
  110. relative to the beginning of the queue. If how is POS_CUR, it
  111. moves the download to a position relative to the current
  112. position. If how is POS_END, it moves the download to a position
  113. relative to the end of the queue. If the destination position is
  114. less than 0 or beyond the end of the queue, it moves the download
  115. to the beginning or the end of the queue respectively. Returns
  116. the destination position.
  117. * src/RequestGroupMan.cc
  118. * src/RequestGroupMan.h
  119. * src/XmlRpcMethodFactory.cc
  120. * src/XmlRpcMethodImpl.cc
  121. * src/XmlRpcMethodImpl.h
  122. * test/RequestGroupManTest.cc
  123. * test/XmlRpcMethodTest.cc
  124. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  125. Added getOption and getGlobalOption to aria2rpc.
  126. * doc/xmlrpc/aria2rpc
  127. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  128. Documented getOption and getGlobalOption XML-RPC method in man
  129. page
  130. * doc/aria2c.1.txt
  131. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  132. Added getOption and getGlobalOption XML-RPC method. getOption
  133. takes GID as a parameter and returns its options as struct.
  134. getGlobalOption takes no parameter and returns global
  135. options. Because global option is used as a template for the
  136. option of newly added downloads, it includes options returned by
  137. getOption.
  138. * src/Option.h
  139. * src/XmlRpcMethodFactory.cc
  140. * src/XmlRpcMethodImpl.cc
  141. * src/XmlRpcMethodImpl.h
  142. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  143. Sort _optionHandlers in OptionParser by name in ascending order.
  144. Use vector instead of deque for efficiency.
  145. * src/OptionHandler.h
  146. * src/OptionHandlerFactory.h
  147. * src/OptionParser.cc
  148. * src/OptionParser.h
  149. * src/version_usage.cc
  150. * test/OptionParserTest.cc
  151. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  152. Code cleanup
  153. * src/XmlRpcMethod.cc
  154. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  155. Documented about followedBy and belongsTo in man page.
  156. * doc/aria2c.1.txt
  157. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  158. Added following 2 keys, followedBy and belongsTo, to the response
  159. of tellStatus.
  160. followedBy: List of GIDs which are generated by the consequence of
  161. this download. For example, when aria2 downloaded Metalink file,
  162. it generates downloads described in it(see *--follow-metalink*
  163. option). This value is useful to track these auto generated
  164. downloads. If there is no such downloads, this key will not be
  165. included in the response.
  166. belongsTo: GID of a parent download. Some downloads are a part of
  167. another download. For example, if a file in Metalink has
  168. BitTorrent resource, the download of .torrent is a part of that
  169. file. If this download has no parent, this key will not be
  170. included in the response.
  171. * src/BtPostDownloadHandler.cc
  172. * src/DownloadResult.h
  173. * src/Metalink2RequestGroup.cc
  174. * src/MetalinkPostDownloadHandler.cc
  175. * src/RequestGroup.cc
  176. * src/RequestGroup.h
  177. * src/UTMetadataPostDownloadHandler.cc
  178. * src/XmlRpcMethodImpl.cc
  179. * src/XmlRpcMethodImpl.h
  180. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  181. Assigned BObject in BDE() to avoid segmentation fault when calling
  182. methods of BDE::none().
  183. * src/BDE.cc
  184. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  185. Show info hash in Magnet URI in upper case letters in -S output.
  186. * src/bittorrent_helper.cc
  187. * test/BittorrentHelperTest.cc
  188. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  189. Removed old useless comment
  190. * src/MultiUrlRequestInfo.cc
  191. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  192. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  193. not properly used in configure script and failed to detect gnutls.
  194. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  195. and the initialization of pkg-config is done in first occurrence
  196. of PKG_CHECK_MODULES which is not executed because it is inside of
  197. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  198. * configure.ac
  199. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  200. Release 1.7.2
  201. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  202. Fixed the bug that RequestGroupMan::downloadFinished() returns
  203. true even if all downloads haven't finished, especially when
  204. PostDownloadHandler is involved. Changed the condition so that it
  205. only returns true if both _requestGroups and _reservedGroups are
  206. empty.
  207. * src/RequestGroupMan.cc
  208. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  209. Log listening port for BitTorrent/DHT in notice level.
  210. * src/DHTConnectionImpl.cc
  211. * src/PeerListenCommand.cc
  212. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  213. Updated po templates.
  214. * po/aria2.pot
  215. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  216. Bump up version number to 1.7.2
  217. * configure.ac
  218. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  219. Changed default value of --enable-dht from 'false' to 'true'.
  220. * doc/aria2c.1.txt
  221. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  222. Enabled DHT by default because of Magnet URI support. To disable
  223. DHT, use --enable-dht=false
  224. * src/OptionHandlerFactory.cc
  225. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  226. Print Magnet URI in -S output.
  227. * src/AnnounceList.cc
  228. * src/bittorrent_helper.cc
  229. * src/bittorrent_helper.h
  230. * test/BittorrentHelperTest.cc
  231. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  232. Added --bt-prioritize-piece option to aria2rpc.
  233. * doc/xmlrpc/aria2rpc
  234. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  235. Refer Magnet URI in --help. Made some cosmetic changes.
  236. * src/version_usage.cc
  237. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  238. Updated -T and -M option.
  239. * doc/aria2c.1.txt
  240. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  241. Fixed typo
  242. * doc/aria2c.1.txt
  243. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  244. Fixed the bug that line separator is missing in horizontal bar.
  245. * doc/xmlrpc/aria2mon
  246. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  247. Updated usage text for --metalink-file option.
  248. * src/usage_text.h
  249. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  250. If '-' is given as an argument to --metalink-file option, aria2
  251. reads Metalink file from stdin.
  252. * src/OptionHandlerFactory.cc
  253. * src/OptionHandlerImpl.h
  254. * src/a2io.h
  255. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  256. Fixed the bug that aria2 listens wrong port if --interface option
  257. is used.
  258. * src/SocketCore.cc
  259. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  260. Fixed the bug that query parameter in magnet URI is not decoded.
  261. * src/magnet.cc
  262. * test/MagnetTest.cc
  263. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  264. Specified defaultSize as an argument for easy testing.
  265. * src/util.cc
  266. * src/util.h
  267. * test/UtilTest.cc
  268. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  269. Release 1.7.1
  270. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  271. Bump up version number to 1.7.1
  272. * configure.ac
  273. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  274. Fixed the bug --bt-prioritize-piece=tail is not working.
  275. * src/util.cc
  276. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  277. Release 1.7.0
  278. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  279. Updated po templates.
  280. * po/aria2.pot
  281. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  282. Updated help message for --bt-prioritize-piece. Some cosmetic
  283. changes.
  284. * doc/aria2c.1.txt
  285. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  286. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  287. * src/usage_text.h
  288. * src/util.cc
  289. * test/UtilTest.cc
  290. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  291. Updated Russian, Ukrainian, German and French translations.
  292. Thanks to all translators involved.
  293. * po/de.po
  294. * po/fr.po
  295. * po/ru.po
  296. * po/uk.po
  297. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  298. Mentioned about pkg-config
  299. * README
  300. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  301. Fixed typo. Referred --index-out option in BitTorrent notes.
  302. * README
  303. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  304. Store all addresses found by getifaddrs() and getaddrinfo(). In
  305. bind, try all addresses until success
  306. * src/SocketCore.cc
  307. * src/SocketCore.h
  308. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  309. Updated po templates.
  310. * po/aria2.pot
  311. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  312. Bump up version number to 1.7.0
  313. * configure.ac
  314. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  315. Fixed compile error if ENABLE_BITTORRENT is undefined.
  316. * src/DefaultPieceStorage.cc
  317. * src/DefaultPieceStorage.h
  318. * src/PieceStorage.h
  319. * src/UnknownLengthPieceStorage.cc
  320. * src/UnknownLengthPieceStorage.h
  321. * test/MockPieceStorage.h
  322. * test/ProtocolDetectorTest.cc
  323. * test/XmlRpcMethodTest.cc
  324. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  325. Documented in man page that if getifaddrs() is missing,
  326. --interface option doesn't accept interface name.
  327. * doc/aria2c.1.txt
  328. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  329. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  330. * src/DefaultBtAnnounce.cc
  331. * src/DefaultBtAnnounce.h
  332. * test/DefaultBtAnnounceTest.cc
  333. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  334. Fixed the bug that connection is always dropped if handshake
  335. message in extension protocol don't have metadata_size.
  336. src/HandshakeExtensionMessage.cc
  337. * src/HandshakeExtensionMessage.cc
  338. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  339. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  340. text saying DHT is recommended when Magnet URI is provided.
  341. * doc/aria2c.1.txt
  342. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  343. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  344. URI is supplied. Notify user that they should consider enabling
  345. DHT if they use Magnet URI.
  346. * src/RequestGroup.cc
  347. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  348. Added --disable-ipv6 option to disable IPv6.
  349. * doc/aria2c.1.txt
  350. * src/InitiateConnectionCommand.cc
  351. * src/NameResolver.cc
  352. * src/NameResolver.h
  353. * src/OptionHandlerFactory.cc
  354. * src/main.cc
  355. * src/prefs.cc
  356. * src/prefs.h
  357. * src/usage_text.h
  358. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  359. Updated usage text for --bt-prioritize-piece option.
  360. * doc/aria2c.1.txt
  361. * src/usage_text.h
  362. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  363. In configure script, if --with-PACKAGE and --enable-FEATURE are
  364. given and PACKAGE is missing in the system or FEATURE cannot be
  365. enabled, print error message and stop the script.
  366. * configure.ac
  367. * m4/aria2_arg.m4
  368. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  369. Halt metadata download immediately when metadata download is done.
  370. Don't wait unresponsive tracker.
  371. * src/ByteArrayDiskWriter.h
  372. * src/DefaultBtInteractive.cc
  373. * src/DefaultExtensionMessageFactory.cc
  374. * src/DefaultExtensionMessageFactory.h
  375. * src/PeerInteractionCommand.cc
  376. * src/UTMetadataDataExtensionMessage.cc
  377. * src/UTMetadataDataExtensionMessage.h
  378. * src/UTMetadataRequestExtensionMessage.cc
  379. * test/UTMetadataDataExtensionMessageTest.cc
  380. * test/UTMetadataRequestExtensionMessageTest.cc
  381. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  382. Documented --interface option in man page.
  383. * doc/aria2c.1.txt
  384. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  385. Try resolved address in the order received from the resolver.
  386. * src/DNSCache.h
  387. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  388. Added debug logs.
  389. * src/SocketCore.cc
  390. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  391. Fixed type of tail to uint64_t
  392. * src/util.cc
  393. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  394. Added --interface option. This feature binds sockets to given
  395. interface. You can specify interface name, IP address and
  396. hostname.
  397. * configure.ac
  398. * src/OptionHandlerFactory.cc
  399. * src/SocketCore.cc
  400. * src/SocketCore.h
  401. * src/main.cc
  402. * src/message.h
  403. * src/prefs.cc
  404. * src/prefs.h
  405. * src/usage_text.h
  406. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  407. Updated man page for bt-prioritize-piece option in -i list.
  408. * doc/aria2c.1.txt
  409. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  410. Added bt-prioritize-piece option to -i list.
  411. * src/download_helper.cc
  412. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  413. Removed --http-auth-scheme option from man page.
  414. * doc/aria2c.1.txt
  415. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  416. Removed --http-auth-scheme option since it doesn't do nothing.
  417. * src/OptionHandlerFactory.cc
  418. * src/prefs.cc
  419. * src/prefs.h
  420. * src/usage_text.h
  421. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  422. Adjusted the number of peer info which get_peers reply message can
  423. carry.
  424. * src/DHTGetPeersReplyMessage.cc
  425. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  426. Added extension_message_test_helper.h to aria2c_SOURCES.
  427. * test/Makefile.am
  428. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  429. Documented --bt-prioritize-piece option in man page.
  430. * doc/aria2c.1.txt
  431. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  432. Added option --bt-prioritize-piece. This option instruct aria2 to
  433. try to download first and last pieces of each file first. The
  434. argument can contain 2 keywords:head and tail. To include both
  435. keywords, they must be separated by comma. These keywords can take
  436. one parameter, SIZE. For example , if head=SIZE is specified,
  437. pieces in the range of first SIZE bytes of each file get higher
  438. priority. tail=SIZE means the range of last SIZE bytes of each
  439. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  440. * src/DefaultPieceStorage.h
  441. * src/Makefile.am
  442. * src/OptionHandlerFactory.cc
  443. * src/OptionHandlerImpl.h
  444. * src/PriorityPieceSelector.cc
  445. * src/PriorityPieceSelector.h
  446. * src/RequestGroup.cc
  447. * src/prefs.cc
  448. * src/prefs.h
  449. * src/usage_text.h
  450. * src/util.cc
  451. * src/util.h
  452. * test/Makefile.am
  453. * test/MockPieceSelector.h
  454. * test/PriorityPieceSelectorTest.cc
  455. * test/UtilTest.cc
  456. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  457. Fixed typo
  458. * src/HttpRequest.h
  459. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  460. In Magnet URI with tr parameter, put each announce URI in separate
  461. tier.
  462. * src/bittorrent_helper.cc
  463. * test/BittorrentHelperTest.cc
  464. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  465. Renamed ExtensionMessage::getBencodedData() as
  466. ExtensionMessage::getPayload()
  467. * src/BtExtendedMessage.cc
  468. * src/ExtensionMessage.h
  469. * src/HandshakeExtensionMessage.cc
  470. * src/HandshakeExtensionMessage.h
  471. * src/UTMetadataDataExtensionMessage.cc
  472. * src/UTMetadataDataExtensionMessage.h
  473. * src/UTMetadataRejectExtensionMessage.cc
  474. * src/UTMetadataRejectExtensionMessage.h
  475. * src/UTMetadataRequestExtensionMessage.cc
  476. * src/UTMetadataRequestExtensionMessage.h
  477. * src/UTPexExtensionMessage.cc
  478. * src/UTPexExtensionMessage.h
  479. * test/HandshakeExtensionMessageTest.cc
  480. * test/MockExtensionMessage.h
  481. * test/UTMetadataDataExtensionMessageTest.cc
  482. * test/UTMetadataRejectExtensionMessageTest.cc
  483. * test/UTMetadataRequestExtensionMessageTest.cc
  484. * test/UTPexExtensionMessageTest.cc
  485. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  486. Updated man page for BitTorrent Magnet URI.
  487. * doc/aria2c.1.txt
  488. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  489. Call DownloadContext::setOwnerRequestGroup() in
  490. RequestGroup::setDownloadContext().
  491. * src/BtDependency.cc
  492. * src/RequestGroup.cc
  493. * src/RequestGroup.h
  494. * src/download_helper.cc
  495. * test/DefaultBtMessageDispatcherTest.cc
  496. * test/DefaultExtensionMessageFactoryTest.cc
  497. * test/HandshakeExtensionMessageTest.cc
  498. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  499. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  500. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  501. from metadata, use new metadata2Torrent() function.
  502. * src/BtDependency.cc
  503. * src/UTMetadataPostDownloadHandler.cc
  504. * src/bittorrent_helper.cc
  505. * src/bittorrent_helper.h
  506. * test/BittorrentHelperTest.cc
  507. * test/BtDependencyTest.cc
  508. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  509. Use createRequestGroupForUri to create the download for torrent
  510. file.
  511. * src/Metalink2RequestGroup.cc
  512. * test/Metalink2RequestGroupTest.cc
  513. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  514. Fixed typo
  515. * src/DownloadContext.h
  516. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  517. Use createRequestGroupForBitTorrent()
  518. * src/BtPostDownloadHandler.cc
  519. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  520. Added remove().
  521. * src/Option.cc
  522. * src/Option.h
  523. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  524. Removed options which is only valid for URIs specified in
  525. command-line. If they are left, because op is used as a template
  526. for new RequestGroup(such as created in XML-RPC command,
  527. BtPostDownloadHandler etc), they causes unintentional effect.
  528. * src/main.cc
  529. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  530. Refer to option value of PREF_OUT only in download_helper.
  531. * src/FtpNegotiationCommand.cc
  532. * src/HttpResponseCommand.cc
  533. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  534. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  535. * src/download_helper.cc
  536. * src/download_helper.h
  537. * src/XmlRpcMethodImpl.cc
  538. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  539. Updated man page for changeOption XML-RPC method.
  540. * doc/aria2c.1.txt
  541. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  542. Added --bt-max-peers option to changeOption XML-RPC method.
  543. * src/XmlRpcMethod.cc
  544. * src/XmlRpcMethodImpl.cc
  545. * test/XmlRpcMethodTest.cc
  546. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  547. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  548. * test/XmlRpcMethodTest.cc
  549. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  550. Removed redundant DownloadContext::hasAttribute(...) calls.
  551. * src/ConsoleStatCalc.cc
  552. * src/RequestGroup.cc
  553. * src/XmlRpcMethodImpl.cc
  554. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  555. Changed the number of tracker request attempt from 5 to 2.
  556. * src/TrackerWatcherCommand.cc
  557. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  558. Use host and protocol in original URI, because URI selector
  559. selects URI based on original URI, not redirected one.
  560. * src/Request.cc
  561. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  562. Fixed the bug which causes segmentation fault with tellWaiting
  563. XML-RPC method when BitTorrent download is waiting. The key of
  564. BtRegistry is changed from info hash to GID, because it is
  565. registered per RequestGroup, not info hash.
  566. * src/BtRegistry.cc
  567. * src/BtRegistry.h
  568. * src/BtSetup.cc
  569. * src/ConsoleStatCalc.cc
  570. * src/InitiatorMSEHandshakeCommand.cc
  571. * src/PeerInitiateConnectionCommand.cc
  572. * src/PeerInteractionCommand.cc
  573. * src/PeerInteractionCommand.h
  574. * src/PeerReceiveHandshakeCommand.cc
  575. * src/RequestGroup.cc
  576. * src/XmlRpcMethodImpl.cc
  577. * test/BtRegistryTest.cc
  578. * test/XmlRpcMethodTest.cc
  579. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  580. Updated man page for changeOption XML-RPC method.
  581. * doc/aria2c.1.txt
  582. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  583. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  584. method.
  585. * src/XmlRpcMethod.cc
  586. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  587. Documented about BitTorrent Magnet URI in man page.
  588. * doc/aria2c.1.txt
  589. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  590. Fixed the bug that trackers in BitTorrent Magnet URI are not
  591. inherited to generated RequestGroup.
  592. * src/UTMetadataPostDownloadHandler.cc
  593. * test/UTMetadataPostDownloadHandlerTest.cc
  594. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  595. Prepended "[METADATA]" before dn.
  596. * src/bittorrent_helper.cc
  597. * test/BittorrentHelperTest.cc
  598. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  599. Rewritten Magnet URI parser.
  600. * src/Makefile.am
  601. * src/ProtocolDetector.cc
  602. * src/bittorrent_helper.cc
  603. * src/bittorrent_helper.h
  604. * src/download_helper.cc
  605. * src/magnet.cc
  606. * src/magnet.h
  607. * test/BittorrentHelperTest.cc
  608. * test/MagnetTest.cc
  609. * test/Makefile.am
  610. * test/ProtocolDetectorTest.cc
  611. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  612. Use hton64
  613. * src/base32.cc
  614. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  615. Added Base32 encoded BitTorrent Magnet Link support.
  616. * src/Makefile.am
  617. * src/base32.cc
  618. * src/base32.h
  619. * src/bittorrent_helper.cc
  620. * test/Base32Test.cc
  621. * test/BittorrentHelperTest.cc
  622. * test/Makefile.am
  623. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  624. Added BitTorrent Magnet Link support. Base32 encoded link is not
  625. supported yet. Fixed typo in method name in RequestGroup. In
  626. metadataGetMode, don't show "Your share ratio was ..." message.
  627. * src/DefaultBtInteractive.cc
  628. * src/DefaultBtInteractive.h
  629. * src/DownloadHandlerFactory.cc
  630. * src/DownloadHandlerFactory.h
  631. * src/HandshakeExtensionMessage.cc
  632. * src/Makefile.am
  633. * src/Metalink2RequestGroup.cc
  634. * src/PeerInteractionCommand.cc
  635. * src/RequestGroup.cc
  636. * src/RequestGroup.h
  637. * src/UTMetadataPostDownloadHandler.cc
  638. * src/UTMetadataPostDownloadHandler.h
  639. * src/download_helper.cc
  640. * test/HandshakeExtensionMessageTest.cc
  641. * test/Makefile.am
  642. * test/UTMetadataPostDownloadHandlerTest.cc
  643. * test/UTMetadataRejectExtensionMessageTest.cc
  644. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  645. In metadataGetMode, don't show SEEDING.
  646. * src/ConsoleStatCalc.cc
  647. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  648. Fixed ut_metadata data handling. Implemented
  649. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  650. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  651. metadata_size is received.
  652. * src/DefaultExtensionMessageFactory.cc
  653. * src/DefaultExtensionMessageFactory.h
  654. * src/HandshakeExtensionMessage.cc
  655. * src/HandshakeExtensionMessage.h
  656. * src/UTMetadataDataExtensionMessage.cc
  657. * src/UTMetadataDataExtensionMessage.h
  658. * src/UTMetadataRequestExtensionMessage.cc
  659. * src/UTMetadataRequestFactory.cc
  660. * src/UTMetadataRequestFactory.h
  661. * src/UTMetadataRequestTracker.cc
  662. * src/UTMetadataRequestTracker.h
  663. * test/DefaultExtensionMessageFactoryTest.cc
  664. * test/HandshakeExtensionMessageTest.cc
  665. * test/MockBtMessage.h
  666. * test/UTMetadataDataExtensionMessageTest.cc
  667. * test/UTMetadataRequestExtensionMessageTest.cc
  668. * test/UTMetadataRequestFactoryTest.cc
  669. * test/UTMetadataRequestTrackerTest.cc
  670. * test/extension_message_test_helper.h
  671. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  672. Drop connection if ut_metadata reject message is received.
  673. * src/UTMetadataRejectExtensionMessage.cc
  674. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  675. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  676. get high enough in that mode.
  677. * src/ActivePeerConnectionCommand.cc
  678. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  679. Added BitTorrent magnet link support to ProtocolDetector.
  680. * src/ProtocolDetector.cc
  681. * src/ProtocolDetector.h
  682. * test/ProtocolDetectorTest.cc
  683. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  684. Don't inject validator into BtMessage in metadataGetMode because
  685. most of the checks depends on the total length of download but it
  686. is unknown. Delegate metadataGetMode to BtMessage.
  687. * src/DefaultBtMessageFactory.cc
  688. * src/DefaultBtMessageFactory.h
  689. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  690. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  691. * src/DefaultPieceStorage.h
  692. * src/PieceStorage.h
  693. * src/UnknownLengthPieceStorage.h
  694. * test/MockPieceStorage.h
  695. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  696. Added markTotalLengthIsKnown().
  697. * src/DownloadContext.h
  698. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  699. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  700. missing. If metadata is missing, always use DHT when it is ready.
  701. * src/BtSetup.cc
  702. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  703. Added parseMagnetLink(). Hex encoded info hash is supported.
  704. Base32 encoded info hash is not supported yet.
  705. * src/bittorrent_helper.cc
  706. * src/bittorrent_helper.h
  707. * test/BittorrentHelperTest.cc
  708. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  709. Added FromHex()
  710. * src/util.cc
  711. * src/util.h
  712. * test/UtilTest.cc
  713. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  714. Added _metadataGetMode member variable. It toggles the action when
  715. messages are received: usually they almost do nothing if
  716. _metadataGetMode is true.
  717. * src/AbstractBtMessage.cc
  718. * src/AbstractBtMessage.h
  719. * src/BtAllowedFastMessage.cc
  720. * src/BtBitfieldMessage.cc
  721. * src/BtCancelMessage.cc
  722. * src/BtChokeMessage.cc
  723. * src/BtHaveAllMessage.cc
  724. * src/BtHaveMessage.cc
  725. * src/BtInterestedMessage.cc
  726. * src/BtNotInterestedMessage.cc
  727. * src/BtPieceMessage.cc
  728. * src/BtRejectMessage.cc
  729. * src/BtRequestMessage.cc
  730. * src/BtUnchokeMessage.cc
  731. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  732. Added bencode::decode overload functions. They have extra argument
  733. 'end', passed by reference. 'end' points to the beyond the last
  734. position of data used in decoding process.
  735. * src/bencode.cc
  736. * src/bencode.h
  737. * test/BencodeTest.cc
  738. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  739. Initial support of Extension for Peers to Send Metadata
  740. Files(BEP9). Currently aria2 only serves metadata and cannot get
  741. metadata from swarm.
  742. * src/BtConstants.h
  743. * src/DefaultBtInteractive.cc
  744. * src/DefaultExtensionMessageFactory.cc
  745. * src/DefaultExtensionMessageFactory.h
  746. * src/ExtensionMessage.h
  747. * src/ExtensionMessageRegistry.h
  748. * src/HandshakeExtensionMessage.cc
  749. * src/HandshakeExtensionMessage.h
  750. * src/Makefile.am
  751. * src/PeerConnection.h
  752. * src/PeerInteractionCommand.cc
  753. * src/UTMetadataDataExtensionMessage.cc
  754. * src/UTMetadataDataExtensionMessage.h
  755. * src/UTMetadataExtensionMessage.cc
  756. * src/UTMetadataExtensionMessage.h
  757. * src/UTMetadataRejectExtensionMessage.cc
  758. * src/UTMetadataRejectExtensionMessage.h
  759. * src/UTMetadataRequestExtensionMessage.cc
  760. * src/UTMetadataRequestExtensionMessage.h
  761. * src/bittorrent_helper.cc
  762. * src/bittorrent_helper.h
  763. * test/BittorrentHelperTest.cc
  764. * test/DefaultExtensionMessageFactoryTest.cc
  765. * test/HandshakeExtensionMessageTest.cc
  766. * test/Makefile.am
  767. * test/UTMetadataDataExtensionMessageTest.cc
  768. * test/UTMetadataRejectExtensionMessageTest.cc
  769. * test/UTMetadataRequestExtensionMessageTest.cc
  770. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  771. Cancel segment in prepareForRetry() because there is a chance that
  772. the command has segments.
  773. * src/CreateRequestCommand.cc
  774. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  775. Fixed the bug that slow server is not knocked down in favor of
  776. faster one.
  777. * src/AbstractCommand.cc
  778. * src/DefaultPieceStorage.cc
  779. * src/DefaultPieceStorage.h
  780. * src/PieceStorage.h
  781. * src/UnknownLengthPieceStorage.cc
  782. * src/UnknownLengthPieceStorage.h
  783. * test/MockPieceStorage.h
  784. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  785. Fixed the bug that Request object is not added to
  786. _inFlightRequests in findFasterRequest().
  787. * src/FileEntry.cc
  788. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  789. Changed the strategry of how to increase the number of outstanding
  790. requests. Now the number is doubled if there are no outstanding
  791. requests after receiving messages.
  792. * src/BtConstants.h
  793. * src/DefaultBtInteractive.cc
  794. * src/DefaultBtInteractive.h
  795. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  796. Check socket for reading if there are outstanding requests.
  797. * src/PeerInteractionCommand.cc
  798. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  799. Moved frequently called methods to header file so they get
  800. inlined.
  801. * src/RequestSlot.cc
  802. * src/RequestSlot.h
  803. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  804. Copied in_addr instead of just casting from char* which might
  805. violate strict aliasing rules.
  806. * src/AsyncNameResolver.cc
  807. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  808. Use dynamic_pointer_cast
  809. * test/BtPieceMessageTest.cc
  810. * test/BtRequestMessageTest.cc
  811. * test/DefaultBtRequestFactoryTest.cc
  812. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  813. Added testSetUrl20()
  814. * test/RequestTest.cc
  815. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  816. Code cleanup
  817. * src/bittorrent_helper.cc
  818. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  819. Use C++ style cast
  820. * src/AsyncNameResolver.cc
  821. * src/Base64.h
  822. * src/BtBitfieldMessage.cc
  823. * src/BtHandshakeMessage.cc
  824. * src/DefaultBtMessageFactory.cc
  825. * src/DefaultBtProgressInfoFile.cc
  826. * src/EpollEventPoll.cc
  827. * src/ExpatMetalinkProcessor.cc
  828. * src/IteratableChecksumValidator.cc
  829. * src/IteratableChunkChecksumValidator.cc
  830. * src/MessageDigestHelper.cc
  831. * src/Platform.cc
  832. * src/RequestGroupMan.cc
  833. * src/SingleFileAllocationIterator.cc
  834. * src/Sqlite3MozCookieParser.cc
  835. * src/XML2SAXMetalinkProcessor.cc
  836. * src/Xml2XmlRpcRequestProcessor.cc
  837. * src/util.cc
  838. * src/util.h
  839. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  840. Fixed integer potential alignment problem.
  841. * src/bitfield.h
  842. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  843. Applied a patch from tizianomueller to fix sigbus errors on Linux
  844. sparc. I modified the patch to eliminate a cast to uint32_t* and
  845. include file ordering.
  846. * src/PeerListProcessor.h
  847. * src/bittorrent_helper.cc
  848. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  849. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  850. * src/Request.cc
  851. * src/util.cc
  852. * src/util.h
  853. * test/RequestTest.cc
  854. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  855. Rewritten util::uitos()
  856. * src/util.h
  857. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  858. Code cleanup
  859. * src/Request.cc
  860. * src/Request.h
  861. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  862. Rewritten Request::parseUrl()
  863. * src/Request.cc
  864. * test/RequestTest.cc
  865. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  866. Removed unused macro SAFE_CHARS
  867. * src/Request.cc
  868. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  869. Updated doc
  870. * src/DHTRoutingTableDeserializer.cc
  871. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  872. Release 1.6.3
  873. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  874. Removed unused function.
  875. * test/DHTPeerAnnounceStorageTest.cc
  876. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  877. Only decrement cols if cols > 0
  878. * src/ConsoleStatCalc.cc
  879. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  880. Updated Polish, Catalan, French, Italian, Russian and Japanese
  881. translations. Thanks to all translators.
  882. * po/ca.po
  883. * po/fr.po
  884. * po/it.po
  885. * po/ja.po
  886. * po/pl.po
  887. * po/ru.po
  888. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  889. Updated translation template
  890. * po
  891. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  892. Fixed compile error without ssl library.
  893. * src/util.cc
  894. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  895. Logged received nodes in get_peers reply message.
  896. * src/DHTAbstractNodeLookupTask.cc
  897. * src/DHTAbstractNodeLookupTask.h
  898. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  899. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  900. error occurred in DHTMessageDispatcherImpl::sendMessage().
  901. * src/DHTMessageDispatcherImpl.cc
  902. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  903. Don't reuse URI if Request pool is not empty.
  904. * src/CreateRequestCommand.cc
  905. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  906. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  907. receive get_peers request for torrent which the client is now
  908. downloading.
  909. * src/BtSetup.cc
  910. * src/DHTPeerAnnounceEntry.cc
  911. * src/DHTPeerAnnounceEntry.h
  912. * src/DHTPeerAnnounceStorage.cc
  913. * src/DHTPeerAnnounceStorage.h
  914. * src/RequestGroup.cc
  915. * test/DHTPeerAnnounceEntryTest.cc
  916. * test/DHTPeerAnnounceStorageTest.cc
  917. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  918. Fixed the bug that in Windows environment new blank line is
  919. inserted when console readout is updated.
  920. * src/ConsoleStatCalc.cc
  921. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  922. Throw exception if binding listening port is failed. Removed
  923. RequestGroupMan::getInitialCommand(). Use
  924. fillRequestGroupFromReserver() instead. Delete commands for
  925. RequestGroup which has errors when it is being added.
  926. * src/BtSetup.cc
  927. * src/DownloadEngine.cc
  928. * src/DownloadEngine.h
  929. * src/DownloadEngineFactory.cc
  930. * src/MultiUrlRequestInfo.cc
  931. * src/RequestGroupMan.cc
  932. * src/RequestGroupMan.h
  933. * test/RequestGroupManTest.cc
  934. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  935. Fixed the bug that when downloading more than one torrent,
  936. listening port is not reported properly to tracker for 2nd or
  937. later torrents.
  938. * src/BtSetup.cc
  939. * src/PeerListenCommand.cc
  940. * src/PeerListenCommand.h
  941. * src/RequestGroup.cc
  942. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  943. Bump up version number to 1.6.3
  944. * configure.ac
  945. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  946. Removed Util.cc from POTFILES.in
  947. * po/POTFILES.in
  948. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  949. Updated man page for previous change.
  950. * doc/aria2c.1.txt
  951. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  952. If user name is embedded but password is missing in URI, first
  953. resolve password using .netrc. If password is found in .netrc,
  954. then use it as password. If not, use the password specified in
  955. --ftp-passwd.
  956. * src/AuthConfigFactory.cc
  957. * src/Request.cc
  958. * src/Request.h
  959. * test/AuthConfigFactoryTest.cc
  960. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  961. Fixed typo
  962. * doc/aria2c.1.txt
  963. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  964. Fixed typo
  965. * src/usage_text.h
  966. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  967. Added missing bitfield.cc
  968. * src/bitfield.cc
  969. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  970. Renamed Util.{cc,h} as util.{cc,h}
  971. * src/Util.cc
  972. * src/Util.h
  973. * src/util.cc
  974. * src/util.h
  975. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  976. Moved static functions in Util class to namespace util.
  977. * src
  978. * test
  979. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  980. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  981. Moved generateRandomKey to bittorrent_helper.cc.
  982. * src/DHTBucket.cc
  983. * src/DHTGetPeersMessage.cc
  984. * src/DHTGetPeersReplyMessage.cc
  985. * src/DHTMessage.cc
  986. * src/DHTNode.cc
  987. * src/DHTTokenTracker.cc
  988. * src/DHTUtil.cc: Removed.
  989. * src/DHTUtil.h: Removed.
  990. * src/Makefile.am
  991. * src/Util.cc
  992. * src/Util.h
  993. * src/bitfield.h
  994. * src/bittorrent_helper.cc
  995. * src/bittorrent_helper.h
  996. * test/ARC4Test.cc
  997. * test/BNodeTest.cc
  998. * test/DHTAnnouncePeerMessageTest.cc
  999. * test/DHTAnnouncePeerReplyMessageTest.cc
  1000. * test/DHTFindNodeMessageTest.cc
  1001. * test/DHTFindNodeReplyMessageTest.cc
  1002. * test/DHTGetPeersMessageTest.cc
  1003. * test/DHTGetPeersReplyMessageTest.cc
  1004. * test/DHTPingMessageTest.cc
  1005. * test/DHTPingReplyMessageTest.cc
  1006. * test/DHTTokenTrackerTest.cc
  1007. * test/DHTUtilTest.cc: Removed.
  1008. * test/Makefile.am
  1009. * test/UtilTest.cc
  1010. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1011. Removed the call to trim() because trim() is called for each
  1012. element in split().
  1013. * src/CookieParser.cc
  1014. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1015. Replaced Util::slice() with split()
  1016. * src/AbstractCommand.cc
  1017. * src/CookieParser.cc
  1018. * src/File.cc
  1019. * src/HttpHeaderProcessor.cc
  1020. * src/HttpRequest.cc
  1021. * src/Metalink2RequestGroup.cc
  1022. * src/MetalinkParserController.cc
  1023. * src/Netrc.cc
  1024. * src/NsCookieParser.cc
  1025. * src/ParameterizedStringParser.cc
  1026. * src/ServerStatMan.cc
  1027. * src/UriListParser.cc
  1028. * src/Util.cc
  1029. * src/Util.h
  1030. * src/bittorrent_helper.cc
  1031. * test/UtilTest.cc
  1032. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1033. Use request->getDir() instead of "/" for embedded user/pass in
  1034. URI.
  1035. * src/AuthConfigFactory.cc
  1036. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1037. Fixed wrong insertion point for BasicCred.
  1038. * src/AuthConfigFactory.cc
  1039. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1040. Allowed non-regular file in LocalFilePathOptionHandler
  1041. * src/OptionHandlerImpl.h
  1042. * src/message.h
  1043. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1044. Fixed the bug that Netrc::parse() cannot recognize comment line.
  1045. * src/Netrc.cc
  1046. * src/Util.h
  1047. * test/NetrcTest.cc
  1048. * test/sample.netrc
  1049. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1050. Fixed typo
  1051. * src/BtDependency.cc
  1052. * src/BtRejectMessage.cc
  1053. * src/FtpConnection.cc
  1054. * src/HttpHeaderProcessor.h
  1055. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1056. Fixed lintian report in man page
  1057. * doc/aria2c.1.txt
  1058. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1059. Release 1.6.2
  1060. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1061. Updated Ukrainian translation. Thanks to all translators.
  1062. * po/uk.po
  1063. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1064. Updated translation template
  1065. * po
  1066. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1067. Bump up version number to 1.6.2
  1068. * configure.ac
  1069. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1070. Updated licence message in -v output.
  1071. * src/version_usage.cc
  1072. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1073. Replaced aria2 with aria2c in help message.
  1074. * src/version_usage.cc
  1075. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1076. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  1077. * src/version_usage.cc
  1078. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1079. Quoted localedir
  1080. * src/Makefile.am
  1081. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1082. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  1083. utime. Check header for utime.h.
  1084. * configure.ac
  1085. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1086. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  1087. * configure.ac
  1088. * src/daemon.cc
  1089. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1090. Don't set localedir manually. Leave it to autoconf.
  1091. * configure.ac
  1092. * src/Makefile.am
  1093. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1094. Added --install to ACLOCAL_AMFLAGS.
  1095. Removed m4 from SUBDIRS.
  1096. Updated automake 1.11 and autoconf 2.64.
  1097. Replaced some obsolute macros with new one.
  1098. * Makefile.am
  1099. * configure.ac
  1100. * m4/aria2_arg.m4
  1101. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1102. Removed Makefile.am in m4 directory.
  1103. * configure.ac
  1104. * m4/ChangeLog
  1105. * m4/Makefile.am
  1106. * m4/Makefile.in
  1107. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1108. Removed unused m4 macros.
  1109. * m4/intldir.m4
  1110. * m4/inttypes.m4
  1111. * m4/isc-posix.m4
  1112. * m4/libgnutls-extra.m4
  1113. * m4/ulonglong.m4
  1114. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1115. Fixed the bug that causes segmentation fault if
  1116. req->getCurrentUrl() contains printf formatting characters such as
  1117. %d. The statement that causes this bug is useless and removed.
  1118. * src/AbstractCommand.cc
  1119. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1120. * Release 1.6.1
  1121. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1122. Updated Simplified Chinese translation. Thanks to translators.
  1123. * po/zh_CN.po
  1124. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1125. Updated translation template
  1126. * po
  1127. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1128. Bump up version number to 1.6.1
  1129. * configure.ac
  1130. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1131. Changed interval from 120 to 60 for dropping inactive peer.
  1132. * src/DefaultBtInteractive.cc
  1133. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1134. Updated man page for --user-agent and --peer-id-prefix option.
  1135. * doc/aria2c.1.txt
  1136. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1137. Code clean up
  1138. * src/BtPostDownloadHandler.cc
  1139. * src/ContentTypeRequestGroupCriteria.cc
  1140. * src/ContentTypeRequestGroupCriteria.h
  1141. * src/DownloadHandlerConstants.cc
  1142. * src/DownloadHandlerConstants.h
  1143. * src/DownloadHandlerFactory.cc
  1144. * src/MetalinkPostDownloadHandler.cc
  1145. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1146. Don't save control file when aria2 exists while checking piece
  1147. hash(behavior of -V option). If control file doesn't exist when
  1148. aria2 launched, the completed length in saved control file will be
  1149. 0 byte and this confuses user. disableSaveControlFile() is called
  1150. in RequestGroup::processCheckIntegrityEntry().
  1151. enableSaveControlFile() will be called after hash checking is
  1152. done. See CheckIntegrityCommand.
  1153. * src/CheckIntegrityCommand.cc
  1154. * src/RequestGroup.cc
  1155. * src/RequestGroup.h
  1156. * src/RequestGroupMan.cc
  1157. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1158. Included version number in Peer ID and client version. Peer ID
  1159. now starts with "aria2/VERSION-", where VERSION is
  1160. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  1161. * src/DefaultBtInteractive.cc
  1162. * src/OptionHandlerFactory.cc
  1163. * src/bittorrent_helper.cc
  1164. * src/bittorrent_helper.h
  1165. * src/main.cc
  1166. * src/usage_text.h
  1167. * test/BittorrentHelperTest.cc
  1168. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1169. Fixed memory leak.
  1170. * src/DownloadCommand.cc
  1171. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1172. Removed server, port, user and passwd key from options before
  1173. XMLRPC::Client.call since they are not options of aria2.
  1174. * doc/xmlrpc/aria2mon
  1175. * doc/xmlrpc/aria2rpc
  1176. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1177. Included version number in user-agent string.
  1178. * src/OptionHandlerFactory.cc
  1179. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1180. Fixed the bug that the option values changed by XML-RPC
  1181. method(changeOption and changeGlobalOption) are overwritten to the
  1182. previous value by the next these request which doesn't contain
  1183. that option value. Supporse max-download-limit is initially 0. You
  1184. changed this value to 100K by changeOption. Then you issue
  1185. changeOption request to change max-upload-limit to 50K. This
  1186. second request doesn't contain xml-download-limit, so it is back
  1187. to initial value, 0. Another improvement is that exception is
  1188. thrown when changeOption and changeGlobalOption request contains
  1189. option name which doesn't allowed in each request.
  1190. * src/DownloadEngine.h
  1191. * src/XmlRpcMethod.cc
  1192. * src/XmlRpcMethod.h
  1193. * src/XmlRpcMethodImpl.cc
  1194. * src/download_helper.cc
  1195. * src/download_helper.h
  1196. * test/XmlRpcMethodTest.cc
  1197. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1198. Added missing MetalinkParserStateImpl.{cc,h}
  1199. * src/MetalinkParserStateImpl.cc
  1200. * src/MetalinkParserStateImpl.h
  1201. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1202. Put all MetalinkParserState subclasses into
  1203. MetalinkParserStateImpl.cc. Use stack to track element structure.
  1204. * src/FileMetalinkParserState.cc: Removed
  1205. * src/FileMetalinkParserState.h: Removed
  1206. * src/FilesMetalinkParserState.cc: Removed
  1207. * src/FilesMetalinkParserState.h: Removed
  1208. * src/FinMetalinkParserState.cc: Removed
  1209. * src/FinMetalinkParserState.h: Removed
  1210. * src/HashMetalinkParserState.cc: Removed
  1211. * src/HashMetalinkParserState.h: Removed
  1212. * src/InitialMetalinkParserState.cc: Removed
  1213. * src/InitialMetalinkParserState.h: Removed
  1214. * src/LanguageMetalinkParserState.cc: Removed
  1215. * src/LanguageMetalinkParserState.h: Removed
  1216. * src/Makefile.am
  1217. * src/MetalinkMetalinkParserState.cc: Removed
  1218. * src/MetalinkMetalinkParserState.h: Removed
  1219. * src/MetalinkParserState.h
  1220. * src/MetalinkParserStateMachine.cc
  1221. * src/MetalinkParserStateMachine.h
  1222. * src/OSMetalinkParserState.cc: Removed
  1223. * src/OSMetalinkParserState.h: Removed
  1224. * src/PieceHashMetalinkParserState.cc: Removed
  1225. * src/PieceHashMetalinkParserState.h: Removed
  1226. * src/PiecesMetalinkParserState.cc: Removed
  1227. * src/PiecesMetalinkParserState.h: Removed
  1228. * src/ResourcesMetalinkParserState.cc: Removed
  1229. * src/ResourcesMetalinkParserState.h: Removed
  1230. * src/SignatureMetalinkParserState.cc: Removed
  1231. * src/SignatureMetalinkParserState.h: Removed
  1232. * src/SizeMetalinkParserState.cc: Removed
  1233. * src/SizeMetalinkParserState.h: Removed
  1234. * src/SkipTagMetalinkParserState.cc: Removed
  1235. * src/SkipTagMetalinkParserState.h: Removed
  1236. * src/URLMetalinkParserState.cc: Removed
  1237. * src/URLMetalinkParserState.h: Removed
  1238. * src/VerificationMetalinkParserState.cc: Removed
  1239. * src/VerificationMetalinkParserState.h: Removed
  1240. * src/VersionMetalinkParserState.cc: Removed
  1241. * src/VersionMetalinkParserState.h: Removed
  1242. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1243. Move all functions in PeerMessageUtil to bittorrent_helper.
  1244. * src/BtBitfieldMessage.cc
  1245. * src/BtBitfieldMessageValidator.h
  1246. * src/BtExtendedMessage.cc
  1247. * src/BtHandshakeMessage.cc
  1248. * src/BtHandshakeMessageValidator.h
  1249. * src/BtPieceMessage.cc
  1250. * src/BtPieceMessageValidator.h
  1251. * src/BtPortMessage.cc
  1252. * src/DHTFindNodeReplyMessage.cc
  1253. * src/DHTGetPeersReplyMessage.cc
  1254. * src/DHTMessageFactoryImpl.cc
  1255. * src/DHTRoutingTableDeserializer.cc
  1256. * src/DHTRoutingTableSerializer.cc
  1257. * src/DHTTokenTracker.cc
  1258. * src/DefaultBtMessageFactory.cc
  1259. * src/IndexBtMessage.cc
  1260. * src/IndexBtMessage.h
  1261. * src/IndexBtMessageValidator.h
  1262. * src/Makefile.am
  1263. * src/PeerMessageUtil.cc: Removed.
  1264. * src/PeerMessageUtil.h: Removed.
  1265. * src/RangeBtMessage.cc
  1266. * src/RangeBtMessage.h
  1267. * src/RangeBtMessageValidator.h
  1268. * src/UTPexExtensionMessage.cc
  1269. * src/ZeroBtMessage.cc
  1270. * src/ZeroBtMessage.h
  1271. * src/bittorrent_helper.cc
  1272. * src/bittorrent_helper.h
  1273. * test/BittorrentHelperTest.cc
  1274. * test/BtAllowedFastMessageTest.cc
  1275. * test/BtBitfieldMessageTest.cc
  1276. * test/BtCancelMessageTest.cc
  1277. * test/BtChokeMessageTest.cc
  1278. * test/BtExtendedMessageTest.cc
  1279. * test/BtHandshakeMessageTest.cc
  1280. * test/BtHaveAllMessageTest.cc
  1281. * test/BtHaveMessageTest.cc
  1282. * test/BtHaveNoneMessageTest.cc
  1283. * test/BtInterestedMessageTest.cc
  1284. * test/BtNotInterestedMessageTest.cc
  1285. * test/BtPieceMessageTest.cc
  1286. * test/BtPortMessageTest.cc
  1287. * test/BtRejectMessageTest.cc
  1288. * test/BtRequestMessageTest.cc
  1289. * test/BtSuggestPieceMessageTest.cc
  1290. * test/BtUnchokeMessageTest.cc
  1291. * test/DHTFindNodeReplyMessageTest.cc
  1292. * test/DHTGetPeersReplyMessageTest.cc
  1293. * test/DHTMessageFactoryImplTest.cc
  1294. * test/DHTRoutingTableDeserializerTest.cc
  1295. * test/DHTRoutingTableSerializerTest.cc
  1296. * test/DefaultBtMessageFactoryTest.cc
  1297. * test/DefaultExtensionMessageFactoryTest.cc
  1298. * test/Makefile.am
  1299. * test/PeerListProcessorTest.cc
  1300. * test/PeerMessageUtilTest.cc: Removed.
  1301. * test/UTPexExtensionMessageTest.cc
  1302. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1303. Limit the size of values list when sending get_peers reply.
  1304. * src/DHTGetPeersReplyMessage.cc
  1305. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1306. Updated banner
  1307. * doc/xmlrpc/aria2rpc
  1308. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1309. Added missing help message for remove command.
  1310. * doc/xmlrpc/aria2rpc
  1311. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1312. Generated configure and config.h.in
  1313. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  1314. Add check for fork(), which is missing on MinGW
  1315. * src/daemon.cc
  1316. * configure.ac
  1317. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1318. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  1319. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  1320. Util::httpGMT().
  1321. * src/Util.cc
  1322. * src/Util.h
  1323. * test/UtilTest.cc
  1324. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1325. * Release 1.6.0
  1326. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1327. Fixed a path to xmlrpc/README.txt
  1328. * doc/Makefile.am
  1329. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1330. Added XML-RPC in -v Configuration output.
  1331. * src/FeatureConfig.cc
  1332. * src/FeatureConfig.h
  1333. * test/FeatureConfigTest.cc
  1334. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1335. Updated Bulgarian, Russian, Slovak and Japanese
  1336. translations. Thanks to all translators.
  1337. * po/bg.po
  1338. * po/ja.po
  1339. * po/ru.po
  1340. * po/sk.po
  1341. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1342. Removed --retry-wait option from aria2rpc
  1343. * doc/xmlrpc/aria2rpc
  1344. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1345. Removed --retry-wait option from man page.
  1346. * doc/aria2c.1.txt
  1347. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1348. Removed --retry-wait option since the current architecture doesn't
  1349. allow sleep for particular URI.
  1350. * src/AbstractCommand.cc
  1351. * src/OptionHandlerFactory.cc
  1352. * src/download_helper.cc
  1353. * src/prefs.cc
  1354. * src/prefs.h
  1355. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1356. Removed Retry-After header support. Since the current architecture
  1357. doesn't allow sleep for particular URI.
  1358. * src/HttpSkipResponseCommand.cc
  1359. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1360. Updated the help message for --daemon option.
  1361. * doc/aria2c.1.txt
  1362. * src/usage_text.h
  1363. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1364. Added our own daemon() function for systems which desn't have
  1365. daemon(3).
  1366. * configure.ac
  1367. * src/Makefile.am
  1368. * src/daemon.cc
  1369. * src/daemon.h
  1370. * src/option_processing.cc
  1371. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1372. Simplified File::getCurrentDir()
  1373. * src/File.cc
  1374. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1375. Use exit() instead of _exit
  1376. * src/RequestGroupMan.cc
  1377. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1378. Replaced "CATEGORY" with "TAGS".
  1379. * src/usage_text.h
  1380. * doc/aria2c.1.txt
  1381. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1382. Updated the help message for --help option.
  1383. * src/usage_text.h
  1384. * doc/aria2c.1.txt
  1385. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1386. Updated man page for added help tags.
  1387. * doc/aria2c.1.txt
  1388. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1389. Added help category #file. Added #file tag to the options related
  1390. to downloaded file.
  1391. * src/OptionHandlerFactory.cc
  1392. * src/help_tags.h
  1393. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1394. Added help categories: #cookie and #hook. Added #https tag to
  1395. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  1396. * src/OptionHandlerFactory.cc
  1397. * src/help_tags.h
  1398. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1399. Made MSG_NOT_FILE translatable.
  1400. * src/message.h
  1401. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1402. Updated man page for --help option.
  1403. * doc/aria2c.1.txt
  1404. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1405. Updated doc.
  1406. * src/XmlRpcMethod.h
  1407. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1408. Help category now starts with "#" to distinguish a category from
  1409. keyword search. For example, "http" categroy is now "#http". You
  1410. can type "--help=#http" to get explanation of options related to
  1411. http. If '#' is omitted, then the argument is treated as a keyword
  1412. and aria2 searches options whose name includes the keyword and
  1413. print matched ones. For example, "--help=http" will show options
  1414. whose name includes "http".
  1415. * src/OptionHandlerFactory.cc
  1416. * src/help_tags.h
  1417. * src/usage_text.h
  1418. * src/version_usage.cc
  1419. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1420. Documented missing experimental tag and newly added xml-rpc tag in
  1421. man page.
  1422. * doc/aria2c.1.txt
  1423. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1424. Added xml-rpc help tag. Tagged xml-rpc related options with
  1425. xml-rpc tag.
  1426. * src/OptionHandlerFactory.cc
  1427. * src/help_tags.h
  1428. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1429. Updated message when a path is not a file. Updated common message
  1430. for wrong option.
  1431. * src/OptionHandlerException.cc
  1432. * src/message.h
  1433. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1434. Use File::isFile() instead of File::exists(). Updated message when
  1435. a path is not a file.
  1436. * src/OptionHandlerImpl.cc
  1437. * src/message.h
  1438. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1439. Fixed the bug that server performence profile is not updated when
  1440. aria2c was terminated by emergency shutdown.
  1441. * src/TrackerWatcherCommand.cc
  1442. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1443. Use LocalFilePathOptionHandler for -T and -M option.
  1444. Updated message of MSG_FILE_NOT_EXIST.
  1445. * src/OptionHandlerFactory.cc
  1446. * src/message.h
  1447. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1448. Added LocalFilePathOptionHandler which check whether the specified
  1449. file path does exist or not.
  1450. * src/OptionHandlerImpl.cc
  1451. * src/message.h
  1452. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1453. Updated wiki page URI.
  1454. * README
  1455. * doc/aria2c.1.txt
  1456. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1457. Added README.txt for xmlrpc directory.
  1458. * doc/Makefile.am
  1459. * doc/xmlrpc/README.txt
  1460. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1461. Bump up version number to 1.6.0.
  1462. * configure.ac
  1463. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1464. Added XML-RPC client scripts written in ruby.
  1465. * doc/Makefile.am
  1466. * doc/xmlrpc/aria2mon
  1467. * doc/xmlrpc/aria2rpc
  1468. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1469. Added support for IPv6 literal address in URI. Now aria2 can
  1470. handle URI such as http://[::1]/
  1471. * src/HttpRequest.cc
  1472. * src/HttpRequest.h
  1473. * src/Request.cc
  1474. * src/Request.h
  1475. * test/HttpRequestTest.cc
  1476. * test/OptionHandlerTest.cc
  1477. * test/RequestTest.cc
  1478. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1479. Fixed the bug that HTTP request header for XML-RPC request is not
  1480. parsed properly.
  1481. * src/HttpHeader.cc
  1482. * src/HttpHeaderProcessor.cc
  1483. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1484. Fixed the bug that XML-RPC authorization might be done before HTTP
  1485. request header is fully received.
  1486. * src/HttpServerCommand.cc
  1487. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1488. Documented --xml-rpc-listen-all option in man page.
  1489. * doc/aria2c.1.txt
  1490. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1491. Added --xml-rpc-listen-all option. If true is given to this
  1492. option, aria2 listens incoming XML-RPC requests on all network
  1493. interfaces. If false is given, listens only on local loopback
  1494. interface. The default value is false.
  1495. * src/HttpListenCommand.cc
  1496. * src/OptionHandlerFactory.cc
  1497. * src/SocketCore.cc
  1498. * src/SocketCore.h
  1499. * src/prefs.cc
  1500. * src/prefs.h
  1501. * src/usage_text.h
  1502. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1503. * Release 1.5.2
  1504. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1505. Updated Ukrainian and Russian translations. Thanks to all
  1506. translators.
  1507. * po/ru.po
  1508. * po/uk.po
  1509. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1510. Bump up version number to 1.5.2
  1511. * configure.ac
  1512. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1513. Get comment, comment.utf-8, created by and creation date from
  1514. .torrent file and print them in -S output.
  1515. * src/bittorrent_helper.cc
  1516. * src/bittorrent_helper.h
  1517. * test/BittorrentHelperTest.cc
  1518. * test/test.torrent
  1519. * test/utf8.torrent
  1520. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1521. Show exact file size along in -S option output.
  1522. * src/Util.h
  1523. * src/bittorrent_helper.cc
  1524. * test/UtilTest.cc
  1525. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1526. Avoided unnecessary memory allocation in
  1527. BitfieldMan::getCompletedLength().
  1528. * src/BitfieldMan.cc
  1529. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1530. Fixed the bug that download fails if
  1531. SocketCore::establishConnection() throws exception and aria2
  1532. doesn't try another address.
  1533. * src/AbstractCommand.cc
  1534. * src/InitiateConnectionCommand.cc
  1535. * src/message.h
  1536. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1537. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  1538. detected properly.
  1539. * m4/sqlite3.m4
  1540. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1541. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  1542. because it causes compile error if PARAMS macro is defined.
  1543. * src/XmlRpcElements.cc
  1544. * src/XmlRpcElements.h
  1545. * src/XmlRpcRequestParserStateImpl.cc
  1546. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1547. * Release 1.5.1
  1548. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1549. Bump up version number to 1.5.1
  1550. * configure.ac
  1551. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1552. Fixed compile error without BitTorrent support
  1553. * src/DefaultBtProgressInfoFile.cc
  1554. * src/DownloadEngine.cc
  1555. * src/DownloadEngine.h
  1556. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1557. Added missing '=' in Download Results
  1558. * src/RequestGroupMan.cc
  1559. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1560. Fixed compiler warning
  1561. * src/DefaultBtProgressInfoFile.cc
  1562. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1563. Fixed compiler warning on 32bit systems.
  1564. * src/DownloadCommand.cc
  1565. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1566. Call flush from ServerStatMan::save()
  1567. * src/ServerStatMan.cc
  1568. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1569. Check stream status after file is opened.
  1570. * src/CookieStorage.cc
  1571. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1572. Rewritten Signature::save()
  1573. * src/Signature.cc
  1574. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1575. Rewritten RequestGroupMan::saveServerStat()
  1576. * src/RequestGroupMan.cc
  1577. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1578. Rewritten stream error handling
  1579. * src/DHTAutoSaveCommand.cc
  1580. * src/DHTRoutingTableDeserializer.cc
  1581. * src/DHTRoutingTableSerializer.cc
  1582. * src/DHTSetup.cc
  1583. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1584. Check stream status after file is opened.
  1585. * src/DefaultBtProgressInfoFile.cc
  1586. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1587. Rewritten stream error handling
  1588. * src/DefaultBtProgressInfoFile.cc
  1589. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1590. Make sure that stream is closed before renaming file. Unit test
  1591. fails on mingw32 in the previous implementation.
  1592. * src/CookieStorage.cc
  1593. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1594. Fixed the unit test error without sqlite3
  1595. * test/CookieStorageTest.cc
  1596. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1597. Fixed the undefined reference error
  1598. * test/HttpResponseTest.cc
  1599. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1600. * Release 1.5.0
  1601. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1602. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  1603. Ukrainian translations. Thanks to all translators.
  1604. * po/ru.po
  1605. * po/it.po
  1606. * po/da.po
  1607. * po/bg.po
  1608. * po/ja.po
  1609. * po/uk.po
  1610. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1611. Added missing src/Logger.cc
  1612. * src/Logger.cc
  1613. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1614. Rewritten Logger to avoiding constly virtual call.
  1615. * src/LogFactory.cc
  1616. * src/LogFactory.h
  1617. * src/Logger.h
  1618. * src/Makefile.am
  1619. * src/Makefile.in
  1620. * src/NullLogger.h: Removed.
  1621. * src/SimpleLogger.cc
  1622. * src/SimpleLogger.h
  1623. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1624. Updated doc
  1625. * src/main.cc
  1626. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1627. Updated debug log message
  1628. * src/AbstractCommand.cc
  1629. * src/message.h
  1630. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1631. Avoid to create zombie process when commands specified in
  1632. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  1633. X and NetBSD.
  1634. * src/main.cc
  1635. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1636. Fixed typo
  1637. * src/usage_text.h
  1638. * doc/aria2c.1.txt
  1639. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1640. Documented 'errorCode' of tellStatus in man page.
  1641. * doc/aria2c.1.txt
  1642. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1643. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  1644. This key is only available for stopped/completed downloads and its
  1645. value is the error code defined in EXIT STATUS in man page.
  1646. * src/XmlRpcMethodImpl.cc
  1647. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1648. Fixed the bug that session download length is not updated when
  1649. PeerStat is not fastest one.
  1650. * src/SegmentMan.cc
  1651. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1652. Updated doc.
  1653. * doc/aria2c.1.txt
  1654. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1655. Updated doc.
  1656. * src/AbstractCommand.cc
  1657. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1658. Handle the case when DownloadContext has no FileEntry.
  1659. * src/XmlRpcMethodImpl.cc
  1660. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1661. Handle the situation where struct option.name is char *.
  1662. * configure.ac
  1663. * src/OptionParser.cc
  1664. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1665. Code cleanup
  1666. * src/AbstractCommand.cc
  1667. * src/DownloadCommand.cc
  1668. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1669. Use option of each download to create AuthConfig instead of global
  1670. option.
  1671. * src/AuthConfigFactory.cc
  1672. * src/AuthConfigFactory.h
  1673. * src/FtpNegotiationCommand.cc
  1674. * src/HttpRequest.cc
  1675. * src/HttpRequest.h
  1676. * src/HttpRequestCommand.cc
  1677. * src/HttpSkipResponseCommand.cc
  1678. * src/MultiUrlRequestInfo.cc
  1679. * test/AuthConfigFactoryTest.cc
  1680. * test/FtpConnectionTest.cc
  1681. * test/HttpRequestTest.cc
  1682. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1683. Don't call prepareForRetry(1) if all segments are ignored in
  1684. SegmentMan.
  1685. * src/AbstractCommand.cc
  1686. * src/BitfieldMan.cc
  1687. * src/BitfieldMan.h
  1688. * src/SegmentMan.cc
  1689. * src/SegmentMan.h
  1690. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1691. Removed FileEntry::getAssociatedUris()
  1692. * src/FileEntry.h
  1693. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1694. Updated doc: TODO1.5 -> TODO
  1695. * src/FileEntry.cc
  1696. * src/HttpResponseCommand.cc
  1697. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1698. Added assertion fileEntries.size() == 1 if BitTorrent is not
  1699. involved.
  1700. * src/RequestGroup.cc
  1701. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1702. Eliminated duplicated filterBitfield initialization code.
  1703. * src/BitfieldMan.cc
  1704. * src/BitfieldMan.h
  1705. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1706. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  1707. relatively naive approach, though). For DownloadFailureException,
  1708. we handle the case when req is null properly.
  1709. * src/AbstractCommand.cc
  1710. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1711. Added function returning suffix of control file to
  1712. DefaultBtProgressInfoFile.
  1713. * src/DefaultBtProgressInfoFile.cc
  1714. * src/DefaultBtProgressInfoFile.h
  1715. * src/RequestGroup.cc
  1716. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1717. Documented getVersion in man page.
  1718. * doc/aria2c.1.txt
  1719. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1720. Documented type of offset and num for tellWaiting xml-rpc method.
  1721. * doc/aria2c.1.txt
  1722. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1723. Implemented getVersion xml-rpc method. This method returns struct
  1724. which has 2 key-value pairs: "version" key is associated to the
  1725. version of aria2, such as "1.5.0". "enabledFeatures" key is
  1726. associated to the list of enabled features, such as "Async DNS",
  1727. "BitTorrent".
  1728. * src/FeatureConfig.h
  1729. * src/XmlRpcMethodFactory.cc
  1730. * src/XmlRpcMethodImpl.cc
  1731. * src/XmlRpcMethodImpl.h
  1732. * test/XmlRpcMethodTest.cc
  1733. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1734. Removed TLS1.1 protocol support when aria2 is built with gnutls
  1735. for compatibility issue.
  1736. * src/SocketCore.cc
  1737. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1738. Fixed compile error with openSSL
  1739. * src/bittorrent_helper.cc
  1740. * src/messageDigest.h
  1741. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1742. Removed bad code: setting certificate type priority to key
  1743. exchange priority.
  1744. * src/SocketCore.cc
  1745. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1746. Disconnect seeder if client is also in seed state.
  1747. * src/BtBitfieldMessage.cc
  1748. * src/BtHaveAllMessage.cc
  1749. * src/BtHaveMessage.cc
  1750. * src/message.h
  1751. * test/BtBitfieldMessageTest.cc
  1752. * test/BtHaveAllMessageTest.cc
  1753. * test/BtHaveMessageTest.cc
  1754. * test/MockPieceStorage.h
  1755. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1756. Keep CreateRequestCommand in queue when no segment is available so
  1757. that they can pick up pieces which slow BitTorrent peers are
  1758. downloading.
  1759. * src/AbstractCommand.cc
  1760. * src/CreateRequestCommand.cc
  1761. * src/CreateRequestCommand.h
  1762. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1763. --bt-stop-timeout now only checks download speed.
  1764. * src/BtStopDownloadCommand.cc
  1765. * src/BtStopDownloadCommand.h
  1766. * src/BtSetup.cc
  1767. * src/usage_text.h
  1768. * doc/aria2c.1.txt
  1769. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1770. Fixed compile error regarding BUFSIZE.
  1771. * src/DownloadCommand.cc
  1772. * src/DownloadCommand.h
  1773. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1774. Documented tellWaiting xml-rpc method in man page.
  1775. * doc/aria2c.1.txt
  1776. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1777. Bump up version number to 1.5.0
  1778. * configure.ac
  1779. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1780. Removed resolved TODO1.5
  1781. * src/AbstractCommand.cc
  1782. * src/DownloadCommand.cc
  1783. * src/RequestGroup.cc
  1784. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1785. Release pooled and in-flight Request objectsand URIResult objects
  1786. in FileEntry after download completed.
  1787. * src/DownloadContext.cc
  1788. * src/DownloadContext.h
  1789. * src/FileEntry.cc
  1790. * src/FileEntry.h
  1791. * src/RequestGroup.cc
  1792. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1793. Set manual and source attribute in aria2c.1.txt
  1794. * doc/aria2c.1.txt
  1795. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1796. Documented that the default value of --use-head is 'false' in man
  1797. page.
  1798. * doc/aria2c.1.txt
  1799. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1800. Added bt-stop-timeout option to -i list.
  1801. * doc/aria2c.1.txt
  1802. * src/download_helper.cc
  1803. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1804. Fixed typo
  1805. * doc/aria2c.1.txt
  1806. * src/usage_text.h
  1807. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1808. Removed peer-id-prefix option from -i list.
  1809. * doc/aria2c.1.txt
  1810. * src/download_helper.cc
  1811. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1812. Fixed typo
  1813. * doc/aria2c.1.txt
  1814. * src/usage_text.h
  1815. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1816. Documented --bt-stop-timeout option in man page.
  1817. * doc/aria2c.1.txt
  1818. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1819. Updated README regarding multi-file torrent web-seeding.
  1820. * doc/README.txt
  1821. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1822. Updated man page regarding multi-file torrent web-seeding.
  1823. * doc/aria2c.1.txt
  1824. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1825. Updated doc
  1826. * src/version_usage.cc
  1827. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1828. Winsock select() doesn't work if no socket is in FD_SET. To
  1829. overcome this problem, a dummy socket is added to FD_SET and it is
  1830. given to select().
  1831. * src/SelectEventPoll.cc
  1832. * src/SelectEventPoll.h
  1833. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1834. Disabled --use-head option by default because --use-head=true
  1835. causes problems on some web sites.
  1836. * src/OptionHandlerFactory.cc
  1837. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1838. Print URL List in -S option for torrent.
  1839. * src/bittorrent_helper.cc
  1840. * src/bittorrent_helper.h
  1841. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1842. Allocate buffer in ctor of DownloadCommand.
  1843. * src/DownloadCommand.cc
  1844. * src/DownloadCommand.h
  1845. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1846. Removed DiskAdaptor::onDownloadComplete()
  1847. * src/DirectDiskAdaptor.cc
  1848. * src/DirectDiskAdaptor.h
  1849. * src/DiskAdaptor.h
  1850. * src/MultiDiskAdaptor.cc
  1851. * src/MultiDiskAdaptor.h
  1852. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1853. Committed missing BtStopDownloadCommand.{cc,h}
  1854. * src/BtStopDownloadCommand.cc
  1855. * src/BtStopDownloadCommand.h
  1856. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1857. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  1858. download if the download speed is 0 and the number of seeder is 0
  1859. in consecutive SEC seconds. By default, this function is disabled.
  1860. * src/BtSetup.cc
  1861. * src/Makefile.am
  1862. * src/OptionHandlerFactory.cc
  1863. * src/prefs.cc
  1864. * src/prefs.h
  1865. * src/usage_text.h
  1866. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1867. Removed the call to DiskAdaptor::onDownloadComplete() from
  1868. BtCheckIntegrityEntry and DefaultPieceStorage.
  1869. * src/BtCheckIntegrityEntry.cc
  1870. * src/DefaultPieceStorage.cc
  1871. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1872. Commented out throw statements when number of piece is 0 to
  1873. download 0 length torrent.
  1874. * src/bittorrent_helper.cc
  1875. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1876. Call RequestGroup::createNextCommandWithAdj() from
  1877. BtFileAllocationEntry if at least one FileEntry has URI. The
  1878. static function hasAssociatedUri in RequestGroup.cc is renamed as
  1879. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  1880. * src/BtFileAllocationEntry.cc
  1881. * src/FileEntry.h
  1882. * src/RequestGroup.cc
  1883. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1884. Generate peer ID after SimpleRandomizer is initialized.
  1885. * src/main.cc
  1886. * src/option_processing.cc
  1887. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1888. Removed unused method argument.
  1889. * src/CreateRequestCommand.cc
  1890. * src/RequestGroup.cc
  1891. * src/RequestGroup.h
  1892. * src/RequestGroupMan.cc
  1893. * src/TrackerWatcherCommand.cc
  1894. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1895. Made URI reusing function work.
  1896. * src/CreateRequestCommand.cc
  1897. * src/FileEntry.cc
  1898. * src/FileEntry.h
  1899. * test/FileEntryTest.cc
  1900. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1901. Add formerly fastest PeerStat's sessionDownloadLength to new
  1902. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  1903. bytes in a session.
  1904. * src/PeerStat.cc
  1905. * src/SegmentMan.cc
  1906. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1907. If pipelining is enabled, we can always pool socket.
  1908. * src/HttpDownloadCommand.cc
  1909. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1910. In a single file download, file size becomes known just after
  1911. downloading, set total length to FileEntry object when download
  1912. completed.
  1913. * src/DownloadCommand.cc
  1914. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1915. Use std::vector::reserve() for fileEntries and pieceHashes in
  1916. bittorrent_helper
  1917. * src/bittorrent_helper.cc
  1918. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1919. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  1920. Removed hidden option PREF_RESET_URI.
  1921. * src/AbstractCommand.cc
  1922. * src/OptionHandlerFactory.cc
  1923. * src/prefs.cc
  1924. * src/prefs.h
  1925. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1926. Removed unused variable/function.
  1927. * src/PeerStat.h
  1928. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1929. Show first URL in Download Results if file path is not available.
  1930. * src/FileEntry.h
  1931. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1932. Throw exception if file path doesn't exist in FTP URL.
  1933. * src/InitiateConnectionCommandFactory.cc
  1934. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1935. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  1936. * src/BitfieldMan.cc
  1937. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1938. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  1939. of PeerStat in SegmentMan. peerStats is used for calculating
  1940. download speed. Therefore all active PeerStats should be in
  1941. there. Another one is _fastestPeerStats and it only contains
  1942. fastest PeerStat for each hostname/protocol pair. They are used
  1943. for updating ServerStat.
  1944. * src/DownloadCommand.cc
  1945. * src/Request.h
  1946. * src/RequestGroupMan.cc
  1947. * src/SegmentMan.cc
  1948. * src/SegmentMan.h
  1949. * test/SegmentManTest.cc
  1950. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1951. Try all available addresses returned by DNS until it gets
  1952. connected in HTTP(S)/FTP download
  1953. * src/AbstractCommand.cc
  1954. * src/AbstractCommand.h
  1955. * src/AbstractProxyRequestCommand.cc
  1956. * src/AbstractProxyRequestCommand.h
  1957. * src/DNSCache.h
  1958. * src/DownloadEngine.cc
  1959. * src/DownloadEngine.h
  1960. * src/FtpInitiateConnectionCommand.cc
  1961. * src/FtpInitiateConnectionCommand.h
  1962. * src/FtpNegotiationCommand.cc
  1963. * src/FtpNegotiationCommand.h
  1964. * src/HttpInitiateConnectionCommand.cc
  1965. * src/HttpInitiateConnectionCommand.h
  1966. * src/HttpRequestCommand.cc
  1967. * src/HttpRequestCommand.h
  1968. * src/InitiateConnectionCommand.cc
  1969. * src/InitiateConnectionCommand.h
  1970. * test/DNSCacheTest.cc
  1971. * test/Makefile.am
  1972. * test/SimpleDNSCacheTest.cc
  1973. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1974. Updated doc
  1975. * src/download_helper.cc
  1976. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1977. Refactored fieldMan ctor.
  1978. * src/BitfieldMan.cc
  1979. * src/BitfieldMan.h
  1980. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1981. Don't print "No files to download." message if -S is given.
  1982. * src/main.cc
  1983. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1984. Set referer and method to newly created Request object.
  1985. * src/CreateRequestCommand.cc
  1986. * src/FileEntry.cc
  1987. * src/FileEntry.h
  1988. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1989. Removed ctor of AbstractCommand which doesn't take FileEntry.
  1990. * src/AbstractCommand.cc
  1991. * src/AbstractCommand.h
  1992. * src/CreateRequestCommand.cc
  1993. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1994. Get proxy download working
  1995. * src/AbstractProxyRequestCommand.cc
  1996. * src/AbstractProxyRequestCommand.h
  1997. * src/AbstractProxyResponseCommand.cc
  1998. * src/AbstractProxyResponseCommand.h
  1999. * src/FtpInitiateConnectionCommand.cc
  2000. * src/FtpTunnelRequestCommand.cc
  2001. * src/FtpTunnelRequestCommand.h
  2002. * src/FtpTunnelResponseCommand.cc
  2003. * src/FtpTunnelResponseCommand.h
  2004. * src/HttpInitiateConnectionCommand.cc
  2005. * src/HttpProxyRequestCommand.cc
  2006. * src/HttpProxyRequestCommand.h
  2007. * src/HttpProxyResponseCommand.cc
  2008. * src/HttpProxyResponseCommand.h
  2009. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2010. Use SegmentMan::getSegment(cuid) for single file download.
  2011. * src/AbstractCommand.cc
  2012. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2013. Fixed bufSize calculation
  2014. * src/DownloadCommand.cc
  2015. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2016. Don't append "/" if base URI ends with "/".
  2017. * src/bittorrent_helper.cc
  2018. * test/url-list-multiFile.torrent
  2019. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2020. HTTP pipelining is now working. Fixed Segmention fault in
  2021. BitfieldMan's copy ctor.
  2022. * src/AbstractCommand.cc
  2023. * src/BitfieldMan.cc
  2024. * src/BitfieldMan.h
  2025. * src/DownloadCommand.cc
  2026. * src/HttpDownloadCommand.cc
  2027. * src/HttpRequest.cc
  2028. * src/SegmentMan.cc
  2029. * src/SegmentMan.h
  2030. * test/BitfieldManTest.cc
  2031. * test/SegmentManTest.cc
  2032. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2033. Removed ServerHost. Same functionality is implemented using
  2034. FileEntry's in-flight Request objects.
  2035. * src/AbstractCommand.cc
  2036. * src/BtDependency.cc
  2037. * src/CreateRequestCommand.cc
  2038. * src/FileEntry.cc
  2039. * src/FileEntry.h
  2040. * src/FtpNegotiationCommand.cc
  2041. * src/HttpResponseCommand.cc
  2042. * src/Makefile.am
  2043. * src/Metalink2RequestGroup.cc
  2044. * src/RequestGroup.cc
  2045. * src/RequestGroup.h
  2046. * src/ServerHost.cc: Removed
  2047. * src/ServerHost.h: Removed
  2048. * test/BtDependencyTest.cc
  2049. * test/FileEntryTest.cc
  2050. * test/RequestGroupTest.cc
  2051. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2052. Rewritten PeerStat handling. In the previous implementation,
  2053. faster command tries to find slower command. In this new
  2054. implementation, slower command tries to find faster command.
  2055. PeerStat is now created in each HTTP/FTP request to get download
  2056. rate correctly. If the download range is small, the download rate
  2057. tends to small and this will occur at the later stage of download.
  2058. * src/AbstractCommand.cc
  2059. * src/DownloadCommand.cc
  2060. * src/FileEntry.cc
  2061. * src/FileEntry.h
  2062. * src/Request.cc
  2063. * src/Request.h
  2064. * src/RequestGroup.h
  2065. * src/RequestGroupMan.cc
  2066. * src/SegmentMan.cc
  2067. * src/SegmentMan.h
  2068. * test/SegmentManTest.cc
  2069. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2070. Removed _uris from RequestGroup. All functions that refer to _uris
  2071. were moved to FileEntry. Exit status code are now defined in
  2072. DownloadResultCode.h.
  2073. * src/AbstractCommand.cc
  2074. * src/AdaptiveURISelector.cc
  2075. * src/AdaptiveURISelector.h
  2076. * src/AutoSaveCommand.cc
  2077. * src/BtPostDownloadHandler.cc
  2078. * src/CheckIntegrityDispatcherCommand.cc
  2079. * src/CookieStorage.cc
  2080. * src/DHTAutoSaveCommand.cc
  2081. * src/DHTBucketRefreshCommand.cc
  2082. * src/DHTEntryPointNameResolveCommand.cc
  2083. * src/DHTInteractionCommand.cc
  2084. * src/DHTPeerAnnounceCommand.cc
  2085. * src/DHTTokenUpdateCommand.cc
  2086. * src/DlAbortEx.h
  2087. * src/DlRetryEx.h
  2088. * src/DownloadCommand.cc
  2089. * src/DownloadContext.h
  2090. * src/DownloadFailureException.h
  2091. * src/DownloadResult.h
  2092. * src/DownloadResultCode.h
  2093. * src/FeedbackURISelector.cc
  2094. * src/FeedbackURISelector.h
  2095. * src/FileEntry.cc
  2096. * src/FileEntry.h
  2097. * src/FtpNegotiationCommand.cc
  2098. * src/HttpListenCommand.cc
  2099. * src/HttpResponseCommand.cc
  2100. * src/HttpServerResponseCommand.cc
  2101. * src/HttpSkipResponseCommand.cc
  2102. * src/InOrderURISelector.cc
  2103. * src/InOrderURISelector.h
  2104. * src/Makefile.am
  2105. * src/Makefile.in
  2106. * src/Metalink2RequestGroup.cc
  2107. * src/MultiUrlRequestInfo.cc
  2108. * src/MultiUrlRequestInfo.h
  2109. * src/OptionHandlerFactory.cc
  2110. * src/PeerListenCommand.cc
  2111. * src/RecoverableException.h
  2112. * src/RequestGroup.cc
  2113. * src/RequestGroup.h
  2114. * src/RequestGroupMan.cc
  2115. * src/RequestGroupMan.h
  2116. * src/TimedHaltCommand.cc
  2117. * src/TrackerWatcherCommand.cc
  2118. * src/URIResult.cc
  2119. * src/URIResult.h
  2120. * src/URISelector.h
  2121. * src/XmlRpcMethodImpl.cc
  2122. * src/bittorrent_helper.cc
  2123. * src/bittorrent_helper.h
  2124. * src/download_helper.cc
  2125. * src/main.cc
  2126. * src/option_processing.cc
  2127. * test/BtDependencyTest.cc
  2128. * test/BtPostDownloadHandlerTest.cc
  2129. * test/CookieStorageTest.cc
  2130. * test/DefaultBtMessageDispatcherTest.cc
  2131. * test/DownloadHandlerFactoryTest.cc
  2132. * test/DownloadHelperTest.cc
  2133. * test/FeedbackURISelectorTest.cc
  2134. * test/FileEntryTest.cc
  2135. * test/InOrderURISelectorTest.cc
  2136. * test/Metalink2RequestGroupTest.cc
  2137. * test/MetalinkPostDownloadHandlerTest.cc
  2138. * test/RequestGroupManTest.cc
  2139. * test/RequestGroupTest.cc
  2140. * test/XmlRpcMethodTest.cc
  2141. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2142. Removed MockBtContext.h
  2143. * test/Makefile.am
  2144. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2145. Removed _currentRequest from StreamCheckIntegrityEntry and
  2146. StreamFileAllocationEntry.
  2147. * src/AbstractCommand.cc
  2148. * src/HttpResponseCommand.cc
  2149. * src/RequestGroup.cc
  2150. * src/StreamCheckIntegrityEntry.cc
  2151. * src/StreamCheckIntegrityEntry.h
  2152. * src/StreamFileAllocationEntry.cc
  2153. * src/StreamFileAllocationEntry.h
  2154. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2155. Rewritten DownloadContext and removed SingleFileDownloadContext
  2156. and BtContext and its derived classes. BitTorrent specific
  2157. attributes are now set by DownloadContext::setAttribute() with key
  2158. bittorrent::BITTORRENT.
  2159. * src/AbstractBtMessage.cc
  2160. * src/AbstractBtMessage.h
  2161. * src/AbstractCommand.cc
  2162. * src/AbstractCommand.h
  2163. * src/AbstractProxyRequestCommand.cc
  2164. * src/AbstractProxyResponseCommand.cc
  2165. * src/ActivePeerConnectionCommand.cc
  2166. * src/ActivePeerConnectionCommand.h
  2167. * src/AnnounceList.cc
  2168. * src/BtCheckIntegrityEntry.cc
  2169. * src/BtConstants.h
  2170. * src/BtContext.h: Removed
  2171. * src/BtDependency.cc
  2172. * src/BtExtendedMessage.cc
  2173. * src/BtPieceMessage.cc
  2174. * src/BtPieceMessage.h
  2175. * src/BtPostDownloadHandler.cc
  2176. * src/BtRegistry.cc
  2177. * src/BtRegistry.h
  2178. * src/BtSetup.cc
  2179. * src/CheckIntegrityCommand.cc
  2180. * src/CheckIntegrityEntry.cc
  2181. * src/ChecksumCheckIntegrityEntry.cc
  2182. * src/ConsoleStatCalc.cc
  2183. * src/ContentTypeRequestGroupCriteria.cc
  2184. * src/DHTGetPeersCommand.cc
  2185. * src/DHTGetPeersCommand.h
  2186. * src/DHTPeerLookupTask.cc
  2187. * src/DHTPeerLookupTask.h
  2188. * src/DHTTaskFactory.h
  2189. * src/DHTTaskFactoryImpl.cc
  2190. * src/DHTTaskFactoryImpl.h
  2191. * src/DefaultBtAnnounce.cc
  2192. * src/DefaultBtAnnounce.h
  2193. * src/DefaultBtContext.cc: Removed
  2194. * src/DefaultBtContext.h: Removed
  2195. * src/DefaultBtInteractive.cc
  2196. * src/DefaultBtInteractive.h
  2197. * src/DefaultBtMessageDispatcher.cc
  2198. * src/DefaultBtMessageDispatcher.h
  2199. * src/DefaultBtMessageFactory.cc
  2200. * src/DefaultBtMessageFactory.h
  2201. * src/DefaultBtMessageReceiver.cc
  2202. * src/DefaultBtMessageReceiver.h
  2203. * src/DefaultBtProgressInfoFile.cc
  2204. * src/DefaultBtRequestFactory.cc
  2205. * src/DefaultBtRequestFactory.h
  2206. * src/DefaultExtensionMessageFactory.cc
  2207. * src/DefaultExtensionMessageFactory.h
  2208. * src/DefaultPeerStorage.cc
  2209. * src/DefaultPeerStorage.h
  2210. * src/DefaultPieceStorage.cc
  2211. * src/DefaultSegmentManFactory.cc
  2212. * src/DiskAdaptor.cc
  2213. * src/DiskAdaptor.h
  2214. * src/DownloadContext.cc
  2215. * src/DownloadContext.h
  2216. * src/DownloadEngine.cc
  2217. * src/DownloadEngineFactory.cc
  2218. * src/DownloadHandler.cc
  2219. * src/DownloadResult.h
  2220. * src/FileAllocationCommand.cc
  2221. * src/FileAllocationDispatcherCommand.cc
  2222. * src/FileAllocationEntry.cc
  2223. * src/FileEntry.h
  2224. * src/FillRequestGroupCommand.cc
  2225. * src/FtpDownloadCommand.cc
  2226. * src/FtpFinishDownloadCommand.cc
  2227. * src/FtpInitiateConnectionCommand.cc
  2228. * src/FtpNegotiationCommand.cc
  2229. * src/FtpTunnelRequestCommand.cc
  2230. * src/FtpTunnelResponseCommand.cc
  2231. * src/HandshakeExtensionMessage.cc
  2232. * src/HandshakeExtensionMessage.h
  2233. * src/HaveEraseCommand.cc
  2234. * src/HttpDownloadCommand.cc
  2235. * src/HttpInitiateConnectionCommand.cc
  2236. * src/HttpProxyRequestCommand.cc
  2237. * src/HttpProxyResponseCommand.cc
  2238. * src/HttpRequest.cc
  2239. * src/HttpRequest.h
  2240. * src/HttpRequestCommand.cc
  2241. * src/HttpResponseCommand.cc
  2242. * src/HttpServerBodyCommand.cc
  2243. * src/HttpServerCommand.cc
  2244. * src/HttpSkipResponseCommand.cc
  2245. * src/InitiateConnectionCommandFactory.cc
  2246. * src/InitiatorMSEHandshakeCommand.cc
  2247. * src/InitiatorMSEHandshakeCommand.h
  2248. * src/IteratableChecksumValidator.cc
  2249. * src/IteratableChecksumValidator.h
  2250. * src/IteratableChunkChecksumValidator.cc
  2251. * src/MSEHandshake.cc
  2252. * src/MSEHandshake.h
  2253. * src/Makefile.am
  2254. * src/Makefile.in
  2255. * src/Metalink2RequestGroup.cc
  2256. * src/MetalinkPostDownloadHandler.cc
  2257. * src/MultiDiskAdaptor.cc
  2258. * src/MultiDiskAdaptor.h
  2259. * src/MultiFileAllocationIterator.cc
  2260. * src/MultiUrlRequestInfo.cc
  2261. * src/PeerChokeCommand.cc
  2262. * src/PeerChokeCommand.h
  2263. * src/PeerInitiateConnectionCommand.cc
  2264. * src/PeerInitiateConnectionCommand.h
  2265. * src/PeerInteractionCommand.cc
  2266. * src/PeerInteractionCommand.h
  2267. * src/PeerReceiveHandshakeCommand.cc
  2268. * src/PieceHashCheckIntegrityEntry.cc
  2269. * src/RealtimeCommand.cc
  2270. * src/ReceiverMSEHandshakeCommand.cc
  2271. * src/RequestGroup.cc
  2272. * src/RequestGroup.h
  2273. * src/RequestGroupEntry.cc
  2274. * src/RequestGroupMan.cc
  2275. * src/SeedCheckCommand.cc
  2276. * src/SeedCheckCommand.h
  2277. * src/SegmentMan.cc
  2278. * src/ShareRatioSeedCriteria.h
  2279. * src/SingleFileDownloadContext.cc: Removed
  2280. * src/SingleFileDownloadContext.h: Removed
  2281. * src/SleepCommand.cc
  2282. * src/StreamCheckIntegrityEntry.cc
  2283. * src/TrackerWatcherCommand.cc
  2284. * src/TrackerWatcherCommand.h
  2285. * src/UnknownLengthPieceStorage.cc
  2286. * src/Util.cc
  2287. * src/Util.h
  2288. * src/XmlRpcMethodImpl.cc
  2289. * src/bittorrent_helper.cc
  2290. * src/bittorrent_helper.h
  2291. * src/download_helper.cc
  2292. * src/main.cc
  2293. * src/option_processing.cc
  2294. * test/BitfieldManTest.cc
  2295. * test/BittorrentHelperTest.cc
  2296. * test/BtCancelMessageTest.cc
  2297. * test/BtChokeMessageTest.cc
  2298. * test/BtDependencyTest.cc
  2299. * test/BtPieceMessageTest.cc
  2300. * test/BtPostDownloadHandlerTest.cc
  2301. * test/BtRegistryTest.cc
  2302. * test/BtRejectMessageTest.cc
  2303. * test/BtRequestMessageTest.cc
  2304. * test/DHTPeerAnnounceStorageTest.cc
  2305. * test/DefaultBtAnnounceTest.cc
  2306. * test/DefaultBtContextTest.cc: Removed
  2307. * test/DefaultBtMessageDispatcherTest.cc
  2308. * test/DefaultBtMessageFactoryTest.cc
  2309. * test/DefaultBtProgressInfoFileTest.cc
  2310. * test/DefaultBtRequestFactoryTest.cc
  2311. * test/DefaultExtensionMessageFactoryTest.cc
  2312. * test/DefaultPeerStorageTest.cc
  2313. * test/DefaultPieceStorageTest.cc
  2314. * test/DirectDiskAdaptorTest.cc
  2315. * test/DownloadContextTest.cc
  2316. * test/DownloadHandlerFactoryTest.cc
  2317. * test/DownloadHelperTest.cc
  2318. * test/HandshakeExtensionMessageTest.cc
  2319. * test/HttpRequestTest.cc
  2320. * test/HttpResponseTest.cc
  2321. * test/IteratableChecksumValidatorTest.cc
  2322. * test/IteratableChunkChecksumValidatorTest.cc
  2323. * test/MSEHandshakeTest.cc
  2324. * test/Makefile.am
  2325. * test/Makefile.in
  2326. * test/Metalink2RequestGroupTest.cc
  2327. * test/MetalinkPostDownloadHandlerTest.cc
  2328. * test/MockBtContext.h: Removed
  2329. * test/MockDHTTaskFactory.h
  2330. * test/MockDownloadContext.h: Removed
  2331. * test/MockPieceStorage.h
  2332. * test/MultiDiskAdaptorTest.cc
  2333. * test/MultiFileAllocationIteratorTest.cc
  2334. * test/RequestGroupManTest.cc
  2335. * test/RequestGroupTest.cc
  2336. * test/SegmentManTest.cc
  2337. * test/ShareRatioSeedCriteriaTest.cc
  2338. * test/SingleFileDownloadContextTest.cc: Removed
  2339. * test/UtilTest.cc
  2340. * test/XmlRpcMethodTest.cc
  2341. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2342. Added experimental support of WEB-Seeding for multi-file torrent.
  2343. Due to fundamental changes in file handling in HTTP/FTP code, many
  2344. functions are not working: PeerStat, ServerHost, proxy..etc
  2345. * src/AbstractCommand.cc
  2346. * src/AbstractCommand.h
  2347. * src/BitfieldMan.cc
  2348. * src/BitfieldMan.h
  2349. * src/CreateRequestCommand.cc
  2350. * src/CreateRequestCommand.h
  2351. * src/DefaultPieceStorage.cc
  2352. * src/DefaultPieceStorage.h
  2353. * src/DownloadCommand.cc
  2354. * src/DownloadCommand.h
  2355. * src/DownloadContext.cc
  2356. * src/DownloadContext.h
  2357. * src/FileEntry.cc
  2358. * src/FileEntry.h
  2359. * src/FtpDownloadCommand.cc
  2360. * src/FtpDownloadCommand.h
  2361. * src/FtpFinishDownloadCommand.cc
  2362. * src/FtpFinishDownloadCommand.h
  2363. * src/FtpInitiateConnectionCommand.cc
  2364. * src/FtpInitiateConnectionCommand.h
  2365. * src/FtpNegotiationCommand.cc
  2366. * src/FtpNegotiationCommand.h
  2367. * src/FtpTunnelResponseCommand.cc
  2368. * src/HttpDownloadCommand.cc
  2369. * src/HttpDownloadCommand.h
  2370. * src/HttpInitiateConnectionCommand.cc
  2371. * src/HttpInitiateConnectionCommand.h
  2372. * src/HttpProxyResponseCommand.cc
  2373. * src/HttpRequest.cc
  2374. * src/HttpRequest.h
  2375. * src/HttpRequestCommand.cc
  2376. * src/HttpRequestCommand.h
  2377. * src/HttpResponseCommand.cc
  2378. * src/HttpResponseCommand.h
  2379. * src/HttpSkipResponseCommand.cc
  2380. * src/HttpSkipResponseCommand.h
  2381. * src/InitiateConnectionCommand.cc
  2382. * src/InitiateConnectionCommand.h
  2383. * src/InitiateConnectionCommandFactory.cc
  2384. * src/InitiateConnectionCommandFactory.h
  2385. * src/Makefile.am
  2386. * src/PieceStorage.h
  2387. * src/RequestGroup.cc
  2388. * src/RequestGroup.h
  2389. * src/RequestGroupMan.cc
  2390. * src/SegmentMan.cc
  2391. * src/SegmentMan.h
  2392. * src/SingleFileDownloadContext.h
  2393. * src/StreamFileAllocationEntry.cc
  2394. * src/TrackerWatcherCommand.cc
  2395. * src/UnknownLengthPieceStorage.cc
  2396. * src/UnknownLengthPieceStorage.h
  2397. * src/array_fun.h
  2398. * src/bitfield.h
  2399. * src/download_helper.cc
  2400. * test/DownloadContextTest.cc
  2401. * test/Makefile.am
  2402. * test/MockDownloadContext.h
  2403. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2404. Added tellWaiting XML-RPC method.
  2405. * src/SingleFileDownloadContext.cc
  2406. * src/XmlRpcMethodFactory.cc
  2407. * src/XmlRpcMethodImpl.cc
  2408. * src/XmlRpcMethodImpl.h
  2409. * test/XmlRpcMethodTest.cc
  2410. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2411. Updated CookieStorageTest
  2412. * test/CookieStorageTest.cc
  2413. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2414. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  2415. handle excepion inside these functions.
  2416. * src/LibgnutlsTLSContext.cc
  2417. * src/LibgnutlsTLSContext.h
  2418. * src/LibsslTLSContext.cc
  2419. * src/LibsslTLSContext.h
  2420. * src/MultiUrlRequestInfo.cc
  2421. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2422. Added comment
  2423. * src/RequestGroup.cc
  2424. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2425. In CookieStorage::load() and saveNsFormat(), handle exception
  2426. inside the functions. When saving Cookies, first write temporary
  2427. file and after successful writes, then renames it to final
  2428. destination.
  2429. * src/CookieStorage.cc
  2430. * src/CookieStorage.h
  2431. * src/MultiUrlRequestInfo.cc
  2432. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2433. The default value of --dir option is the absolute path to the
  2434. current directory. If getcwd() is failed, then it is ".", which is
  2435. the same value with old implementation. This change is necessary
  2436. because after daemon() call, the current working directory is
  2437. changed to /.
  2438. * src/File.cc
  2439. * src/File.h
  2440. * src/OptionHandlerFactory.cc
  2441. * src/option_processing.cc
  2442. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2443. Call daemon() with arguments(0,0), which means daemon() changes
  2444. current working directory to / and redirects stdin, stdout and
  2445. stderr to /dev/null.
  2446. * src/option_processing.cc
  2447. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2448. Small performance optimizations.
  2449. * src/RequestGroupMan.cc
  2450. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2451. Added _xmlRpc member variable to RequestGroupMan to reduce the
  2452. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  2453. * src/RequestGroupMan.cc
  2454. * src/RequestGroupMan.h
  2455. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2456. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  2457. setNoWiat(true) if newly created command calls
  2458. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  2459. * src/HttpListenCommand.cc
  2460. * src/HttpServerBodyCommand.cc
  2461. * src/HttpServerCommand.cc
  2462. * src/HttpServerResponseCommand.cc
  2463. * src/InitiateConnectionCommand.cc
  2464. * src/RequestGroup.cc
  2465. * src/StreamFileAllocationEntry.cc
  2466. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2467. Removed include vector
  2468. * src/BtRegistry.h
  2469. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2470. Rewritten BtRegistry
  2471. * src/BtRegistry.cc
  2472. * src/BtRegistry.h
  2473. * src/BtSetup.cc
  2474. * src/ConsoleStatCalc.cc
  2475. * src/PeerInteractionCommand.cc
  2476. * src/PeerReceiveHandshakeCommand.cc
  2477. * src/ReceiverMSEHandshakeCommand.cc
  2478. * src/RequestGroup.cc
  2479. * src/XmlRpcMethodImpl.cc
  2480. * test/BtRegistryTest.cc
  2481. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2482. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  2483. * src/DefaultBtProgressInfoFile.cc
  2484. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2485. Throw an exception if position is less than 0.
  2486. * src/XmlRpcMethodImpl.cc
  2487. * test/XmlRpcMethodTest.cc
  2488. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2489. Use writeFilePath() in ConsoleStatCalc.cc
  2490. * src/ConsoleStatCalc.cc
  2491. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2492. Receive the return value as const reference from
  2493. DownloadContext::getFileEntries().
  2494. * src/DefaultPieceStorage.cc
  2495. * src/RequestGroupMan.cc
  2496. * src/XmlRpcMethodImpl.cc
  2497. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2498. DownloadContext now has _fileEntries so that
  2499. DownloadContext::getFileEntries() can returns its const reference.
  2500. * src/DefaultBtContext.cc
  2501. * src/DefaultBtContext.h
  2502. * src/DownloadContext.cc
  2503. * src/DownloadContext.h
  2504. * src/SingleFileDownloadContext.cc
  2505. * src/SingleFileDownloadContext.h
  2506. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2507. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  2508. writeFilePath() function template from RequestGroupMan.cc to
  2509. FileEntry.h
  2510. * src/FileEntry.h
  2511. * src/RequestGroupMan.cc
  2512. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2513. Documented 'position' parameter is starting from 0 in man page.
  2514. * doc/aria2c.1.txt
  2515. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2516. Updated doc.
  2517. * src/MSEHandshake.cc
  2518. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2519. Removed _acceptFeatures and its accessor functions from
  2520. RequestGroup since they are not used practically.
  2521. * src/HttpRequestCommand.cc
  2522. * src/RequestGroup.cc
  2523. * src/RequestGroup.h
  2524. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2525. Removed member _maxTries from RequestGroup class to avoid
  2526. duplicate option value. Those classes who refer this variable
  2527. should use option value of PREF_MAX_TRIES directly.
  2528. * src/AbstractCommand.cc
  2529. * src/RequestGroup.cc
  2530. * src/RequestGroup.h
  2531. * src/TrackerWatcherCommand.cc
  2532. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2533. * Release 1.4.1
  2534. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2535. Fixed compiler warnings on netbsd
  2536. * src/DHTConnectionImpl.cc
  2537. * src/PeerListenCommand.cc
  2538. * src/PeerSessionResource.cc
  2539. * src/SegmentMan.cc
  2540. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2541. Updated Ukrainian translation. Thanks to all translators.
  2542. * po/uk.po
  2543. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2544. Bump up version number to 1.4.1.
  2545. * configure.ac
  2546. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2547. Added unit tests for strjoin, strconcat and strappend.
  2548. * test/a2functionalTest.cc
  2549. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2550. Rewritten strconcat and strappend using operator+ instead of
  2551. append().
  2552. * src/a2functional.h
  2553. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2554. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  2555. is enabled.
  2556. * src/Makefile.am
  2557. * test/Makefile.am
  2558. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2559. Added countSeeder() function which counts seeder in the given
  2560. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  2561. * src/ConsoleStatCalc.cc
  2562. * src/Peer.h
  2563. * src/XmlRpcMethodImpl.cc
  2564. * test/PeerTest.cc
  2565. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2566. Documented missing seeder in getPeers xml-rpc method.
  2567. Documented uploadLength and numSeeders.
  2568. * doc/aria2c.1.txt
  2569. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2570. Added uploadLength and numSeeders to the response of tellStatus
  2571. xml-rpc method. Assert that PeerStorage instance is not null
  2572. instead of checking if statement. It should be non-null in this
  2573. context.
  2574. * src/XmlRpcMethodImpl.cc
  2575. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2576. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  2577. * src/XmlRpcResponse.cc
  2578. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2579. Avoid intermediate object during string concatenation.
  2580. * src/HttpRequest.cc
  2581. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2582. Added strjoin function template. Use it in pathJoin()
  2583. * src/Util.h
  2584. * src/a2functional.h
  2585. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2586. Avoid intermediate object during string concatenation. Replaced
  2587. post-increment unary operator with pre-increment one in for loop.
  2588. * src/AdaptiveURISelector.cc
  2589. * src/AnnounceList.cc
  2590. * src/AuthConfig.h
  2591. * src/BtBitfieldMessage.cc
  2592. * src/BtExtendedMessage.cc
  2593. * src/BtHandshakeMessage.cc
  2594. * src/BtPieceMessage.cc
  2595. * src/BtPortMessage.cc
  2596. * src/Cookie.cc
  2597. * src/DHTAnnouncePeerMessage.cc
  2598. * src/DHTAutoSaveCommand.cc
  2599. * src/DHTGetPeersReplyMessage.cc
  2600. * src/DHTNode.cc
  2601. * src/DHTQueryMessage.cc
  2602. * src/DHTResponseMessage.cc
  2603. * src/DHTUnknownMessage.cc
  2604. * src/DefaultBtAnnounce.cc
  2605. * src/DefaultBtContext.cc
  2606. * src/DefaultBtInteractive.cc
  2607. * src/DefaultBtProgressInfoFile.cc
  2608. * src/DefaultPeerStorage.cc
  2609. * src/DownloadEngine.cc
  2610. * src/FeatureConfig.cc
  2611. * src/File.cc
  2612. * src/FtpConnection.cc
  2613. * src/FtpNegotiationCommand.cc
  2614. * src/HandshakeExtensionMessage.cc
  2615. * src/HttpConnection.cc
  2616. * src/HttpRequest.cc
  2617. * src/HttpResponseCommand.cc
  2618. * src/HttpServer.cc
  2619. * src/IndexBtMessage.cc
  2620. * src/Metalink2RequestGroup.cc
  2621. * src/OptionHandlerImpl.h
  2622. * src/PStringBuildVisitor.cc
  2623. * src/Peer.cc
  2624. * src/PeerListenCommand.cc
  2625. * src/Piece.cc
  2626. * src/RangeBtMessage.cc
  2627. * src/Request.cc
  2628. * src/Request.h
  2629. * src/RequestGroup.cc
  2630. * src/RequestGroupMan.cc
  2631. * src/ServerStat.cc
  2632. * src/ServerStatMan.cc
  2633. * src/UTPexExtensionMessage.cc
  2634. * src/Util.cc
  2635. * src/a2functional.h
  2636. * src/download_helper.cc
  2637. * src/messageDigest.cc
  2638. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2639. Unchoke a peer randomly at first and second choke round in seed
  2640. state.
  2641. * src/BtSeederStateChoke.cc
  2642. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  2643. Added (sock_t) to quiet compiler warnings in MinGW
  2644. * src/SocketCore.cc
  2645. * src/SocketCore.h
  2646. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2647. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  2648. * src/EpollEventPoll.h
  2649. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  2650. Added fork() emulation using CreateProcess() in MinGW
  2651. * src/RequestGroupMan.cc
  2652. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2653. * Release 1.4.0
  2654. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2655. Added utf8.torrent to EXTRA_DIST
  2656. * test/Makefile.am
  2657. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2658. Fixed docs of aria2.addMetalink xml-rpc method.
  2659. * doc/aria2c.1.txt
  2660. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2661. Added Slovak translation. Updated Ukrainian and Brazilian
  2662. Portuguese translation. Thanks to all translators.
  2663. * po/sk.po
  2664. * po/uk.po
  2665. * po/pt_BR.po
  2666. * po/LINGUAS
  2667. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2668. Added test case for XmlRpcProcessor to fail to parse malformed
  2669. document.
  2670. * test/XmlRpcRequestProcessorTest.cc
  2671. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2672. Removed *.gmo files in po because they are generated on 'make
  2673. dist'
  2674. * po/*.gmo
  2675. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2676. Documented max-concurrent-downloads of changeGlobalOption method
  2677. in man page.
  2678. * doc/aria2c.1.txt
  2679. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2680. Added max-concurrent-downloads option to changeGlobalOption
  2681. xml-rpc method. Rewritten loop conditional in
  2682. RequestGroupMan::fillRequestGroupFromReserver().
  2683. * src/RequestGroupMan.cc
  2684. * src/RequestGroupMan.h
  2685. * src/XmlRpcMethod.cc
  2686. * src/XmlRpcMethodImpl.cc
  2687. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2688. Documented position parameter in man page.
  2689. * doc/aria2c.1.txt
  2690. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2691. Added 'position' parameter to addUri, addTorrent and addMetalink
  2692. xml-rpc method.
  2693. * src/RequestGroupMan.cc
  2694. * src/RequestGroupMan.h
  2695. * src/XmlRpcMethodImpl.cc
  2696. * test/XmlRpcMethodTest.cc
  2697. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2698. Removed Peer.cc from compile source list when --disable-bittorrent
  2699. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  2700. takes Peer.
  2701. * src/DefaultPieceStorage.cc
  2702. * src/DefaultPieceStorage.h
  2703. * src/Makefile.am
  2704. * src/PieceStorage.h
  2705. * src/UnknownLengthPieceStorage.cc
  2706. * src/UnknownLengthPieceStorage.h
  2707. * test/MockPieceStorage.h
  2708. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2709. Implemented getter methods in header files to give them more
  2710. chance of optimization.
  2711. Return const reference for SharadHandle if possible.
  2712. * src/AbstractAuthResolver.cc
  2713. * src/AbstractAuthResolver.h
  2714. * src/AbstractBtMessage.cc
  2715. * src/AbstractBtMessage.h
  2716. * src/AbstractSingleDiskAdaptor.cc
  2717. * src/AbstractSingleDiskAdaptor.h
  2718. * src/AsyncNameResolver.cc
  2719. * src/AsyncNameResolver.h
  2720. * src/BNode.cc
  2721. * src/BNode.h
  2722. * src/BitfieldMan.cc
  2723. * src/BitfieldMan.h
  2724. * src/BtAbortOutstandingRequestEvent.h
  2725. * src/BtExtendedMessage.cc
  2726. * src/BtExtendedMessage.h
  2727. * src/BtSeederStateChoke.cc
  2728. * src/BtSeederStateChoke.h
  2729. * src/Cookie.cc
  2730. * src/Cookie.h
  2731. * src/DHTBucket.cc
  2732. * src/DHTBucket.h
  2733. * src/DHTConnectionImpl.cc
  2734. * src/DHTConnectionImpl.h
  2735. * src/DHTFindNodeReplyMessage.cc
  2736. * src/DHTFindNodeReplyMessage.h
  2737. * src/DHTGetPeersReplyMessage.cc
  2738. * src/DHTGetPeersReplyMessage.h
  2739. * src/DHTInteractionCommand.cc
  2740. * src/DHTMessage.cc
  2741. * src/DHTMessage.h
  2742. * src/DHTMessageDispatcherImpl.cc
  2743. * src/DHTMessageEntry.cc
  2744. * src/DHTMessageReceiver.cc
  2745. * src/DHTMessageReceiver.h
  2746. * src/DHTMessageTrackerEntry.cc
  2747. * src/DHTMessageTrackerEntry.h
  2748. * src/DHTPeerAnnounceEntry.cc
  2749. * src/DHTPeerAnnounceEntry.h
  2750. * src/DHTPeerLookupTask.cc
  2751. * src/DHTPeerLookupTask.h
  2752. * src/DHTRoutingTableDeserializer.cc
  2753. * src/DHTRoutingTableDeserializer.h
  2754. * src/DefaultBtAnnounce.cc
  2755. * src/DefaultBtAnnounce.h
  2756. * src/DefaultBtMessageDispatcher.cc
  2757. * src/DefaultBtMessageDispatcher.h
  2758. * src/DefaultBtRequestFactory.cc
  2759. * src/DefaultBtRequestFactory.h
  2760. * src/DiskAdaptor.cc
  2761. * src/DiskAdaptor.h
  2762. * src/DownloadContext.cc
  2763. * src/DownloadContext.h
  2764. * src/DownloadEngine.cc
  2765. * src/DownloadEngine.h
  2766. * src/EpollEventPoll.cc
  2767. * src/EpollEventPoll.h
  2768. * src/FtpConnection.cc
  2769. * src/FtpConnection.h
  2770. * src/HttpConnection.cc
  2771. * src/HttpConnection.h
  2772. * src/HttpHeader.cc
  2773. * src/HttpHeader.h
  2774. * src/HttpRequest.cc
  2775. * src/HttpRequest.h
  2776. * src/HttpResponse.cc
  2777. * src/HttpResponse.h
  2778. * src/LibsslTLSContext.cc
  2779. * src/LibsslTLSContext.h
  2780. * src/MSEHandshake.cc
  2781. * src/MSEHandshake.h
  2782. * src/MetalinkEntry.cc
  2783. * src/MetalinkEntry.h
  2784. * src/MetalinkParserController.cc
  2785. * src/MetalinkParserController.h
  2786. * src/MetalinkParserStateMachine.cc
  2787. * src/MetalinkParserStateMachine.h
  2788. * src/MultiDiskAdaptor.cc
  2789. * src/MultiDiskAdaptor.h
  2790. * src/NetrcAuthResolver.cc
  2791. * src/NetrcAuthResolver.h
  2792. * src/Peer.cc
  2793. * src/Peer.h
  2794. * src/PeerSessionResource.cc
  2795. * src/PeerSessionResource.h
  2796. * src/Piece.cc
  2797. * src/Piece.h
  2798. * src/PieceStatMan.cc
  2799. * src/PieceStatMan.h
  2800. * src/Request.cc
  2801. * src/Request.h
  2802. * src/RequestGroup.cc
  2803. * src/RequestGroup.h
  2804. * src/RequestGroupMan.cc
  2805. * src/RequestGroupMan.h
  2806. * src/RequestSlot.cc
  2807. * src/RequestSlot.h
  2808. * src/SegmentMan.cc
  2809. * src/SegmentMan.h
  2810. * src/SelectEventPoll.cc
  2811. * src/SelectEventPoll.h
  2812. * src/ServerStat.cc
  2813. * src/ServerStat.h
  2814. * src/Signature.cc
  2815. * src/Signature.h
  2816. * src/URIResult.cc
  2817. * src/URIResult.h
  2818. * src/UTPexExtensionMessage.cc
  2819. * src/UTPexExtensionMessage.h
  2820. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2821. Fixed compile error without BitTorrent and Metalink support.
  2822. * src/XmlRpcMethod.cc
  2823. * src/XmlRpcMethodFactory.cc
  2824. * src/XmlRpcMethodImpl.cc
  2825. * src/XmlRpcMethodImpl.h
  2826. * test/XmlRpcMethodTest.cc
  2827. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2828. Rewritten the help message for --allow-overwrite option.
  2829. * doc/aria2c.1.txt
  2830. * src/usage_text.h
  2831. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2832. Fixed typo
  2833. * doc/aria2c.1.txt
  2834. * src/usage_text.h
  2835. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2836. Updated README for 1.4.0 release. Use new table syntax of
  2837. asciidoc.
  2838. * README
  2839. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2840. Documented --xml-rpc-max-request-size option in man page.
  2841. * doc/aria2c.1.txt
  2842. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2843. Moved C_* constants from BtContext to DefaultBtContext.
  2844. * src/BtContext.cc: Removed.
  2845. * src/BtContext.h
  2846. * src/DefaultBtContext.cc
  2847. * src/DefaultBtContext.h
  2848. * src/Makefile.am
  2849. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2850. Use name.utf-8 and path.utf-8 key in higher priority than name and
  2851. path key respectively when persing .torrent file.
  2852. * src/BtContext.cc
  2853. * src/BtContext.h
  2854. * src/DefaultBtContext.cc
  2855. * test/DefaultBtContextTest.cc
  2856. * test/utf8.torrent
  2857. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2858. Added --xml-rpc-max-request-size option to limit the size of
  2859. XML-RPC request.
  2860. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2861. Documented XML-RPC API in man page.
  2862. * doc/aria2c.1.txt
  2863. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2864. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  2865. will break strict-aliasing rules
  2866. * src/PeerConnection.cc
  2867. * test/DHTRoutingTableSerializerTest.cc
  2868. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2869. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  2870. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  2871. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  2872. PKG_CHECK_MODULES macro uses latter name.
  2873. * m4/sqlite3.m4
  2874. * src/Makefile.am
  2875. * test/Makefile.am
  2876. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2877. Fixed typo
  2878. * configure.ac
  2879. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2880. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  2881. presence of libgnutls using pkg-config first. If it fails, fall
  2882. back to old macro libgnutls.m4.
  2883. * configure.ac
  2884. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2885. Use s itself instead of !s.bad()
  2886. * src/CookieStorage.cc
  2887. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2888. Documented --on-download-* option and --save-cookies option in man
  2889. page.
  2890. * doc/aria2c.1.txt
  2891. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2892. Set possible values for --load-cookie option to "/path/to/file".
  2893. * src/OptionHandlerFactory.cc
  2894. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2895. Added --save-cookies option.
  2896. * src/Cookie.cc
  2897. * src/Cookie.h
  2898. * src/CookieStorage.cc
  2899. * src/CookieStorage.h
  2900. * src/MultiUrlRequestInfo.cc
  2901. * src/OptionHandlerFactory.cc
  2902. * src/prefs.cc
  2903. * src/prefs.h
  2904. * src/usage_text.h
  2905. * test/CookieStorageTest.cc
  2906. * test/CookieTest.cc
  2907. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2908. Removed tellAll XML-RPC command because its reponse tends to be
  2909. big if stopped/waiting downloads pile up.
  2910. * src/XmlRpcMethodFactory.cc
  2911. * src/XmlRpcMethodImpl.cc
  2912. * src/XmlRpcMethodImpl.h
  2913. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2914. Added the ability to execute command when download starts and
  2915. stops. You can also specify command for particular cases such as
  2916. complete/error download. Added --on-download-start,
  2917. --on-download-stop, --on-download-complete and --on-download-error
  2918. option.
  2919. * src/OptionHandlerFactory.cc
  2920. * src/RequestGroupMan.cc
  2921. * src/prefs.cc
  2922. * src/prefs.h
  2923. * src/usage_text.h
  2924. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2925. Fixed test error
  2926. * test/BencodeTest.cc
  2927. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2928. Added unit tests.
  2929. * test/XmlRpcMethodTest.cc
  2930. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2931. Made exception message more verbose.
  2932. * src/bencode.cc
  2933. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2934. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  2935. space in console readout. Also they are now shown in MiB/s if
  2936. speed > 1024KiB/s.
  2937. * src/ConsoleStatCalc.cc
  2938. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2939. Added SEED to console output, which represents the number of
  2940. seeders currently the client is connecting to.
  2941. * src/ConsoleStatCalc.cc
  2942. * src/ConsoleStatCalc.h
  2943. * src/DownloadEngine.cc
  2944. * src/NullStatCalc.h
  2945. * src/StatCalc.h
  2946. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2947. Added source filename(__FILE__) and line number(__LINE__) to
  2948. exception message.
  2949. * src/AbstractCommand.cc
  2950. * src/AbstractDiskWriter.cc
  2951. * src/AbstractProxyResponseCommand.cc
  2952. * src/BDE.h
  2953. * src/BtAllowedFastMessage.cc
  2954. * src/BtHandshakeMessageValidator.h
  2955. * src/BtHaveAllMessage.cc
  2956. * src/BtHaveNoneMessage.cc
  2957. * src/BtPieceMessage.cc
  2958. * src/BtRejectMessage.cc
  2959. * src/ChunkedDecoder.cc
  2960. * src/CookieStorage.cc
  2961. * src/DHTAnnouncePeerMessage.cc
  2962. * src/DHTEntryPointNameResolveCommand.cc
  2963. * src/DHTMessageFactoryImpl.cc
  2964. * src/DHTMessageTracker.cc
  2965. * src/DHTRoutingTableDeserializer.cc
  2966. * src/DHTRoutingTableSerializer.cc
  2967. * src/DHTSetup.cc
  2968. * src/DHTTokenTracker.cc
  2969. * src/DefaultBtAnnounce.cc
  2970. * src/DefaultBtContext.cc
  2971. * src/DefaultBtInteractive.cc
  2972. * src/DefaultBtMessageFactory.cc
  2973. * src/DefaultBtProgressInfoFile.cc
  2974. * src/DefaultExtensionMessageFactory.cc
  2975. * src/DlAbortEx.h
  2976. * src/DlRetryEx.h
  2977. * src/DownloadCommand.cc
  2978. * src/DownloadEngineFactory.cc
  2979. * src/DownloadFailureException.h
  2980. * src/Exception.cc
  2981. * src/Exception.h
  2982. * src/ExpatMetalinkProcessor.cc
  2983. * src/ExpatXmlRpcRequestProcessor.cc
  2984. * src/FallocFileAllocationIterator.cc
  2985. * src/FatalException.h
  2986. * src/FtpConnection.cc
  2987. * src/FtpFinishDownloadCommand.cc
  2988. * src/FtpInitiateConnectionCommand.cc
  2989. * src/FtpNegotiationCommand.cc
  2990. * src/GZipDecoder.cc
  2991. * src/HandshakeExtensionMessage.cc
  2992. * src/HttpConnection.cc
  2993. * src/HttpHeaderProcessor.cc
  2994. * src/HttpInitiateConnectionCommand.cc
  2995. * src/HttpResponse.cc
  2996. * src/HttpResponseCommand.cc
  2997. * src/HttpServer.cc
  2998. * src/HttpSkipResponseCommand.cc
  2999. * src/InitiateConnectionCommandFactory.cc
  3000. * src/IteratableChunkChecksumValidator.cc
  3001. * src/LibgcryptARC4Context.h
  3002. * src/LibgcryptARC4Decryptor.h
  3003. * src/LibgcryptARC4Encryptor.h
  3004. * src/LibgcryptDHKeyExchange.h
  3005. * src/LibgnutlsTLSContext.cc
  3006. * src/LibsslARC4Context.h
  3007. * src/LibsslARC4Decryptor.h
  3008. * src/LibsslARC4Encryptor.h
  3009. * src/LibsslDHKeyExchange.h
  3010. * src/LibsslTLSContext.cc
  3011. * src/MSEHandshake.cc
  3012. * src/MessageDigestHelper.cc
  3013. * src/MetalinkHelper.cc
  3014. * src/MultiDiskAdaptor.cc
  3015. * src/NameMatchOptionHandler.h
  3016. * src/NameResolver.cc
  3017. * src/Netrc.cc
  3018. * src/NsCookieParser.cc
  3019. * src/OptionHandlerException.cc
  3020. * src/OptionHandlerException.h
  3021. * src/OptionHandlerImpl.h
  3022. * src/OptionParser.cc
  3023. * src/ParameterizedStringParser.cc
  3024. * src/PeerAbstractCommand.cc
  3025. * src/PeerConnection.cc
  3026. * src/PeerMessageUtil.cc
  3027. * src/PeerReceiveHandshakeCommand.cc
  3028. * src/Platform.cc
  3029. * src/ReceiverMSEHandshakeCommand.cc
  3030. * src/RecoverableException.h
  3031. * src/RequestGroup.cc
  3032. * src/SimpleLogger.cc
  3033. * src/SocketCore.cc
  3034. * src/Sqlite3MozCookieParser.cc
  3035. * src/UTPexExtensionMessage.cc
  3036. * src/Util.cc
  3037. * src/XML2SAXMetalinkProcessor.cc
  3038. * src/Xml2XmlRpcRequestProcessor.cc
  3039. * src/XmlRpcMethodImpl.cc
  3040. * src/bencode.cc
  3041. * src/download_helper.cc
  3042. * src/messageDigest.h
  3043. * test/ExceptionTest.cc
  3044. * test/TestUtil.cc
  3045. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3046. Bump up version number to 1.4.0
  3047. * configure.ac
  3048. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3049. Added 2files.metalink to EXTRA_DIST
  3050. * test/Makefile.am
  3051. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3052. Added missing 2files.metalink
  3053. * test/2files.metalink
  3054. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3055. Show "[MEMORY]" prefix before filename in download summary if it
  3056. is downloaded into memory.
  3057. * src/DownloadResult.h
  3058. * src/RequestGroup.cc
  3059. * src/RequestGroupMan.cc
  3060. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3061. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  3062. * src/ExpatXmlRpcRequestProcessor.cc
  3063. * src/Xml2XmlRpcRequestProcessor.cc
  3064. * src/message.h
  3065. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3066. Defined const BDEs to avoid duplicate instantiation.
  3067. Defined MSG_GID_NOT_PROVIDED.
  3068. * src/XmlRpcMethodImpl.cc
  3069. * src/message.h
  3070. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3071. Code cleanup
  3072. * src/Xml2XmlRpcRequestProcessor.cc
  3073. * src/Xml2XmlRpcRequestProcessor.h
  3074. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3075. Defined ENABLE_XML_RPC
  3076. * configure.ac
  3077. * configure
  3078. * config.h.in
  3079. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3080. Added ExpatXmlRpcRequestProcessor
  3081. * src/ExpatXmlRpcRequestProcessor.cc
  3082. * src/ExpatXmlRpcRequestProcessor.h
  3083. * src/Makefile.am
  3084. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3085. Added tests for addTorrent and addMetalink command.
  3086. * test/TestUtil.cc
  3087. * test/TestUtil.h
  3088. * test/XmlRpcMethodTest.cc
  3089. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3090. Corrected the description of --file-allocation option.
  3091. * doc/aria2c.1.txt
  3092. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3093. Added tellAll command.
  3094. * src/XmlRpcMethodFactory.cc
  3095. * src/XmlRpcMethodImpl.cc
  3096. * src/XmlRpcMethodImpl.h
  3097. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3098. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  3099. * src/XmlRpcMethodImpl.cc
  3100. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3101. Added changeGlobalOption command. Currently,
  3102. max-overall-download-limit and max-overall-upload-limit option are
  3103. available.
  3104. * src/RequestGroupMan.h
  3105. * src/XmlRpcMethod.cc
  3106. * src/XmlRpcMethod.h
  3107. * src/XmlRpcMethodFactory.cc
  3108. * src/XmlRpcMethodImpl.cc
  3109. * src/XmlRpcMethodImpl.h
  3110. * test/XmlRpcMethodTest.cc
  3111. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3112. Added changeOption command. Currently, max-download-limit,
  3113. max-upload-limit option are available in this command.
  3114. * src/RequestGroup.h
  3115. * src/XmlRpcMethod.cc
  3116. * src/XmlRpcMethod.h
  3117. * src/XmlRpcMethodFactory.cc
  3118. * src/XmlRpcMethodImpl.cc
  3119. * src/XmlRpcMethodImpl.h
  3120. * test/XmlRpcMethodTest.cc
  3121. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3122. Added purgeDownloadResult command.
  3123. * src/RequestGroupMan.cc
  3124. * src/RequestGroupMan.h
  3125. * src/XmlRpcMethodFactory.cc
  3126. * src/XmlRpcMethodImpl.cc
  3127. * src/XmlRpcMethodImpl.h
  3128. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3129. Refactored.
  3130. * src/XmlRpcMethod.cc
  3131. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3132. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  3133. XmlRpcResponse.
  3134. * src/HttpServerBodyCommand.cc
  3135. * src/Makefile.am
  3136. * src/XmlRpcMethod.cc
  3137. * src/XmlRpcMethod.h
  3138. * src/XmlRpcMethodImpl.cc
  3139. * src/XmlRpcResponse.cc
  3140. * src/XmlRpcResponse.h
  3141. * test/XmlRpcMethodTest.cc
  3142. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3143. In XML-RPC option struct, header and index-out option can take
  3144. array as value.
  3145. * src/XmlRpcMethod.cc
  3146. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3147. Removed unused option member from PeerConnection.
  3148. * src/InitiatorMSEHandshakeCommand.cc
  3149. * src/PeerConnection.cc
  3150. * src/PeerConnection.h
  3151. * src/PeerInteractionCommand.cc
  3152. * src/PeerReceiveHandshakeCommand.cc
  3153. * src/ReceiverMSEHandshakeCommand.cc
  3154. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3155. Added "seeder" key to getPeers response.
  3156. * src/XmlRpcMethodImpl.cc
  3157. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3158. Added addMetalink XML-RPC command.
  3159. * src/XmlRpcMethodFactory.cc
  3160. * src/XmlRpcMethodImpl.cc
  3161. * src/XmlRpcMethodImpl.h
  3162. * src/download_helper.cc
  3163. * src/download_helper.h
  3164. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3165. Fixed the bug that POU peers are never choked in seeding.
  3166. * src/BtSeederStateChoke.cc
  3167. * src/BtSeederStateChoke.h
  3168. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3169. Added web-seeding URI handling in addTorrent command.
  3170. * src/XmlRpcMethodImpl.cc
  3171. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3172. Added "length" key to getFiles response.
  3173. * src/XmlRpcMethodImpl.cc
  3174. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3175. Moved --no-netrc option from ftp option section to http/ftp option
  3176. section.
  3177. * doc/aria2c.1.txt
  3178. * src/OptionHandlerFactory.cc
  3179. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3180. Removed garbage "\" character before '
  3181. * doc/aria2c.1.txt
  3182. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3183. Removed garbage "\" character before http.
  3184. * doc/aria2c.1.txt
  3185. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3186. Documented additional options that can be specified in -i list.
  3187. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  3188. and --xml-rpc-passwd. Removed --enable-http-server and
  3189. --http-server-listen-port.
  3190. * doc/aria2c.1.txt
  3191. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3192. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  3193. * src/DefaultPeerStorage.cc
  3194. * src/DefaultPeerStorage.h
  3195. * src/PeerStorage.h
  3196. * src/XmlRpcMethodImpl.cc
  3197. * test/MockPeerStorage.h
  3198. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3199. Put a call to Socket::isReadable() in try block.
  3200. * src/HttpServerBodyCommand.cc
  3201. * src/HttpServerCommand.cc
  3202. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3203. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  3204. exception , so it is now in try block.
  3205. * src/HttpServerResponseCommand.cc
  3206. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3207. Added "amChoking" and "peerChoking" key in getPeers response.
  3208. * src/XmlRpcMethodImpl.cc
  3209. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3210. Added test case for zero-length filter.
  3211. * test/BitfieldManTest.cc
  3212. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3213. getFiles command now returns file data for finished/stopped
  3214. downloads.
  3215. * src/XmlRpcMethodImpl.cc
  3216. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3217. DownloadResult now has the list of FileEntry. The download
  3218. summary displays the path of first selected file and the number of
  3219. remaining files for multi-file torrent.
  3220. * src/DownloadResult.h
  3221. * src/RequestGroup.cc
  3222. * src/RequestGroupMan.cc
  3223. * test/RequestGroupTest.cc
  3224. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3225. Fixed segmentation fault error when no file is selected in
  3226. multi-file torrent.
  3227. * src/BitfieldMan.cc
  3228. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3229. Escaped <,>,& character in XML-RPC response.
  3230. * src/XmlRpcMethod.cc
  3231. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3232. Throw DlAbortEx instead of FatalException during parsing options
  3233. because we don't want for aria2 to quit when bad option is passed
  3234. via XML-RPC.
  3235. * src/OptionHandlerException.cc
  3236. * src/OptionHandlerException.h
  3237. * src/OptionHandlerImpl.h
  3238. * src/OptionParser.cc
  3239. * src/OptionParser.h
  3240. * src/PStringSegment.cc
  3241. * src/ParameterizedStringParser.cc
  3242. * src/download_helper.cc
  3243. * test/ParameterizedStringParserTest.cc
  3244. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3245. Selecting files are now done in
  3246. DefaultBtContext::setFileFileter().
  3247. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  3248. functions are removed because they are no longer used. Creating
  3249. filter in BitfieldMan is done in new funtion
  3250. PieceStorage::setupFileFilter()
  3251. * src/BtContext.cc
  3252. * src/BtContext.h
  3253. * src/DefaultBtContext.cc
  3254. * src/DefaultBtContext.h
  3255. * src/DefaultPieceStorage.cc
  3256. * src/DefaultPieceStorage.h
  3257. * src/DiskAdaptor.cc
  3258. * src/DiskAdaptor.h
  3259. * src/PieceStorage.h
  3260. * src/RequestGroup.cc
  3261. * src/UnknownLengthPieceStorage.h
  3262. * src/XmlRpcMethodImpl.cc
  3263. * test/DefaultBtContextTest.cc
  3264. * test/MockBtContext.h
  3265. * test/MockPieceStorage.h
  3266. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3267. Fixed compile error on Mac OS X
  3268. * src/HttpServer.cc
  3269. * src/XmlRpcMethod.h
  3270. * src/XmlRpcMethodImpl.cc
  3271. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3272. Use std::binary_search instead of std::find
  3273. * src/DefaultPieceStorage.cc
  3274. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3275. Removed unnecessary BDE() call; leave them to implicit conversion.
  3276. * src/XmlRpcMethodImpl.cc
  3277. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3278. Return connections and gid in string
  3279. * src/XmlRpcMethodImpl.cc
  3280. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3281. Renamed addURI as addUri
  3282. * src/XmlRpcMethodFactory.cc
  3283. * src/XmlRpcMethodImpl.cc
  3284. * src/XmlRpcMethodImpl.h
  3285. * test/XmlRpcMethodTest.cc
  3286. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3287. Renamed addTorrentFile as addTorrent
  3288. * src/XmlRpcMethodFactory.cc
  3289. * src/XmlRpcMethodImpl.cc
  3290. * src/XmlRpcMethodImpl.h
  3291. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3292. The information for files, URIs, peers are removed from the
  3293. reponse of TellaActive, TellStatus command because they tend to be
  3294. large. Instead they can be retrieved by the dedicated commands:
  3295. getFiles, getUris and getPeers respectively.
  3296. * src/XmlRpcMethodFactory.cc
  3297. * src/XmlRpcMethodImpl.cc
  3298. * src/XmlRpcMethodImpl.h
  3299. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3300. Removed --max-overall-upload-limit and
  3301. --max-overall-download-limit option from listRequestOptions.
  3302. * src/download_helper.cc
  3303. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3304. Log incoming host in HttpListenCommand.
  3305. * src/HttpListenCommand.cc
  3306. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3307. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  3308. --xml-rpc-passwd option.
  3309. * src/HttpServer.cc
  3310. * src/HttpServer.h
  3311. * src/HttpServerCommand.cc
  3312. * src/OptionHandlerFactory.cc
  3313. * src/prefs.cc
  3314. * src/prefs.h
  3315. * src/usage_text.h
  3316. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3317. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  3318. processing 0 length request.
  3319. * src/HttpServerBodyCommand.cc
  3320. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3321. Removed --enable-http-server and --http-server-listen-port
  3322. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  3323. instead. The original feature for --enable-http-server that
  3324. reports download progress in HTML was officially removed. Persist
  3325. XML-RPC connection if client supports keep-alive.
  3326. * src/DownloadEngineFactory.cc
  3327. * src/HttpServerCommand.cc
  3328. * src/HttpServerResponseCommand.cc
  3329. * src/Makefile.am
  3330. * src/Makefile.in
  3331. * src/OptionHandlerFactory.cc
  3332. * src/RequestGroupMan.cc
  3333. * src/main.cc
  3334. * src/option_processing.cc
  3335. * src/prefs.cc
  3336. * src/prefs.h
  3337. * src/usage_text.h
  3338. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3339. Added "uris" key to the response of tellStatus command. Added
  3340. "connections" key to the response of tellStatus and tellActive
  3341. command.
  3342. * src/XmlRpcMethodImpl.cc
  3343. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3344. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  3345. Added TellStatusXmlRpcMethod. Remove command can now remove
  3346. waiting RequestGroup.
  3347. * src/RequestGroupMan.cc
  3348. * src/RequestGroupMan.h
  3349. * src/XmlRpcMethodFactory.cc
  3350. * src/XmlRpcMethodImpl.cc
  3351. * src/XmlRpcMethodImpl.h
  3352. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3353. Initialized _peerId
  3354. * src/Peer.cc
  3355. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3356. Return fault structure for error. FailXmlRpcMethod is renamed as
  3357. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  3358. in non-torrent download. Return single param value.
  3359. * src/XmlRpcMethod.cc
  3360. * src/XmlRpcMethodFactory.cc
  3361. * src/XmlRpcMethodImpl.cc
  3362. * src/XmlRpcMethodImpl.h
  3363. * test/XmlRpcMethodTest.cc
  3364. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3365. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  3366. command.
  3367. * src/RequestGroup.cc
  3368. * src/RequestGroup.h
  3369. * src/RequestGroupMan.cc
  3370. * src/XmlRpcMethodImpl.cc
  3371. * test/RequestGroupTest.cc
  3372. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3373. Added more options that can be specified in -i list and xml-rpc
  3374. add* command.
  3375. * src/download_helper.h
  3376. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3377. The available options in -i list should be listed in
  3378. listRequestOptions().
  3379. * src/download_helper.cc
  3380. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3381. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  3382. command.
  3383. * src/XmlRpcMethodImpl.cc
  3384. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3385. Now RequestGroup has its own copy of Option object. This will help
  3386. to give custom option for each RequestGroup.
  3387. addTorrentFile command now takes options.
  3388. * src/AbstractCommand.cc
  3389. * src/AbstractCommand.h
  3390. * src/AbstractProxyRequestCommand.cc
  3391. * src/ActivePeerConnectionCommand.cc
  3392. * src/ActivePeerConnectionCommand.h
  3393. * src/AdaptiveURISelector.cc
  3394. * src/BtCheckIntegrityEntry.cc
  3395. * src/BtDependency.cc
  3396. * src/BtDependency.h
  3397. * src/BtFileAllocationEntry.cc
  3398. * src/BtPostDownloadHandler.cc
  3399. * src/CheckIntegrityEntry.cc
  3400. * src/DownloadCommand.cc
  3401. * src/FtpDownloadCommand.cc
  3402. * src/FtpFinishDownloadCommand.cc
  3403. * src/FtpInitiateConnectionCommand.cc
  3404. * src/FtpNegotiationCommand.cc
  3405. * src/HttpInitiateConnectionCommand.cc
  3406. * src/HttpRequestCommand.cc
  3407. * src/HttpResponseCommand.cc
  3408. * src/HttpSkipResponseCommand.cc
  3409. * src/InitiateConnectionCommand.cc
  3410. * src/InitiateConnectionCommandFactory.cc
  3411. * src/InitiatorMSEHandshakeCommand.cc
  3412. * src/InitiatorMSEHandshakeCommand.h
  3413. * src/Metalink2RequestGroup.cc
  3414. * src/Metalink2RequestGroup.h
  3415. * src/MetalinkPostDownloadHandler.cc
  3416. * src/MultiUrlRequestInfo.cc
  3417. * src/MultiUrlRequestInfo.h
  3418. * src/PeerAbstractCommand.cc
  3419. * src/PeerInteractionCommand.cc
  3420. * src/PeerInteractionCommand.h
  3421. * src/PeerReceiveHandshakeCommand.cc
  3422. * src/PeerReceiveHandshakeCommand.h
  3423. * src/RequestGroup.cc
  3424. * src/RequestGroup.h
  3425. * src/TrackerWatcherCommand.cc
  3426. * src/TrackerWatcherCommand.h
  3427. * src/XmlRpcMethod.cc
  3428. * src/XmlRpcMethod.h
  3429. * src/XmlRpcMethodImpl.cc
  3430. * src/download_helper.cc
  3431. * src/download_helper.h
  3432. * src/main.cc
  3433. * test/BtDependencyTest.cc
  3434. * test/BtPostDownloadHandlerTest.cc
  3435. * test/DefaultBtMessageDispatcherTest.cc
  3436. * test/DownloadHandlerFactoryTest.cc
  3437. * test/DownloadHelperTest.cc
  3438. * test/Metalink2RequestGroupTest.cc
  3439. * test/MetalinkPostDownloadHandlerTest.cc
  3440. * test/RequestGroupManTest.cc
  3441. * test/RequestGroupTest.cc
  3442. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3443. Added tellActiveStatus xml-rpc command which reports download
  3444. status of active downloads.
  3445. * src/XmlRpcMethodFactory.cc
  3446. * src/XmlRpcMethodImpl.cc
  3447. * src/XmlRpcMethodImpl.h
  3448. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3449. Added addTorrentFile xml-rpc command which receives uploaded
  3450. torrent file and add download for it.
  3451. * src/RequestGroupMan.cc
  3452. * src/XmlRpcMethodFactory.cc
  3453. * src/XmlRpcMethodImpl.cc
  3454. * src/XmlRpcMethodImpl.h
  3455. * src/download_helper.cc
  3456. * src/download_helper.h
  3457. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3458. Added remove xml-rpc command which removes specified download.
  3459. There is a known issue: the removed unfinished downloads are
  3460. reported ERR when aria2 exits. They should be reported as INPR.
  3461. * src/RequestGroupMan.cc
  3462. * src/RequestGroupMan.h
  3463. * src/XmlRpcMethodFactory.cc
  3464. * src/XmlRpcMethodImpl.cc
  3465. * src/XmlRpcMethodImpl.h
  3466. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3467. If --enable-http-server is enabled, don't stop aria2 when all
  3468. download finished and don't quit when no files to download at
  3469. start up.
  3470. * src/RequestGroupMan.cc
  3471. * src/main.cc
  3472. * src/option_processing.cc
  3473. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3474. Added missing AM_CONDITIONAL
  3475. * configure.ac
  3476. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3477. Added xml-rpc functionality. Currently only addURI commad is
  3478. supported. To enable xml-rpc, run aria2 with
  3479. --enable-http-server. This option name is temporal and will be
  3480. changed. The feature that reports download progress in html format
  3481. is temporarily disabled.
  3482. * src/HttpServer.cc
  3483. * src/HttpServer.h
  3484. * src/HttpServerBodyCommand.cc
  3485. * src/HttpServerBodyCommand.h
  3486. * src/HttpServerCommand.cc
  3487. * src/HttpServerResponseCommand.cc
  3488. * src/Makefile.am
  3489. * src/OptionParser.cc
  3490. * src/OptionParser.h
  3491. * src/RequestGroupMan.cc
  3492. * src/RequestGroupMan.h
  3493. * src/XmlRpcMethod.cc
  3494. * src/XmlRpcMethod.h
  3495. * src/XmlRpcMethodFactory.cc
  3496. * src/XmlRpcMethodFactory.h
  3497. * src/XmlRpcMethodImpl.cc
  3498. * src/XmlRpcMethodImpl.h
  3499. * src/download_helper.cc
  3500. * src/download_helper.h
  3501. * test/Makefile.am
  3502. * test/XmlRpcMethodTest.cc
  3503. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3504. Added xml-rpc request parser. The supported value types are:
  3505. i4/int, string, double, struct, array, base64. Currently only
  3506. libxml2 version is provided.
  3507. * src/Xml2XmlRpcRequestProcessor.cc
  3508. * src/Xml2XmlRpcRequestProcessor.h
  3509. * src/XmlRpcElements.cc
  3510. * src/XmlRpcElements.h
  3511. * src/XmlRpcRequest.h
  3512. * src/XmlRpcRequestParserController.cc
  3513. * src/XmlRpcRequestParserController.h
  3514. * src/XmlRpcRequestParserState.h
  3515. * src/XmlRpcRequestParserStateImpl.cc
  3516. * src/XmlRpcRequestParserStateImpl.h
  3517. * src/XmlRpcRequestParserStateMachine.cc
  3518. * src/XmlRpcRequestParserStateMachine.h
  3519. * src/XmlRpcRequestProcessor.h
  3520. * test/XmlRpcRequestParserControllerTest.cc
  3521. * test/XmlRpcRequestProcessorTest.cc
  3522. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3523. * Release 1.3.3
  3524. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3525. Fixed compile error since r1202.
  3526. * src/ExpatMetalinkProcessor.cc
  3527. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3528. Updated Ukrainian, Russian and Simplified Chinese
  3529. translations. Thanks to all translators.
  3530. * po/ru.po
  3531. * po/uk.po
  3532. * po/zh_CN.po
  3533. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3534. Pass reference of Option object instead of pointer.
  3535. * src/download_helper.cc
  3536. * src/download_helper.h
  3537. * src/main.cc
  3538. * test/DownloadHelperTest.cc
  3539. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3540. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  3541. from option directly. Instead, get them from RequestGroup.
  3542. * src/ActivePeerConnectionCommand.cc
  3543. * src/ActivePeerConnectionCommand.h
  3544. * src/PeerReceiveHandshakeCommand.cc
  3545. * src/RequestGroup.h
  3546. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3547. Removed unused uploadLimitCheck and uploadLimit from
  3548. PeerAbstractCommand. Removed unused maxDownloadLimit from
  3549. PeerInteractionCommand.
  3550. * src/PeerAbstractCommand.cc
  3551. * src/PeerAbstractCommand.h
  3552. * src/PeerInteractionCommand.cc
  3553. * src/PeerInteractionCommand.h
  3554. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3555. Fixed broken file renaming feature since r1202.
  3556. * src/FtpNegotiationCommand.cc
  3557. * src/FtpNegotiationCommand.h
  3558. * src/HttpResponseCommand.cc
  3559. * src/RequestGroup.cc
  3560. * src/RequestGroup.h
  3561. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3562. Removed unused debug log
  3563. * src/SocketCore.cc
  3564. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3565. Generated configure and Makefile.in using autoconf 2.63 and
  3566. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  3567. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  3568. * configure.ac
  3569. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3570. Moved piece statistics stuff to new PieceStatMan class.
  3571. Refactored PieceSelector interface.
  3572. * src/DefaultPieceStorage.cc
  3573. * src/DefaultPieceStorage.h
  3574. * src/LongestSequencePieceSelector.cc
  3575. * src/LongestSequencePieceSelector.h
  3576. * src/Makefile.am
  3577. * src/PieceSelector.h
  3578. * src/PieceStatMan.cc
  3579. * src/PieceStatMan.h
  3580. * src/RarestPieceSelector.cc
  3581. * src/RarestPieceSelector.h
  3582. * src/RequestGroup.cc
  3583. * test/DefaultPieceStorageTest.cc
  3584. * test/InOrderPieceSelector.h
  3585. * test/Makefile.am
  3586. * test/PieceStatManTest.cc
  3587. * test/RarestPieceSelectorTest.cc
  3588. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3589. Added static member _protocolFamily to SocketCore. By default,
  3590. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  3591. address. Sometime SocketCore::bind() and
  3592. SocketCore::establishConnection() use difference protocl family
  3593. and latter cannot connect to former. To avoid this situation, we
  3594. limit protocol family to AF_INET for unit tests.
  3595. * src/SocketCore.cc
  3596. * src/SocketCore.h
  3597. * test/AllTest.cc
  3598. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3599. Avoid std::bad_alloc for negative bencode string length.
  3600. * src/bencode.cc
  3601. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3602. Supported segmented downloading with chunked transfer encoding and
  3603. content-length.
  3604. * src/DownloadCommand.cc
  3605. * src/HttpResponseCommand.cc
  3606. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3607. Bump up version number to 1.3.3
  3608. * configure.ac
  3609. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3610. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  3611. from 4096 to 65536 (for insanely large ftp login banners)
  3612. * src/FtpConnection.h
  3613. * test/FtpConnectionTest.cc
  3614. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3615. In DefaultBtContext::getActualBasePath(), return first
  3616. FileEntry::getPath() for single file torrent.
  3617. * src/DefaultBtContext.cc
  3618. * test/DefaultBtContextTest.cc
  3619. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3620. Removed directIOAllowed() from BinaryStream, DiskWriter,
  3621. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  3622. Removed _directIOAllowed member from DiskWriter.
  3623. * src/AbstractDiskWriter.cc
  3624. * src/AbstractDiskWriter.h
  3625. * src/AbstractSingleDiskAdaptor.cc
  3626. * src/AbstractSingleDiskAdaptor.h
  3627. * src/BinaryStream.h
  3628. * src/ByteArrayDiskWriter.h
  3629. * src/DefaultPieceStorage.cc
  3630. * src/DiskWriter.h
  3631. * src/MultiDiskAdaptor.cc
  3632. * src/MultiDiskAdaptor.h
  3633. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3634. Now the constructor of AbstractDiskWriter takes filename as an
  3635. argument and filename argument is removed from openFile(),
  3636. initAndOpenFile(), openExistingFile() interface. storeDir member
  3637. and its accessor functions are removed from DiskAdaptor because it
  3638. is not used anymore. size() member function of DefaultDiskWriter,
  3639. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  3640. opening file.
  3641. * src/AbstractDiskWriter.cc
  3642. * src/AbstractDiskWriter.h
  3643. * src/AbstractSingleDiskAdaptor.cc
  3644. * src/AbstractSingleDiskAdaptor.h
  3645. * src/ByteArrayDiskWriter.cc
  3646. * src/ByteArrayDiskWriter.h
  3647. * src/ByteArrayDiskWriterFactory.cc
  3648. * src/ByteArrayDiskWriterFactory.h
  3649. * src/DefaultDiskWriter.cc
  3650. * src/DefaultDiskWriter.h
  3651. * src/DefaultDiskWriterFactory.cc
  3652. * src/DefaultDiskWriterFactory.h
  3653. * src/DefaultPieceStorage.cc
  3654. * src/DirectDiskAdaptor.cc
  3655. * src/DirectDiskAdaptor.h
  3656. * src/DiskAdaptor.h
  3657. * src/DiskWriter.h
  3658. * src/DiskWriterFactory.h
  3659. * src/MessageDigestHelper.cc
  3660. * src/MultiDiskAdaptor.cc
  3661. * src/RequestGroup.cc
  3662. * src/UnknownLengthPieceStorage.cc
  3663. * src/Util.cc
  3664. * test/DefaultDiskWriterTest.cc
  3665. * test/DirectDiskAdaptorTest.cc
  3666. * test/FallocFileAllocationIteratorTest.cc
  3667. * test/MessageDigestHelperTest.cc
  3668. * test/MetalinkProcessorTest.cc
  3669. * test/MultiDiskAdaptorTest.cc
  3670. * test/MultiFileAllocationIteratorTest.cc
  3671. * test/SingleFileAllocationIteratorTest.cc
  3672. * test/UtilTest.cc
  3673. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3674. Fixed the bug that aria2 aborts when --select-file is used. This
  3675. bug was introduced in r1199.
  3676. * src/MultiDiskAdaptor.cc
  3677. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3678. Code cleanup
  3679. * test/MockPieceStorage.cc
  3680. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3681. Fixed the bug that read-only file with wrong file size will cause
  3682. error because it cannot be truncated to the correct size. Now if
  3683. file size is different than the expected one, re-open file in
  3684. writable mode.
  3685. * src/AbstractSingleDiskAdaptor.cc
  3686. * src/AbstractSingleDiskAdaptor.h
  3687. * src/BtCheckIntegrityEntry.cc
  3688. * src/DiskAdaptor.h
  3689. * src/MultiDiskAdaptor.h
  3690. * src/RequestGroup.cc
  3691. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3692. Fixed the bug that with --check-integrity option aria2 reports
  3693. downloaded file size is 0 even if some parts of file is correctly
  3694. downloaded. This bug is reproducible for the download that a file
  3695. includes last piece is missing. This bug doesn't reveal for
  3696. single-torrent with file allocation on.
  3697. * src/IteratableChecksumValidator.cc
  3698. * test/IteratableChecksumValidatorTest.cc
  3699. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3700. Avoid circular reference between RequestGroup and AdaptiveURISelector
  3701. * src/RequestGroupMan.cc
  3702. * src/AdaptiveURISelector.cc
  3703. * src/AdaptiveURISelector.h
  3704. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3705. * Release 1.3.2
  3706. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3707. Updated README
  3708. * README
  3709. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3710. Updated Ukrainian translations. Thanks to Alexander10.
  3711. * po/uk.po
  3712. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3713. Code cleanup
  3714. * src/MetalinkParserStateMachine.cc
  3715. * src/MetalinkParserStateMachine.h
  3716. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3717. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  3718. and expat simultaneously, MetalinkProcessor is now not base class
  3719. and it is directly implemented in XML2SAXMetalinkProcessor and
  3720. ExpatMetalinkProcessor.
  3721. * src/ExpatMetalinkProcessor.cc
  3722. * src/ExpatMetalinkProcessor.h
  3723. * src/Makefile.am
  3724. * src/MetalinkHelper.cc
  3725. * src/MetalinkProcessor.h
  3726. * src/MetalinkProcessorFactory.cc: Removed.
  3727. * src/MetalinkProcessorFactory.h: Removed
  3728. * src/XML2SAXMetalinkProcessor.cc
  3729. * src/XML2SAXMetalinkProcessor.h
  3730. * test/MetalinkProcessorTest.cc
  3731. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3732. Bump up version number to 1.3.2
  3733. * configure.ac
  3734. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3735. Added missing file.
  3736. * test/Makefile.am
  3737. * test/url-list-singleFileEndsWithSlash.torrent
  3738. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3739. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  3740. request.
  3741. * src/AnnounceList.cc
  3742. * src/AnnounceList.h
  3743. * src/BDE.cc: Added
  3744. * src/BDE.h: Added
  3745. * src/DHTAbstractMessage.cc
  3746. * src/DHTAbstractMessage.h
  3747. * src/DHTAnnouncePeerMessage.cc
  3748. * src/DHTAnnouncePeerMessage.h
  3749. * src/DHTAnnouncePeerReplyMessage.cc
  3750. * src/DHTAnnouncePeerReplyMessage.h
  3751. * src/DHTFindNodeMessage.cc
  3752. * src/DHTFindNodeMessage.h
  3753. * src/DHTFindNodeReplyMessage.cc
  3754. * src/DHTFindNodeReplyMessage.h
  3755. * src/DHTGetPeersMessage.cc
  3756. * src/DHTGetPeersMessage.h
  3757. * src/DHTGetPeersReplyMessage.cc
  3758. * src/DHTGetPeersReplyMessage.h
  3759. * src/DHTMessageFactory.h
  3760. * src/DHTMessageFactoryImpl.cc
  3761. * src/DHTMessageFactoryImpl.h
  3762. * src/DHTMessageReceiver.cc
  3763. * src/DHTMessageTracker.cc
  3764. * src/DHTMessageTracker.h
  3765. * src/DHTPingMessage.cc
  3766. * src/DHTPingMessage.h
  3767. * src/DHTPingReplyMessage.cc
  3768. * src/DHTPingReplyMessage.h
  3769. * src/DHTQueryMessage.cc
  3770. * src/DHTQueryMessage.h
  3771. * src/DHTResponseMessage.cc
  3772. * src/DHTResponseMessage.h
  3773. * src/DefaultBtAnnounce.cc
  3774. * src/DefaultBtContext.cc
  3775. * src/DefaultBtContext.h
  3776. * src/HandshakeExtensionMessage.cc
  3777. * src/Makefile.am
  3778. * src/PeerListProcessor.h
  3779. * src/UTPexExtensionMessage.cc
  3780. * src/bencode.cc
  3781. * src/bencode.h
  3782. * test/AnnounceListTest.cc
  3783. * test/BDETest.cc: Added
  3784. * test/BencodeTest.cc
  3785. * test/DHTAnnouncePeerMessageTest.cc
  3786. * test/DHTAnnouncePeerReplyMessageTest.cc
  3787. * test/DHTFindNodeMessageTest.cc
  3788. * test/DHTFindNodeReplyMessageTest.cc
  3789. * test/DHTGetPeersMessageTest.cc
  3790. * test/DHTGetPeersReplyMessageTest.cc
  3791. * test/DHTMessageFactoryImplTest.cc
  3792. * test/DHTMessageTrackerTest.cc
  3793. * test/DHTPingMessageTest.cc
  3794. * test/DHTPingReplyMessageTest.cc
  3795. * test/Makefile.am
  3796. * test/MockDHTMessageFactory.h
  3797. * test/PeerListProcessorTest.cc
  3798. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3799. Use url-list (web-seeding) only for single-file torrent. This is
  3800. basically the same behavior with Metalink file with torrent and
  3801. URIs.
  3802. * src/RequestGroup.cc
  3803. * src/DefaultBtContext.cc
  3804. * test/DefaultBtContextTest.cc
  3805. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3806. Rewritten expr
  3807. * src/array_fun.h
  3808. * test/array_funTest.cc
  3809. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3810. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  3811. * src/DefaultBtMessageDispatcher.cc
  3812. * src/a2algo.h
  3813. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3814. Removed ExtendedMessagingAware. Instead of using inheritance,
  3815. added ExtensionMessageRegistry and it is passed to
  3816. DefaultExtensionMessageFactory.
  3817. * src/DefaultBtInteractive.cc
  3818. * src/DefaultBtInteractive.h
  3819. * src/DefaultExtensionMessageFactory.cc
  3820. * src/DefaultExtensionMessageFactory.h
  3821. * src/ExtendedMessagingAware.h: Removed.
  3822. * src/ExtensionMessageFactory.h
  3823. * src/ExtensionMessageRegistry.h: Added.
  3824. * src/Makefile.am
  3825. * src/PeerInteractionCommand.cc
  3826. * test/DefaultExtensionMessageFactoryTest.cc
  3827. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3828. Fixed typo in log messages
  3829. * src/MSEHandshake.cc
  3830. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3831. Fixed the bug that prevents torrent download from finishing. The
  3832. bug doesn't reveal for all torrents. The torrents affected this
  3833. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  3834. of pieces.
  3835. * src/bitfield.h
  3836. * test/bitfieldTest.cc
  3837. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3838. Code cleanup
  3839. * src/PeerListProcessor.h
  3840. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3841. Removed RequestGroupAware
  3842. * src/AbstractCommand.cc
  3843. * src/AbstractCommand.h
  3844. * src/ActivePeerConnectionCommand.cc
  3845. * src/ActivePeerConnectionCommand.h
  3846. * src/DHTGetPeersCommand.cc
  3847. * src/DHTGetPeersCommand.h
  3848. * src/InitiatorMSEHandshakeCommand.cc
  3849. * src/InitiatorMSEHandshakeCommand.h
  3850. * src/Makefile.am
  3851. * src/PeerInitiateConnectionCommand.cc
  3852. * src/PeerInitiateConnectionCommand.h
  3853. * src/PeerInteractionCommand.cc
  3854. * src/PeerInteractionCommand.h
  3855. * src/RealtimeCommand.cc
  3856. * src/RealtimeCommand.h
  3857. * src/RequestGroupAware.cc: Removed
  3858. * src/RequestGroupAware.h: Removed
  3859. * src/SeedCheckCommand.cc
  3860. * src/SeedCheckCommand.h
  3861. * src/SleepCommand.cc
  3862. * src/TrackerWatcherCommand.cc
  3863. * src/TrackerWatcherCommand.h
  3864. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3865. Rewritten PeerListProcessor
  3866. * src/PeerListProcessor.h
  3867. * src/CompactPeerListProcessor.h: Removed
  3868. * src/CompactPeerListProcessor.cc: Removed
  3869. * src/DelegatingPeerListProcessor.cc: Removed.
  3870. * src/DefaultBtAnnounce.cc
  3871. * src/Makefile.am
  3872. * src/UTPexExtensionMessage.cc
  3873. * src/DefaultPeerListProcessor.h: Removed.
  3874. * src/DefaultPeerListProcessor.cc: Removed.
  3875. * src/DelegatingPeerListProcessor.h: Removed.
  3876. * test/Makefile.am
  3877. * test/PeerListProcessorTest.cc
  3878. * test/DefaultPeerListProcessorTest.cc: Removed.
  3879. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3880. Rewritten RequestGroupMan::calculateStat()
  3881. * src/RequestGroupMan.cc
  3882. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3883. Removed unnecessary virtual destructor for Request class.
  3884. * src/Request.cc
  3885. * src/Request.h
  3886. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3887. Avoid dynamic_pointer_cast.
  3888. * src/DHTGetPeersCommand.cc
  3889. * src/DHTGetPeersCommand.h
  3890. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3891. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  3892. BtEvent.
  3893. * src/AbstractBtEventListener.h: Removed.
  3894. * src/AbstractBtMessage.cc
  3895. * src/AbstractBtMessage.h
  3896. * src/BtAbortOutstandingRequestEvent.h
  3897. * src/BtCancelSendingPieceEvent.h
  3898. * src/BtChokedEvent.h: Removed.
  3899. * src/BtChokingEvent.h
  3900. * src/BtEvent.h: Removed
  3901. * src/BtEventListener.h: Removed.
  3902. * src/BtMessage.h
  3903. * src/BtPieceMessage.cc
  3904. * src/BtPieceMessage.h
  3905. * src/BtRequestMessage.cc
  3906. * src/BtRequestMessage.h
  3907. * src/DefaultBtMessageDispatcher.cc
  3908. * src/Makefile.am
  3909. * src/a2functional.h
  3910. * test/BtPieceMessageTest.cc
  3911. * test/BtRequestMessageTest.cc
  3912. * test/DefaultBtMessageDispatcherTest.cc
  3913. * test/MockBtMessage.h
  3914. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3915. Code cleanup
  3916. * src/RequestGroupMan.cc
  3917. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3918. Code cleanup
  3919. * src/DownloadCommand.cc
  3920. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3921. Fixed segmentation fault when GZipDecoder::decode() returns 0
  3922. byte.
  3923. * src/DownloadCommand.cc
  3924. * src/bitfield.h
  3925. * test/bitfieldTest.cc
  3926. Fixed the bug that causes infinite loop if broken web server
  3927. returns chunked response without last "0" chunk-size marker and
  3928. closes connection.
  3929. * src/DownloadCommand.cc
  3930. Instantiate properly configured HttpDownloadCommand for
  3931. non-resumable downlaods.
  3932. * src/HttpResponseCommand.cc
  3933. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3934. Rewritten array operation functions.
  3935. * src/BitfieldMan.cc
  3936. * src/array_fun.h
  3937. * test/array_funTest.cc
  3938. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3939. Removed unused variable 'query'
  3940. * src/Request.cc
  3941. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3942. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  3943. accidentally set to false in r1162.
  3944. * configure.ac
  3945. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3946. Code cleanup
  3947. * src/BNode.cc
  3948. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3949. Increase prefixLength for the bucket which doesn't own local node
  3950. ID when splitting bucket.
  3951. * src/DHTBucket.cc
  3952. * test/DHTBucketTest.cc
  3953. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3954. * Release 1.3.1
  3955. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3956. Bump up version number to 1.3.1
  3957. * configure.ac
  3958. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3959. Removed unused variable checkPoint. Also removed include directive
  3960. for TimeA2.h.
  3961. * src/SeedCheckCommand.h
  3962. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3963. Fixed the bug that upload limit exceeds the value specified in
  3964. --seed-ratio option depending on the timing of the execution of
  3965. SeedCheckCommand.
  3966. * src/SeedCheckCommand.cc
  3967. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3968. Fixed the bug that removed peer's session upload/download length
  3969. are counted twice in _cachedTransferStat before it is
  3970. re-calculated. This affected the calculation of shara ratio,
  3971. resulting aria2 wrongly determines that specified share ratio is
  3972. reached. Also fixed the typo in calculateStatFor function name.
  3973. * src/BtSetup.cc
  3974. * src/DefaultPeerStorage.cc
  3975. * src/ShareRatioSeedCriteria.h
  3976. * test/ShareRatioSeedCriteriaTest.cc
  3977. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3978. * Release 1.3.0
  3979. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3980. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  3981. Nynorsk translations. Thanks to all translators.
  3982. * po/es.po
  3983. * po/ja.po
  3984. * po/nn.po
  3985. * po/ru.po
  3986. * po/uk.po
  3987. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3988. Rewritten isInRange()
  3989. * src/DHTBucket.cc
  3990. * test/DHTBucketTest.cc
  3991. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3992. Fixed typo
  3993. * doc/aria2c.1.txt
  3994. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3995. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  3996. malloc/realloc is not used.
  3997. * src/configure.ac
  3998. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3999. BitfieldMan::getMissingIndexes family functions now takes unsigned
  4000. char* bitfield instead of stl container for efficiency.
  4001. PieceSelector::select now takes this
  4002. bitfield. RarestPieceSelector::select now also performs
  4003. efficiently for this change. bitfield namespace is introduced and
  4004. it has several helper functions to handle basic bitfield
  4005. operations such as test, count set bits, etc.
  4006. * src/BitfieldMan.cc
  4007. * src/BitfieldMan.h
  4008. * src/DefaultBtRequestFactory.cc
  4009. * src/DefaultPieceStorage.cc
  4010. * src/DefaultPieceStorage.h
  4011. * src/LongestSequencePieceSelector.cc
  4012. * src/LongestSequencePieceSelector.h
  4013. * src/Makefile.am
  4014. * src/Piece.cc
  4015. * src/Piece.h
  4016. * src/PieceSelector.h
  4017. * src/RarestPieceSelector.cc
  4018. * src/RarestPieceSelector.h
  4019. * src/Util.cc
  4020. * src/Util.h
  4021. * src/bitfield.h
  4022. * test/BitfieldManTest.cc
  4023. * test/LongestSequencePieceSelectorTest.cc
  4024. * test/Makefile.am
  4025. * test/RarestPieceSelectorTest.cc
  4026. * test/UtilTest.cc
  4027. * test/bitfieldTest.cc
  4028. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4029. Made accepted socket non-block.
  4030. * src/FtpNegotiationCommand.cc
  4031. * src/HttpListenCommand.cc
  4032. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4033. Guarded #ifdef HAVE_POSIX_FALLOCATE
  4034. * src/AbstractSingleDiskAdaptor.cc
  4035. * src/DefaultPieceStorage.cc
  4036. * src/DiskAdaptor.h
  4037. * src/DiskAdaptor.h
  4038. * src/MultiFileAllocationIterator.cc
  4039. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4040. Run
  4041. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  4042. in every 1 sec. The timeout of RequestSlot is 60s by default and
  4043. it doesn't need to be called every time when
  4044. DefaultBtInteractive::doInteractionProcessing() is called.
  4045. * src/DefaultBtInteractive.cc
  4046. * src/DefaultBtInteractive.h
  4047. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4048. Documented 'falloc' in man page.
  4049. * doc/aria2c.1.txt
  4050. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4051. Updated doc
  4052. * src/usage_text.h
  4053. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4054. Added 'falloc' parameter for --file-allocation option. 'falloc'
  4055. allocation mode uses posix_fallocate() system call to allocate
  4056. file on disk. If you are using newer file systems such as ext4
  4057. (with extents support), btrfs or xfs, 'falloc' is your best
  4058. choice. It allocates large(few GiB) files almost instantly. Don't
  4059. use 'falloc' with legacy file systems such as ext3 because it
  4060. takes almost same time as 'prealloc' and it blocks aria2 entirely
  4061. until allocation finishes. 'falloc' may not be available if your
  4062. system doesn't have posix_fallocate() system call.
  4063. * configure.ac
  4064. * src/AbstractDiskWriter.cc
  4065. * src/AbstractDiskWriter.h
  4066. * src/AbstractSingleDiskAdaptor.cc
  4067. * src/BinaryStream.h
  4068. * src/BtCheckIntegrityEntry.cc
  4069. * src/ByteArrayDiskWriter.h
  4070. * src/CheckIntegrityEntry.cc
  4071. * src/CheckIntegrityEntry.h
  4072. * src/DefaultPieceStorage.cc
  4073. * src/DiskAdaptor.cc
  4074. * src/DiskAdaptor.h
  4075. * src/DiskWriter.h
  4076. * src/FallocFileAllocationIterator.cc
  4077. * src/FallocFileAllocationIterator.h
  4078. * src/FileAllocationEntry.cc
  4079. * src/FileAllocationEntry.h
  4080. * src/Makefile.am
  4081. * src/MultiFileAllocationIterator.cc
  4082. * src/MultiFileAllocationIterator.h
  4083. * src/OptionHandlerFactory.cc
  4084. * src/RequestGroup.cc
  4085. * src/StreamCheckIntegrityEntry.cc
  4086. * src/prefs.cc
  4087. * src/prefs.h
  4088. * src/usage_text.h
  4089. * test/FallocFileAllocationIteratorTest.cc
  4090. * test/Makefile.am
  4091. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4092. Removed duplicate enableDirectIO() call.
  4093. * src/MultiFileAllocationIterator.cc
  4094. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4095. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  4096. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  4097. cost of std::rotate().
  4098. * src/RarestPieceSelector.cc
  4099. * src/RarestPieceSelector.h
  4100. * test/RarestPieceSelectorTest.cc
  4101. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4102. Updated usage doc for --bt-tracker-interval option.
  4103. * src/usage_text.h
  4104. * doc/aria2c.1.txt
  4105. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4106. Documented --bt-tracker-interval option in man page.
  4107. * doc/aria2c.1.txt
  4108. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4109. Added an option to specify the interval between tracker requests.
  4110. If non-zero value is specified, aria2 uses it and ignores the
  4111. interval value in the response of tracker. If zero is specified,
  4112. aria2 determines the inteval value based on the tarcker response
  4113. and download progress.
  4114. * src/DefaultBtAnnounce.cc
  4115. * src/DefaultBtAnnounce.h
  4116. * src/OptionHandlerFactory.cc
  4117. * src/RequestGroup.cc
  4118. * src/prefs.cc
  4119. * src/prefs.h
  4120. * src/usage_text.h
  4121. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4122. Added operator+=, operator-=, operator-
  4123. * src/TransferStat.cc
  4124. * src/TransferStat.h
  4125. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4126. Refactored RarestPieceSelector to reduce CPU load, especially for
  4127. addPieceStats.
  4128. * src/RarestPieceSelector.cc
  4129. * src/RarestPieceSelector.h
  4130. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4131. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  4132. getAllMissingBlockIndexes to reduce a call to
  4133. array_function_base::operator[].
  4134. * src/BitfieldMan.cc
  4135. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4136. Cached TransferStat/download speed to avoid to sum them up in each
  4137. call.
  4138. * src/DefaultPeerStorage.cc
  4139. * src/DefaultPeerStorage.h
  4140. * src/SegmentMan.cc
  4141. * src/SegmentMan.h
  4142. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4143. Typedefed cuid_t as int32_t in Command.h
  4144. * src/CUIDCounter.h
  4145. * src/Command.cc
  4146. * src/Command.h
  4147. * src/DownloadEngine.cc
  4148. * src/DownloadEngine.h
  4149. * src/PeerStat.h
  4150. * src/SegmentMan.cc
  4151. * src/SegmentMan.h
  4152. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4153. Reduced the number of calls to PeerStorage::calculateStat() and
  4154. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  4155. transfer rate.
  4156. * src/DefaultBtInteractive.cc
  4157. * src/DefaultBtMessageDispatcher.cc
  4158. * src/DefaultPeerStorage.cc
  4159. * src/DefaultPeerStorage.h
  4160. * src/DownloadCommand.cc
  4161. * src/DownloadEngine.cc
  4162. * src/PeerStorage.h
  4163. * src/SegmentMan.cc
  4164. * src/SegmentMan.h
  4165. * test/MockPeerStorage.h
  4166. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4167. Prepended _dir+"/" after joining path elements in torrent file.
  4168. * src/DefaultBtContext.cc
  4169. * test/DefaultBtContextTest.cc
  4170. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4171. Added missing IndexBtMessageValidator.h
  4172. * src/Makefile.am
  4173. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4174. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  4175. Chinese translations. Thank you for contributing our project.
  4176. * po/id.po
  4177. * po/it.po
  4178. * po/ru.po
  4179. * po/uk.po
  4180. * po/zh_CN.po
  4181. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4182. Updated README
  4183. * README
  4184. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4185. Bump up version number to 1.3.0
  4186. * configure.ac
  4187. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4188. Updated doc
  4189. * src/DefaultBtContext.h
  4190. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4191. Slice/joinPath for name of single torrent.
  4192. * src/DefaultBtContext.cc
  4193. * test/DefaultBtContextTest.cc
  4194. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4195. Updated man page: Documented --dry-run and --index-out
  4196. options. Changed the default value of --uri-selector and
  4197. --http-auth-challenge options. Removed --direct-file-mapping
  4198. option. Added example for --index-out
  4199. * doc/aria2c.1.txt
  4200. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4201. Updated TEXT_DRY_RUN
  4202. * src/usage_text.h
  4203. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4204. Changed the default value of --uri-selector option from 'inorder'
  4205. to 'feedback'
  4206. * src/OptionHandlerFactory.cc
  4207. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4208. Included current URI in exception message.
  4209. * src/AbstractCommand.cc
  4210. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4211. Renamed ServerStatURISelector as FeedbackURISelector.
  4212. * src/FeedbackURISelector.cc
  4213. * src/FeedbackURISelector.h
  4214. * src/Makefile.am
  4215. * src/RequestGroupMan.cc
  4216. * src/ServerStatURISelector.cc
  4217. * src/ServerStatURISelector.h
  4218. * test/FeedbackURISelectorTest.cc
  4219. * test/Makefile.am
  4220. * test/ServerStatURISelectorTest.cc
  4221. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4222. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  4223. all URIs are tested and their timeout is not reached.
  4224. * src/AdaptiveURISelector.cc
  4225. * src/AdaptiveURISelector.h
  4226. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4227. Changed the default value of --http-auth-challenge option to false.
  4228. * src/OptionHandlerFactory.cc
  4229. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4230. Reuse URIs when all unused URIs run out.
  4231. * src/OptionHandlerFactory.cc
  4232. * src/RequestGroup.cc
  4233. * src/prefs.cc
  4234. * src/prefs.h
  4235. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4236. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  4237. and BtRejectMessage are derived from RangeBtMessage class.
  4238. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  4239. derived from IndexBtMessage class. BtChokeMessage,
  4240. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  4241. BtNotInterestedMessage and BtUnchokeMessage are derived from
  4242. ZeroBtMessage class.
  4243. * src/AbstractBtMessage.cc
  4244. * src/AbstractBtMessage.h
  4245. * src/BtAllowedFastMessage.cc
  4246. * src/BtAllowedFastMessage.h
  4247. * src/BtAllowedFastMessageValidator.h: Removed
  4248. * src/BtBitfieldMessage.cc
  4249. * src/BtBitfieldMessage.h
  4250. * src/BtCancelMessage.cc
  4251. * src/BtCancelMessage.h
  4252. * src/BtCancelMessageValidator.h: Removed
  4253. * src/BtChokeMessage.cc
  4254. * src/BtChokeMessage.h
  4255. * src/BtExtendedMessage.cc
  4256. * src/BtExtendedMessage.h
  4257. * src/BtHandshakeMessage.cc
  4258. * src/BtHandshakeMessage.h
  4259. * src/BtHaveAllMessage.cc
  4260. * src/BtHaveAllMessage.h
  4261. * src/BtHaveMessage.cc
  4262. * src/BtHaveMessage.h
  4263. * src/BtHaveMessageValidator.h: Removed
  4264. * src/BtHaveNoneMessage.cc
  4265. * src/BtHaveNoneMessage.h
  4266. * src/BtInterestedMessage.cc
  4267. * src/BtInterestedMessage.h
  4268. * src/BtKeepAliveMessage.cc
  4269. * src/BtKeepAliveMessage.h
  4270. * src/BtNotInterestedMessage.cc
  4271. * src/BtNotInterestedMessage.h
  4272. * src/BtPieceMessage.cc
  4273. * src/BtPieceMessage.h
  4274. * src/BtPortMessage.cc
  4275. * src/BtPortMessage.h
  4276. * src/BtRejectMessage.cc
  4277. * src/BtRejectMessage.h
  4278. * src/BtRejectMessageValidator.h: Removed
  4279. * src/BtRequestMessage.cc
  4280. * src/BtRequestMessage.h
  4281. * src/BtRequestMessageValidator.h: Removed
  4282. * src/BtSuggestPieceMessage.cc
  4283. * src/BtSuggestPieceMessage.h
  4284. * src/BtSuggestPieceMessageValidator.h: Removed
  4285. * src/BtUnchokeMessage.cc
  4286. * src/BtUnchokeMessage.h
  4287. * src/DefaultBtMessageFactory.cc
  4288. * src/IndexBtMessage.cc
  4289. * src/IndexBtMessage.h
  4290. * src/IndexBtMessageValidator.h
  4291. * src/Makefile.am
  4292. * src/PeerMessageUtil.cc
  4293. * src/PeerMessageUtil.h
  4294. * src/RangeBtMessage.cc
  4295. * src/RangeBtMessage.h
  4296. * src/RangeBtMessageValidator.h
  4297. * src/SimpleBtMessage.cc
  4298. * src/SimpleBtMessage.h
  4299. * src/ZeroBtMessage.cc
  4300. * src/ZeroBtMessage.h
  4301. * test/BtRequestMessageTest.cc
  4302. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4303. Reverted usage_text.h to r1093 to avoid to lose translated
  4304. messages.
  4305. * src/usage_text.h
  4306. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4307. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  4308. declared as non-const previously is now const and defined in class
  4309. definition.
  4310. * src/AbstractBtMessage.cc
  4311. * src/AbstractBtMessage.h
  4312. * src/BtAllowedFastMessage.cc
  4313. * src/BtAllowedFastMessage.h
  4314. * src/BtBitfieldMessage.h
  4315. * src/BtCancelMessage.cc
  4316. * src/BtCancelMessage.h
  4317. * src/BtChokeMessage.cc
  4318. * src/BtChokeMessage.h
  4319. * src/BtExtendedMessage.cc
  4320. * src/BtExtendedMessage.h
  4321. * src/BtHandshakeMessage.cc
  4322. * src/BtHandshakeMessage.h
  4323. * src/BtHaveAllMessage.cc
  4324. * src/BtHaveAllMessage.h
  4325. * src/BtHaveMessage.cc
  4326. * src/BtHaveMessage.h
  4327. * src/BtHaveNoneMessage.cc
  4328. * src/BtHaveNoneMessage.h
  4329. * src/BtInterestedMessage.cc
  4330. * src/BtInterestedMessage.h
  4331. * src/BtKeepAliveMessage.cc
  4332. * src/BtKeepAliveMessage.h
  4333. * src/BtMessage.h
  4334. * src/BtNotInterestedMessage.cc
  4335. * src/BtNotInterestedMessage.h
  4336. * src/BtPieceMessage.h
  4337. * src/BtPortMessage.cc
  4338. * src/BtPortMessage.h
  4339. * src/BtRejectMessage.cc
  4340. * src/BtRejectMessage.h
  4341. * src/BtRequestMessage.cc
  4342. * src/BtRequestMessage.h
  4343. * src/BtSuggestPieceMessage.cc
  4344. * src/BtSuggestPieceMessage.h
  4345. * src/BtUnchokeMessage.cc
  4346. * src/BtUnchokeMessage.h
  4347. * src/SimpleBtMessage.cc
  4348. * src/SimpleBtMessage.h
  4349. * test/MockBtMessage.h
  4350. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4351. Use FileEntry::exists()
  4352. * src/MultiDiskAdaptor.cc
  4353. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4354. Added exists()
  4355. * src/FileEntry.cc
  4356. * src/FileEntry.h
  4357. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4358. Added missing prefix dir.
  4359. * src/download_helper.cc
  4360. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4361. Removed --direct-file-mapping option and CopyDiskAdaptor.
  4362. * src/CopyDiskAdaptor.cc: Removed
  4363. * src/CopyDiskAdaptor.h: Removed
  4364. * src/DefaultPieceStorage.cc
  4365. * src/Makefile.am
  4366. * src/OptionHandlerFactory.cc
  4367. * src/prefs.cc
  4368. * src/prefs.h
  4369. * src/usage_text.h
  4370. * test/CopyDiskAdaptorTest.cc: Removed
  4371. * test/Makefile.am
  4372. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4373. Rewritten isSameFileBeingDownloaded()
  4374. * src/RequestGroupMan.cc
  4375. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4376. Removed getName() from DownloadContext. getName() is declared in
  4377. BtContext.
  4378. * src/BtContext.h
  4379. * src/DownloadContext.h
  4380. * src/SingleFileDownloadContext.cc
  4381. * src/SingleFileDownloadContext.h
  4382. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  4383. in AbstractSingleDiskAdaptor.
  4384. * src/AbstractSingleDiskAdaptor.h
  4385. * src/DiskAdaptor.h
  4386. * src/MultiDiskAdaptor.h
  4387. * src/RequestGroup.cc
  4388. Removed setTopDir() and getTopDir() and getTopDirPath() from
  4389. MultiDiskAdaptor.
  4390. * src/DefaultPieceStorage.cc
  4391. * src/MultiDiskAdaptor.cc
  4392. * src/MultiDiskAdaptor.h
  4393. * test/MultiDiskAdaptorTest.cc
  4394. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4395. FileEntry::getPath() contains store(top level) directory to
  4396. simplify path handling operation. In the previous implementation,
  4397. store directory is concatenated to FileEntry::getPath() in
  4398. DownloadContext.
  4399. * src/BtDependency.cc
  4400. * src/BtPostDownloadHandler.cc
  4401. * src/CopyDiskAdaptor.cc
  4402. * src/DefaultBtContext.cc
  4403. * src/DirectDiskAdaptor.cc
  4404. * src/FileEntry.cc
  4405. * src/FileEntry.h
  4406. * src/FtpNegotiationCommand.cc
  4407. * src/HttpResponse.cc
  4408. * src/HttpResponseCommand.cc
  4409. * src/Metalink2RequestGroup.cc
  4410. * src/MultiDiskAdaptor.cc
  4411. * src/MultiDiskAdaptor.h
  4412. * src/MultiFileAllocationIterator.cc
  4413. * src/RequestGroup.cc
  4414. * src/SingleFileDownloadContext.cc
  4415. * src/SingleFileDownloadContext.h
  4416. * src/download_helper.cc
  4417. * test/BtDependencyTest.cc
  4418. * test/CopyDiskAdaptorTest.cc
  4419. * test/DefaultBtContextTest.cc
  4420. * test/DefaultBtProgressInfoFileTest.cc
  4421. * test/DirectDiskAdaptorTest.cc
  4422. * test/DownloadHelperTest.cc
  4423. * test/FileEntryTest.cc
  4424. * test/MultiDiskAdaptorTest.cc
  4425. * test/MultiFileAllocationIteratorTest.cc
  4426. * test/RequestGroupTest.cc
  4427. * test/SingleFileDownloadContextTest.cc
  4428. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4429. Fixed compiler warning
  4430. * src/download_helper.cc
  4431. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4432. Throw exception if same infohash torrent is now downloading.
  4433. * src/RequestGroup.cc
  4434. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4435. Added --dry-run option. In this mode, aria2 just checks whether
  4436. the remote file is available and doesn't download data. This
  4437. option has effect on HTTP/FTP downloads and BitTorrent downloads
  4438. are canceled in this mode.
  4439. * src/FtpNegotiationCommand.cc
  4440. * src/HttpResponseCommand.cc
  4441. * src/HttpResponseCommand.h
  4442. * src/OptionHandlerFactory.cc
  4443. * src/RequestGroup.cc
  4444. * src/RequestGroupMan.cc
  4445. * src/prefs.cc
  4446. * src/prefs.h
  4447. * src/usage_text.h
  4448. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4449. Fixed compiler waring
  4450. * test/UriListParserTest.cc
  4451. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4452. Parse options in -i list using OptionParser.
  4453. * src/UriListParser.cc
  4454. * src/UriListParser.h
  4455. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4456. Don't reset URI in retry to avoid additional round trips because
  4457. of redirects.
  4458. * src/AbstractCommand.cc
  4459. * src/OptionHandlerFactory.cc
  4460. * src/prefs.cc
  4461. * src/prefs.h
  4462. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4463. Declared hide() in OptionHandler.
  4464. * src/NameMatchOptionHandler.h
  4465. * src/OptionHandler.h
  4466. * src/OptionHandlerImpl.h
  4467. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4468. Updated doc
  4469. * src/Peer.h
  4470. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4471. Added log message in setStatusInternal()
  4472. * src/ServerStat.cc
  4473. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4474. Call ServerStat::setError() in AbstractCommand::onAbort() to
  4475. effectively exclude failed server.
  4476. * src/AbstractCommand.cc
  4477. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4478. Added --index-out option to specify each file path for torrent.
  4479. Here index shown in --show-files option is used to specify which
  4480. file path should be altered. For example, to change the file path
  4481. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  4482. option multiple times: --index-out=1=aria2.tar.bz2
  4483. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  4484. available. This option can be specified in -i list.
  4485. * src/DefaultBtContext.cc
  4486. * src/DefaultBtContext.h
  4487. * src/MultiDiskAdaptor.cc
  4488. * src/MultiDiskAdaptor.h
  4489. * src/MultiFileAllocationIterator.cc
  4490. * src/OptionHandlerFactory.cc
  4491. * src/OptionHandlerImpl.h
  4492. * src/Util.cc
  4493. * src/Util.h
  4494. * src/download_helper.cc
  4495. * src/prefs.cc
  4496. * src/prefs.h
  4497. * src/usage_text.h
  4498. * test/DefaultBtContextTest.cc
  4499. * test/MultiDiskAdaptorTest.cc
  4500. * test/MultiFileAllocationIteratorTest.cc
  4501. * test/UtilTest.cc
  4502. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4503. Use Util::pathJoin()
  4504. * src/MetalinkParserController.cc
  4505. * test/test.xml
  4506. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4507. Use Util::pathJoin()
  4508. * src/DefaultBtContext.cc
  4509. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4510. Added Util::pathJoin()
  4511. * src/Util.h
  4512. * test/UtilTest.cc
  4513. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4514. Applied basename function to remove directory element in
  4515. content-disposition value.
  4516. Return empty string if content-disposition value is ".." or ".".
  4517. * src/Util.cc
  4518. * test/UtilTest.cc
  4519. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4520. Added --max-overall-download-limit in man page.
  4521. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  4522. * doc/aria2c.1.txt
  4523. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4524. Added --max-overall-download-limit option. Now --max-upload-limit
  4525. option is not ignored when --max-overall-upload-limit option has
  4526. non-zero value. aria2 checks download(upload) speed in the order:
  4527. first checks overall speed limit and if it is not exceeded, then
  4528. checks speed limit per download. Thus you can specify both
  4529. value. For example, set --max-overall-download-limit=1M and
  4530. --max-download-limit=500K to prevent from one download from eating
  4531. all overall speed limit.
  4532. * src/DefaultBtInteractive.cc
  4533. * src/DefaultBtInteractive.h
  4534. * src/DefaultBtMessageDispatcher.cc
  4535. * src/DefaultBtMessageDispatcher.h
  4536. * src/DownloadCommand.cc
  4537. * src/DownloadCommand.h
  4538. * src/FtpNegotiationCommand.cc
  4539. * src/HttpResponseCommand.cc
  4540. * src/OptionHandlerFactory.cc
  4541. * src/PeerInteractionCommand.cc
  4542. * src/RequestGroup.cc
  4543. * src/RequestGroup.h
  4544. * src/RequestGroupMan.cc
  4545. * src/RequestGroupMan.h
  4546. * src/prefs.cc
  4547. * src/prefs.h
  4548. * src/usage_text.h
  4549. * test/DefaultBtMessageDispatcherTest.cc
  4550. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4551. Documented select-file option in Input File section.
  4552. Documented --http-auth-challenge option.
  4553. * doc/aria2c.1.txt
  4554. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4555. Now select-file can be specified in the uri list(-i list).
  4556. * src/BtContext.cc
  4557. * src/BtContext.h
  4558. * src/RequestGroup.cc
  4559. * src/Sequence.h
  4560. * src/download_helper.cc
  4561. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4562. Made the upper value of --max-concurrent-downloads options unlimited.
  4563. * src/OptionHandlerFactory.cc
  4564. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4565. Fixed the bug that disk writer is not created even if it shares
  4566. same piece with the preceding file if the length of previous file
  4567. is 0.
  4568. * src/MultiDiskAdaptor.cc
  4569. * test/MultiDiskAdaptorTest.cc
  4570. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4571. In BitTorrent, Open files in read-only mode for hash check. After
  4572. that, re-open file in read/write mode only when the download is
  4573. not finished.
  4574. * src/AbstractDiskWriter.cc
  4575. * src/AbstractDiskWriter.h
  4576. * src/AbstractSingleDiskAdaptor.cc
  4577. * src/AbstractSingleDiskAdaptor.h
  4578. * src/BtCheckIntegrityEntry.cc
  4579. * src/DiskAdaptor.h
  4580. * src/DiskWriter.h
  4581. * src/MultiDiskAdaptor.cc
  4582. * src/MultiDiskAdaptor.h
  4583. * src/RequestGroup.cc
  4584. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4585. Added --http-auth-challenge option. If it is set to true(by
  4586. default), aria2 sends HTTP authorization header only when it is
  4587. requested by the server. If false is set, then authorization
  4588. header is always sent to the server. This is useful for servers
  4589. that don't respond 401 code when authentication is required.
  4590. There is an exception: if username and password are embedded in
  4591. URI, authorization header is always sent to the server regardless
  4592. of this option.
  4593. * src/AuthConfigFactory.cc
  4594. * src/HttpSkipResponseCommand.cc
  4595. * src/OptionHandlerFactory.cc
  4596. * src/prefs.cc
  4597. * src/prefs.h
  4598. * src/usage_text.h
  4599. * test/AuthConfigFactoryTest.cc
  4600. * test/HttpRequestTest.cc
  4601. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4602. * Release 1.2.0
  4603. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4604. Updated Spanish, Ukrainian, Russian and Japanese translations.
  4605. Thanks to all translators.
  4606. * po/es.po
  4607. * po/ja.po
  4608. * po/ru.po
  4609. * po/uk.po
  4610. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4611. Call deleteSocketForReadCheck() before socket is closed.
  4612. * src/HttpListenCommand.cc
  4613. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4614. Defined virtual destructor for BObject.
  4615. * src/bencode.h
  4616. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4617. Rewritten BDE to make it efficient.
  4618. * src/bencode.cc
  4619. * src/bencode.h
  4620. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4621. Removed function throw list.
  4622. * src/bencode.cc
  4623. * src/bencode.h
  4624. * test/BencodeTest.cc
  4625. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4626. Enclosed all URLs in double quotes in command-line examples.
  4627. * doc/aria2c.1.txt
  4628. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4629. Updated reference/see also section.
  4630. * README
  4631. * doc/aria2c.1.txt
  4632. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4633. Reorganized man page based on man man-pages.
  4634. * doc/aria2c.1.txt
  4635. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4636. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  4637. because same documents are available in man page. Added
  4638. References section.
  4639. * README
  4640. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4641. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  4642. PERFORMANCE PROFILE section.
  4643. * doc/aria2c.1.txt
  4644. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4645. Rewritten the section for configuration file.
  4646. * README
  4647. * doc/aria2c.1.txt
  4648. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4649. Fixed the segmentation fault during execution of choking algorithm
  4650. in leecher state because of broken compare operator
  4651. implementation.
  4652. * src/BtLeecherStateChoke.cc
  4653. * src/BtLeecherStateChoke.h
  4654. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4655. Open file in binary mode.
  4656. * src/CookieStorage.cc
  4657. * src/DHTSetup.cc
  4658. * src/DHTUtil.cc
  4659. * src/Netrc.cc
  4660. * src/NsCookieParser.cc
  4661. * src/ProtocolDetector.cc
  4662. * src/RequestGroupMan.cc
  4663. * src/Signature.cc
  4664. * src/bencode.cc
  4665. * src/download_helper.cc
  4666. * src/option_processing.cc
  4667. * test/CookieParserTest.cc
  4668. * test/DefaultBtProgressInfoFileTest.cc
  4669. * test/FileTest.cc
  4670. * test/GZipDecoderTest.cc
  4671. * test/RequestGroupManTest.cc
  4672. * test/SignatureTest.cc
  4673. * test/SingleFileAllocationIteratorTest.cc
  4674. * test/UriListParserTest.cc
  4675. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4676. Removed operator[] because it is ambiguous with built-in []
  4677. operator.
  4678. * src/array_fun.h
  4679. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4680. Fixed compile error
  4681. * src/OptionParser.cc
  4682. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4683. Added missing call to arrayWrapperConst
  4684. * test/array_funTest.cc
  4685. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4686. Use array_wrapper instead of array_ptr.
  4687. * src/DHTRoutingTableDeserializer.cc
  4688. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4689. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  4690. * src/array_fun.h
  4691. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4692. Added array_wrapper template.
  4693. * src/array_fun.h
  4694. * test/array_funTest.cc
  4695. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4696. Use operator T* of array_ptr.
  4697. * src/OptionParser.cc
  4698. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4699. Use localhost instead of 127.0.0.1
  4700. * test/FtpConnectionTest.cc
  4701. * test/MSEHandshakeTest.cc
  4702. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4703. Added operator T*
  4704. * src/array_fun.h
  4705. * test/array_funTest.cc
  4706. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4707. Use dynamically allocated char array to detect memory access
  4708. violation.
  4709. * src/DHTRoutingTableDeserializer.cc
  4710. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4711. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  4712. defined.
  4713. * src/PeerMessageUtil.cc
  4714. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4715. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  4716. * configure.ac
  4717. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4718. Added a check to see struct sockaddr_in has sin_len member.
  4719. * configure.ac
  4720. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4721. Fixed buffer overrun.
  4722. * src/DHTRoutingTableDeserializer.cc
  4723. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4724. Added LL for long long int constant.
  4725. * test/FtpConnectionTest.cc
  4726. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4727. Casted to unsigned int to suppress compiler warning on netbsd.
  4728. * src/BtRuntime.h
  4729. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4730. Assign the value of tv.tv_sec to time_t timesec instead of giving
  4731. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  4732. type time_t.
  4733. * src/SimpleLogger.cc
  4734. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4735. Added test for FtpConnection::receiveSizeResponse().
  4736. * test/FtpConnectionTest.cc
  4737. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4738. Fix epoll error on the old kernel 2.6.8 or ealier.
  4739. * src/EpollEventPoll.cc
  4740. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4741. Use Util::parseLLInt instead of sscanf for portability. The
  4742. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  4743. * src/FtpConnection.cc
  4744. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4745. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  4746. block. It should not filter anything.
  4747. * src/BitfieldMan.cc
  4748. * src/ConsoleStatCalc.cc
  4749. * test/BitfieldManTest.cc
  4750. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4751. Fixed the bug that the boolean options that don't take arguments
  4752. don't work.
  4753. * src/OptionHandlerImpl.h
  4754. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4755. Fixed broken selected file BitTorrent download.
  4756. * src/MultiDiskAdaptor.cc
  4757. * test/MultiDiskAdaptorTest.cc
  4758. * test/MultiFileAllocationIteratorTest.cc
  4759. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4760. Fixed #define guard for EpollEventPoll
  4761. * src/EpollEventPoll.h
  4762. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4763. Wait 2 seconds. 1 second is sometimes not enough.
  4764. * test/TimeSeedCriteriaTest.cc
  4765. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4766. Use localhost instead of 127.0.0.1.
  4767. * test/DHTConnectionImplTest.cc
  4768. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4769. Suppressed compiler warning.
  4770. * src/AdaptiveURISelector.cc
  4771. * src/DefaultPieceStorage.cc
  4772. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4773. Defined virtual destructor.
  4774. * src/MetalinkParserState.h
  4775. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4776. Give NULL for second argument of getaddrinfo instead of "0".
  4777. * src/NameResolver.cc
  4778. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4779. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  4780. included strptime doesn't parse data for this format.
  4781. * src/FtpConnection.cc
  4782. * test/FtpConnectionTest.cc
  4783. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4784. Removed tests giving -1 for unsigned argument.
  4785. * test/SingleFileDownloadContextTest.cc
  4786. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4787. Don't use sha256 in tests because it might not be supported by the
  4788. SSL library.
  4789. * test/MetalinkProcessorTest.cc
  4790. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4791. Removed tests giving -1 for unsigned argument.
  4792. * test/AlphaNumberDecoratorTest
  4793. * test/BitfieldManTest.cc
  4794. * test/DefaultBtContextTest.cc
  4795. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4796. Fixed compile error without libcares when epoll is available.
  4797. * src/EpollEventPoll.cc
  4798. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4799. Included fstream instead of iostream.
  4800. * test/SignatureTest.cc
  4801. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4802. Removed #include <algorithm>
  4803. * test/RequestGroupTest.cc
  4804. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4805. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  4806. using RequestGroup::extractURIResult().
  4807. * src/AdaptiveURISelector.cc
  4808. * src/RequestGroup.cc
  4809. * src/RequestGroup.h
  4810. * test/RequestGroupTest.cc
  4811. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4812. Added tests for array_ptr.
  4813. * test/array_funTest.cc
  4814. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4815. Don't send ip parameter to a tracker if ip parameter is empty
  4816. string.
  4817. * src/DefaultBtAnnounce.cc
  4818. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4819. Adjusted line feed.
  4820. * src/version_usage.cc
  4821. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4822. Print tags, possible values when OptionHandlerException is caught.
  4823. * src/option_processing.cc
  4824. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4825. Changed the message for FatalException.
  4826. * src/OptionParser.cc
  4827. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4828. Documented --bt-external-ip option in man page. Updated man pages
  4829. for --proxy-method option.
  4830. * doc/aria2c.1.txt
  4831. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4832. Use GET method for FTP via HTTP proxy.
  4833. * src/FtpInitiateConnectionCommand.cc
  4834. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4835. Changed the default value of --proxy-method option from 'tunnel'
  4836. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  4837. option.
  4838. * src/AbstractCommand.cc
  4839. * src/AbstractCommand.h
  4840. * src/FtpInitiateConnectionCommand.cc
  4841. * src/HttpDownloadCommand.cc
  4842. * src/HttpInitiateConnectionCommand.cc
  4843. * src/HttpInitiateConnectionCommand.h
  4844. * src/OptionHandlerFactory.cc
  4845. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4846. Initialized _logger
  4847. * src/SelectEventPoll.cc
  4848. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4849. Defined a copy constructor for the same type.
  4850. * src/SharedHandle.h
  4851. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4852. Added OptionParser::parseArg() which internally uses getopt_long
  4853. to parse command-line options. All command-line options are now
  4854. configured by OptionHandler. No manual editing of struct option*
  4855. is required any more.
  4856. * src/NameMatchOptionHandler.h
  4857. * src/OptionHandler.h
  4858. * src/OptionHandlerFactory.cc
  4859. * src/OptionHandlerImpl.h
  4860. * src/OptionParser.cc
  4861. * src/OptionParser.h
  4862. * src/array_fun.h
  4863. * src/main.cc
  4864. * src/option_processing.cc
  4865. * test/OptionHandlerTest.cc
  4866. * test/OptionParserTest.cc
  4867. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4868. Fixed configure error with --disable-epoll
  4869. * configure.ac
  4870. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4871. Fixed compile error when HAVE_EPOLL is not defined.
  4872. Fixed linker error on bigendian systems.
  4873. * src/SocketCore.cc
  4874. * src/SocketCore.h
  4875. * test/DefaultBtProgressInfoFileTest.cc
  4876. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4877. Added --bt-external-ip option. You can specify the external IP
  4878. address to report to a BitTorrent tracker. Although this function
  4879. is named 'external', it can accept any kind of IP addresses.
  4880. * src/DefaultBtAnnounce.cc
  4881. * src/OptionHandlerFactory.cc
  4882. * src/option_processing.cc
  4883. * src/prefs.cc
  4884. * src/prefs.h
  4885. * src/usage_text.h
  4886. * test/DefaultBtAnnounceTest.cc
  4887. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4888. Extracted the algorithm to find the longest incremental sequence
  4889. as max_sequence template.
  4890. * src/LongestSequencePieceSelector.cc
  4891. * src/a2algo.h
  4892. * test/Makefile.am
  4893. * test/a2algoTest.cc
  4894. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4895. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  4896. * src/usage_text.h
  4897. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4898. Updated doc for --uri-selector, --http-server-listen-port and
  4899. --enable-http-server option. Documented --event-poll option.
  4900. * doc/aria2c.1.txt
  4901. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4902. Updated doc for --enable-http-server.
  4903. * src/usage_text.h
  4904. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4905. Documented --http-server-listen-port and --enable-http-server in
  4906. man page.
  4907. * doc/aria2c.1.txt
  4908. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4909. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  4910. translations. Thanks to all translators.
  4911. * po/es.po
  4912. * po/id.po
  4913. * po/it.po
  4914. * po/ru.po
  4915. * po/uk.po
  4916. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4917. Bump up version number to 1.2.0
  4918. * configure.ac
  4919. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4920. BtContext::getAnnounceTiers() now returns const reference.
  4921. * src/BtContext.h
  4922. * src/DefaultBtContext.cc
  4923. * src/DefaultBtContext.h
  4924. * test/MockBtContext.h
  4925. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4926. Change the number of retries for tracker request based on the
  4927. number of available tracker in a torrent file.
  4928. * src/TrackerWatcherCommand.cc
  4929. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4930. Added _maxTries property to RequestGroup and assign the option
  4931. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  4932. RequestGroup::getMaxTries() instead of
  4933. Option::getAsInt(PREF_MAX_TRIES).
  4934. * src/AbstractCommand.cc
  4935. * src/RequestGroup.cc
  4936. * src/RequestGroup.h
  4937. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4938. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  4939. Mandriva. I modified the patch: make RequestGroup have the
  4940. timeout value and AdaptiveURISelector directly modifies that
  4941. value.
  4942. * src/AbstractCommand.cc
  4943. * src/AdaptiveURISelector.cc
  4944. * src/AdaptiveURISelector.h
  4945. * src/FtpNegotiationCommand.cc
  4946. * src/RequestGroup.cc
  4947. * src/RequestGroup.h
  4948. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4949. Fixed compiler warning
  4950. * test/IteratableChecksumValidatorTest.cc
  4951. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4952. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  4953. integrated downloads. This PieceSelector subclass finds the
  4954. longest continuous sequence in the available missing pieces and
  4955. selects the last index of such sequence. This makes HTTP/FTP
  4956. connections less interrupted by the pieces obtained by BitTorrent
  4957. peers.
  4958. * src/DefaultPieceStorage.cc
  4959. * src/DefaultPieceStorage.h
  4960. * src/LongestSequencePieceSelector.cc
  4961. * src/LongestSequencePieceSelector.h
  4962. * src/Makefile.am
  4963. * src/PieceSelector.h
  4964. * src/RarestPieceSelector.h
  4965. * src/RequestGroup.cc
  4966. * test/BtDependencyTest.cc
  4967. * test/DefaultPieceStorageTest.cc
  4968. * test/IteratableChecksumValidatorTest.cc
  4969. * test/LongestSequencePieceSelectorTest.cc
  4970. * test/Makefile.am
  4971. * test/SegmentManTest.cc
  4972. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4973. Fixed the bug that the average speed is wrong in
  4974. http/ftp/BitTorrent integrated download. Only the download bytes
  4975. in BitTorrent were considered.
  4976. * src/RequestGroup.cc
  4977. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4978. Choose port for BitTorrent/DHT randomly from the specified range.
  4979. * src/DHTConnectionImpl.cc
  4980. * src/PeerListenCommand.cc
  4981. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4982. Send HTTP Authorization header only if it is requested by the
  4983. server(response 401). There are some exceptions. The authorization
  4984. header for proxy is always sent if it is available without request
  4985. by the server. If username/password is specified in the URI, it
  4986. is immediately sent to the server without request by the server.
  4987. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  4988. SharedHandle<AuthConfig>().
  4989. NetrcAuthResolver::resolveAuthConfig() returns
  4990. SharedHandle<AuthConfig>() if no AuthConfig is available.
  4991. * src/AbstractAuthResolver.cc
  4992. * src/AbstractProxyRequestCommand.cc
  4993. * src/AuthConfigFactory.cc
  4994. * src/AuthConfigFactory.h
  4995. * src/HttpConnection.cc
  4996. * src/HttpRequest.cc
  4997. * src/HttpRequest.h
  4998. * src/HttpResponse.cc
  4999. * src/HttpResponseCommand.cc
  5000. * src/HttpSkipResponseCommand.cc
  5001. * test/AuthConfigFactoryTest.cc
  5002. * test/HttpRequestTest.cc
  5003. * test/HttpResponseTest.cc
  5004. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5005. Remove leading "--" from help keyword and a substring after "="
  5006. from help keyword, so that one can query options by '-h--max-' or
  5007. '-hmax-peers=10'.
  5008. * src/option_processing.cc
  5009. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5010. Rewritten PStringVisitor and its implementation.
  5011. * src/PStringBuildVisitor.cc
  5012. * src/PStringBuildVisitor.h
  5013. * src/PStringDatum.h
  5014. * src/PStringNumLoop.h
  5015. * src/PStringSegment.cc
  5016. * src/PStringSegment.h
  5017. * src/PStringSelect.h
  5018. * src/PStringVisitor.h
  5019. * src/download_helper.cc
  5020. * test/PStringBuildVisitorTest.cc
  5021. * test/ParameterizedStringParserTest.cc
  5022. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5023. Persist connection between the built-in HTTP server and a client
  5024. if a client supports keep-alive. Fixed the bug that aria2 exits
  5025. when the HTTP server receives EOF from a client.
  5026. * src/HttpServer.cc
  5027. * src/HttpServer.h
  5028. * src/HttpServerCommand.cc
  5029. * src/HttpServerCommand.h
  5030. * src/HttpServerResponseCommand.cc
  5031. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5032. Added experimental built-in HTTP server. Currently, when a client
  5033. accesses to the server, it responds with the current download
  5034. progress. By default, it is disabled. To enable the server, give
  5035. --enable-http-server option. To change the default port number
  5036. for the server to listen to, use --http-server-listen-port option.
  5037. The response HTML is very simple and refreshes it self each 1
  5038. second. Because of this refresh, you see flicker in normal web
  5039. browser such as Firefox. I recommend to use console-based browser
  5040. such as elinks, w3m. To connect to the server, run 'elinks
  5041. http://localhost:6800/' while running aria2. Please replace port
  5042. number '6800'(which is default) with your preference.
  5043. * src/DownloadEngineFactory.cc
  5044. * src/HttpHeader.cc
  5045. * src/HttpHeader.h
  5046. * src/HttpHeaderProcessor.cc
  5047. * src/HttpHeaderProcessor.h
  5048. * src/HttpListenCommand.cc
  5049. * src/HttpListenCommand.h
  5050. * src/HttpServer.cc
  5051. * src/HttpServer.h
  5052. * src/HttpServerCommand.cc
  5053. * src/HttpServerCommand.h
  5054. * src/HttpServerResponseCommand.cc
  5055. * src/HttpServerResponseCommand.h
  5056. * src/Makefile.am
  5057. * src/OptionHandlerFactory.cc
  5058. * src/Util.cc
  5059. * src/Util.h
  5060. * src/help_tags.h
  5061. * src/option_processing.cc
  5062. * src/prefs.cc
  5063. * src/prefs.h
  5064. * src/usage_text.h
  5065. * test/HttpHeaderProcessorTest.cc
  5066. * test/UtilTest.cc
  5067. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5068. Removed.
  5069. * src/CheckIntegrityMan.cc
  5070. * src/FileAllocationMan.cc
  5071. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5072. Made (piece) hash check sequential for each RequestGroup because
  5073. simultaneous hash check is slower than sequential execution.
  5074. * src/CheckIntegrityCommand.cc
  5075. * src/CheckIntegrityDispatcherCommand.cc
  5076. * src/CheckIntegrityDispatcherCommand.h
  5077. * src/CheckIntegrityMan.h
  5078. * src/ConsoleStatCalc.cc
  5079. * src/DownloadCommand.cc
  5080. * src/DownloadEngine.cc
  5081. * src/DownloadEngine.h
  5082. * src/DownloadEngineFactory.cc
  5083. * src/Makefile.am
  5084. * src/Makefile.in
  5085. * src/RequestGroup.cc
  5086. * src/StatCalc.h
  5087. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5088. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  5089. SequentialDispatcherCommand.
  5090. * src/FileAllocationDispatcherCommand.cc
  5091. * src/SequentialDispatcherCommand.h
  5092. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5093. Rewritten FileAllocationDispatcherCommand using brand new
  5094. SequentialDispatcherCommand.
  5095. * src/DownloadEngineFactory.cc
  5096. * src/FileAllocationCommand.cc
  5097. * src/FileAllocationDispatcherCommand.cc
  5098. * src/FileAllocationDispatcherCommand.h
  5099. * src/Makefile.am
  5100. * src/SequentialDispatcherCommand.h
  5101. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5102. Replaced FileAllocationMan with
  5103. SequentialPicker<FileAllocationEntry>.
  5104. * src/BtCheckIntegrityEntry.cc
  5105. * src/ConsoleStatCalc.cc
  5106. * src/DownloadEngine.cc
  5107. * src/DownloadEngine.h
  5108. * src/DownloadEngineFactory.cc
  5109. * src/FileAllocationCommand.cc
  5110. * src/FileAllocationDispatcherCommand.cc
  5111. * src/FileAllocationMan.h
  5112. * src/Makefile.am
  5113. * src/SequentialPicker.h
  5114. * src/StatCalc.h
  5115. * src/StreamCheckIntegrityEntry.cc
  5116. * test/Makefile.am
  5117. * test/SequentialPickerTest.cc
  5118. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5119. Added doc for adaptive URI selector.
  5120. * doc/aria2c.1.txt
  5121. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5122. Added doc for adaptive URI selector.
  5123. * src/usage_text.h
  5124. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5125. Added doc for --bt-max-peers option.
  5126. * doc/aria2c.1.txt
  5127. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5128. Added doc for --bt-hash-check-seed option.
  5129. * doc/aria2c.1.txt
  5130. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5131. Documented exit codes.
  5132. * doc/aria2c.1.txt
  5133. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5134. Added --bt-max-peers option to specify the maximum number of peers
  5135. per torrent. 0 means unlimited number of peers.
  5136. * src/ActivePeerConnectionCommand.cc
  5137. * src/BtRuntime.h
  5138. * src/DefaultPeerStorage.cc
  5139. * src/DefaultPeerStorage.h
  5140. * src/OptionHandlerFactory.cc
  5141. * src/RequestGroup.cc
  5142. * src/option_processing.cc
  5143. * src/prefs.cc
  5144. * src/prefs.h
  5145. * src/usage_text.h
  5146. * test/DefaultPeerStorageTest.cc
  5147. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5148. Added --bt-hash-check-seed option. If true is given to this
  5149. option, after hash check using --check-integrity option and file
  5150. is complete, continue to seed file. If you want to check file and
  5151. download it only when it is damaged or incomplete, set this option
  5152. to false. This option has effect only on BitTorrent download.
  5153. The default value is true(This is the same behavior with the
  5154. previous release).
  5155. * src/BtCheckIntegrityEntry.cc
  5156. * src/OptionHandlerFactory.cc
  5157. * src/option_processing.cc
  5158. * src/prefs.cc
  5159. * src/prefs.h
  5160. * src/usage_text.h
  5161. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5162. Updated copyright year.
  5163. * src/version_usage.cc
  5164. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5165. Rewritten the usage text for --bt-request-peer-speed-limit option.
  5166. * doc/aria2c.1.txt
  5167. * src/usage_text.h
  5168. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5169. Made the max value of split option unlimited.
  5170. * doc/aria2c.1.txt
  5171. * src/OptionHandlerFactory.cc
  5172. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5173. Fixed compile warning/error.
  5174. * src/DownloadResult.h
  5175. * src/HttpDownloadCommand.cc
  5176. * src/ServerStat.cc
  5177. * test/RequestGroupTest.cc
  5178. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5179. Added --event-poll option to select the method for polling events.
  5180. The available methods are "select" and "epoll". "epoll" is
  5181. available on Linux only. The earlier release has the compile
  5182. option to choose from these methods.
  5183. * configure.ac
  5184. * src/RequestGroupMan.cc
  5185. * src/OptionHandlerFactory.cc
  5186. * src/EpollEventPoll.h
  5187. * src/StreamFileAllocationEntry.cc
  5188. * src/a2io.h
  5189. * src/SelectEventPoll.h
  5190. * src/option_processing.cc
  5191. * src/prefs.h
  5192. * src/EpollEventPoll.cc
  5193. * src/EventPoll.h
  5194. * src/SocketCore.h
  5195. * src/Makefile.am
  5196. * src/main.cc
  5197. * src/DownloadEngine.h
  5198. * src/SelectEventPoll.cc
  5199. * src/DownloadEngine.cc
  5200. * src/SocketCore.cc
  5201. * src/DownloadEngineFactory.cc
  5202. * src/Makefile.in
  5203. * src/prefs.cc
  5204. * src/usage_text.h
  5205. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5206. Included RecoverableException.h from main.cc
  5207. * src/main.cc
  5208. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5209. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  5210. now returns last error encountered in the HTTP/FTP downloads as a
  5211. exit status value. If all downloads finished successfully, aria2
  5212. returns 0. The error code is defined in src/DownloadResult.h.
  5213. The error occurred in the download currently in progress is not
  5214. reported as a last error. If no error has encountered but there
  5215. are in progress or waiting downloads, aria2 returns 7.
  5216. * src/AbstractCommand.cc
  5217. * src/DlAbortEx.h
  5218. * src/DlRetryEx.h
  5219. * src/DownloadCommand.cc
  5220. * src/DownloadFailureException.h
  5221. * src/DownloadResult.h
  5222. * src/FtpNegotiationCommand.cc
  5223. * src/HttpSkipResponseCommand.cc
  5224. * src/Makefile.am
  5225. * src/MultiUrlRequestInfo.cc
  5226. * src/MultiUrlRequestInfo.h
  5227. * src/RecoverableException.h
  5228. * src/RequestGroup.cc
  5229. * src/RequestGroup.h
  5230. * src/RequestGroupMan.cc
  5231. * src/RequestGroupMan.h
  5232. * src/URIResult.cc
  5233. * src/URIResult.h
  5234. * src/main.cc
  5235. * src/option_processing.cc
  5236. * test/RequestGroupTest.cc
  5237. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5238. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  5239. patch adds AdaptiveURISelector, which selects one of the bests
  5240. mirrors for first and reserved connections. For supplementary
  5241. ones, it returns mirrors which has not been tested yet, and if
  5242. each of them already tested, returns mirrors which has to be
  5243. tested again. Otherwise, it doesn't return anymore mirrors.
  5244. * src/AdaptiveURISelector.cc
  5245. * src/AdaptiveURISelector.h
  5246. * src/FtpNegotiationCommand.cc
  5247. * src/HttpResponseCommand.cc
  5248. * src/Makefile.am
  5249. * src/Makefile.in
  5250. * src/OptionHandlerFactory.cc
  5251. * src/RequestGroup.cc
  5252. * src/RequestGroup.h
  5253. * src/RequestGroupMan.cc
  5254. * src/ServerStat.cc
  5255. * src/ServerStat.h
  5256. * src/ServerStatMan.cc
  5257. * src/SpeedCalc.cc
  5258. * src/URISelector.h
  5259. * src/prefs.cc
  5260. * src/prefs.h
  5261. * test/RequestGroupManTest.cc
  5262. * test/ServerStatManTest.cc
  5263. * test/ServerStatTest.cc
  5264. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5265. Fixed unit test error.
  5266. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  5267. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5268. * Release 1.1.2
  5269. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5270. Updated Russian translation. Thanks to the translators.
  5271. * po/ru.po
  5272. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5273. Added the description of --use-head option to man page.
  5274. * doc/aria2c.1.txt
  5275. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5276. Bump up version number to 1.1.2
  5277. * configure.ac
  5278. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5279. Added --use-head option to toggle whether HEAD method should be
  5280. used in the first HTTP request. By default aria2 uses HEAD method
  5281. as the first request. When the server doesn't recognize HEAD, then
  5282. give aria2 --use-head=false to force aria2 to use GET method
  5283. instead.
  5284. * src/OptionHandlerFactory.cc
  5285. * src/RequestGroupMan.cc
  5286. * src/option_processing.cc
  5287. * src/prefs.cc
  5288. * src/prefs.h
  5289. * src/usage_text.h
  5290. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5291. Fixed the bug that BitTorrent download doesn't finish when REJECT
  5292. message is received before CHOKE message. The old implementation
  5293. doen't clear the use-bit of the piece when recieved REJECT
  5294. message.
  5295. * src/DefaultBtMessageDispatcher.cc
  5296. * test/DefaultBtMessageDispatcherTest.cc
  5297. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5298. * Release 1.1.1
  5299. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5300. Bump up version number to 1.1.1.
  5301. * configure.ac
  5302. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5303. Fixed the bug that --summary-interval=0 doesn't work. The summary
  5304. is printed repeatedly.
  5305. * src/ConsoleStatCalc.cc
  5306. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5307. * Release 1.1.0
  5308. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5309. Added ifdef clause for conditional compilation.
  5310. * src/main.cc
  5311. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5312. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  5313. translations. Thanks to all translators.
  5314. * po/ja.po
  5315. * po/ru.po
  5316. * po/uk.po
  5317. * po/zh_CN.po
  5318. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5319. Added the preceding ">>> " before the message "Printing the
  5320. contents of file..." to make the output more readable.
  5321. * src/main.cc
  5322. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5323. Added try-catch block in the loop in showFiles() to continue the
  5324. operation even if the exception occurred in one file.
  5325. * src/main.cc (showFiles)
  5326. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5327. Made messages in showFiles() translatable.
  5328. * po/aria2.pot
  5329. * src/main.cc
  5330. * src/message.h
  5331. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5332. Print the contents of Torrent/Metalink files are printed without
  5333. -T/-M options.
  5334. * src/main.cc
  5335. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5336. Escaped '--' with '\--'
  5337. * README
  5338. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5339. Updated "How to build" section in README. Mentioned about
  5340. --with-ca-bundle compile option.
  5341. * README
  5342. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5343. Bump up version number to 1.1.0.
  5344. * configure.ac
  5345. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5346. Added a note for --dht-listen-port option.
  5347. * doc/aria2c.1.txt
  5348. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5349. Update doc for --realtime-chunk-checksum option.
  5350. * doc/aria2c.1.txt
  5351. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5352. Update doc for --realtime-chunk-checksum option.
  5353. * src/usage_text.h
  5354. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5355. Updated French, Japanese, Russian and Ukrainian translations.
  5356. Thanks to all translators.
  5357. * po/fr.po
  5358. * po/ja.po
  5359. * po/ru.po
  5360. * po/uk.po
  5361. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5362. Renamed aria2c.pot to aria2.pot
  5363. * po/aria2.pot
  5364. * po/aria2c.pot: Removed.
  5365. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5366. Removed MetaEntry.h
  5367. * src/Makefile.am
  5368. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5369. Rename file by appending digits if a local file exists and its
  5370. file size is larger than that of remote file with --continue
  5371. option. The old implementation just throws exception in such case.
  5372. * src/RequestGroup.cc
  5373. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5374. Fixed the bug that download progress summary is not printed in the
  5375. interval specified by the option.
  5376. * src/ConsoleStatCalc.cc
  5377. * src/ConsoleStatCalc.h
  5378. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5379. Fixed compiler warning
  5380. * src/Cookie.cc
  5381. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5382. Fixed the cookie implementation based on RFC2965.
  5383. Now if a value in domain field is not started with dot, then
  5384. prepend dot. That means a cookie with domain=sf.net is sent to
  5385. wiki.sf.net.
  5386. * src/Cookie.cc
  5387. * test/CookieParserTest.cc
  5388. * test/CookieStorageTest.cc
  5389. * test/CookieTest.cc
  5390. * test/NsCookieParserTest.cc
  5391. * test/Sqlite3MozCookieParserTest.cc
  5392. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5393. Fixed the bug that causes corrupted downloads if HTTP pipelining
  5394. is enabled and the server doesn't support keep-alive.
  5395. * src/AbstractCommand.cc
  5396. * src/DownloadCommand.cc
  5397. * src/HttpDownloadCommand.cc
  5398. * src/HttpDownloadCommand.h
  5399. * src/HttpResponseCommand.cc
  5400. * src/Request.cc
  5401. * src/Request.h
  5402. * test/RequestTest.cc
  5403. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5404. Removed Dictionary/List/Data and its related classes.
  5405. * src/BencodeVisitor.cc: Removed.
  5406. * src/BencodeVisitor.h: Removed.
  5407. * src/Data.cc: Removed.
  5408. * src/Data.h: Removed.
  5409. * src/Dictionary.cc: Removed.
  5410. * src/Dictionary.h: Removed.
  5411. * src/List.cc: Removed.
  5412. * src/List.h: Removed.
  5413. * src/Makefile.am
  5414. * src/MetaEntry.h: Removed.
  5415. * src/MetaEntryVisitor.h: Removed.
  5416. * src/MetaFileUtil.cc: Removed.
  5417. * src/MetaFileUtil.h: Removed.
  5418. * test/BencodeVisitorTest.cc: Removed.
  5419. * test/DataTest.cc: Removed.
  5420. * test/DictionaryTest.cc: Removed.
  5421. * test/ListTest.cc: Removed.
  5422. * test/Makefile.am
  5423. * test/MetaFileUtilTest.cc: Removed.
  5424. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5425. Removed include of MetaEntry.h
  5426. * test/DHTMessageTrackerEntryTest.cc
  5427. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5428. Use BDE instead of Dictionary/List/Data.
  5429. * src/AnnounceList.cc
  5430. * src/AnnounceList.h
  5431. * test/AnnounceListTest.cc
  5432. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5433. Use BDE instead of Dictionary/List/Data.
  5434. * src/DHTAbstractMessage.cc
  5435. * src/DHTAbstractMessage.h
  5436. * src/DHTAnnouncePeerMessage.cc
  5437. * src/DHTAnnouncePeerMessage.h
  5438. * src/DHTAnnouncePeerReplyMessage.cc
  5439. * src/DHTAnnouncePeerReplyMessage.h
  5440. * src/DHTFindNodeMessage.cc
  5441. * src/DHTFindNodeMessage.h
  5442. * src/DHTFindNodeReplyMessage.cc
  5443. * src/DHTFindNodeReplyMessage.h
  5444. * src/DHTGetPeersMessage.cc
  5445. * src/DHTGetPeersMessage.h
  5446. * src/DHTGetPeersReplyMessage.cc
  5447. * src/DHTGetPeersReplyMessage.h
  5448. * src/DHTMessageFactory.h
  5449. * src/DHTMessageFactoryImpl.cc
  5450. * src/DHTMessageFactoryImpl.h
  5451. * src/DHTMessageReceiver.cc
  5452. * src/DHTMessageTracker.cc
  5453. * src/DHTMessageTracker.h
  5454. * src/DHTPingMessage.cc
  5455. * src/DHTPingMessage.h
  5456. * src/DHTPingReplyMessage.cc
  5457. * src/DHTPingReplyMessage.h
  5458. * src/DHTQueryMessage.cc
  5459. * src/DHTQueryMessage.h
  5460. * src/DHTResponseMessage.cc
  5461. * src/DHTResponseMessage.h
  5462. * test/DHTAnnouncePeerMessageTest.cc
  5463. * test/DHTAnnouncePeerReplyMessageTest.cc
  5464. * test/DHTFindNodeMessageTest.cc
  5465. * test/DHTFindNodeReplyMessageTest.cc
  5466. * test/DHTGetPeersMessageTest.cc
  5467. * test/DHTGetPeersReplyMessageTest.cc
  5468. * test/DHTMessageFactoryImplTest.cc
  5469. * test/DHTMessageTrackerTest.cc
  5470. * test/DHTPingMessageTest.cc
  5471. * test/DHTPingReplyMessageTest.cc
  5472. * test/MockDHTMessageFactory.h
  5473. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5474. Added tests the case where length < 0 is specified.
  5475. * test/BencodeTest.cc
  5476. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5477. Fixed memory leak in decoderawstring()
  5478. * src/bencode.cc
  5479. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5480. Added missing #ifdef guard. Added uc() function for String and
  5481. removeKey() for Dict.
  5482. * src/bencode.cc
  5483. * src/bencode.h
  5484. * test/BencodeTest.cc
  5485. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5486. Use BDE instead of Dictionary/List/Data.
  5487. * src/HandshakeExtensionMessage.cc
  5488. * src/HandshakeExtensionMessage.h
  5489. * test/HandshakeExtensionMessageTest.cc
  5490. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5491. Added --max-overall-upload-limit option. This option limits the
  5492. overall upload speed. Stated in help message that the existing
  5493. --max-upload-limit option limits the upload speed per each
  5494. torrent. Man page is also updated.
  5495. * doc/aria2c.1.txt
  5496. * src/DefaultBtMessageDispatcher.cc
  5497. * src/DefaultBtMessageDispatcher.h
  5498. * src/OptionHandlerFactory.cc
  5499. * src/PeerInteractionCommand.cc
  5500. * src/option_processing.cc
  5501. * src/prefs.cc
  5502. * src/prefs.h
  5503. * src/usage_text.h
  5504. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5505. Use BDE instead of Dictionary/List/Data classes.
  5506. * src/CompactPeerListProcessor.cc
  5507. * src/CompactPeerListProcessor.h
  5508. * src/DefaultBtAnnounce.cc
  5509. * src/DefaultBtContext.cc
  5510. * src/DefaultBtContext.h
  5511. * src/DefaultPeerListProcessor.cc
  5512. * src/DefaultPeerListProcessor.h
  5513. * src/DelegatingPeerListProcessor.cc
  5514. * src/DelegatingPeerListProcessor.h
  5515. * src/PeerListProcessor.h
  5516. * src/UTPexExtensionMessage.cc
  5517. * src/Util.h
  5518. * src/message.h
  5519. * test/DefaultBtContextTest.cc
  5520. * test/DefaultPeerListProcessorTest.cc
  5521. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5522. Added bencode helper functions and BDE class.
  5523. They will replace MetaFileUtil and Dictionary/List/Data classes.
  5524. * src/Makefile.am
  5525. * src/bencode.cc
  5526. * src/bencode.h
  5527. * test/BencodeTest.cc
  5528. * test/Makefile.am
  5529. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5530. Fixed the bug that bad URI is sent to the tracker when the announe
  5531. URI in torrent file includes query.
  5532. * src/DefaultBtAnnounce.cc
  5533. * test/DefaultBtAnnounceTest.cc
  5534. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5535. Added Option::blank().
  5536. Use !Option::blank(name) instead of Option::defined(name) for
  5537. the options that take filename.
  5538. * src/MultiUrlRequestInfo.cc
  5539. * src/Option.cc
  5540. * src/Option.h
  5541. * src/main.cc
  5542. * src/option_processing.cc
  5543. * test/OptionTest.cc
  5544. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5545. Documented the default value of --check-certificate option in man
  5546. page.
  5547. * doc/aria2c.1.txt
  5548. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5549. Enabled --check-certificate by default. Added compile
  5550. time(configure) option --with-ca-bundle to specify CA bundle.
  5551. Warn if --check-certificate=true and --ca-certificate is not
  5552. specified or loading CA certificate is failed.
  5553. * configure.ac
  5554. * src/MultiUrlRequestInfo.cc
  5555. * src/OptionHandlerFactory.cc
  5556. * src/message.h
  5557. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5558. Mentioned https tag in help option.
  5559. * doc/aria2c.1.txt
  5560. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5561. Added `https' tag to help option category. Added https tag to
  5562. --ca-certificate, --certificate, --check-certificate and
  5563. --private-key option.
  5564. * src/OptionHandlerFactory.cc
  5565. * src/help_tags.h
  5566. * src/option_processing.cc
  5567. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5568. Changed the package name from `aria2c' to `aria2' in order to fix
  5569. the packaging issue in Debian and Fedora. The name of the
  5570. executable is not changed.
  5571. * configure.ac
  5572. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5573. Fixed typos
  5574. * src/usage_text.h
  5575. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5576. Fixed typos and updated doc.
  5577. * README
  5578. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5579. Fixed typos
  5580. * doc/aria2c.1.txt
  5581. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5582. Fixed typos
  5583. * src/usage_text.h
  5584. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5585. Print a message when no files to download.
  5586. * src/download_helper.cc
  5587. * src/main.cc
  5588. * src/message.h
  5589. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5590. RFC3986 complied Percent-Encoding(urlencode).
  5591. Use uppercase hexadecimal digits for encoded text instead of lowercase
  5592. ones.
  5593. * src/Request.cc
  5594. * src/Util.cc
  5595. * src/Util.h
  5596. * test/BtHandshakeMessageTest.cc
  5597. * test/DefaultBtAnnounceTest.cc
  5598. * test/DefaultBtContextTest.cc
  5599. * test/RequestTest.cc
  5600. * test/UtilTest.cc
  5601. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5602. Fixed the bug that prevents aria2 from downloading 0-length files
  5603. via HTTP/FTP.
  5604. * src/DefaultBtContext.cc
  5605. * src/DefaultBtContext.h
  5606. * src/DownloadContext.h
  5607. * src/FtpNegotiationCommand.cc
  5608. * src/HttpResponseCommand.cc
  5609. * src/HttpResponseCommand.h
  5610. * src/RequestGroup.cc
  5611. * src/SingleFileDownloadContext.cc
  5612. * src/SingleFileDownloadContext.h
  5613. * test/BtPostDownloadHandlerTest.cc
  5614. * test/MetalinkPostDownloadHandlerTest.cc
  5615. * test/MockBtContext.h
  5616. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5617. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  5618. * src/option_processing.cc
  5619. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5620. Applied aria2-1.0.1-mingw.patch.
  5621. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  5622. mingw.
  5623. Collected 4th and 5th argument types for getsockopt and setsockopt.
  5624. * src/SocketCore.cc
  5625. * src/a2netcompat.h
  5626. * test/SocketCoreTest.cc
  5627. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5628. * Release 1.0.1
  5629. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5630. Updated Ukrainian and Norwegian Nynorsk translations.
  5631. Thanks to all translators.
  5632. * po/nn.po
  5633. * po/uk.po
  5634. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5635. Don't show download result when -S option is used.
  5636. * src/main.cc
  5637. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5638. Bump up version number to 1.0.1
  5639. * configure.ac
  5640. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5641. Closed files after the test cases in MultiDiskWriterTest::
  5642. testResetDiskWriterEntries(). This will fix the unit test error
  5643. in mingw32 build.
  5644. * test/MultiDiskWriterTest.cc
  5645. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5646. Use HEAD method to get file size from HTTP server for segmented
  5647. downloading.
  5648. The request to the BitTorrent Tracker always uses GET method because
  5649. the response of the tracker is small and it doesn't need segmented
  5650. download.
  5651. * src/FtpNegotiationCommand.cc
  5652. * src/HttpRequest.cc
  5653. * src/HttpResponseCommand.cc
  5654. * src/HttpSkipResponseCommand.cc
  5655. * src/RequestGroup.cc
  5656. * src/RequestGroup.h
  5657. * src/TrackerWatcherCommand.cc
  5658. * test/HttpRequestTest.cc
  5659. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5660. Fixed the bug that causes floating exception when -T option is used and
  5661. no URIs are given.
  5662. * src/download_helper.cc
  5663. * test/DownloadHelperTest.cc
  5664. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  5665. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  5666. errors in MinGW:
  5667. Closed file after saving server stats (RequestGroupMan.cc)
  5668. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  5669. Ignored case & handled 2-digit years (strptime.c)
  5670. Added missing suseconds_t definition (a2time.h)
  5671. Fixed socket CLOSE() define (SocketCore.cc)
  5672. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  5673. Changed utime() test values from x000 to x00000 as MinGW failed on
  5674. values less than timezone offset from Unix epoch
  5675. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  5676. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  5677. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  5678. handle negative dates (CookieParserTest.cc)
  5679. * src/a2time.h
  5680. * src/FtpConnection.cc
  5681. * src/RequestGroupMan.cc
  5682. * src/SocketCore.cc
  5683. * src/strptime.c
  5684. * test/CookieParserTest.cc
  5685. * test/CopyDiskAdaptorTest.cc
  5686. * test/FileTest.cc
  5687. * test/FtpConnectionTest.cc
  5688. * test/MultiDiskAdaptorTest.cc
  5689. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5690. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  5691. * doc/aria2c.1.txt
  5692. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5693. * Release 1.0.0
  5694. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5695. Added '~' to reserved characters.
  5696. * src/Util.cc
  5697. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5698. Do not urlencode Request::url in setUrl() because we want unmodified
  5699. URL using Request::getUrl()
  5700. * src/Request.cc
  5701. * src/Request.h
  5702. * test/RequestTest.cc
  5703. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5704. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  5705. Thanks to all translators.
  5706. * po/bg.po
  5707. * po/fr.po
  5708. * po/ja.po
  5709. * po/ru.po
  5710. * po/uk.po
  5711. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5712. Bump up version number to 1.0.0
  5713. * configure.ac
  5714. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5715. Added nosqlite3 build to build_test.sh.
  5716. Renamed noxml as expat.
  5717. * build_test.sh
  5718. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5719. Updated INPUT FILE section.
  5720. * doc/aria2c.1.txt
  5721. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5722. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  5723. on big endian systems because test .aria2 files are made for little
  5724. endian systems.
  5725. * test/DefaultBtProgressInfoFileTest.cc
  5726. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5727. Dropped ares support.
  5728. * README
  5729. * configure.ac
  5730. * m4/libares.m4: Removed.
  5731. * src/AsyncNameResolver.cc
  5732. * src/Makefile.am
  5733. * test/Makefile.am
  5734. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5735. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  5736. Removed const qualifier from DiskWriter::size().
  5737. * src/AbstractDiskWriter.cc
  5738. * src/AbstractDiskWriter.h
  5739. * src/ByteArrayDiskWriter.cc
  5740. * src/ByteArrayDiskWriter.h
  5741. * src/DiskWriter.h
  5742. * test/ByteArrayDiskWriterTest.cc
  5743. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5744. Fixed the bug that causes segmentation fault/bus error during executing
  5745. choking algorithm while seeding. This is caused by improper
  5746. implementation of compare function which returns inconsistent results
  5747. depending on the timing of last unchoke.
  5748. * src/BtSeederStateChoke.cc
  5749. * src/BtSeederStateChoke.h
  5750. * src/DefaultPeerStorage.cc
  5751. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5752. Removed TODO
  5753. * TODO
  5754. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5755. Added a section that explains how to pass argument to options that
  5756. takes optional arguments with its short form.
  5757. * doc/aria2c.1.txt
  5758. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5759. Added -u for the short form of --max-upload-limit option.
  5760. * doc/aria2c.1.txt
  5761. * src/option_processing.cc
  5762. * src/usage_text.h
  5763. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5764. Added -V for the short form of --check-integrity option.
  5765. Now the argument of --check-integrity option is optional:
  5766. if it is omitted, it is evaluated as true.
  5767. * doc/aria2c.1.txt
  5768. * src/option_processing.cc
  5769. * src/usage_text.h
  5770. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5771. Made the default value of --ftp-pasv option set to true and it can take
  5772. true/false values.
  5773. * src/OptionHandlerFactory.cc
  5774. * src/option_processing.cc
  5775. * src/usage_text.h
  5776. * doc/aria2c.1.txt
  5777. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5778. Given custom random number generator to std::random_shuffle.
  5779. * src/AnnounceList.cc
  5780. * src/BtLeecherStateChoke.cc
  5781. * src/BtSeederStateChoke.cc
  5782. * src/DefaultBtRequestFactory.cc
  5783. * src/MetalinkEntry.cc
  5784. * src/RarestPieceSelector.cc
  5785. * src/SimpleRandomizer.cc
  5786. * src/SimpleRandomizer.h
  5787. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5788. Now the default value of --enable-direct-io is true.
  5789. * src/OptionHandlerFactory.cc
  5790. * doc/aria2c.1.txt
  5791. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5792. Erase peer before executing onReturningPeer and onErasingPeer
  5793. because choking algorithm called from onReturningPeer doesn't
  5794. like erasing peer in the active peer list.
  5795. * src/DefaultPeerStorage.cc
  5796. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5797. Instead of creating special filename in createDownloadResult() if
  5798. inMemoryDownload() is true, now it is done in getFilePath().
  5799. * src/RequestGroup.cc
  5800. * test/RequestGroupTest.cc
  5801. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5802. Print "[MEMORY]" and filename if a file is not saved in disk and just
  5803. processed in memory. This is the fix for previous comment out.
  5804. * src/MemoryBufferPreDownloadHandler.cc
  5805. * src/RequestGroup.cc
  5806. * src/RequestGroup.h
  5807. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5808. Commented out the code which sets virtual directory path "[MEMORY]"
  5809. propagate directory to store to following RequestGroup.
  5810. * src/MemoryBufferPreDownloadHandler.cc
  5811. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5812. Bump up version number to 1.0.0b
  5813. * configure.ac
  5814. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5815. Added input_uris.txt to EXTRA_DIST
  5816. * test/Makefile.am
  5817. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5818. Removed PeerObject.h from Makefile.am
  5819. * src/Makefile.am
  5820. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5821. Avoid slow seeding
  5822. * src/PeerInteractionCommand.cc
  5823. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5824. Updated usage for -i option.
  5825. * src/usage_text.h (TEXT_INPUT_FILE)
  5826. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5827. Added INPUT FILE section to man page.
  5828. Escaped fake URLs.
  5829. * doc/aria2c.1.txt
  5830. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5831. Fixed wrong note position for -o option.
  5832. * doc/aria2c.1.txt
  5833. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5834. Fixed compile error without SSL/XML library.
  5835. * src/DefaultBtProgressInfoFile.cc
  5836. * src/DefaultBtProgressInfoFile.h
  5837. * src/FileMetalinkParserState.cc
  5838. * src/RequestGroup.h
  5839. * src/SocketCore.cc
  5840. * src/SocketCore.h
  5841. * src/VerificationMetalinkParserState.cc
  5842. * src/download_helper.h
  5843. * src/main.cc
  5844. * test/DefaultBtProgressInfoFileTest.cc
  5845. * test/DownloadHelperTest.cc
  5846. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5847. Rewritten URI handling functions. They are now provided as a testable
  5848. functions.
  5849. * src/Makefile.am
  5850. * src/RequestGroup.cc
  5851. * src/RequestGroup.h
  5852. * src/download_helper.cc
  5853. * src/download_helper.h
  5854. * src/main.cc
  5855. * test/DownloadHelperTest.cc
  5856. * test/Makefile.am
  5857. * test/input_uris.txt
  5858. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5859. Quickly terminate commands when ctrl-c is pressed.
  5860. * src/DownloadEngine.cc
  5861. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5862. Quickly terminate idle commands when download finished.
  5863. * src/AbstractCommand.cc
  5864. * src/DownloadCommand.cc
  5865. * src/DownloadEngine.cc
  5866. * src/DownloadEngine.h
  5867. * src/SleepCommand.cc
  5868. * src/SleepCommand.h
  5869. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5870. Added the ability to specify output filename and directory in input
  5871. file.
  5872. Additional parameters are added in the following line of URIs
  5873. with proceeding white space(s), 1 parameter in 1 line.
  5874. The parameter names are the same with the command-line option name
  5875. without proceeding "--". Not all the options are available here:
  5876. at the moment, 'dir' and 'out' options are avialable.
  5877. Please note that out option has no effect against Metalink or BitTorrent
  5878. downloads.
  5879. Example input file:
  5880. http://host/foo-1.1.tar.bz2
  5881. out=foo.tar.bz2
  5882. dir=/tmp/downloads
  5883. http://host/thundermonkey-2.0.tar.bz2
  5884. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  5885. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  5886. thundermonkey-2.0.tar.bz2 is saved as
  5887. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  5888. * src/BtPostDownloadHandler.cc
  5889. * src/Metalink2RequestGroup.cc
  5890. * src/Metalink2RequestGroup.h
  5891. * src/MetalinkPostDownloadHandler.cc
  5892. * src/UriListParser.cc
  5893. * src/UriListParser.h
  5894. * src/main.cc
  5895. * test/Metalink2RequestGroupTest.cc
  5896. * test/UriListParserTest.cc
  5897. * test/filelist1.txt
  5898. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5899. Fixed error when SSL library is not found.
  5900. * configure.ac
  5901. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5902. Cross referenced among -s, -C and -j options.
  5903. Updated usage of -C and -s options.
  5904. * src/usage_text.h
  5905. * doc/aria2c.1.txt
  5906. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5907. Fixed bad cast in 32bit platforms.
  5908. * test/DefaultPieceStorageTest.cc
  5909. (DefaultPieceStorageTest::testGetCompletedLength)
  5910. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5911. Fixed unit test fails on 32bit platforms.
  5912. * test/CookieParserTest.cc
  5913. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5914. Show an average download speed in Download results.
  5915. * src/BtFileAllocationEntry.cc
  5916. * src/DefaultPieceStorage.cc
  5917. * src/DownloadContext.cc
  5918. * src/DownloadContext.h
  5919. * src/DownloadResult.h
  5920. * src/RequestGroup.cc
  5921. * src/RequestGroupMan.cc
  5922. * src/StreamFileAllocationEntry.cc
  5923. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5924. Fixed the bug that metalink file is not processed if Content-Type
  5925. field has a paramter.
  5926. * src/HttpResponse.cc
  5927. * src/HttpResponse.h
  5928. * test/HttpResponseTest.cc
  5929. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5930. Removed unused code.
  5931. * src/DefaultBtAnnounce.cc
  5932. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5933. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  5934. the value larger than DefaultPieceStorage::getTotalLength() when
  5935. in flight pieces are involved.
  5936. * src/DefaultPieceStorage.cc
  5937. * test/DefaultPieceStorageTest.cc
  5938. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5939. Bump up version number to 1.0.0a.
  5940. * configure.ac
  5941. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5942. Updated configure.ac
  5943. * configure.ac
  5944. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5945. Added usege for proxy.
  5946. * doc/aria2c.1.txt
  5947. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5948. Added usage for --ca-certificate, --certificate, --private-key and
  5949. --check-certificate options.
  5950. * doc/aria2c.1.txt
  5951. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5952. Updated man page
  5953. * doc/aria2c.1.txt
  5954. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5955. Added --no-proxy option. It receives comman separated hostname or
  5956. domains to which proxy should not be used.
  5957. aria2 honors the environment variable no_proxy to override no-proxy
  5958. value in configuration file. The user can override the environment
  5959. variable no_proxy with --no-proxy command-line option.
  5960. * src/AbstractCommand.cc
  5961. * src/OptionHandlerFactory.cc
  5962. * src/option_processing.cc
  5963. * src/prefs.cc
  5964. * src/prefs.h
  5965. * src/usage_text.h
  5966. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5967. Added the ability to verify peer in SSL/TLS using given CA certificates.
  5968. The CA certificates are specified in --ca-certificate option.
  5969. By default, the verification is disabled. Use --check-certificate
  5970. option to enable it.
  5971. * src/HttpRequestCommand.cc
  5972. * src/LibgnutlsTLSContext.cc
  5973. * src/LibgnutlsTLSContext.h
  5974. * src/LibsslTLSContext.cc
  5975. * src/LibsslTLSContext.h
  5976. * src/MultiUrlRequestInfo.cc
  5977. * src/OptionHandlerFactory.cc
  5978. * src/SocketCore.cc
  5979. * src/SocketCore.h
  5980. * src/a2functional.h
  5981. * src/message.h
  5982. * src/option_processing.cc
  5983. * src/prefs.cc
  5984. * src/prefs.h
  5985. * src/usage_text.h
  5986. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5987. Added client certificate authentication for SSL/TLS.
  5988. Currently a private key must be decrypted for use with aria2.
  5989. If a user accidentally gives encrypted file to aria2 then following
  5990. thing happens:
  5991. If encrypted private key is given to aria2, it behaves differently
  5992. depending on the ssl library it uses. If aria2 built with openssl then
  5993. openssl prompts the user for password. If aria2 build with gnutls then
  5994. aria2 exists with error at start up.
  5995. * src/DownloadEngineFactory.cc
  5996. * src/MultiUrlRequestInfo.cc
  5997. * src/OptionHandlerFactory.cc
  5998. * src/option_processing.cc
  5999. * src/prefs.cc
  6000. * src/prefs.h
  6001. * src/usage_text.h
  6002. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6003. Introduced TLSContext that holds TLS related data that can be shared
  6004. with multiple SSL connections.
  6005. * src/DownloadEngineFactory.cc
  6006. * src/LibgnutlsTLSContext.cc
  6007. * src/LibgnutlsTLSContext.h
  6008. * src/LibsslTLSContext.cc
  6009. * src/LibsslTLSContext.h
  6010. * src/Makefile.am
  6011. * src/SocketCore.cc
  6012. * src/SocketCore.h
  6013. * src/TLSContext.h
  6014. * src/message.h
  6015. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6016. Fixed the bug that the DiskWriter of the first FileEntry whose
  6017. `needsFileAllocation' property is false is not created
  6018. even if it shares a piece with next FileEntry which `requested' property
  6019. is true.
  6020. Fixed the bug that zero-length file is not created if pre file
  6021. allocation is not done.
  6022. * src/MultiDiskAdaptor.cc
  6023. * src/MultiDiskAdaptor.h
  6024. * test/MultiDiskAdaptorTest.cc
  6025. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6026. Added the ability to pool proxy connection.
  6027. The conneciton in FTP with proxy-method=GET is not pooled.
  6028. Proxy-Connection header will not be sent when sending CONNECT method.
  6029. * src/DownloadEngine.cc
  6030. * src/DownloadEngine.h
  6031. * src/FtpFinishDownloadCommand.cc
  6032. * src/FtpInitiateConnectionCommand.cc
  6033. * src/FtpNegotiationCommand.cc
  6034. * src/HttpDownloadCommand.cc
  6035. * src/HttpInitiateConnectionCommand.cc
  6036. * src/HttpRequest.cc
  6037. * src/HttpRequest.h
  6038. * src/HttpResponse.cc
  6039. * src/HttpSkipResponseCommand.cc
  6040. * test/HttpRequestTest.cc
  6041. * test/HttpResponseTest.cc
  6042. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6043. Handle date before epoch.
  6044. To create *bad* Time object, call Time::null().
  6045. * src/CookieParser.cc
  6046. * src/FtpConnection.cc
  6047. * src/FtpConnection.h
  6048. * src/FtpNegotiationCommand.cc
  6049. * src/RequestGroup.cc
  6050. * src/TimeA2.cc
  6051. * src/TimeA2.h
  6052. * test/CookieParserTest.cc
  6053. * test/FtpConnectionTest.cc
  6054. * test/TimeTest.cc
  6055. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6056. Added support for following envrionment variables: http_proxy,
  6057. https_proxy, ftp_proxy and all_proxy.
  6058. Each variable is equivalent to the aria2 option whose name is the
  6059. variable name with '_' replaced with '-'.
  6060. They overrides options specified in aria2.conf file.
  6061. The envrionment variables can be overrode using command-line option.
  6062. * src/option_processing.cc
  6063. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6064. Renamed --http-proxy-method as --proxy-method.
  6065. * src/AbstractCommand.cc
  6066. * src/FtpInitiateConnectionCommand.cc
  6067. * src/HttpInitiateConnectionCommand.cc
  6068. * src/OptionHandlerFactory.cc
  6069. * src/option_processing.cc
  6070. * src/prefs.cc
  6071. * src/prefs.h
  6072. * src/usage_text.h
  6073. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6074. Deprecated --http-proxy-user and --http-proxy-passwd options.
  6075. Added --https-proxy, --ftp-proxy and --all-proxy options.
  6076. Above 3 options and --http-proxy option can handle proxy in URL format
  6077. like: http://user:passwd@host:port.
  6078. If a proxy requires user/password, they must be specified in a URL.
  6079. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  6080. instead.
  6081. * src/AbstractCommand.cc
  6082. * src/AbstractCommand.h
  6083. * src/AbstractProxyRequestCommand.cc
  6084. * src/AbstractProxyRequestCommand.h
  6085. * src/AuthConfigFactory.cc
  6086. * src/AuthConfigFactory.h
  6087. * src/FtpFinishDownloadCommand.cc
  6088. * src/FtpInitiateConnectionCommand.cc
  6089. * src/FtpInitiateConnectionCommand.h
  6090. * src/FtpNegotiationCommand.cc
  6091. * src/FtpTunnelRequestCommand.cc
  6092. * src/FtpTunnelRequestCommand.h
  6093. * src/HttpDownloadCommand.cc
  6094. * src/HttpInitiateConnectionCommand.cc
  6095. * src/HttpInitiateConnectionCommand.h
  6096. * src/HttpProxyRequestCommand.cc
  6097. * src/HttpProxyRequestCommand.h
  6098. * src/HttpRequest.cc
  6099. * src/HttpRequest.h
  6100. * src/HttpRequestCommand.cc
  6101. * src/HttpRequestCommand.h
  6102. * src/HttpSkipResponseCommand.cc
  6103. * src/InitiateConnectionCommand.cc
  6104. * src/InitiateConnectionCommand.h
  6105. * src/OptionHandlerFactory.cc
  6106. * src/OptionHandlerImpl.h
  6107. * src/Request.cc
  6108. * src/option_processing.cc
  6109. * src/prefs.cc
  6110. * src/prefs.h
  6111. * src/usage_text.h
  6112. * test/AuthConfigFactoryTest.cc
  6113. * test/HttpRequestTest.cc
  6114. * test/OptionHandlerTest.cc
  6115. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6116. Execute choking algorithm when unchoked and interested peer is
  6117. disconected.
  6118. * src/DefaultPeerStorage.cc
  6119. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6120. Added testcase for BtNotInterestedMessage from unchoked peer.
  6121. * test/BtNotInterestedMessageTest.cc
  6122. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6123. Execute choking algorithm when BtInterestedMessage arrives from
  6124. unchoked peer.
  6125. * src/BtInterestedMessage.cc
  6126. * src/BtInterestedMessage.h
  6127. * src/DefaultBtMessageFactory.cc
  6128. * test/BtInterestedMessageTest.cc
  6129. * test/MockPeerStorage.h
  6130. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6131. AuthConfigFactory is now part of DownloadEngine.
  6132. * src/AbstractProxyRequestCommand.cc
  6133. * src/AuthConfigFactory.h
  6134. * src/DownloadEngine.cc
  6135. * src/DownloadEngine.h
  6136. * src/FtpConnection.cc
  6137. * src/FtpConnection.h
  6138. * src/FtpNegotiationCommand.cc
  6139. * src/HttpConnection.cc
  6140. * src/HttpRequest.cc
  6141. * src/HttpRequest.h
  6142. * src/HttpRequestCommand.cc
  6143. * src/HttpResponse.cc
  6144. * src/HttpResponseCommand.cc
  6145. * src/HttpSkipResponseCommand.cc
  6146. * src/MultiUrlRequestInfo.cc
  6147. * src/main.cc
  6148. * test/FtpConnectionTest.cc
  6149. * test/HttpRequestTest.cc
  6150. * test/HttpResponseTest.cc
  6151. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6152. Corrected catched exception type.
  6153. * src/ServerStatMan.cc
  6154. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6155. DNSCache is now part of DownloadEngine.
  6156. * src/DNSCache.h
  6157. * src/DownloadEngine.cc
  6158. * src/DownloadEngine.h
  6159. * src/InitiateConnectionCommand.cc
  6160. * src/MultiUrlRequestInfo.cc
  6161. * test/Makefile.am
  6162. * test/Makefile.in
  6163. * test/SimpleDNSCacheTest.cc
  6164. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6165. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  6166. DownloadEngine.
  6167. * src/ActivePeerConnectionCommand.cc
  6168. * src/BtSetup.cc
  6169. * src/CUIDCounter.h
  6170. * src/DHTSetup.cc
  6171. * src/DownloadCommand.cc
  6172. * src/DownloadEngine.cc
  6173. * src/DownloadEngine.h
  6174. * src/DownloadEngineFactory.cc
  6175. * src/FileAllocationDispatcherCommand.cc
  6176. * src/InitiatorMSEHandshakeCommand.cc
  6177. * src/PeerInitiateConnectionCommand.cc
  6178. * src/PeerInteractionCommand.cc
  6179. * src/PeerListenCommand.cc
  6180. * src/RequestGroup.cc
  6181. * src/StreamFileAllocationEntry.cc
  6182. * src/TrackerWatcherCommand.cc
  6183. * src/main.cc
  6184. * test/RequestGroupManTest.cc
  6185. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6186. Implemented commented code in BtSeederStateChoke
  6187. * src/BtSeederStateChoke.cc
  6188. * src/Peer.cc
  6189. * src/Peer.h
  6190. * src/PeerInteractionCommand.cc
  6191. * src/PeerSessionResource.cc
  6192. * src/PeerSessionResource.h
  6193. * test/MockBtMessageDispatcher.h
  6194. * test/PeerSessionResourceTest.cc
  6195. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6196. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  6197. its object.
  6198. * src/AbstractBtMessage.cc
  6199. * src/ActivePeerConnectionCommand.cc
  6200. * src/ActivePeerConnectionCommand.h
  6201. * src/BtContextAwareCommand.cc
  6202. * src/BtContextAwareCommand.h
  6203. * src/BtExtendedMessage.cc
  6204. * src/BtExtendedMessage.h
  6205. * src/BtInterestedMessage.cc
  6206. * src/BtInterestedMessage.h
  6207. * src/BtNotInterestedMessage.cc
  6208. * src/BtNotInterestedMessage.h
  6209. * src/BtRegistry.cc
  6210. * src/BtRegistry.h
  6211. * src/BtSeederStateChoke.cc
  6212. * src/BtSetup.cc
  6213. * src/DHTGetPeersCommand.cc
  6214. * src/DHTGetPeersCommand.h
  6215. * src/DHTPeerAnnounceEntry.cc
  6216. * src/DHTPeerAnnounceEntry.h
  6217. * src/DHTPeerAnnounceStorage.cc
  6218. * src/DHTPeerAnnounceStorage.h
  6219. * src/DHTPeerLookupTask.cc
  6220. * src/DHTPeerLookupTask.h
  6221. * src/DHTSetup.cc
  6222. * src/DHTSetup.h
  6223. * src/DHTTaskFactory.h
  6224. * src/DHTTaskFactoryImpl.cc
  6225. * src/DHTTaskFactoryImpl.h
  6226. * src/DefaultBtAnnounce.cc
  6227. * src/DefaultBtInteractive.cc
  6228. * src/DefaultBtInteractive.h
  6229. * src/DefaultBtMessageDispatcher.cc
  6230. * src/DefaultBtMessageDispatcher.h
  6231. * src/DefaultBtMessageFactory.cc
  6232. * src/DefaultBtMessageFactory.h
  6233. * src/DefaultBtMessageReceiver.cc
  6234. * src/DefaultBtProgressInfoFile.cc
  6235. * src/DefaultBtProgressInfoFile.h
  6236. * src/DefaultBtRequestFactory.cc
  6237. * src/DefaultBtRequestFactory.h
  6238. * src/DefaultExtensionMessageFactory.cc
  6239. * src/DefaultExtensionMessageFactory.h
  6240. * src/DefaultPeerStorage.cc
  6241. * src/DefaultPeerStorage.h
  6242. * src/DownloadEngine.cc
  6243. * src/DownloadEngine.h
  6244. * src/InitiatorMSEHandshakeCommand.cc
  6245. * src/InitiatorMSEHandshakeCommand.h
  6246. * src/MSEHandshake.cc
  6247. * src/MSEHandshake.h
  6248. * src/Makefile.am
  6249. * src/Makefile.in
  6250. * src/PeerChokeCommand.cc
  6251. * src/PeerChokeCommand.h
  6252. * src/PeerInitiateConnectionCommand.cc
  6253. * src/PeerInitiateConnectionCommand.h
  6254. * src/PeerInteractionCommand.cc
  6255. * src/PeerInteractionCommand.h
  6256. * src/PeerObject.h
  6257. * src/PeerReceiveHandshakeCommand.cc
  6258. * src/PeerReceiveHandshakeCommand.h
  6259. * src/ReceiverMSEHandshakeCommand.cc
  6260. * src/RequestGroup.cc
  6261. * src/RequestGroup.h
  6262. * src/RequestGroupMan.cc
  6263. * src/RequestGroupMan.h
  6264. * src/SeedCheckCommand.cc
  6265. * src/SeedCheckCommand.h
  6266. * src/ShareRatioSeedCriteria.h
  6267. * src/SimpleBtMessage.cc
  6268. * src/TrackerWatcherCommand.cc
  6269. * src/TrackerWatcherCommand.h
  6270. * src/UTPexExtensionMessage.cc
  6271. * src/UTPexExtensionMessage.h
  6272. * test/BtCancelMessageTest.cc
  6273. * test/BtChokeMessageTest.cc
  6274. * test/BtExtendedMessageTest.cc
  6275. * test/BtInterestedMessageTest.cc
  6276. * test/BtNotInterestedMessageTest.cc
  6277. * test/BtPieceMessageTest.cc
  6278. * test/BtPortMessageTest.cc
  6279. * test/BtRegistryTest.cc
  6280. * test/BtRejectMessageTest.cc
  6281. * test/BtRequestMessageTest.cc
  6282. * test/DHTPeerAnnounceEntryTest.cc
  6283. * test/DHTPeerAnnounceStorageTest.cc
  6284. * test/DefaultBtMessageDispatcherTest.cc
  6285. * test/DefaultBtMessageFactoryTest.cc
  6286. * test/DefaultBtProgressInfoFileTest.cc
  6287. * test/DefaultBtRequestFactoryTest.cc
  6288. * test/DefaultExtensionMessageFactoryTest.cc
  6289. * test/MSEHandshakeTest.cc
  6290. * test/MockDHTTaskFactory.h
  6291. * test/ShareRatioSeedCriteriaTest.cc
  6292. * test/UTPexExtensionMessageTest.cc
  6293. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6294. Fixed compiler warning.
  6295. * test/UtilTest.cc
  6296. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6297. Treat Cookie object as session cookie if expiry = 0 is given.
  6298. With this change, you can specify session scoped cookies in an external
  6299. file setting expiry value to 0.
  6300. * src/Cookie.cc
  6301. * src/Cookie.h
  6302. * test/CookieParserTest.cc
  6303. * test/CookieStorageTest.cc
  6304. * test/CookieTest.cc
  6305. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6306. Changed signature of DHTMessageFactory::createResponseMessage().
  6307. Removed unused validateIDMatch.
  6308. * src/DHTMessageFactory.h
  6309. * src/DHTMessageFactoryImpl.cc
  6310. * src/DHTMessageFactoryImpl.h
  6311. * src/DHTMessageTracker.cc
  6312. * test/DHTMessageFactoryImplTest.cc
  6313. * test/MockDHTMessageFactory.h
  6314. Dropped DHT message coming from same ID of localhost.
  6315. * src/DHTMessageReceiver.cc
  6316. Rejected adding node whose ID is the same as localhost's.
  6317. * src/DHTRoutingTable.cc
  6318. * test/BtPortMessageTest.cc
  6319. * test/DHTRoutingTableTest.cc
  6320. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6321. Pool connection when redirection occurs with Content-Length = 0.
  6322. * src/HttpSkipResponseCommand.cc
  6323. * src/HttpSkipResponseCommand.h
  6324. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6325. Fixed the bug that causes time out when redirection occurs with
  6326. content-length 0.
  6327. * src/HttpResponseCommand.cc
  6328. * src/HttpSkipResponseCommand.cc
  6329. * src/HttpSkipResponseCommand.h
  6330. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6331. Now each status legends is shown only when it appears in Download
  6332. Result. If Download Result has no item, then status legend will not
  6333. be printed.
  6334. * src/RequestGroupMan.cc
  6335. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6336. Removed duplicate creation of OptionHandlers.
  6337. * src/option_processing.cc
  6338. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6339. Fixed the bug that causes segmentation fault when accessing files which
  6340. don't exist or are not included in --select-file option while
  6341. validating chunk checksum.
  6342. * src/MultiDiskAdaptor.cc
  6343. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6344. Fixed compiler warning.
  6345. * test/UtilTest.cc
  6346. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6347. Included cstdlib. This fixed the compile error with g++-4.3.2.
  6348. * src/IteratableChecksumValidator.cc
  6349. * src/IteratableChunkChecksumValidator.cc
  6350. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6351. * Release 0.16.2
  6352. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6353. Added Serbian translation. Updated Ukrainian translation.
  6354. Thanks to all translators.
  6355. * po/sr.po
  6356. * po/uk.po
  6357. * po/LINGUAS
  6358. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6359. Bump up version number to 0.16.2
  6360. * configure.ac
  6361. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6362. Added length equality test to operator== to drop a piece message
  6363. whose length does not match to the requested one.
  6364. * src/RequestSlot.cc
  6365. * test/DefaultBtMessageDispatcherTest.cc
  6366. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6367. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  6368. recieved.
  6369. In this fix, if a request larger than 16KiB length is received, aria2
  6370. disconnects the peer.
  6371. * src/BtConstants.h
  6372. * src/PeerMessageUtil.cc
  6373. * src/PeerMessageUtil.h
  6374. * test/BtRequestMessageTest.cc
  6375. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6376. * Release 0.16.1
  6377. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6378. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  6379. * doc/aria2c.1.txt
  6380. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6381. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  6382. Updated French, Simplified Chinese and Japanese translations.
  6383. Thanks to all translators.
  6384. en@quot and en@boldquot are also added.
  6385. * po/LINGUAS
  6386. * po/fr.po
  6387. * po/ja.po
  6388. * po/uk.po
  6389. * po/vi.po
  6390. * po/zh_CN.po
  6391. * po/zh_TW.po
  6392. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6393. Bump up version number to 0.16.1.
  6394. * configure.ac
  6395. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6396. Updated README.
  6397. * README
  6398. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6399. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  6400. not to replace '--' with em dash character.
  6401. * doc/aria2c.1.txt
  6402. * doc/makeman
  6403. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6404. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  6405. every SEC seconds.
  6406. * src/DownloadEngineFactory.cc
  6407. * src/OptionHandlerFactory.cc
  6408. * src/option_processing.cc
  6409. * src/usage_text.h
  6410. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6411. Fixed compile warning on linux-amd64
  6412. * src/FtpConnection.cc
  6413. * src/IteratableChunkChecksumValidator.cc
  6414. * src/MultiDiskAdaptor.cc
  6415. Fixed the bug that unit test fails on linux-amd64
  6416. * test/UtilTest.cc
  6417. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6418. Added --dht-file-path option to change the path to dht.dat, which is a
  6419. serialized DHT routing table.
  6420. * src/OptionHandlerFactory.cc
  6421. * src/option_processing.cc
  6422. * src/usage_text.h
  6423. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6424. Fixed possible underflow.
  6425. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  6426. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6427. Fixed the bug that last character in URI is not encoded.
  6428. * src/Request.cc
  6429. * test/RequestTest.cc
  6430. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6431. Fixed the bug that referer header field contains fragment.
  6432. Now Request class removes fragment part of URI and encodes it
  6433. in Request::setUri() and setReferer().
  6434. * src/Request.h
  6435. * src/Request.cc
  6436. * test/RequestTest.cc
  6437. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6438. Added missing m4 macros.
  6439. * m4/cppunit.m4
  6440. * m4/libgcrypt.m4
  6441. * m4/libgnutls-extra.m4
  6442. * m4/libgnutls.m4
  6443. * m4/libxml2.m4
  6444. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6445. Fixed compile error with gcc-4.4(snapshot)
  6446. * src/File.cc
  6447. * src/FtpConnection.cc
  6448. * src/OptionHandlerImpl.h
  6449. * src/Util.cc
  6450. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6451. Removed assert()
  6452. * src/SocketBuffer.cc (SocketBuffer::send)
  6453. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6454. Changed the type of _numNewConnection to unsigned int.
  6455. * src/ActivePeerConnectionCommand.cc
  6456. * src/ActivePeerConnectionCommand.h
  6457. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6458. * Release 0.16.0
  6459. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6460. Updated doc
  6461. * README
  6462. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6463. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  6464. translations. Thanks to all translators.
  6465. * po/bg.po
  6466. * po/de.po
  6467. * po/fr.po
  6468. * po/ja.po
  6469. * po/zh_CN.po
  6470. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6471. Bump up version number to 0.16.0.
  6472. * configure.ac
  6473. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6474. Casted entry->maxConnections to int32_t for std::min<T> with T =
  6475. int32_t.
  6476. Changed the type of count to int32_t.
  6477. * src/Metalink2RequestGroup.cc
  6478. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6479. Added test for Time::elapsed(time_t).
  6480. * test/TimeTest.cc
  6481. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6482. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  6483. Util::difftv() should be used instead.
  6484. * src/TimeA2.cc
  6485. * src/TimeA2.h
  6486. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6487. Made socket for dht connections non-blocking
  6488. * src/DHTAbstractMessage.cc
  6489. * src/DHTAbstractMessage.h
  6490. * src/DHTConnection.h
  6491. * src/DHTConnectionImpl.cc
  6492. * src/DHTConnectionImpl.h
  6493. * src/DHTMessage.h
  6494. * src/DHTMessageDispatcherImpl.cc
  6495. * src/DHTMessageDispatcherImpl.h
  6496. * src/DHTUnknownMessage.cc
  6497. * src/DHTUnknownMessage.h
  6498. * src/SocketCore.cc
  6499. * src/SocketCore.h
  6500. * test/MockDHTMessage.h
  6501. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6502. Changed the type of offset to int.
  6503. * src/ParameterizedStringParser.cc
  6504. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6505. Made getAsInt() return int32_t
  6506. * src/Option.h
  6507. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6508. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  6509. build.
  6510. * configure.ac
  6511. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6512. Use sqlite3_open if sqlite3_open_v2 is not available.
  6513. * src/Sqlite3MozCookieParser.cc
  6514. * src/Sqlite3MozCookieParser.h
  6515. * m4/sqlite3.m4
  6516. * test/Sqlite3MozCookieParserTest.cc
  6517. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6518. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  6519. * src/BtPieceMessage.cc
  6520. * src/DHTPeerAnnounceStorage.cc
  6521. * src/DefaultPieceStorage.cc
  6522. * src/DownloadCommand.cc
  6523. * src/DownloadEngine.cc
  6524. * src/FtpConnection.cc
  6525. * src/PeerConnection.cc
  6526. * src/PeerMessageUtil.cc
  6527. * src/RequestGroup.cc
  6528. * src/RequestGroupMan.cc
  6529. * src/SimpleBtMessage.cc
  6530. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6531. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  6532. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  6533. * src/AbstractDiskWriter.cc
  6534. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6535. Don't set Request::supportsPersistentConnection() in HttpConnection
  6536. since this code is also used in AbstractProxyResponseCommand.
  6537. Moved those code to HttpResponse.
  6538. * src/HttpResponse.cc
  6539. * src/HttpResponse.h
  6540. * src/HttpConnection.cc
  6541. * src/HttpConnection.h
  6542. * src/HttpResponseCommand.cc
  6543. * test/HttpResponseTest.cc
  6544. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6545. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  6546. The configuration is minimum: no torrent, no metalink, so there may be
  6547. other compile error on their code.
  6548. * src/a2netcompat.h
  6549. * src/File.cc
  6550. * src/File.h
  6551. * src/SocketCore.cc
  6552. * src/SocketCore.h
  6553. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6554. Made a socket of incoming peer non-blocking.
  6555. * src/PeerListenCommand.cc
  6556. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6557. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  6558. whole message data is not sent in one send() call.
  6559. * src/BtPieceMessage.cc
  6560. * src/BtPieceMessage.h
  6561. * src/PeerConnection.cc
  6562. * src/PeerConnection.h
  6563. * src/SimpleBtMessage.cc
  6564. * src/SimpleBtMessage.h
  6565. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6566. Fixed the bug that aria2 downloads faster than max-download-limit when
  6567. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  6568. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  6569. , instead of sum of them.
  6570. * src/ActivePeerConnectionCommand.cc
  6571. * src/DefaultBtInteractive.cc
  6572. * src/DownloadCommand.cc
  6573. * src/PeerInteractionCommand.cc
  6574. * src/PeerReceiveHandshakeCommand.cc
  6575. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6576. Fixed the bug that HTTPS download fails.
  6577. * src/AbstractCommand.cc
  6578. * src/AbstractCommand.h
  6579. * src/DownloadCommand.cc
  6580. * src/FtpConnection.cc
  6581. * src/HttpConnection.cc
  6582. * src/HttpRequestCommand.cc
  6583. * src/HttpResponseCommand.cc
  6584. * src/HttpSkipResponseCommand.cc
  6585. * src/MSEHandshake.cc
  6586. * src/PeerConnection.cc
  6587. * src/SocketCore.cc
  6588. * src/SocketCore.h
  6589. Fixed the bug that aria2 doesn't download whole content body and cannot
  6590. reuse connection if chunked transfer encoding and gzip content encoding
  6591. are set.
  6592. * src/DownloadCommand.cc
  6593. * src/HttpSkipResponseCommand.cc
  6594. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6595. Updated man page.
  6596. * doc/aria2c.1.txt
  6597. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6598. When error occurred while aria2 was parsing an .aria2.conf file, print
  6599. the usage of the option that caused error.
  6600. * src/option_processing.cc
  6601. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6602. Fixed compile error on OptionHandlerException
  6603. * src/Makefile.am
  6604. * src/OptionHandlerException.cc
  6605. * src/OptionHandlerException.h
  6606. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6607. Moved message of the error to OptionHandlerException.h
  6608. * src/NameMatchOptionHandler.h
  6609. * src/OptionHandlerException.h
  6610. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6611. When error occurs while aria2 is parsing an command-line option, print
  6612. the usage of the option.
  6613. * src/Makefile.am
  6614. * src/NameMatchOptionHandler.h
  6615. * src/OptionHandlerException.h
  6616. * src/option_processing.cc
  6617. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6618. Reverted previous change.
  6619. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  6620. username is not in URI.
  6621. * src/HttpRequest.cc
  6622. * src/Request.cc
  6623. * test/HttpRequestTest.cc
  6624. * test/RequestTest.cc
  6625. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6626. Now colon is required for username and password in FTP URL, like:
  6627. ftp://username:password@host.
  6628. If colon is not there, aria2 don't parse it as a username. For example,
  6629. aria2 don't retrieve username from ftp://username@host.
  6630. This fix was made in order to login FTP server via non-transparent ftp
  6631. proxy.
  6632. * src/Request.cc
  6633. * test/RequestTest.cc
  6634. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6635. Use netrc for HTTP.
  6636. Now FTP user/password is sent in Authorization header when
  6637. --ftp-via-http-proxy=get is given.
  6638. * src/AuthConfigFactory.cc
  6639. * src/HttpRequest.cc
  6640. * src/HttpRequest.h
  6641. * src/NetrcAuthResolver.cc
  6642. * src/NetrcAuthResolver.h
  6643. * src/OptionHandlerFactory.cc
  6644. * src/option_processing.cc
  6645. * src/prefs.cc
  6646. * src/prefs.h
  6647. * test/AuthConfigFactoryTest.cc
  6648. * test/HttpRequestTest.cc
  6649. * test/NetrcAuthResolverTest.cc
  6650. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6651. Issue PWD command first and get working directory and use it as a prefix
  6652. for CWD command.
  6653. * src/DownloadEngine.cc
  6654. * src/DownloadEngine.h
  6655. * src/FtpConnection.cc
  6656. * src/FtpConnection.h
  6657. * src/FtpFinishDownloadCommand.cc
  6658. * src/FtpInitiateConnectionCommand.cc
  6659. * src/FtpNegotiationCommand.cc
  6660. * src/FtpNegotiationCommand.h
  6661. * test/FtpConnectionTest.cc
  6662. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6663. Removed default user/pass for FTP user/pass, since it should not have
  6664. precedence over netrc configuration by default.
  6665. * src/OptionHandlerFactory.cc
  6666. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6667. Added debug log for socket event.
  6668. * src/AbstractCommand.cc
  6669. * src/PeerAbstractCommand.cc
  6670. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6671. Log microseconds.
  6672. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  6673. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6674. Replaced HelpItem.cc with OptionHandler.cc.
  6675. * po/POTFILES.in
  6676. Updated po files with 'make update-po'
  6677. * po/aria2c.pot
  6678. * po/*.po
  6679. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6680. Removed possible values from the text.
  6681. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  6682. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6683. Removed unused preferences:
  6684. PREF_NO_PREALLOCATION
  6685. PREF_STDOUT_LOG
  6686. PREF_TRACKER_MAX_TRIES
  6687. PREF_DIRECT_DOWNLOAD_TIMEOUT
  6688. PREF_MIN_SEGMENT_SIZE
  6689. * src/option_processing.cc
  6690. * src/prefs.cc
  6691. * src/prefs.h
  6692. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6693. Integrated HelpItem into OptionParser to ease the workload for adding
  6694. new options. Removed default value from usage text.
  6695. * src/HelpItem.cc: Removed.
  6696. * src/HelpItem.h: Removed.
  6697. * src/HelpItemFactory.cc: Removed.
  6698. * src/HelpItemFactory.h: Removed.
  6699. * src/Makefile.am
  6700. * src/Makefile.in
  6701. * src/NameMatchOptionHandler.h
  6702. * src/OptionHandler.cc
  6703. * src/OptionHandler.h
  6704. * src/OptionHandlerFactory.cc
  6705. * src/OptionHandlerImpl.h
  6706. * src/OptionParser.cc
  6707. * src/OptionParser.h
  6708. * src/TagContainer.cc: Removed.
  6709. * src/TagContainer.h: Removed.
  6710. * src/TaggedItem.cc: Removed.
  6711. * src/TaggedItem.h: Removed.
  6712. * src/main.cc
  6713. * src/option_processing.cc
  6714. * src/usage_text.h
  6715. * src/version_usage.cc
  6716. * test/HelpItemTest.cc: Removed.
  6717. * test/Makefile.am
  6718. * test/Makefile.in
  6719. * test/OptionHandlerTest.cc
  6720. * test/OptionParserTest.cc
  6721. * test/TagContainerTest.cc: Removed.
  6722. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6723. Moved `TransferStat stat = ...' to inside the `if' clause.
  6724. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  6725. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6726. Fixed the bug that a block in a piece is requested when same block is
  6727. already requested to the same peer in end game mode.
  6728. * src/BtRequestFactory.h
  6729. * src/DefaultBtInteractive.cc
  6730. * src/DefaultBtRequestFactory.cc
  6731. * src/DefaultBtRequestFactory.h
  6732. * src/DefaultPieceStorage.cc
  6733. * src/DefaultPieceStorage.h
  6734. * src/PieceStorage.h
  6735. * src/UnknownLengthPieceStorage.cc
  6736. * src/UnknownLengthPieceStorage.h
  6737. * test/DefaultBtRequestFactoryTest.cc
  6738. * test/DefaultPieceStorageTest.cc
  6739. * test/MockBtRequestFactory.h
  6740. * test/MockPieceStorage.h
  6741. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6742. Removed _uploadLength and _downloadLength from PeerSessionResource
  6743. and use PeerStat::_sessionUploadLength and
  6744. PeerStat::_sessionDownloadLength.
  6745. * src/PeerSessionResource.cc
  6746. * src/PeerSessionResource.h
  6747. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6748. Fixed the bug that prefixLength of split bucket which doesn't include
  6749. local node ID is incremented.
  6750. * src/DHTBucket.cc
  6751. * src/DHTBucket.h
  6752. * test/DHTBucketTest.cc
  6753. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6754. Added cookies.sqlite to EXTRA_DIST
  6755. * test/Makefile.am
  6756. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6757. Added Turkish translation. Updated French, German, Russian and
  6758. Simplified Chinese translations. Thanks to all translators.
  6759. * po/LINGUAS
  6760. * po/de.po
  6761. * po/fr.po
  6762. * po/ru.po
  6763. * po/tr.po
  6764. * po/zh_CN.po
  6765. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6766. Added deliminating text to the beginning of the log so that one can find
  6767. where the log starts easily.
  6768. * src/main.cc
  6769. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6770. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  6771. to fix compile error when async DNS is not enabled by configuration.
  6772. * src/AbstractCommand.cc
  6773. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6774. If establishing conneciton to a server is failed, then mark error on
  6775. its ServerStat.
  6776. Added the cause of error to log when error event occurred.
  6777. Moved message string to message.h for translation.
  6778. * src/AbstractCommand.cc
  6779. * src/AbstractCommand.h
  6780. * src/FtpNegotiationCommand.cc
  6781. * src/HttpRequestCommand.cc
  6782. * src/PeerAbstractCommand.cc
  6783. * src/message.h
  6784. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6785. Added the function to get error message from socket.
  6786. * src/SocketCore.cc
  6787. * src/SocketCore.h
  6788. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6789. Added convenient method RequestGroupMan::getOrCreateServerStat()
  6790. * src/RequestGroupMan.cc
  6791. * src/RequestGroupMan.h
  6792. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6793. If error event is received in epoll, then abort download immediately.
  6794. * src/AbstractCommand.cc
  6795. * src/Command.cc
  6796. * src/Command.h
  6797. * src/DownloadEngine.cc
  6798. * src/PeerAbstractCommand.cc
  6799. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6800. Added usage message for --uri-selector, --server-stat-of,
  6801. --server-stat-in, --server-stat-timeout options.
  6802. * src/HelpItemFactory.cc
  6803. * src/usage_text.h
  6804. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6805. Added upper limit of FTP response buffer. The current implementation
  6806. uses 4096bytes as a limit.
  6807. * src/FtpConnection.cc
  6808. * src/FtpConnection.h
  6809. * test/FtpConnectionTest.cc
  6810. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6811. Use non-blocking socket for TCP communication to avoid possible
  6812. blocking due to buffer full.
  6813. * src/AbstractProxyRequestCommand.cc
  6814. * src/FtpConnection.cc
  6815. * src/FtpConnection.h
  6816. * src/FtpNegotiationCommand.cc
  6817. * src/FtpNegotiationCommand.h
  6818. * src/HttpConnection.cc
  6819. * src/HttpConnection.h
  6820. * src/HttpRequestCommand.cc
  6821. * src/InitiatorMSEHandshakeCommand.cc
  6822. * src/InitiatorMSEHandshakeCommand.h
  6823. * src/MSEHandshake.cc
  6824. * src/MSEHandshake.h
  6825. * src/Makefile.am
  6826. * src/PeerConnection.cc
  6827. * src/PeerConnection.h
  6828. * src/PeerInteractionCommand.cc
  6829. * src/PeerListenCommand.cc
  6830. * src/ReceiverMSEHandshakeCommand.cc
  6831. * src/ReceiverMSEHandshakeCommand.h
  6832. * src/SocketBuffer.cc
  6833. * src/SocketBuffer.h
  6834. * src/SocketCore.cc
  6835. * src/SocketCore.h
  6836. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6837. Call setStatusRealtime() in constructor.
  6838. * src/RealtimeCommand.cc
  6839. * src/RealtimeCommand.h
  6840. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6841. Call Download::setNoWait(true) to execute newly created command without
  6842. a pause.
  6843. * src/AbstractCommand.cc
  6844. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6845. Added --max-file-not-found=NUM option. If aria2 receives `file not
  6846. found' error from HTTP/FTP server NUM times without getting single
  6847. bytes of data, then force the download to fail.
  6848. Basically aria2 tris all URIs available. So if long list of URIs are
  6849. specified in Metalink, then aria2 will take a long time to fail
  6850. eventually if all URIs are outdated. This option eases this situation
  6851. to limit the number of servers to try.
  6852. * src/FtpNegotiationCommand.cc
  6853. * src/HelpItemFactory.cc
  6854. * src/HttpResponseCommand.cc
  6855. * src/OptionHandlerFactory.cc
  6856. * src/PeerStat.h
  6857. * src/RequestGroup.cc
  6858. * src/RequestGroup.h
  6859. * src/SegmentMan.cc
  6860. * src/SegmentMan.h
  6861. * src/option_processing.cc
  6862. * src/prefs.cc
  6863. * src/prefs.h
  6864. * src/usage_text.h
  6865. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6866. Fixed the bug that bulkReceiveResponse() reads all received data as a
  6867. response even if more than one response is in it.
  6868. * src/FtpConnection.cc
  6869. * src/FtpConnection.h
  6870. * test/FtpConnectionTest.cc
  6871. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6872. Merged from stable-0.15
  6873. * m4/libcares.m4
  6874. Use pkg-config
  6875. * m4/sqlite3.m4
  6876. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6877. Removed unnecessary if statement.
  6878. * src/DefaultPieceStorage.cc (initPieceStorage)
  6879. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6880. Added --connect-timeout option to specify connect timeout in seconds.
  6881. This option is in effect for HTTP/FTP/proxy server. The timeout for
  6882. connecting to BitTorrent peer is not controlled by this option.
  6883. * src/AbstractProxyRequestCommand.cc
  6884. * src/FtpNegotiationCommand.cc
  6885. * src/HelpItemFactory.cc
  6886. * src/HttpRequestCommand.cc
  6887. * src/OptionHandlerFactory.cc
  6888. * src/option_processing.cc
  6889. * src/prefs.cc
  6890. * src/prefs.h
  6891. * src/usage_text.h
  6892. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6893. Added help message for -R option.
  6894. * src/HelpItemFactory.cc
  6895. * src/usage_text.h
  6896. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6897. Added the message that the time is in local time zone.
  6898. * src/RequestGroup.cc
  6899. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6900. Implemented the ability to get timestamp from remote FTP server using
  6901. MDTM command described in RFC3659.
  6902. * src/FtpConnection.cc
  6903. * src/FtpConnection.h
  6904. * src/FtpNegotiationCommand.cc
  6905. * src/FtpNegotiationCommand.h
  6906. * test/FtpConnectionTest.cc
  6907. * test/Makefile.am
  6908. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6909. Implemented the ability to get timestamp from remote HTTP server and
  6910. apply it to local file. To enable this feature, --remote-time option
  6911. is added. No usage text has been written yet.
  6912. If several servers returns difference timestamp, then aria2 uses latest
  6913. one.
  6914. * src/CopyDiskAdaptor.cc
  6915. * src/CopyDiskAdaptor.h
  6916. * src/DirectDiskAdaptor.cc
  6917. * src/DirectDiskAdaptor.h
  6918. * src/DiskAdaptor.h
  6919. * src/File.cc
  6920. * src/File.h
  6921. * src/HttpHeader.cc
  6922. * src/HttpHeader.h
  6923. * src/HttpResponse.cc
  6924. * src/HttpResponse.h
  6925. * src/HttpResponseCommand.cc
  6926. * src/HttpResponseCommand.h
  6927. * src/MultiDiskAdaptor.cc
  6928. * src/MultiDiskAdaptor.h
  6929. * src/OptionHandlerFactory.cc
  6930. * src/RequestGroup.cc
  6931. * src/RequestGroup.h
  6932. * src/RequestGroupMan.cc
  6933. * src/option_processing.cc
  6934. * src/prefs.cc
  6935. * src/prefs.h
  6936. * test/CopyDiskAdaptorTest.cc
  6937. * test/FileTest.cc
  6938. * test/Makefile.am
  6939. * test/Makefile.in
  6940. * test/MultiDiskAdaptorTest.cc
  6941. * test/TestUtil.cc
  6942. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6943. Fixed the bug that DiskWriterEntry is not created when its
  6944. FileEntry.isRequested() is false and it doesn't share a piece with
  6945. other FileEntries that are requested. This bug causes segmentation fault
  6946. in the end.
  6947. * src/MultiDiskAdaptor.cc
  6948. * src/MultiDiskAdaptor.h
  6949. * src/MultiFileAllocationIterator.cc
  6950. * test/MultiDiskAdaptorTest.cc
  6951. * test/MultiFileAllocationIteratorTest.cc
  6952. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6953. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  6954. called if the number of file entries are greater than max open files.
  6955. * src/AbstractSingleDiskAdaptor.cc
  6956. * src/AbstractSingleDiskAdaptor.h
  6957. * src/DiskAdaptor.h
  6958. * src/MultiDiskAdaptor.cc
  6959. * src/MultiDiskAdaptor.h
  6960. * test/MultiDiskAdaptorTest.cc
  6961. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6962. Added a constuctor that receives struct timeval.
  6963. Added operator<.
  6964. * src/TimeA2.cc
  6965. * src/TimeA2.h
  6966. * test/TimeTest.cc
  6967. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6968. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  6969. * src/CookieParser.cc
  6970. * test/CookieParserTest.cc
  6971. * test/HttpResponseTest.cc
  6972. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6973. Implmented the functions to parse date.
  6974. * src/TimeA2.cc
  6975. * src/TimeA2.h
  6976. * test/TimeTest.cc
  6977. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6978. Added "Firefox3 Cookie" feature to FeatureConfig
  6979. * src/FeatureConfig.cc
  6980. * src/FeatureConfig.h
  6981. * test/FeatureConfigTest.cc
  6982. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6983. Bump up version number to 0.16.0b
  6984. * configure.ac
  6985. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6986. Use pkg-config if is is available.
  6987. * m4/openssl.m4
  6988. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6989. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  6990. * src/BtAnnounce.h
  6991. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6992. If an error occurred with a URI, remove identical URI from remaining
  6993. URI list because it is likely that same error occurred in the end and it
  6994. is waste of time.
  6995. * src/AbstractCommand.cc
  6996. * src/RequestGroup.cc
  6997. * src/RequestGroup.h
  6998. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6999. Removed wrong comment.
  7000. * src/DefaultPeerStorage.cc
  7001. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7002. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  7003. Added return value of getpid() to argument of srand() to achieve more
  7004. randomized value.
  7005. * src/SimpleRandomizer.cc
  7006. * src/SimpleRandomizer.h
  7007. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7008. Contact tracker frequently when the number of connections are 0 and
  7009. download is not finished yet.
  7010. * src/ActivePeerConnectionCommand.cc
  7011. * src/BtAnnounce.h
  7012. * src/DefaultBtAnnounce.cc
  7013. * src/DefaultBtAnnounce.h
  7014. * test/MockBtAnnounce.h
  7015. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7016. Moved threshold values to UTPexExtensionMessage.
  7017. * src/DefaultBtInteractive.cc
  7018. * src/Peer.cc
  7019. * src/Peer.h
  7020. * src/UTPexExtensionMessage.cc
  7021. * src/UTPexExtensionMessage.h
  7022. * test/UTPexExtensionMessageTest.cc
  7023. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7024. Added _incoming member to Peer class and made it true if the peer
  7025. initiated connection. Don't add those peer to UTPex message.
  7026. If extended handshake is received, assign _incoming to false.
  7027. * src/DefaultBtInteractive.cc
  7028. * src/HandshakeExtensionMessage.cc
  7029. * src/Peer.cc
  7030. * src/Peer.h
  7031. * src/PeerListenCommand.cc
  7032. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7033. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  7034. Encoding Decoder. Removed size threshold for turning off on the fly
  7035. inflation because resulting file may or may not be inflated depending
  7036. on the file size and I think it is not expected by users.
  7037. This change fixes segmentation fault when Metalink file contains gzipped
  7038. file and its filesize is provided.
  7039. * src/HttpResponseCommand.cc
  7040. * src/HttpResponseCommand.h
  7041. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7042. Made Cookie immutable.
  7043. * src/Cookie.cc
  7044. * src/Cookie.h
  7045. * src/CookieParser.cc
  7046. * src/CookieParser.h
  7047. * src/CookieStorage.cc
  7048. * test/CookieParserTest.cc
  7049. * test/CookieStorageTest.cc
  7050. * test/NsCookieParserTest.cc
  7051. * test/Sqlite3MozCookieParserTest.cc
  7052. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7053. Removed CookieBox, CookieBoxFactory.
  7054. * src/CookieBox.cc
  7055. * src/CookieBox.h
  7056. * src/CookieBoxFactory.cc
  7057. * src/CookieBoxFactory.h
  7058. * src/Makefile.am
  7059. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7060. Use CookieStorage class instead of CookieBox class.
  7061. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  7062. * src/AbstractProxyRequestCommand.cc
  7063. * src/CookieStorage.cc
  7064. * src/DownloadEngine.cc
  7065. * src/DownloadEngine.h
  7066. * src/HttpConnection.cc
  7067. * src/HttpConnection.h
  7068. * src/HttpRequest.cc
  7069. * src/HttpRequest.h
  7070. * src/HttpRequestCommand.cc
  7071. * src/HttpResponse.cc
  7072. * src/HttpResponseCommand.cc
  7073. * src/HttpSkipResponseCommand.cc
  7074. * src/Makefile.am
  7075. * src/MultiUrlRequestInfo.cc
  7076. * src/Request.cc
  7077. * src/Request.h
  7078. * src/main.cc
  7079. * test/AllTest.cc
  7080. * test/CookieStorageTest.cc
  7081. * test/CookieTest.cc
  7082. * test/HttpRequestTest.cc
  7083. * test/HttpResponseTest.cc
  7084. * test/Makefile.am
  7085. * test/NsCookieParserTest.cc
  7086. * test/Sqlite3MozCookieParserTest.cc
  7087. * test/nscookietest.txt
  7088. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7089. Updated
  7090. * test/Cookies.sqlite
  7091. * test/nscookietest.txt
  7092. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7093. Added tests for CookieStorage::load()
  7094. * test/CookieStorageTest.cc
  7095. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7096. Added CookieStorage class which is based on RFC2109 and manages cookies
  7097. more strictly than CookieBox and CookieBoxFactory class.
  7098. * src/CookieStorage.cc
  7099. * src/CookieStorage.h
  7100. * src/Cookie.cc
  7101. * src/Cookie.h
  7102. * test/CookieStorageTest.cc
  7103. * test/CookieTest.cc
  7104. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7105. Fixed the bug that commands are created more than the number of pieces.
  7106. * src/RequestGroup.cc
  7107. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7108. Fixed infinite loop bug in FTP when SIZE command failed.
  7109. * src/FtpNegotiationCommand.cc
  7110. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7111. Removed DirectDiskAdaptorTest.h
  7112. * test/Makefile.am
  7113. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7114. Fixed chunk checksum validation cannot detect trailing garbage data.
  7115. BUG#2074141
  7116. * src/AbstractSingleDiskAdaptor.cc
  7117. * src/AbstractSingleDiskAdaptor.h
  7118. * src/CheckIntegrityEntry.cc
  7119. * src/CheckIntegrityEntry.h
  7120. * src/DiskAdaptor.h
  7121. * src/MultiDiskAdaptor.cc
  7122. * src/MultiDiskAdaptor.h
  7123. * src/RequestGroup.cc
  7124. * test/DirectDiskAdaptorTest.cc
  7125. * test/MultiDiskAdaptorTest.cc
  7126. * test/TestUtil.cc
  7127. * test/TestUtil.h
  7128. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7129. Bump up version number of dht.dat file to 3. In version 3 format, time
  7130. is stored in 64bit, network byte order.
  7131. New build can load old format(version 2) but it saves the file in new
  7132. format. It means once you used new build, your dht.dat becomes
  7133. incompatible with older build.
  7134. * src/DHTRoutingTableDeserializer.cc
  7135. * src/DHTRoutingTableSerializer.cc
  7136. * test/DHTRoutingTableSerializerTest.cc
  7137. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7138. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  7139. * test/Makefile.am
  7140. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7141. Bump up version number of .aria2 control file to 0001.
  7142. New aria2 can still load version 0000 file but it saves the file in
  7143. version 0001 format. It means that new aria2 can resume download
  7144. started by old aria2 but the opposite is not true.
  7145. * src/DefaultBtProgressInfoFile.cc
  7146. * src/DefaultBtProgressInfoFile.h
  7147. * test/DefaultBtProgressInfoFileTest.cc
  7148. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7149. Added ntoh64 and hton64 as inline functions.
  7150. * src/Util.cc
  7151. * test/UtilTest.cc
  7152. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7153. Added sqlite3 depenency and Firefox3 cookie support.
  7154. * README
  7155. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7156. State that firefox3 cookie is supported explicitly in the usage.
  7157. * src/usage_text.h
  7158. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7159. Externalized message.
  7160. * src/RequestGroupMan.cc
  7161. * src/message.h
  7162. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7163. Save temporary file first and rename to the destination on success.
  7164. Added test cases.
  7165. * src/RequestGroupMan.cc
  7166. * test/RequestGroupManTest.cc
  7167. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7168. Fixed the bug that the number of connected peer is exceeding the limit
  7169. (55 by default) in seeding mode.
  7170. Multiplied 0.8 to _maxUploadSpeedLimit.
  7171. * src/ActivePeerConnectionCommand.cc
  7172. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7173. Clear table item.
  7174. * src/Dictionary.cc
  7175. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7176. Fixed error handling of lseek.
  7177. * src/AbstractDiskWriter.cc
  7178. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7179. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  7180. style cookie file.
  7181. * src/usage_text.h
  7182. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7183. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  7184. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  7185. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  7186. * src/Util.cc
  7187. * src/Util.h
  7188. * src/CookieParser.cc
  7189. * test/UtilTest.cc
  7190. * test/CookieParserTest.cc
  7191. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7192. Separate the implementation to load old mozilla format of cookie to
  7193. NsCookieParser class.
  7194. * src/CookieBoxFactory.cc
  7195. * src/CookieBoxFactory.h
  7196. * src/NsCookieParser.cc
  7197. * src/NsCookieParser.h
  7198. * test/NsCookieParserTest.cc
  7199. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7200. Made parse() const
  7201. * src/Sqlite3MozCookieParser.cc
  7202. * src/Sqlite3MozCookieParser.h
  7203. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7204. Added firefox3 cookie support based on the patch submitted by
  7205. tizianomueller.
  7206. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  7207. this functionality.
  7208. * configure.ac
  7209. * m4/sqlite3.m4
  7210. * src/CookieBoxFactory.cc
  7211. * src/CookieBoxFactory.h
  7212. * src/Makefile.am
  7213. * src/Makefile.in
  7214. * src/Sqlite3MozCookieParser.cc
  7215. * src/Sqlite3MozCookieParser.h
  7216. * src/main.cc
  7217. * test/CookieBoxFactoryTest.cc
  7218. * test/Makefile.am
  7219. * test/Makefile.in
  7220. * test/Sqlite3MozCookieParserTest.cc
  7221. * test/badcookies.sqlite
  7222. * test/cookies.sqlite
  7223. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7224. Added Danish and Greek translations.
  7225. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  7226. Great thanks to all translators.
  7227. * po/LINGUAS
  7228. * po/el.po
  7229. * po/da.po
  7230. * po/es.po
  7231. * po/ca.po
  7232. * po/nn.po
  7233. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7234. Fixed man page: --follow-bittorrent should be --follow-torrent
  7235. * doc/aria2c.1.txt
  7236. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7237. Fixed: numCommand is less than the value specified in -C option.
  7238. * src/RequestGroup.cc
  7239. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7240. Fixed occasional assertion failure in PieceSegment.
  7241. Calling PieceStorage::getMissingPiece(size_t) was missing after
  7242. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  7243. creation of duplicate segments and one of the segment was finished then
  7244. assertion failure was caused.
  7245. * src/SegmentMan.cc
  7246. * test/SegmentManTest.cc
  7247. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7248. Added options to load/save the server's performance/status to a file
  7249. and the timeout to drop their data.
  7250. --server-stat-of=FILE specifies the file to which performance data
  7251. is saved.
  7252. --server-stat-if=FILE specifies the file to read previously saved
  7253. by --server-stat-of option. Might be used with --uri-selector=feedback.
  7254. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  7255. TIMEOUT is specified in seconds and the default value is 24hours.
  7256. * src/MultiUrlRequestInfo.cc
  7257. * src/OptionHandlerFactory.cc
  7258. * src/RequestGroupMan.cc
  7259. * src/RequestGroupMan.h
  7260. * src/ServerStatMan.cc
  7261. * src/ServerStatMan.h
  7262. * src/option_processing.cc
  7263. * src/prefs.cc
  7264. * src/prefs.h
  7265. * test/ServerStatManTest.cc
  7266. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7267. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  7268. * src/ServerStatMan.cc
  7269. * src/ServerStatMan.h
  7270. * test/ServerStatManTest.cc
  7271. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7272. Implemented ServerStatMan::load(...) function and its test case.
  7273. * src/ServerStat.cc
  7274. * src/ServerStat.h
  7275. * src/ServerStatMan.cc
  7276. * test/ServerStatManTest.cc
  7277. * test/ServerStatTest.cc
  7278. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7279. Use time_t instead of int32_t. Use int64_t where milli second is
  7280. expected.
  7281. * src/TimeA2.cc
  7282. * src/TimeA2.h
  7283. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7284. Implemented ServerStatMan::save(...) function and its test case.
  7285. * src/ServerStat.cc
  7286. * src/ServerStat.h
  7287. * src/ServerStatMan.cc
  7288. * src/ServerStatMan.h
  7289. * test/ServerStatManTest.cc
  7290. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7291. Now aria2 uses name attribute in Metalink as local filename in
  7292. BitTorrent downloads. BUG#2033999
  7293. * src/BtContext.h
  7294. * src/BtDependency.cc
  7295. * src/DefaultBtContext.cc
  7296. * src/DefaultBtContext.h
  7297. * src/SingleFileDownloadContext.cc
  7298. * src/SingleFileDownloadContext.h
  7299. * test/BtDependencyTest.cc
  7300. * test/DefaultBtContextTest.cc
  7301. * test/MockBtContext.h
  7302. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7303. Added AC_C_BIGENDIAN
  7304. * src/configure.ac
  7305. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7306. Limited numCommand less than or equal to the number of piece.
  7307. * src/RequestGroup.cc
  7308. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7309. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  7310. directive.
  7311. * test/DefaultPieceStorageTest.cc
  7312. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7313. Fixed memory leak in test code
  7314. * test/AnnounceListTest.cc
  7315. * test/DefaultPeerListProcessorTest.cc
  7316. * test/DefaultPeerStorageTest.cc
  7317. * test/MetaFileUtilTest.cc
  7318. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7319. Fixed wrong argument passing to BitfieldMan::isBitSet()
  7320. * src/DefaultPieceStorage.cc
  7321. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7322. Initialized _directIOAllowed
  7323. * src/MultiDiskAdaptor.cc
  7324. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7325. Fixed memory leak
  7326. * src/GZipDecoder.cc
  7327. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7328. Fixed memory leak
  7329. * src/MetalinkParserStateMachine.cc
  7330. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7331. Fixed memory leak
  7332. * src/Dictionary.cc
  7333. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7334. Fixed memory leak
  7335. * src/IteratableChunkChecksumValidator.h
  7336. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7337. Fixed unmatched malloc/free.
  7338. * src/IteratableChunkChecksumValidator.cc
  7339. * src/IteratableChecksumValidator.cc
  7340. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7341. Removed max chunk size check. This change fixes BUG#2040169
  7342. * src/ChunkedDecoder.cc
  7343. * src/ChunkedDecoder.h
  7344. * test/ChunkedDecoderTest.cc
  7345. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7346. Implemented download speed based URI selection algorithm.
  7347. Introduced new option --uri-selector.
  7348. If --uri-selector=feedback is given, aria2 uses download speed observed
  7349. in the previous downloads and chooses fastest server in the URI list.
  7350. Currently at most 10 URIs are considered to introduce randomeness for
  7351. finding better servers. The speed is average download speed in the
  7352. downloads.
  7353. On the other hand, if --uri-selector=inorder is given, which is default,
  7354. URI is tried in order in URI list.
  7355. The usage text for the new option has not been written yet.
  7356. * src/AbstractCommand.cc
  7357. * src/DownloadCommand.cc
  7358. * src/DownloadEngine.cc
  7359. * src/DownloadEngineFactory.cc
  7360. * src/InOrderURISelector.cc
  7361. * src/InOrderURISelector.h
  7362. * src/OptionHandlerFactory.cc
  7363. * src/PeerStat.h
  7364. * src/RequestGroup.cc
  7365. * src/RequestGroup.h
  7366. * src/RequestGroupMan.cc
  7367. * src/RequestGroupMan.h
  7368. * src/SegmentMan.cc
  7369. * src/SegmentMan.h
  7370. * src/ServerStat.cc
  7371. * src/ServerStat.h
  7372. * src/ServerStatMan.cc
  7373. * src/ServerStatMan.h
  7374. * src/ServerStatURISelector.cc
  7375. * src/ServerStatURISelector.h
  7376. * src/URISelector.h
  7377. * src/option_processing.cc
  7378. * src/prefs.cc
  7379. * src/prefs.h
  7380. * test/InOrderURISelectorTest.cc
  7381. * test/RequestGroupManTest.cc
  7382. * test/ServerStatManTest.cc
  7383. * test/ServerStatURISelectorTest.cc
  7384. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7385. * Release 0.15.1+2
  7386. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7387. Bump up version number to 0.15.1+2
  7388. * configure.ac
  7389. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7390. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  7391. * m4/aria2_arg.m4
  7392. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7393. * Release 0.15.1+1
  7394. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7395. Bump up version number to 0.15.1+1
  7396. * configure.ac
  7397. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7398. Fixed the bug that causes segmentaion fault when resuming download
  7399. using metalink without size tag. Reproducible only using HTTP URI.
  7400. * src/HttpResponseCommand.cc
  7401. * src/FtpNegotiationCommand.cc
  7402. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7403. * Release 0.15.1
  7404. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7405. Updated Bulgarian and French translations, thanks to all translators.
  7406. * po/bg.po
  7407. * po/fr.po
  7408. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7409. Bump up version number to 0.15.1
  7410. * configure.ac
  7411. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7412. Avoid repeated call of gettimeofday() when calculating speed.
  7413. * src/SpeedCalc.cc
  7414. * src/SpeedCalc.h
  7415. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7416. Removed writable check when socket's send buffer is full in BitTorrent
  7417. downloads to lower CPU usage.
  7418. * src/PeerInteractionCommand.cc
  7419. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7420. Fixed broken gzip inflation.
  7421. Turn off segmented downloading if gzip content is smaller than or equal
  7422. to 1MiB and inflate the data on the fly, because HTTP response header
  7423. doesn't contain the length of inflated file we can't determin where
  7424. the chunk of data should be written.
  7425. On the other hand, if gzip content is larger than 1MB, then turn off
  7426. on the fly inflation, because some servers returns "content-type: gzip"
  7427. for *.tgz, *.gz files.
  7428. * src/DownloadCommand.cc
  7429. * src/HttpResponseCommand.cc
  7430. * src/HttpResponseCommand.h
  7431. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7432. Applied tizianomueller's patch to fix compile error.
  7433. * test/BitfieldManTest.cc
  7434. * test/BtRequestMessageTest.cc
  7435. * test/DefaultBtContextTest.cc
  7436. * test/DefaultDiskWriterTest.cc
  7437. * test/DefaultPieceStorageTest.cc
  7438. * test/HttpHeaderProcessorTest.cc
  7439. * test/HttpResponseTest.cc
  7440. * test/Metalink2RequestGroupTest.cc
  7441. * test/MetalinkParserControllerTest.cc
  7442. * test/MetalinkProcessorTest.cc
  7443. * test/PeerSessionResourceTest.cc
  7444. * test/UtilTest.cc
  7445. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7446. * Release 0.15.0
  7447. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7448. Reordered src files in POTFILES.in so that usage text appears first.
  7449. * po/POTFILES.in
  7450. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7451. Bump up version number to 0.15.0
  7452. * configure.ac
  7453. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7454. Added Bulgarian translation.
  7455. Updated Catalan, Spanish, French and Japanese translations.
  7456. Thanks to all translators.
  7457. * po/LINGUAS
  7458. * po/bg.po
  7459. * po/ca.po
  7460. * po/es.po
  7461. * po/fr.po
  7462. * po/ja.po
  7463. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7464. Updated feature list. Added libz for dependency section.
  7465. Added a description about unit testing using CppUnit.
  7466. * README
  7467. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7468. Added a test for libz. Quoted where it is necessary.
  7469. * build_test.sh
  7470. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7471. Added GZip to `Enabled Features' list.
  7472. * src/FeatureConfig.cc
  7473. * src/FeatureConfig.h
  7474. * test/FeatureConfigTest.cc
  7475. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7476. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  7477. the transfer has not yet started.
  7478. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  7479. * src/SegmentMan.cc
  7480. * src/SegmentMan.h
  7481. * test/SegmentManTest.cc
  7482. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7483. Cache last calculated average download/upload speed.
  7484. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  7485. cached value.
  7486. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  7487. * src/PeerStat.h
  7488. * src/SpeedCalc.cc
  7489. * src/SpeedCalc.h
  7490. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7491. Call parseUrl directly.
  7492. * src/Request.cc (resetUrl)
  7493. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7494. Supported absolute/relative path in Location header field.
  7495. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  7496. * src/HttpHeader.cc
  7497. * src/HttpHeader.h
  7498. * src/HttpResponse.cc
  7499. * src/HttpSkipResponseCommand.cc
  7500. * src/Request.cc
  7501. * test/HttpHeaderTest.cc
  7502. * test/HttpResponseTest.cc
  7503. * test/RequestTest.cc
  7504. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7505. Changed help text for --load-cookie option.
  7506. * doc/aria2c.1.txt
  7507. * src/usage_text.h
  7508. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7509. Regenerated test/Makefile.in to remove stale ChangeLog.
  7510. * test/Makefile.in
  7511. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7512. Updated po files.
  7513. * po/aria2c.pot
  7514. * po/*.po
  7515. * po/*.gmo
  7516. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7517. Bump up version number to 0.15.0b
  7518. * configure.ac
  7519. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7520. Externalize messages.
  7521. * src/RequestGroupMan.cc
  7522. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  7523. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7524. Use File::exists() instead of File::isFile() to allow non-regular file
  7525. such as block special files.
  7526. * src/AbstractDiskWriter.cc
  7527. * src/MultiDiskWriter.cc
  7528. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7529. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  7530. * src/gai_strerror.h
  7531. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7532. Fixed compile error. Thanks gknauf for the patch.
  7533. * src/asctime_r.c
  7534. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7535. Included asctime_r.h from a2time.h.
  7536. * src/a2time.h
  7537. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7538. Added a message "aria2 doesn't verify signature" to log message when
  7539. signature file is saved.
  7540. * src/RequestGroupMan.cc
  7541. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7542. Added the ability to save signature when download is completed if
  7543. signature is available. The filename of signature file is the path to
  7544. download file followed by ".sig". If it already exists, then signature
  7545. will not be saved.
  7546. * src/RequestGroupMan.cc
  7547. * src/Signature.cc
  7548. * test/SignatureTest.cc
  7549. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7550. Updated the descriptions for --bt-seed-unverified.
  7551. * doc/aria2c.1
  7552. * doc/aria2c.1.html
  7553. * doc/aria2c.1.txt
  7554. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7555. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  7556. that this is not going to verify files using piece hashes.
  7557. * src/HelpItemFactory.cc
  7558. * src/OptionHandlerFactory.cc
  7559. * src/RequestGroup.cc
  7560. * src/option_processing.cc
  7561. * src/prefs.cc
  7562. * src/prefs.h
  7563. * src/usage_text.h
  7564. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7565. Added the ability to retrieve signature from Metalink file.
  7566. A retrieved signature is stored in Signature class and it is held by
  7567. DownloadContext class. Note that aria2 doesn't verify signature.
  7568. * src/DownloadContext.cc
  7569. * src/DownloadContext.h
  7570. * src/Makefile.am
  7571. * src/Makefile.in
  7572. * src/Metalink2RequestGroup.cc
  7573. * src/MetalinkEntry.cc
  7574. * src/MetalinkEntry.h
  7575. * src/MetalinkParserController.cc
  7576. * src/MetalinkParserController.h
  7577. * src/MetalinkParserStateMachine.cc
  7578. * src/MetalinkParserStateMachine.h
  7579. * src/Signature.cc
  7580. * src/Signature.h
  7581. * src/SignatureMetalinkParserState.cc
  7582. * src/SignatureMetalinkParserState.h
  7583. * src/VerificationMetalinkParserState.cc
  7584. * src/VerificationMetalinkParserState.h
  7585. * test/Metalink2RequestGroupTest.cc
  7586. * test/MetalinkParserControllerTest.cc
  7587. * test/MetalinkProcessorTest.cc
  7588. * test/test.xml
  7589. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7590. Close DiskAdaptor after renaming file.
  7591. * src/RequestGroup.cc
  7592. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7593. Corrected indentation
  7594. * src/DefaultBtProgressInfoFile.cc
  7595. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7596. Moved the calls of std::ios::exceptions() inside of try-catch block
  7597. because if an error occurred in constructor of std::fstream, then
  7598. exception is thrown immediately when std::ios::exceptions() is called
  7599. which results unhandled exception and aria2c aborts.
  7600. * src/DefaultBtProgressInfoFile.cc
  7601. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7602. Added the test for the previous change in DefaultBtContext.cc
  7603. * test/DefaultBtContextTest.cc
  7604. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7605. Fixed the bug that causes infinite loop when the number of pieces are
  7606. fewer than allowed fast set size which is 10 by default.
  7607. * src/DefaultBtContext.cc
  7608. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7609. Updated the descriptions for -j, -s. Added --bt-seed.
  7610. * doc/aria2c.1
  7611. * doc/aria2c.1.html
  7612. * doc/aria2c.1.txt
  7613. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7614. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  7615. aria2 seeds previously downloaded files without validating piece hashs.
  7616. * src/HelpItemFactory.cc
  7617. * src/OptionHandlerFactory.cc
  7618. * src/RequestGroup.cc
  7619. * src/option_processing.cc
  7620. * src/prefs.cc
  7621. * src/prefs.h
  7622. * src/usage_text.h
  7623. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7624. Updated DESCRIPTION of man page.
  7625. * doc/aria2c.1
  7626. * doc/aria2c.1.html
  7627. * doc/aria2c.1.txt
  7628. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7629. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  7630. Don't define `struct addrinfo' when __sun is defined.
  7631. * src/getaddrinfo.h
  7632. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7633. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  7634. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  7635. second argument is of type `struct _stati64'. Otherwise it is defined as
  7636. `struct stat'.
  7637. * src/AbstractDiskWriter.cc
  7638. * src/File.cc
  7639. * src/File.h
  7640. * src/a2io.h
  7641. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7642. Fixed the compile error in hurd-i386
  7643. See the original bug report:
  7644. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  7645. * src/a2io.h
  7646. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7647. Code cleanup.
  7648. * src/PeerAbstractCommand.cc
  7649. * src/PeerAbstractCommand.h
  7650. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7651. Removed TransferEncoding.
  7652. * src/DownloadCommand.cc
  7653. * src/DownloadCommand.h
  7654. * src/HttpResponseCommand.cc
  7655. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7656. Updated po files.
  7657. * po/aria2c.pot
  7658. * po/*.po
  7659. * po/*.gmo
  7660. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7661. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  7662. * src/A2STR.cc
  7663. * src/A2STR.h
  7664. * src/ChunkedDecoder.cc
  7665. * src/ChunkedDecoder.h
  7666. * src/ChunkedEncoding.cc: Removed
  7667. * src/ChunkedEncoding.h: Removed
  7668. * src/DownloadCommand.cc
  7669. * src/DownloadCommand.h
  7670. * src/HttpDownloadCommand.cc
  7671. * src/HttpResponse.cc
  7672. * src/HttpResponse.h
  7673. * src/HttpResponseCommand.cc
  7674. * src/HttpSkipResponseCommand.cc
  7675. * src/HttpSkipResponseCommand.h
  7676. * src/Makefile.am
  7677. * src/TransferEncoding.h: Removed
  7678. * test/ChunkedDecoderTest.cc
  7679. * test/ChunkedEncodingTest.cc: Removed
  7680. * test/HttpResponseTest.cc
  7681. * test/Makefile.am
  7682. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7683. Use append instead of insert.
  7684. * src/GZipDecoder.cc
  7685. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7686. Updated doc
  7687. * src/Decoder.h
  7688. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7689. Updated usage text for -s option.
  7690. * src/usage_text.h
  7691. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7692. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  7693. * src/Request.cc
  7694. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7695. Cleaned up configure.ac.
  7696. * configure.ac
  7697. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7698. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  7699. AC_ARG_ENABLE.
  7700. * configure.ac
  7701. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7702. Added gzip, deflate decoding support in HTTP using libz. If compiled
  7703. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  7704. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  7705. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  7706. fly and writes decoded data to a local disk.
  7707. * README
  7708. * README.html
  7709. * configure.ac
  7710. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  7711. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  7712. * m4/libz.m4
  7713. * src/Decoder.h
  7714. * src/DownloadCommand.cc
  7715. * src/DownloadCommand.h
  7716. * src/Exception.h
  7717. * src/GZipDecoder.cc
  7718. * src/GZipDecoder.h
  7719. * src/HttpHeader.cc
  7720. * src/HttpHeader.h
  7721. * src/HttpRequest.cc
  7722. * src/HttpRequest.h
  7723. * src/HttpResponse.cc
  7724. * src/HttpResponse.h
  7725. * src/HttpResponseCommand.cc
  7726. * src/Makefile.am
  7727. * test/GZipDecoderTest.cc
  7728. * test/HttpRequestTest.cc
  7729. * test/HttpResponseTest.cc
  7730. * test/Makefile.am
  7731. * test/Makefile.in
  7732. * test/gzip_decode_test.gz
  7733. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7734. Clarified usage of -j option.
  7735. * src/usage_text.h
  7736. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7737. Disabled getting size from the response of RETR.
  7738. If SIZE command failed, then disable resuming and segmented downloading.
  7739. * src/FtpConnection.cc
  7740. * src/FtpConnection.h
  7741. * src/FtpNegotiationCommand.cc
  7742. * src/FtpNegotiationCommand.h
  7743. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7744. Use digits to find first byte of file size, which makes the intention
  7745. of the code clearer.
  7746. * src/FtpConnection.cc
  7747. Don't call validateTotalLength() when size is 0.
  7748. * src/FtpNegotiationCommand.cc
  7749. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7750. Updated po files.
  7751. * po/aria2c.pot
  7752. * po/*.gmo
  7753. * po/*.po
  7754. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7755. Clarified usage text for --split option.
  7756. * src/usage_text.h
  7757. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7758. Bump up version number to 0.15.0dev. "dev" means "development"
  7759. version, which means I started the development of the next release!
  7760. * src/configure.ac
  7761. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7762. If FTP server returns negative response with REST raw command and
  7763. requested range is not 0, throw exception. If requested range is 0,
  7764. continue download a file from 0 byte.
  7765. * src/FtpNegotiationCommand.cc
  7766. * src/FtpNegotiationCommand.h
  7767. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7768. Supported FTP server which don't recognize SIZE raw command.
  7769. If SIZE raw command is failed, aria2 will try to get file size
  7770. from the response of RETR raw command. If both attempts are failed,
  7771. then resuming and segmented downloading are disabled.
  7772. * src/FtpConnection.cc
  7773. * src/FtpConnection.h
  7774. * src/FtpNegotiationCommand.cc
  7775. * src/FtpNegotiationCommand.h
  7776. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7777. * Release 0.14.0+1
  7778. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7779. Bump up version number to 0.14.0+1
  7780. * src/configure.ac
  7781. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7782. Fixed the code that refers static member variable from non-static
  7783. context.
  7784. * src/DefaultPeerStorage.cc
  7785. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7786. * Release 0.14.0
  7787. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7788. Added build test script
  7789. * build_test.sh
  7790. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7791. Updated ja.po
  7792. * src/ja.po
  7793. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7794. Bump up version number to 0.14.0
  7795. * src/configure.ac
  7796. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7797. Updated ja.po and fr.po. Great thanks for french translators and
  7798. Sebastien WILLEMIJNS.
  7799. * po/fr.po
  7800. * po/ja.po
  7801. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7802. Added configure option to enable/disable epoll support.
  7803. * configure.ac
  7804. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7805. Updated man page.
  7806. * doc/aria2c.1.txt
  7807. * doc/aria2c.1
  7808. * doc/aria2c.1.html
  7809. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7810. Added missing default value '5' to the usage of --split option.
  7811. * src/HelpItemFactory.cc
  7812. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7813. Filled up pieces based on the number of missing blocks, rather than
  7814. simplay the number of piece * block length.
  7815. * src/BtRequestFactory.h
  7816. * src/DefaultBtInteractive.cc
  7817. * src/DefaultBtInteractive.h
  7818. * src/DefaultBtRequestFactory.cc
  7819. * src/DefaultBtRequestFactory.h
  7820. * src/Piece.cc
  7821. * src/Piece.h
  7822. * test/BitfieldManTest.cc
  7823. * test/DefaultBtRequestFactoryTest.cc
  7824. * test/MockBtRequestFactory.h
  7825. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7826. Made _epEvents a member variable.
  7827. * src/DownloadEngine.cc
  7828. * src/DownloadEngine.h
  7829. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7830. Cancel download if http redirect is bounded more than 20 times.
  7831. * src/AbstractCommand.cc
  7832. * src/HttpSkipResponseCommand.cc
  7833. * src/Request.cc
  7834. * src/Request.h
  7835. * test/RequestTest.cc
  7836. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7837. Fixed unhandled exception(removed keyword `new').
  7838. * src/SocketCore.cc (initEPOLL)
  7839. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7840. Removed visit(const MetaEntry*)
  7841. * src/MetaEntryVisitor.h:
  7842. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  7843. and made them virtual.
  7844. * src/BencodeVisitor.h
  7845. * src/BencodeVisitor.cc
  7846. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7847. Updated po files.
  7848. * po/aria2c.pot
  7849. * po/*.po
  7850. * po/*.gmo
  7851. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7852. Moved the call setWriteCheckSocket inside the previous clause to reduce
  7853. the number of socket to watch out.
  7854. * src/PeerInteractionCommand.cc
  7855. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7856. When there is not enough space in disk when writing a chunk of data,
  7857. aria2 now prints the message to the console to warn user and aborts
  7858. its download. Not all downloads are canceled because some downloads
  7859. may use another disk or partition. BUG#1640332
  7860. * src/AbstractDiskWriter.cc
  7861. * src/PeerAbstractCommand.cc
  7862. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  7863. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  7864. setHaltRequested(true) to cancel download.
  7865. * src/PeerInteractionCommand.h
  7866. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7867. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  7868. socket from int to sock_t as sockets are unsigned in Windows.
  7869. For AsyncNameResolver, DownloadEngine, I did additional modification
  7870. for the portion of the code changed according to epoll support.
  7871. I defined sock_t in a2netcompat.h to use sock_t without including
  7872. SocketCore.h.
  7873. * src/AsyncNameResolver.cc
  7874. * src/AsyncNameResolver.h
  7875. * src/DownloadEngine.cc
  7876. * src/DownloadEngine.h
  7877. * src/SocketCore.cc
  7878. * src/SocketCore.h
  7879. * src/a2netcompat.h
  7880. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7881. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  7882. changes in the patch were applied.
  7883. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  7884. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  7885. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  7886. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7887. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  7888. a2io.h and common.h were modified.
  7889. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  7890. MinGW.
  7891. * src/common.h: Changed off_t to 64 bit in MinGW.
  7892. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7893. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7894. only a2netcompat.h is modified.
  7895. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  7896. directives.
  7897. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7898. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7899. only gai_strerror.h is modified.
  7900. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  7901. winsock errors in MinGW.
  7902. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7903. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  7904. follow sources are applied.
  7905. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  7906. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  7907. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  7908. I included locale.h from Platform.cc.
  7909. * src/main.cc: Moved common setup/teardown code to Platform class.
  7910. * test/AllTest.cc: Use Platform class.
  7911. Set locale to C in AllTest.cc to prevent the messages to be localized.
  7912. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7913. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  7914. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  7915. * test/HttpRequestTest.cc: Casted to off_t where it should.
  7916. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7917. Applied Ross's aria2-0.13.2+1-mingw.patch and
  7918. aria2-0.13.2+1-mingw-2.patch.
  7919. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  7920. systems which don't have termious.h. I moved the directive inside of
  7921. if(isTTY) { ... clause so that line is wiped out without termious.h.
  7922. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  7923. anyway.
  7924. * src/asctime_r.h
  7925. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  7926. I added 2nd argument to the prototype declaration.
  7927. * src/StringFormat.cc: Get rid of vasprintf.
  7928. * src/getaddrinfo.h: Fixed constants.
  7929. * configure.ac: Added the check for asctime_r function.
  7930. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  7931. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7932. Added writable test for Socket when the sending message is in progress.
  7933. Usually the sending message is piece message. Without wriable check,
  7934. upload latency is dropped to more than 1sec.
  7935. * src/PeerInteractionCommand.cc
  7936. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7937. Create only requested files and files which shares a piece with
  7938. requested file in multi-torrent downloads. Directory structures are
  7939. also created in the same rule.
  7940. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  7941. DiskWriterEntry as in the previous implementation.
  7942. * src/MultiDiskWriter.cc
  7943. * src/MultiFileAllocationIterator.cc
  7944. * src/MultiFileAllocationIterator.h
  7945. * test/MultiFileAllocationIteratorTest.cc
  7946. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7947. Commented out -lprofiler
  7948. * src/Makefile.am
  7949. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7950. Bump up version number to 0.14.0b.
  7951. * src/configure.ac
  7952. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7953. Actively establish connection to peers in seeding, when peer cache
  7954. is not full and max upload speed limit is not reached.
  7955. * src/ActivePeerConnectionCommand.cc
  7956. * src/ActivePeerConnectionCommand.h
  7957. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7958. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  7959. to make room more fleshy, recently found peers.
  7960. Peer::_badConditionStartTime is not used anymore. Consider to remove
  7961. it.
  7962. * src/DefaultPeerStorage.cc
  7963. * test/DefaultPeerStorageTest.cc
  7964. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7965. Returns cached data only when the previous receiveHandshake() is called
  7966. with peek = true.
  7967. * src/PeerConnection.cc (receiveHandshake)
  7968. * src/PeerConnection.h (receiveHandshake)
  7969. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7970. Changed default value of -s option from 1 to 5.
  7971. Also max value of -s option is changed from 5 to 16.
  7972. * src/HelpItemFactory.cc
  7973. * src/OptionHandlerFactory.cc
  7974. * src/option_processing.cc
  7975. * src/usage_text.h
  7976. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7977. Changed -s options behavior. Now it means the number of connections
  7978. made simultaneously in each http/ftp download.
  7979. If 1 URL is specified, the behavior is the same with old implementation.
  7980. If -s N is given and more than N URLs are specified, first N URLs are
  7981. used and remaining URLs are used for backup. If less than N URLs are
  7982. specified, some of URLs are used more than once so that totally N
  7983. connections are made simultaneously.
  7984. * src/main.cc
  7985. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7986. Included missing iosfwd or ostream header.
  7987. * src/RequestGroupMan.cc
  7988. * src/TaggedItem.cc
  7989. * src/TaggedItem.h
  7990. * src/Util.cc
  7991. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7992. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  7993. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  7994. * src/HttpConnection.cc: Included missing sstream.
  7995. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7996. Added --bt-max-open-files option.
  7997. * src/DefaultPieceStorage.cc
  7998. * src/HelpItemFactory.cc
  7999. * src/MultiDiskAdaptor.cc
  8000. * src/MultiDiskAdaptor.h
  8001. * src/OptionHandlerFactory.cc
  8002. * src/option_processing.cc
  8003. * src/prefs.cc
  8004. * src/prefs.h
  8005. * src/usage_text.h
  8006. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8007. Fixed the bug that aria2 aborts when a path to a directory is given
  8008. in command-line.
  8009. * src/ProtocolDetector.cc
  8010. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8011. Limited the number files opened in each BitTorrent download. The default
  8012. value is 100. The option to change this value will be added.
  8013. * src/MultiDiskAdaptor.cc
  8014. * src/MultiDiskAdaptor.h
  8015. * src/MultiFileAllocationIterator.cc
  8016. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8017. Fixed the bug that HTTP downloads don't start with old libraries.
  8018. * src/HttpHeaderProcessor.cc
  8019. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8020. Use empty() instead of size() > 0.
  8021. * src/HttpConnection.cc
  8022. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8023. Drop connection if the incoming peer ID is the same with localhost's
  8024. one. The previous implementation drops connection when incoming peer's
  8025. IP address is the same with localhost's one.
  8026. * src/PeerListenCommand.cc
  8027. * src/DefaultBtInteractive.cc
  8028. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8029. Returns cached data without checking whether socket is readable
  8030. if the cache is available.
  8031. * src/PeerConnection.cc (receiveHandshake)
  8032. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8033. Included stdint.h
  8034. * src/common.h
  8035. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8036. Removed duplicate HAVE_GETTIMEOFDAY
  8037. * src/Makefile.am
  8038. * src/Makefile.in
  8039. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8040. Use interval as a minInterval when minInterval is not supplied.
  8041. * src/DefaultBtAnnounce.cc
  8042. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8043. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  8044. attempt is failed, then 2nd attempt get kicked out more quickly.
  8045. And it is now static const member of DefaultBtAnnounce.
  8046. * src/DefaultBtAnnounce.h
  8047. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8048. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  8049. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  8050. * src/ActivePeerConnectionCommand.cc
  8051. * src/BtConstants.h
  8052. * src/BtRuntime.h
  8053. * src/DHTGetPeersCommand.cc
  8054. * src/DefaultBtAnnounce.cc
  8055. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  8056. BtRuntime::MAX_PEERS.
  8057. * src/DefaultPeerStorage.h
  8058. * src/InitiatorMSEHandshakeCommand.cc
  8059. * src/PeerInitiateConnectionCommand.cc
  8060. * src/PeerInteractionCommand.cc
  8061. * src/PeerReceiveHandshakeCommand.cc
  8062. * src/TrackerWatcherCommand.cc
  8063. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8064. Always Connect to _numNewConnection
  8065. * src/ActivePeerConnectionCommand.cc
  8066. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8067. Made `begin' unsigned int.
  8068. * src/GrowSegment.h
  8069. * src/Piece.cc
  8070. * src/Piece.h
  8071. * src/PiecedSegment.cc
  8072. * src/PiecedSegment.h
  8073. * src/Segment.h
  8074. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8075. Calculate piece hash when data is arrived if the data is arrived in
  8076. order. This removes additional read operation for hash calculation.
  8077. If the data is arrived in out of order, the hash is calucated when the
  8078. piece is completed. This is the same behavior as the old implementation.
  8079. * src/BtPieceMessage.cc
  8080. * src/DefaultBtProgressInfoFile.cc
  8081. * src/DefaultPieceStorage.cc
  8082. * src/DownloadCommand.cc
  8083. * src/DownloadCommand.h
  8084. * src/DownloadEngine.cc
  8085. * src/GrowSegment.cc
  8086. * src/GrowSegment.h
  8087. * src/Piece.cc
  8088. * src/Piece.h
  8089. * src/PiecedSegment.cc
  8090. * src/PiecedSegment.h
  8091. * src/Segment.h
  8092. * test/PieceTest.cc
  8093. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8094. Try to keep the ordering of outgoing piece message.
  8095. * src/DefaultBtMessageDispatcher.cc
  8096. (DefaultBtMessageDispatcher::sendMessages)
  8097. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8098. Fixed busy loop when error/hup epoll events occur.
  8099. * src/AbstractCommand.cc
  8100. * src/PeerAbstractCommand.cc
  8101. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8102. Added --bt-request-peer-speed-limit option, which was a constant
  8103. SLOW_SPEED_THRESHOLD.
  8104. * src/ActivePeerConnectionCommand.cc
  8105. * src/ActivePeerConnectionCommand.h
  8106. * src/BtConstants.h
  8107. * src/HelpItemFactory.cc
  8108. * src/OptionHandlerFactory.cc
  8109. * src/PeerReceiveHandshakeCommand.cc
  8110. * src/option_processing.cc
  8111. * src/prefs.cc
  8112. * src/prefs.h
  8113. * src/usage_text.h
  8114. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8115. Removed repeated call of getTopDirPath(). Instead, call it once and
  8116. cache the result.
  8117. * src/MultiDiskAdaptor.cc
  8118. * src/MultiDiskAdaptor.h
  8119. (mkdir, openFile, initAndOpenFile, openExistingFile)
  8120. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8121. Fixed compile error on debian etch.
  8122. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  8123. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  8124. it is undefined.
  8125. * src/Util.cc (ULLONG_MAX)
  8126. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8127. Added epoll support. Use epoll if it is available. If not, use select.
  8128. When async dns is enabled in compile time, epoll support is enabled
  8129. only when aria2 is built with c-ares. This condition statement is
  8130. defined in a2io.h.
  8131. Currently aria2 supports both c-ares and ares, but ares is maintained
  8132. for quite a while and debian already has c-ares package, ares support
  8133. will be dropped in the future version.
  8134. * configure.ac
  8135. * src/AbstractCommand.cc
  8136. * src/AsyncNameResolver.cc
  8137. * src/AsyncNameResolver.h
  8138. * src/Command.cc
  8139. * src/Command.h
  8140. * src/DownloadEngine.cc
  8141. * src/DownloadEngine.h
  8142. * src/PeerAbstractCommand.cc
  8143. * src/SocketCore.cc
  8144. * src/SocketCore.h
  8145. * src/a2io.h
  8146. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8147. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  8148. directive.
  8149. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8150. Do not do write operation to /dev/null file.
  8151. * src/LogFactory.cc
  8152. * src/SimpleLogger.cc
  8153. Replaced vasprintf with vsnprintf
  8154. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  8155. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8156. * src/BtRequestMessage.cc
  8157. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  8158. for segmentation fault caused by previous commit.
  8159. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8160. Reduced the usage of gettimeofday().
  8161. * src/DefaultBtMessageDispatcher.cc
  8162. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  8163. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  8164. * src/RequestSlot.cc
  8165. * src/RequestSlot.h
  8166. (RequestSlot::isTimeout)
  8167. Made RequestSlot have a reference to Piece object to avoid find
  8168. Piece repeatedly.
  8169. * src/DefaultBtMessageDispatcher.cc
  8170. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  8171. * src/RequestSlot.cc
  8172. * src/RequestSlot.h
  8173. (RequestSlot::getPiece)
  8174. * test/DefaultBtMessageDispatcherTest.cc
  8175. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8176. * src/TimeA2.cc
  8177. * src/TimeA2.h
  8178. (Time::difference): New function.
  8179. (Time::elapsed): Done optimization.
  8180. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8181. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  8182. directive.
  8183. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8184. * src/option_processing.cc: Added missing `defined' keyword to #if
  8185. directive.
  8186. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8187. Bump up version number to 0.13.2+1
  8188. * src/configure.ac
  8189. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8190. Refactored broken outstanding piece handling.
  8191. * src/DefaultPieceStorage.cc
  8192. * src/DefaultPieceStorage.h
  8193. * src/Piece.cc
  8194. * src/Piece.h
  8195. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8196. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  8197. name collision of static variable and predefined macro.
  8198. * src/BtContext.cc
  8199. * src/BtContext.h
  8200. * src/CookieBoxFactory.cc
  8201. * src/CookieBoxFactory.h
  8202. * src/CookieParser.cc
  8203. * src/CookieParser.h
  8204. * src/DefaultBtContext.cc
  8205. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8206. * src/RequestGroup.cc
  8207. (RequestGroup::createInitialCommand): Use empty() instead of size().
  8208. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8209. * Release 0.13.2
  8210. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8211. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  8212. * po/fr.po
  8213. * po/ja.po
  8214. * po/aria2c.pot
  8215. * po/*.po
  8216. * po/*.gmo
  8217. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8218. Bump up version number to 0.13.2
  8219. * src/configure.ac
  8220. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8221. Refactord.
  8222. * src/RequestGroupMan.cc
  8223. (removeStoppedGroup)
  8224. (fillRequestGroupFromReserver)
  8225. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8226. Fixed compile error on Ubuntu.
  8227. * src/BtPieceMessage.cc
  8228. * src/MessageDigestHelper.cc
  8229. * src/Util.cc
  8230. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8231. Fixed compile error when configured with --disable-bittorrent
  8232. * test/DownloadHandlerFactoryTest.cc
  8233. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8234. Done make update-po
  8235. * po/aria2c.pot
  8236. * po/*.po
  8237. * po/*.gmo
  8238. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8239. Bump up version number to 0.13.2rc.
  8240. * src/configure.ac
  8241. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8242. Made option name bold. Updated SYNOPSIS to make it more readable.
  8243. * doc/aria2c.1.txt
  8244. * doc/aria2c.1
  8245. * doc/aria2c.1.html
  8246. * src/version_usage.cc
  8247. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8248. Refactored. Use std::string instead of size and char*.
  8249. * Data.cc
  8250. * Data.h
  8251. * test/Data.cc
  8252. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8253. Added trimSelf(). Rewritten trim() to use trimSelf().
  8254. * Util.cc
  8255. * Util.h
  8256. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8257. * src/ChunkChecksum.h (getChecksum): Return const reference.
  8258. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8259. Fixed compile error when configured with --disable-metalink.
  8260. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  8261. * test/FeatureConfigTest.cc
  8262. * test/DownloadHandlerFactoryTest.cc
  8263. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8264. Fixed compile error when configured with --without-gnutls
  8265. --without-openssl
  8266. * src/main.cc
  8267. * test/DefaultBtProgressInfoFileTest.cc
  8268. * test/SegmentManTest.cc
  8269. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8270. Fixed compile error with OpenSSL.
  8271. * src/IteratableChunkChecksumValidator.cc
  8272. * src/LibsslDHKeyExchange.h
  8273. * src/MessageDigestHelper.cc
  8274. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8275. Revert the default value of --max-concurrent-downloads to 5.
  8276. Revert the default value of --metalink-servers to 5.
  8277. Man pages was also updated.
  8278. * src/option_processing.cc
  8279. * doc/aria2c.1.txt
  8280. * doc/aria2c.1.html
  8281. * doc/aria2c.1
  8282. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8283. Returns const reference:
  8284. DownloadContext::getPieceHash, DownloadContext::getName,
  8285. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  8286. BtContext::getInfoHashAsString,
  8287. * src/BtContext.h
  8288. * src/DefaultBtContext.cc
  8289. * src/DefaultBtContext.h
  8290. * src/DownloadContext.h
  8291. * src/SingleFileDownloadContext.h
  8292. * test/MockBtContext.h
  8293. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8294. * src/RequestGroup.h (getDir): Removed.
  8295. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8296. Returns const reference. The internal urlencode function was optimized
  8297. a little bit.
  8298. * src/Request.cc
  8299. * src/Request.h
  8300. * src/HttpRequest.cc
  8301. * src/HttpRequest.h
  8302. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8303. Defined option name and possible values as std::string to reduce
  8304. temporary string object creation in runtime.
  8305. * src/HelpItemFactory.cc
  8306. * src/LogFactory.cc
  8307. * src/Option.cc
  8308. * src/OptionHandlerFactory.cc
  8309. * src/option_processing.cc
  8310. * src/prefs.cc
  8311. * src/prefs.h
  8312. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8313. Return const reference.
  8314. * src/DownloadHandlerConstants.cc
  8315. * src/DownloadHandlerConstants.h
  8316. (getMetalinkExtensions)
  8317. (getMetalinkContentTypes)
  8318. (getBtExtensions)
  8319. (getBtContentTypes)
  8320. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8321. * src/HttpHeader.cc (get): Rewritten.
  8322. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8323. Make HttpHeader::getFirst(...) return const reference.
  8324. * src/HttpHeader.cc
  8325. * src/HttpHeader.h
  8326. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8327. Use Option::getAsBool(...) instead of Option::get(...) and compare
  8328. it with V_TRUE.
  8329. * src/DefaultPieceStorage.cc
  8330. * src/DownloadCommand.cc
  8331. * src/FtpNegotiationCommand.cc
  8332. * src/HttpRequest.cc
  8333. * src/InitiateConnectionCommand.cc
  8334. * src/RequestGroup.cc
  8335. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8336. Made Option::get(...) return const reference of std::string.
  8337. * src/Option.cc
  8338. * src/Option.h
  8339. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8340. Replaced std:copy with insert.
  8341. * src/DefaultBtMessageDispatcher.cc
  8342. * src/DefaultPieceStorage.cc
  8343. * src/DownloadEngineFactory.cc
  8344. * src/RequestGroup.cc
  8345. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8346. Included SocketCore.h to fix compiler warning.
  8347. * src/InitiateConnectionCommand.cc
  8348. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8349. Put piece selection strategy algorithm to RarestPieceSelector class,
  8350. Added a switch to choose whether randomized selection so that unit
  8351. tests emit same results in, possibly, win32.
  8352. * src/DefaultPieceStorage.cc
  8353. * src/DefaultPieceStorage.h
  8354. * src/RarestPieceSelector.cc
  8355. * src/RarestPieceSelector.h
  8356. * test/DefaultPieceStorageTest.cc
  8357. * test/RarestPieceSelectorTest.cc
  8358. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8359. Don't pool connection if HTTP proxy is enabled.
  8360. * src/FtpFinishDownloadCommand.cc
  8361. * src/FtpNegotiationCommand.cc
  8362. * src/HttpSkipResponseCommand.cc
  8363. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8364. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  8365. * src/AbstractCommand.cc
  8366. * src/AbstractCommand.h
  8367. * src/ActivePeerConnectionCommand.cc
  8368. * src/FtpInitiateConnectionCommand.cc
  8369. * src/HttpInitiateConnectionCommand.cc
  8370. * src/InitiateConnectionCommandFactory.cc
  8371. * src/PeerAbstractCommand.cc
  8372. * src/PeerAbstractCommand.h
  8373. * src/PeerInitiateConnectionCommand.cc
  8374. * src/TrackerWatcherCommand.cc
  8375. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8376. Sort RequestSlot in ascending order and manipulate them using
  8377. lower_bound.
  8378. * src/DefaultBtMessageDispatcher.cc
  8379. * src/DefaultBtMessageDispatcher.h
  8380. (getMessageQueue): Added const qualifier.
  8381. (getRequestSlots): Added const qualifier.
  8382. (sendMessages): Use empty() instead of size().
  8383. (doCancelSendingPieceAction): Use HandleEvent object.
  8384. (doAbortOutstandingRequestAction): Rewritten.
  8385. (doChokedAction): Rewritten.
  8386. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  8387. (isOutstandingRequest): Rewritten.
  8388. (getOutstandingRequest): Rewritten.
  8389. (removeOutstandingRequest): Rewritten.
  8390. (addOutstandingRequest): Rewritten.
  8391. * src/RequestSlot.cc
  8392. * src/RequestSlot.h
  8393. (operator=): Rewritten.
  8394. (operator!=): New function.
  8395. (operator<): New function.
  8396. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8397. * src/DefaultBtRequestFactory.cc
  8398. (doChokedAction): Rewritten.
  8399. (removeCompletedPiece): Rewritten.
  8400. (removeTargetPiece): Rewritten.
  8401. (createRequestMessages): Added the debug log.
  8402. (createRequestMessagesOnEndGame: Added the debug log.
  8403. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8404. Added the debug log message.
  8405. * src/BtPieceMessage.cc (doReceivedAction)
  8406. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8407. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  8408. used lower_bound to process them rather than linear search.
  8409. * src/DHTPeerAnnounceStorage.cc
  8410. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8411. Call subtractPieceStats from ~PeerInteractionCommand only when the
  8412. peer has at least one completed piece.
  8413. * src/Peer.cc
  8414. * src/Peer.h
  8415. * src/PeerInteractionCommand.cc
  8416. * src/PeerSessionResource.cc
  8417. * src/PeerSessionResource.h
  8418. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8419. Removed unnecessary sorting
  8420. * src/DefaultPieceStorage (DefaultPieceStorage)
  8421. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8422. Rewritten the portion of the code that mangaes allowed fast indexes.
  8423. * src/PeerSessionResource.cc
  8424. * src/PeerSessionResource.h
  8425. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8426. Removed the invalid string including '\r' from ru.po and
  8427. did make update-po.
  8428. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8429. Added --log-level and --summary-interval to man page.
  8430. * doc/aria2c.1.txt
  8431. * doc/aria2c.1.html
  8432. * doc/aria2c.1
  8433. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8434. Added --log-level option to specify log level. Log messages under
  8435. the specified level are not output. Default value is `debug'.
  8436. * src/HelpItemFactory.cc
  8437. * src/LogFactory.cc
  8438. * src/LogFactory.h
  8439. * src/Logger.h
  8440. * src/OptionHandlerFactory.cc
  8441. * src/SimpleLogger.cc
  8442. * src/SimpleLogger.h
  8443. * src/main.cc
  8444. * src/option_processing.cc
  8445. * src/prefs.h
  8446. * src/usage_text.h
  8447. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8448. Print download progress summary of all parallel downloads in specified
  8449. interval, default 60 secs. While aria2 could download several files
  8450. in parallel (see -j option), it displayed just first download progress,
  8451. and the other downloads are hidden from the users. This new feature
  8452. prints all downloads currently in-progress to the console so that you
  8453. can check the status of all downloads. The interval can be adjusted
  8454. by --summary-interval option.
  8455. The progress readout is now cut so that all fits in the one line of
  8456. console.
  8457. * src/ConsoleStatCalc.cc
  8458. * src/ConsoleStatCalc.h
  8459. * src/HelpItemFactory.cc
  8460. * src/OptionHandlerFactory.cc
  8461. * src/RequestGroupMan.cc
  8462. * src/RequestGroupMan.h
  8463. * src/main.cc
  8464. * src/option_processing.cc
  8465. * src/prefs.h
  8466. * src/usage_text.h
  8467. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8468. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  8469. * src/DownloadEngine.cc (DownloadEngine)
  8470. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8471. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  8472. defined.
  8473. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  8474. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8475. Use erase+lower_bound+insert instead of sort.
  8476. * src/DefaultPieceStorage.cc (addPieceStats)
  8477. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8478. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  8479. * src/A2STR.cc
  8480. * src/A2STR.h
  8481. * src/OptionParser.cc (parse)
  8482. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8483. Defined fake filename `[tracker.announce]' as static const std::string.
  8484. * src/TrackerWatcherCommand.cc (createRequestGroup)
  8485. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8486. Defined default filename `index.html' as static const std::string
  8487. * src/SingleFileDownloadContext.cc
  8488. * src/SingleFileDownloadContext.h
  8489. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8490. Defined "[MEMORY]" as static const std::string.
  8491. * src/MemoryBufferPreDownloadHandler.cc (execute)
  8492. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8493. Defined control file's version number as static const std::string.
  8494. * src/DefaultBtProgressInfoFile.cc
  8495. * src/DefaultBtProgressInfoFile.h
  8496. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8497. Use Request::METHOD_GET
  8498. * src/RequestGroup.cc (createNextCommandWithAdj)
  8499. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8500. Defined "OK", "ERR", "INPR" as static const std::string
  8501. * src/RequestGroupMan.cc (showDownloadResults)
  8502. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8503. Defined default client used in extended handshake as static const
  8504. std::string
  8505. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  8506. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8507. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  8508. * src/HttpConnection.cc (eraseConfidentialInfo)
  8509. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8510. Defined default ftp user and password as static const std::string
  8511. * src/AuthConfigFactory.cc
  8512. * src/AuthConfigFactory.h
  8513. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8514. Defined strings used in netrc as static const std::string
  8515. * src/Netrc.cc
  8516. * src/Netrc.h
  8517. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8518. Defined HTTP status as static const std::string
  8519. * src/AbstractProxyResponseCommand.cc
  8520. * src/HttpHeader.cc
  8521. * src/HttpHeader.h
  8522. * src/HttpResponse.cc
  8523. * src/HttpResponseCommand.cc
  8524. * src/HttpSkipResponseCommand.cc
  8525. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8526. Defined "\r\n", "A", "I" as static const std::string
  8527. * src/A2STR.cc
  8528. * src/A2STR.h
  8529. * src/FtpConnection.cc
  8530. * src/FtpConnection.h
  8531. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8532. Added COLON_C(".") and used it in Request::parseUrl()
  8533. * src/A2STR.cc
  8534. * src/A2STR.h
  8535. * src/Request.cc (parseUrl)
  8536. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8537. Changed the type of padName from `const std::string&' to `const char*'.
  8538. * src/MSEHandshake.cc (verifyPadLength)
  8539. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8540. Defined "sha1" as static const std::string.
  8541. * src/MetalinkParserController.cc
  8542. * src/MetalinkParserController.h
  8543. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8544. Defined message digest algorithm name as static const std::string
  8545. * src/DHTTokenTracker.cc
  8546. * src/DHTUtil.cc
  8547. * src/DefaultBtContext.cc
  8548. * src/MSEHandshake.cc
  8549. * src/MessageDigestHelper.cc
  8550. * src/Peer.cc
  8551. * src/messageDigest.cc
  8552. * src/messageDigest.h
  8553. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8554. Made string literals used in SAX parser static const std::string.
  8555. * src/FileMetalinkParserState.cc
  8556. * src/FileMetalinkParserState.h
  8557. * src/FilesMetalinkParserState.cc
  8558. * src/FilesMetalinkParserState.h
  8559. * src/InitialMetalinkParserState.cc
  8560. * src/InitialMetalinkParserState.h
  8561. * src/MetalinkMetalinkParserState.cc
  8562. * src/MetalinkMetalinkParserState.h
  8563. * src/PiecesMetalinkParserState.cc
  8564. * src/PiecesMetalinkParserState.h
  8565. * src/ResourcesMetalinkParserState.cc
  8566. * src/ResourcesMetalinkParserState.h
  8567. * src/VerificationMetalinkParserState.cc
  8568. * src/VerificationMetalinkParserState.h
  8569. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8570. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  8571. * src/A2STR.cc
  8572. * src/A2STR.h
  8573. * src/File.cc
  8574. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8575. Defined static const std::string IP("ip"), PORT("port") and use them
  8576. instead of string literals.
  8577. * src/DefaultPeerListProcessor.cc
  8578. * src/DefaultPeerListProcessor.h
  8579. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8580. Made string literals for torrent file processing static const
  8581. std::string.
  8582. * src/BtContext.cc
  8583. * src/BtContext.h
  8584. * src/DefaultBtContext.cc
  8585. * src/DefaultBtContext.h
  8586. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8587. Made string literal for tracker response static const std::string
  8588. * src/BtAnnounce.cc
  8589. * src/BtAnnounce.h
  8590. * src/DefaultBtAnnounce.cc
  8591. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8592. Use DHTMessage::T instead of "t".
  8593. * src/DHTMessageTracker.cc (messageArrived)
  8594. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8595. Made keyName static const. Made trimmed charset static const
  8596. std::string.
  8597. * src/Util.cc (getContentDispositionFilename)
  8598. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8599. Made USER_AGENT const. Made "/" static const std::string.
  8600. * src/A2STR.cc
  8601. * src/A2STR.h
  8602. * src/HttpRequest.cc
  8603. * src/HttpRequest.h
  8604. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8605. Made string listeral to static const std::string:
  8606. "Content-Range", "Content-Length"
  8607. * src/HttpHeader.cc
  8608. * src/HttpHeader.h
  8609. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8610. Made string listeral to static const std::string.
  8611. * src/HttpConnection.cc
  8612. * src/HttpHeader.cc
  8613. * src/HttpHeader.h
  8614. * src/HttpResponse.cc
  8615. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8616. Made string listeral to static const std::string.
  8617. * src/A2STR.cc
  8618. * src/A2STR.h
  8619. * src/SimpleLogger.cc
  8620. * src/SimpleLogger.h
  8621. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8622. Made string literal to static const std::string.
  8623. Rewritten CookieParser::setField.
  8624. * src/A2STR.cc
  8625. * src/A2STR.h
  8626. * src/CookieBoxFactory.cc
  8627. * src/CookieBoxFactory.h
  8628. * src/CookieParser.cc
  8629. * src/CookieParser.h
  8630. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8631. Made string literal to static const std::string
  8632. * src/DHTAbstractMessage.cc
  8633. * src/DHTAnnouncePeerMessage.cc
  8634. * src/DHTAnnouncePeerMessage.h
  8635. * src/DHTAnnouncePeerReplyMessage.cc
  8636. * src/DHTAnnouncePeerReplyMessage.h
  8637. * src/DHTFindNodeMessage.cc
  8638. * src/DHTFindNodeMessage.h
  8639. * src/DHTFindNodeReplyMessage.cc
  8640. * src/DHTFindNodeReplyMessage.h
  8641. * src/DHTGetPeersMessage.cc
  8642. * src/DHTGetPeersMessage.h
  8643. * src/DHTGetPeersReplyMessage.cc
  8644. * src/DHTGetPeersReplyMessage.h
  8645. * src/DHTMessage.cc
  8646. * src/DHTMessage.h
  8647. * src/DHTMessageFactoryImpl.cc
  8648. * src/DHTMessageReceiver.cc
  8649. * src/DHTPingMessage.cc
  8650. * src/DHTPingMessage.h
  8651. * src/DHTPingReplyMessage.cc
  8652. * src/DHTPingReplyMessage.h
  8653. * src/DHTQueryMessage.cc
  8654. * src/DHTQueryMessage.h
  8655. * src/DHTResponseMessage.cc
  8656. * src/DHTResponseMessage.h
  8657. * src/DHTUnknownMessage.cc
  8658. * src/DHTUnknownMessage.h
  8659. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8660. Made string literal to static const std::string
  8661. * src/BtChokeMessage.cc (toString)
  8662. * src/BtHaveAllMessage.cc (toString)
  8663. * src/BtHaveNoneMessage.cc (toString)
  8664. * src/BtInterestedMessage.cc (toString)
  8665. * src/BtNotInterestedMessage.cc (toString)
  8666. * src/BtUnchokeMessage.cc (toString)
  8667. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8668. Replaced "" with static const variable A2STR::NIL.
  8669. Replaced string comparison against "" with std::string::empty().
  8670. Added PROTO_* to Request class and use them as a protocol string
  8671. constant.
  8672. Made "started", "stopped", "completed" static const variable in
  8673. AnnounceList class.
  8674. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8675. Updated translations. Great thanks to translators.
  8676. * po/ca.po
  8677. * po/de.po
  8678. * po/fr.po
  8679. * po/it.po
  8680. * po/ja.po
  8681. * po/ru.po
  8682. * po/zh_CN.po
  8683. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8684. Updated man page; categorized options and fixed typo.
  8685. * doc/aria2c.1.txt
  8686. * doc/aria2c.1.html
  8687. * doc/aria2c.1
  8688. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8689. Removed const ref
  8690. * src/MetalinkEntry.cc (AddProtocolPreference)
  8691. * src/RequestGroup.cc (FindServerHostByHostname)
  8692. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8693. Rewritten Accept-Features handling.
  8694. * src/HttpRequestCommand.cc (createHttpRequest)
  8695. * src/a2functional.h
  8696. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8697. Changed method signature:
  8698. DHTAbstractNodeLookupTask::toEntries
  8699. * src/DHTAbstractNodeLookupTask.cc
  8700. * src/DHTAbstractNodeLookupTask.h
  8701. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8702. Changed method signature:
  8703. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  8704. * src/BtContext.h
  8705. * src/DefaultBtContext.cc
  8706. * src/DefaultBtContext.h
  8707. * src/DefaultBtInteractive.cc
  8708. * test/DefaultBtContextTest.cc
  8709. * test/MockBtContext.h
  8710. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8711. Changed method signature:
  8712. MultiFileAllocationIterator::makeDiskWriterEntries
  8713. * src/MultiFileAllocationIterator.cc
  8714. * src/MultiFileAllocationIterator.h
  8715. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8716. Changed method sinature:
  8717. MetalinkEntry::toFileEntry,
  8718. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  8719. Metalinker::queryEntry
  8720. * src/Metalink2RequestGroup.cc
  8721. * src/MetalinkEntry.cc
  8722. * src/MetalinkEntry.h
  8723. * src/MetalinkHelper.cc
  8724. * src/MetalinkHelper.h
  8725. * src/Metalinker.cc
  8726. * src/Metalinker.h
  8727. * src/main.cc
  8728. * test/MetalinkHelperTest.cc
  8729. * test/MetalinkerTest.cc
  8730. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8731. Changed method sinature:
  8732. RequestGroup::getURIs
  8733. * src/RequestGroup.cc
  8734. * src/RequestGroup.h
  8735. * test/Metalink2RequestGroupTest.cc
  8736. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8737. Changed method signature:
  8738. PeerListProcessor::extractPeer
  8739. * src/CompactPeerListProcessor.cc
  8740. * src/CompactPeerListProcessor.h
  8741. * src/DefaultBtAnnounce.cc
  8742. * src/DefaultPeerListProcessor.cc
  8743. * src/DefaultPeerListProcessor.h
  8744. * src/DelegatingPeerListProcessor.cc
  8745. * src/DelegatingPeerListProcessor.h
  8746. * src/PeerListProcessor.h
  8747. * src/UTPexExtensionMessage.cc
  8748. * test/DefaultPeerListProcessorTest.cc
  8749. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8750. Changed method signature:
  8751. BtRequestFactory::createRequestMessages,
  8752. BtRequestFactory::createRequestMessagesOnEndGame
  8753. * src/BtRequestFactory.h
  8754. * src/DefaultBtInteractive.cc
  8755. * src/DefaultBtRequestFactory.cc
  8756. * src/DefaultBtRequestFactory.h
  8757. * test/DefaultBtRequestFactoryTest.cc
  8758. * test/MockBtRequestFactory.h
  8759. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8760. Changed method signature:
  8761. PieceStorage::getInFlightPieces
  8762. * src/DefaultBtProgressInfoFile.cc
  8763. * src/DefaultPieceStorage.cc
  8764. * src/DefaultPieceStorage.h
  8765. * src/PieceStorage.h
  8766. * src/UnknownLengthPieceStorage.cc
  8767. * src/UnknownLengthPieceStorage.h
  8768. * test/DefaultBtProgressInfoFileTest.cc
  8769. * test/MockPieceStorage.h
  8770. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8771. Changed method signature:
  8772. PostDownloadHandler::getNextRequestGroups
  8773. Metalink2RequestGroup::generate
  8774. RequestGroup::postDownloadProcessing
  8775. * src/BtPostDownloadHandler.cc
  8776. * src/BtPostDownloadHandler.h
  8777. * src/Metalink2RequestGroup.cc
  8778. * src/Metalink2RequestGroup.h
  8779. * src/MetalinkPostDownloadHandler.cc
  8780. * src/MetalinkPostDownloadHandler.h
  8781. * src/PostDownloadHandler.h
  8782. * src/RequestGroup.cc
  8783. * src/RequestGroup.h
  8784. * src/RequestGroupMan.cc
  8785. * src/main.cc
  8786. * test/BtPostDownloadHandlerTest.cc
  8787. * test/Metalink2RequestGroupTest.cc
  8788. * test/MetalinkPostDownloadHandlerTest.cc
  8789. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8790. Rewritten AccRequestGroup
  8791. * src/main.cc
  8792. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8793. Rewritten.
  8794. * src/TaggedItem.cc (toTagString)
  8795. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8796. Rewritten Accept-Features handling.
  8797. * src/HttpRequestCommand.cc (createHttpRequest)
  8798. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8799. Rewritten accept types handling.
  8800. * HttpRequest.cc (createRequest)
  8801. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8802. Rewritten
  8803. * src/FeatureConfig.cc (featureSummary)
  8804. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8805. Changed method signature:
  8806. PeerStorage::getActivePeers
  8807. * src/DHTPeerAnnounceEntry.cc
  8808. * src/DefaultPeerStorage.cc
  8809. * src/DefaultPeerStorage.h
  8810. * src/PeerStorage.h
  8811. * test/DefaultPeerStorageTest.cc
  8812. * test/MockPeerStorage.h
  8813. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8814. Changed method signature:
  8815. DHTPeerAnnounceStorage::getPeers,
  8816. DHTPeerAnnounceEntry::getPeers
  8817. * src/DHTGetPeersMessage.cc
  8818. * src/DHTPeerAnnounceEntry.cc
  8819. * src/DHTPeerAnnounceEntry.h
  8820. * src/DHTPeerAnnounceStorage.cc
  8821. * src/DHTPeerAnnounceStorage.h
  8822. * test/DHTAnnouncePeerMessageTest.cc
  8823. * test/DHTPeerAnnounceEntryTest.cc
  8824. * test/DHTPeerAnnounceStorageTest.cc
  8825. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8826. Changed method signature:
  8827. NameResolver::resolve
  8828. * src/DHTEntryPointNameResolveCommand.cc
  8829. * src/InitiateConnectionCommand.cc
  8830. * src/NameResolver.cc
  8831. * src/NameResolver.h
  8832. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8833. Changed method signature:
  8834. PieceStorage::getAdvertisedPieceIndexes
  8835. * src/DefaultBtInteractive.cc
  8836. * src/DefaultPieceStorage.cc
  8837. * src/DefaultPieceStorage.h
  8838. * src/PieceStorage.h
  8839. * src/UnknownLengthPieceStorage.h
  8840. * test/MockPieceStorage.h
  8841. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8842. Changed method signature:
  8843. SegmentMan::getInFlightSegment
  8844. * src/AbstractCommand.cc
  8845. * src/SegmentMan.cc
  8846. * src/SegmentMan.h
  8847. * test/SegmentManTest.cc
  8848. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8849. Changed method signature:
  8850. DHTAbstractNodeLookupTask::getNodesFromMessage
  8851. * src/DHTAbstractNodeLookupTask.cc
  8852. * src/DHTAbstractNodeLookupTask.h
  8853. * src/DHTNodeLookupTask.cc
  8854. * src/DHTNodeLookupTask.h
  8855. * src/DHTPeerLookupTask.cc
  8856. * src/DHTPeerLookupTask.h
  8857. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8858. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  8859. * src/AbstractCommand.cc
  8860. * src/BtCheckIntegrityEntry.cc
  8861. * src/BtCheckIntegrityEntry.h
  8862. * src/BtFileAllocationEntry.cc
  8863. * src/BtFileAllocationEntry.h
  8864. * src/BtSetup.cc
  8865. * src/BtSetup.h
  8866. * src/CheckIntegrityCommand.cc
  8867. * src/CheckIntegrityEntry.h
  8868. * src/ChecksumCheckIntegrityEntry.cc
  8869. * src/ChecksumCheckIntegrityEntry.h
  8870. * src/DHTSetup.cc
  8871. * src/DHTSetup.h
  8872. * src/DownloadEngine.cc
  8873. * src/FileAllocationCommand.cc
  8874. * src/FileAllocationEntry.h
  8875. * src/RequestGroup.cc
  8876. * src/RequestGroup.h
  8877. * src/RequestGroupMan.cc
  8878. * src/RequestGroupMan.h
  8879. * src/StreamCheckIntegrityEntry.cc
  8880. * src/StreamCheckIntegrityEntry.h
  8881. * src/StreamFileAllocationEntry.cc
  8882. * src/StreamFileAllocationEntry.h
  8883. * src/TrackerWatcherCommand.cc
  8884. * src/a2functional.h
  8885. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8886. Changed method signature:
  8887. BNode::findClosestKNodes, BNode:: enumerateBucket,
  8888. DHTBucket::getGoodNodes,
  8889. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  8890. * src/BNode.cc
  8891. * src/BNode.h
  8892. * src/DHTAbstractNodeLookupTask.cc
  8893. * src/DHTAutoSaveCommand.cc
  8894. * src/DHTBucket.cc
  8895. * src/DHTBucket.h
  8896. * src/DHTBucketRefreshTask.cc
  8897. * src/DHTFindNodeMessage.cc
  8898. * src/DHTGetPeersMessage.cc
  8899. * src/DHTRoutingTable.cc
  8900. * src/DHTRoutingTable.h
  8901. * test/BNodeTest.cc
  8902. * test/DHTBucketTest.cc
  8903. * test/DHTRoutingTableTest.cc
  8904. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8905. In piece selection functions, Pass std::deque<...> by reference rather
  8906. than returning it.
  8907. * src/BitfieldMan.cc
  8908. * src/BitfieldMan.h
  8909. * src/DefaultBtRequestFactory.cc
  8910. * src/DefaultPieceStorage.cc
  8911. * src/Piece.cc
  8912. * src/Piece.h
  8913. * test/BitfieldManTest.cc
  8914. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8915. Implemented rarest piece first piece selection strategy.
  8916. * src/AbstractBtMessage.cc
  8917. * src/AbstractBtMessage.h
  8918. * src/BitfieldMan.cc
  8919. * src/BitfieldMan.h
  8920. * src/BtBitfieldMessage.cc
  8921. * src/BtHaveAllMessage.cc
  8922. * src/BtHaveMessage.cc
  8923. * src/DefaultPieceStorage.cc
  8924. * src/DefaultPieceStorage.h
  8925. * src/PeerInteractionCommand.cc
  8926. * src/PieceStorage.h
  8927. * src/UnknownLengthPieceStorage.h
  8928. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8929. Rewritten readData and writeData.
  8930. * src/MultiDiskAdaptor.cc
  8931. * src/MultiDiskAdaptor.h
  8932. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8933. Move \n out of the message "Usage: ...".
  8934. * src/version_usage.cc
  8935. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8936. Bump up version number to 0.13.2b.
  8937. * configure.ac
  8938. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8939. Added const qualifier to argument Exception& e.
  8940. * src/Logger.h
  8941. * src/SimpleLogger.cc
  8942. * src/SimpleLogger.h
  8943. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8944. Pool connection when CWD, SIZE command fails.
  8945. * src/FtpNegotiationCommand.cc
  8946. * src/FtpNegotiationCommand.h
  8947. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8948. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  8949. * src/HttpResponseCommand.cc
  8950. * src/HttpSkipResponseCommand.cc
  8951. * src/HttpSkipResponseCommand.h
  8952. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8953. Pool connection when a server returns 4xx, 5xx responses.
  8954. * src/HttpNullDownloadCommand.cc
  8955. * src/HttpNullDownloadCommand.h
  8956. * src/HttpResponse.cc
  8957. * src/HttpResponse.h
  8958. * src/HttpResponseCommand.cc
  8959. * src/HttpResponseCommand.h
  8960. * test/HttpResponseTest.cc
  8961. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8962. Print usage when no URL is specifed or bad command-line option is
  8963. specified.
  8964. * src/HelpItemFactory.cc
  8965. * src/help_tags.h
  8966. * src/option_processing.cc
  8967. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8968. Removed duplicate log message.
  8969. * src/AbstractCommand.cc (asyncResolveHostname)
  8970. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8971. Updated man page: --async-dns and --ftp-reuse-connection were added.
  8972. Changed -j option's default value from 5 to 1.
  8973. Added new examples using protocol auto detection feature.
  8974. Removed -T, -M usage where it can be omitted.
  8975. * doc/aria2c.1.txt
  8976. * doc/aria2c.1.html
  8977. * doc/aria2c.1.txt
  8978. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8979. Updated command-line usage text, so that it tells users that they
  8980. can specify any number of torrent files and metalink files in
  8981. command-line.
  8982. * src/version_usage.cc
  8983. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8984. Changed the default value of -j option to 1.
  8985. * src/HelpItemFactory.cc
  8986. * src/option_processing.cc
  8987. * src/usage_text.h
  8988. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8989. Added the ability to reuse connection in FTP and it is enabled by
  8990. default. It can be disabled by --ftp-reuse-connection=false option.
  8991. * src/Command.cc
  8992. * src/DownloadCommand.cc
  8993. * src/FtpDownloadCommand.cc
  8994. * src/FtpDownloadCommand.h
  8995. * src/FtpFinishDownloadCommand.cc
  8996. * src/FtpFinishDownloadCommand.h
  8997. * src/FtpInitiateConnectionCommand.cc
  8998. * src/FtpNegotiationCommand.cc
  8999. * src/FtpNegotiationCommand.h
  9000. * src/HelpItemFactory.cc
  9001. * src/Makefile.am
  9002. * src/Makefile.in
  9003. * src/OptionHandlerFactory.cc
  9004. * src/option_processing.cc
  9005. * src/prefs.h
  9006. * src/usage_text.h
  9007. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9008. Call Command::transitStatus() before calling Command::execute(),
  9009. so that the status change made in execute() is not cleared.
  9010. * src/DownloadEngine.cc
  9011. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9012. Removed forward declaration of SocketCore class.
  9013. * src/HttpDownloadCommand.h
  9014. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9015. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  9016. in InitiateConnectionCommandFactory. They should be set only when
  9017. the protocol is HTTP or HTTPS.
  9018. * src/InitiateConnectionCommandFactory.cc
  9019. * src/RequestGroup.cc
  9020. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9021. Fixed infinite loop in checksum checking.
  9022. * src/IteratableChecksumValidator.cc
  9023. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9024. Set _supportsPersistentConnection to true by default.
  9025. * src/Request.cc
  9026. * src/RequestGroup.cc
  9027. * test/HttpRequestTest.cc
  9028. * test/RequestTest.cc
  9029. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9030. Added timeout to socket pool. The default timeout is 15 seconds,
  9031. which is the same value Apache uses.
  9032. * src/DownloadEngine.cc
  9033. * src/DownloadEngine.h
  9034. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9035. Fixed misuse of multimap::find()
  9036. * src/HttpHeader.cc
  9037. * test/HttpHeaderTest.cc
  9038. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9039. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  9040. option.
  9041. The asynchronous DNS is not capable of IPv6 yet.
  9042. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  9043. least for HTTP download.
  9044. * src/AbstractCommand.cc
  9045. * src/AbstractCommand.h
  9046. * src/AsyncNameResolver.cc
  9047. * src/AsyncNameResolver.h
  9048. * src/DHTEntryPointNameResolveCommand.cc
  9049. * src/DHTEntryPointNameResolveCommand.h
  9050. * src/DownloadEngine.cc
  9051. * src/DownloadEngine.h
  9052. * src/FtpInitiateConnectionCommand.cc
  9053. * src/FtpInitiateConnectionCommand.h
  9054. * src/HelpItemFactory.cc
  9055. * src/HttpInitiateConnectionCommand.cc
  9056. * src/HttpInitiateConnectionCommand.h
  9057. * src/InitiateConnectionCommand.cc
  9058. * src/InitiateConnectionCommand.h
  9059. * src/Makefile.am
  9060. * src/Makefile.in
  9061. * src/NameResolver.cc
  9062. * src/NameResolver.h
  9063. * src/OptionHandlerFactory.cc
  9064. * src/SocketCore.cc
  9065. * src/SocketCore.h
  9066. * src/Util.cc
  9067. * src/Util.h
  9068. * src/option_processing.cc
  9069. * src/prefs.h
  9070. * src/usage_text.h
  9071. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9072. Updated man page: --quiet, --header were added.
  9073. --metalink-servers and --enable-http-keep-alive option were updated.
  9074. * doc/aria2c.1
  9075. * doc/aria2c.1.html
  9076. * doc/aria2c.1.txt
  9077. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9078. Enable HTTP keep-alive by default.
  9079. * src/HelpItemFactory.cc
  9080. * src/option_processing.cc
  9081. * src/usage_text.h
  9082. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9083. Disable http keep-alive if the remote server is not HTTP/1.1.
  9084. * src/HttpConnection.cc
  9085. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9086. Receive content body of 302 response so that the connection can be
  9087. reused later when http keep-alive is enabled.
  9088. * src/HttpNullDownloadCommand.cc
  9089. * src/HttpNullDownloadCommand.h
  9090. * src/HttpResponseCommand.cc
  9091. * src/HttpResponseCommand.h
  9092. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9093. const SharedHandle<Request> -> const SharedHandle<Request>&
  9094. * src/FtpDowndloadCommand.cc
  9095. * src/FtpDowndloadCommand.h
  9096. * src/HttpDownloadCommand.cc
  9097. * src/HttpDownloadCommand.h
  9098. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9099. Fixed the bug that the control file(.aria2 file) is not renamed
  9100. according to tryAutoFileRenaming().
  9101. tryAutoFileRenaming() was rewritten so that if both renamed file and
  9102. its control file exist, use them and continue download.
  9103. The old implementation didn't take into account of control file's
  9104. existence, so basically you couldn't continue download of renamed file.
  9105. * src/BtProgressInfoFile.h
  9106. * src/DefaultBtProgressInfoFile.cc
  9107. * src/DefaultBtProgressInfoFile.h
  9108. * src/NullProgressInfoFile.h
  9109. * src/RequestGroup.cc
  9110. * test/DefaultBtProgressInfoFileTest.cc
  9111. * test/MockBtProgressInfoFile.h
  9112. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9113. Change the default value of --metalink-servers option from `5' to `1'.
  9114. * src/HelpItemFactory.cc
  9115. * src/option_processing.cc
  9116. * src/usage_text.h
  9117. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9118. Reimplemented transparent metalink using Accept request header.
  9119. * src/HttpRequest.cc
  9120. * src/HttpRequest.h
  9121. * src/HttpRequestCommand.cc
  9122. * src/Metalink2RequestGroup.cc
  9123. * src/RequestGroup.cc
  9124. * src/RequestGroup.h
  9125. * test/HttpRequestTest.cc
  9126. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9127. Bump up version number to 0.13.2a
  9128. * configure.ac
  9129. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9130. Updated configure.ac using the result of autoscan.
  9131. * configure.ac
  9132. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9133. Fixed compilation error without gcrypt/openssl.
  9134. * src/DownloadCommand.cc
  9135. * src/DownloadCommand.h
  9136. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9137. Reorganized version information so that it can be displayed in a
  9138. standard terminal screen without scrolling.
  9139. Removed http, ftp from Configuration section, because they are always
  9140. enabled.
  9141. * src/FeatureConfig.cc
  9142. * src/FeatureConfig.h
  9143. * src/main.cc
  9144. * src/messageDigest.cc
  9145. * src/messageDigest.h
  9146. * src/version_usage.cc
  9147. * test/FeatureConfigTest.cc
  9148. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9149. Masked user ID in log.
  9150. * src/FtpConnection.cc (sendUser)
  9151. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9152. Removed query part from filename in HTTP download. The query part means
  9153. the substring after "?" in URL. Firefox seems do the same thing.
  9154. A query part is sometimes very long and not suitable to filename,
  9155. so I think it is better to remove it from filename.
  9156. * src/HttpRequest.cc
  9157. * src/HttpRequest.h
  9158. * src/Request.cc
  9159. * src/Request.h
  9160. * test/HttpRequestTest.cc
  9161. * test/RequestTest.cc
  9162. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9163. Rewritten Exception class. Throw exception object, not its pointer and
  9164. catch by reference, so that remove problematic delete operator for
  9165. catched exception.
  9166. * src/Exception.cc
  9167. * src/Exception.h
  9168. * test/ExceptionTest.cc
  9169. * src/*: All files throwing/catching exception.
  9170. * test/*: All files throwing/catching exception.
  9171. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9172. Now auto protocol detection is enabled without -Z option.
  9173. But there is a important difference between with/without -Z optoin.
  9174. For example, if you type:
  9175. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  9176. then, aria2 interprets there are 3 request groups:
  9177. (1) http://host/file, http://mirror/file <-- multi-source download
  9178. (2) file1.torrent
  9179. (3) file2.metalink
  9180. On the other hand, if you invoke above command with -Z option, it is
  9181. interpreted as 4 request groups:
  9182. (1) http://host/file
  9183. (2) file1.torrent
  9184. (3) file2.metalink
  9185. (4) http://mirror/file
  9186. I think usually user don't mix multi-source URLs and torrent files, so
  9187. there is no big problem here.
  9188. * src/main.cc
  9189. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9190. Fixed the bug that causes segmentaion fault when reading XML containing
  9191. unescapsed character like '&'.
  9192. Also a modification was made which avoids adding unnecessary
  9193. characters stack and appending unused string.
  9194. * src/ExpatMetalinkProcessor.cc
  9195. * src/FileMetalinkParserState.h
  9196. * src/FilesMetalinkParserState.h
  9197. * src/FinMetalinkParserState.h
  9198. * src/HashMetalinkParserState.h
  9199. * src/InitialMetalinkParserState.h
  9200. * src/LanguageMetalinkParserState.h
  9201. * src/MetalinkMetalinkParserState.h
  9202. * src/MetalinkParserState.h
  9203. * src/MetalinkParserStateMachine.cc
  9204. * src/MetalinkParserStateMachine.h
  9205. * src/OSMetalinkParserState.h
  9206. * src/PieceHashMetalinkParserState.h
  9207. * src/PiecesMetalinkParserState.h
  9208. * src/ResourcesMetalinkParserState.h
  9209. * src/SizeMetalinkParserState.h
  9210. * src/SkipTagMetalinkParserState.h
  9211. * src/URLMetalinkParserState.h
  9212. * src/VerificationMetalinkParserState.h
  9213. * src/VersionMetalinkParserState.h
  9214. * src/XML2SAXMetalinkProcessor.cc
  9215. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9216. Added StringFormat class, which internally calls vasprintf.
  9217. operator<< is defined for this class, so it can be used with iostream
  9218. classes nicely. SimpleLogger and following functions are rewritten
  9219. using StringFormat class.
  9220. Besides, now Logger class's methods are non-const, many classes
  9221. that has a const Logger* as a member variable are modified to remove
  9222. const qualifier from the variable declaration.
  9223. * src/HelpItemFactory.cc
  9224. * src/Request.cc
  9225. * src/SimpleLogger.cc
  9226. * src/StringFormat.cc
  9227. * src/StringFormat.h
  9228. * src/Util.cc
  9229. * src/option_processing.cc
  9230. * src/version_usage.cc
  9231. * test/StringFormatTest.cc
  9232. * src/*.h: The classes that has const Logger* as a member variable.
  9233. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9234. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  9235. failed. Also fixed memory link when exception is thrown there.
  9236. * src/main.cc (AccRequestGroup)
  9237. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9238. Added build-in "Accept-Features" support. For now only "metalink" is
  9239. used in this header field.
  9240. This "metalink" value is removed from the list when connecting URLs
  9241. fed by metalink file to avoid loop in "transparent" metlaink.
  9242. * src/HttpRequest.cc
  9243. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  9244. header is also held in this variable. Also renamed setUserHeaders as
  9245. addHeader and it was rewritten to add header not just to clear the old
  9246. value.
  9247. * src/HttpRequestCommand.cc
  9248. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  9249. from "Accept-Features" list.
  9250. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  9251. default.
  9252. * src/RequestGroup.h
  9253. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  9254. * src/a2functional.h: Included <string> because Concat class depends on
  9255. it.
  9256. * test/HttpRequestTest.cc
  9257. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9258. Added comment
  9259. * src/RequestGroup.cc (createNextCommand)
  9260. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9261. Capitalized METHOD_GET and METHOD_HEAD
  9262. * src/Request.cc
  9263. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9264. Added getDownloadResults() method
  9265. * src/RequestGroupMan.cc
  9266. * src/RequestGroupMan.h
  9267. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9268. Fixed the bug that aria2 exits when commands is empty() but
  9269. _routineCommands are not.
  9270. * src/DownloadEngine.cc
  9271. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9272. Use the default value pulled from Option object in HelpItemFactory.
  9273. except options whose defualt value is embedded in a usage text.
  9274. * src/HelpItemFactory.cc
  9275. * src/HelpItemFactory.h
  9276. * src/option_processing.cc
  9277. * src/version_usage.cc
  9278. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9279. Added --quiet option to make aria2 quiet (no console output).
  9280. --quiet option is tagged with ADVANCED.
  9281. * src/HelpItemFactory.cc
  9282. * src/LogFactory.cc
  9283. * src/LogFactory.h
  9284. * src/MultiUrlRequestInfo.cc
  9285. * src/MultiUrlRequestInfo.h
  9286. * src/NullStatCalc.h: New class. This class prints nothing.
  9287. * src/OptionHandlerFactory.cc
  9288. * src/main.cc
  9289. * src/option_processing.cc
  9290. * src/prefs.h
  9291. * src/usage_text.h
  9292. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9293. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  9294. * src/HelpItemFactory.cc (createHelpItems):
  9295. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9296. Fixed compilation error in ExpatMetalinkProcessor.cc
  9297. * src/ExpatMetalinkProcessor.cc
  9298. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9299. Reuse socket if the origin server supports HTTP keep-alive and
  9300. --enable-http-keep-alive or --enable-http-pipelining is given.
  9301. The current implementation doesn't reuse the connections established
  9302. against proxy server.
  9303. * src/AbstractCommand.cc
  9304. * src/DownloadEngine.cc
  9305. * src/DownloadEngine.h
  9306. * src/HttpDownloadCommand.cc
  9307. * src/HttpInitiateConnectionCommand.cc
  9308. * src/HttpResponseCommand.cc
  9309. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9310. Rewritten HTTP keep-alive and pipelining routine.
  9311. * src/AbstractCommand.cc
  9312. * src/HttpConnection.cc
  9313. * src/HttpDownloadCommand.cc
  9314. * src/HttpRequest.cc
  9315. * src/HttpRequestCommand.cc
  9316. * src/HttpResponseCommand.cc
  9317. * src/Request.cc
  9318. * src/Request.h
  9319. * src/RequestGroup.cc
  9320. * test/HttpRequestTest.cc
  9321. * test/HttpResponseTest.cc
  9322. * test/RequestTest.cc
  9323. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9324. Added missing setUserHeaders call
  9325. * src/HttpRequestCommand.cc
  9326. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9327. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  9328. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  9329. waste of time because it is more likey false.
  9330. * src/FileAllocationDispatcherCommand.cc (execute)
  9331. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9332. Now HTTP status and version are a member variable of HttpHeader.
  9333. HTTP status is processed as a string, not integer.
  9334. * src/AbstractProxyResponseCommand.cc
  9335. * src/HttpConnection.cc
  9336. * src/HttpHeader.cc
  9337. * src/HttpHeader.h
  9338. * src/HttpHeaderProcessor.cc
  9339. * src/HttpHeaderProcessor.h
  9340. * src/HttpResponse.cc
  9341. * src/HttpResponse.h
  9342. * test/HttpHeaderProcessorTest.cc
  9343. * test/HttpResponseTest.cc
  9344. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9345. Added --header option. You can specify any number of additional HTTP headers
  9346. like:
  9347. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  9348. Unlike other commad-line option, you can use --header option multiple times.
  9349. * src/HelpItemFactory.cc
  9350. * src/HttpRequest.{cc, h}
  9351. * src/HttpRequestCommand.cc
  9352. * src/OptionHandlerFactory.cc
  9353. * src/OptionHandlerImpl.h
  9354. * src/option_processing.cc
  9355. * src/prefs.h
  9356. * src/usage_text.h
  9357. * test/HttpRequestTest.cc (testUserHeaders)
  9358. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9359. Eliminates the time lag between sequential downloads and commands in
  9360. the same RequestGroup.
  9361. In old implementation, aria2 occasionally waits 1 seconds before
  9362. executing next command or RequestGroup.
  9363. This is really a waste of time, and new implementation eliminates
  9364. this unnecessary time lag.
  9365. * src/AbstractCommand.cc
  9366. * src/AutoSaveCommand.cc
  9367. * src/CheckIntegrityCommand.cc
  9368. * src/Command.{cc, h}
  9369. * src/DownloadEngine.{cc, h}
  9370. * src/DownloadEngineFactory.cc
  9371. * src/FileAllocationCommand.cc
  9372. * src/FileAllocationDispatcherCommand.cc
  9373. * src/FillRequestGroupCommand.cc
  9374. * src/FtpInitiateConnectionCommand.cc
  9375. * src/HaveEraseCommand.cc
  9376. * src/HttpInitiateConnectionCommand.cc
  9377. * src/HttpResponseCommand.cc
  9378. * src/RealtimeCommand.cc
  9379. * src/RequestGroup.cc
  9380. * src/RequestGroupMan.cc
  9381. * src/StreamFileAllocationEntry.cc
  9382. * src/TimeBasedCommand.{cc, h}
  9383. * src/TimedHaltCommand.cc
  9384. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9385. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  9386. keyword explicit and SharedHandle's default constructor initializes
  9387. its internal obj to null, old implementation initializes it using
  9388. obj's default constructor.
  9389. To assign null, write SharedHandle<T> x(...); x.reset();
  9390. TODO: test/SharedHandleTest.cc needs more tests.
  9391. * src/SharedHandle.h
  9392. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9393. Fixed type in man page.
  9394. * doc/aria2c.1.txt
  9395. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9396. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  9397. * src/SimpleLogger.{cc, h}
  9398. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9399. Implemented auto protocol detection.
  9400. Now you can do:
  9401. aria2c -Z http://host/file file1.torrent file2.metalink
  9402. (Note: -Z option is required for auto protcol detection.)
  9403. Then aria2c downloads 3 files simultaneously:
  9404. 1. http://host/file
  9405. 2. file1.torrent <-- read local torrent file
  9406. 3. file2.metalink <-- read local Metalink file.
  9407. Same thing goes with -i option. Assume your uris.txt contans:
  9408. http://host/file
  9409. file1.torrent
  9410. file2.metalink
  9411. Then you can do: aria2c -i uris.txt
  9412. (Note: -Z option is not needed if -i option is given.)
  9413. * src/main.cc
  9414. * src/ProtocolDetector.{cc, h}
  9415. * test/ProtocolDetectorTest.cc
  9416. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9417. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  9418. installed
  9419. * src/ARC4Encryptor.h
  9420. * src/ARC4Decryptor.h
  9421. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9422. Renamed argument from 'errno' to 'err', since errno is confused with
  9423. errno defined in errno.h.
  9424. * src/LibgcryptARC4Decryptor.h
  9425. * src/LibgcryptARC4Context.h
  9426. * src/LibgcryptDHKeyExchange.h
  9427. * src/LibgcryptARC4Encryptor.h
  9428. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9429. Rewritten choking algorithm.
  9430. * src/PeerChokeCommand.{cc, h}
  9431. * src/BtInterestedMessage.cc
  9432. * src/PeerSessionResource.{cc, h}
  9433. * src/DefaultPeerStorage.{cc, h}
  9434. * src/BtNotInterestedMessage.cc
  9435. * src/DefaultBtMessageDispatcher.{cc, h}
  9436. * src/BtMessageDispatcher.h
  9437. * src/Peer.{cc, h}
  9438. * src/BtLeecherStateChoke.{cc, h}
  9439. * src/BtSetup.cc
  9440. * src/BtSeederStateChoke.{cc, h}
  9441. * src/PeerStorage.h
  9442. * test/MockPeerStorage.h
  9443. * test/MockBtMessageDispatcher.h
  9444. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9445. Fixed compilation error on x84-64 platform.
  9446. * src/AuthConfig.cc: Included ostream.
  9447. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9448. Rewritten getBasename() and getDirname(), without standard library
  9449. basename(), dirname().
  9450. * src/File.cc
  9451. * test/FileTest.cc
  9452. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9453. Added Simplified Chinese translation. Also updated the following
  9454. translations: Polish, Dutch, German. Great thanks to all translators.
  9455. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9456. Suppress content-range error when 'Content-Range' response header
  9457. doesn't contains bytes-unit specifier 'bytes'
  9458. * src/HttpHeader.cc (getRange)
  9459. * test/HttpHeaderTest.cc
  9460. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9461. Fixed compilation error with g++-4.3
  9462. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9463. Added missing include files for MinGW
  9464. * test/HttpHeaderProcessorTest.cc
  9465. * test/DHTRoutingTableSerializerTest.cc
  9466. * test/DHTRoutingTableDeserializerTest.cc
  9467. * test/UriListParserTest.cc
  9468. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9469. Now download line is printed nicely with no garbage at the end of
  9470. line. I use ioctl to get the columns of terminal.
  9471. If stdout is redirected to another device, instead of carriage return,
  9472. end of line '\n' character is used. This is feature request#1909659
  9473. * src/ConsoleStatCalc.cc (calculateStat)
  9474. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9475. Included a2time.h
  9476. * src/DHTMessageDispatcher.h
  9477. * src/DHTMessageEntry.h
  9478. * src/DHTReplaceNodeTask.h
  9479. * src/DHTMessageTracker.h
  9480. * src/Util.h
  9481. * src/CookieBox.h
  9482. * src/SocketCore.h
  9483. * src/DefaultBtMessageDispatcher.h
  9484. * src/SocketCore.cc
  9485. * src/Util.cc
  9486. * src/DHTPingTask.h
  9487. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9488. Fixed high memory footprint when DHT is enabled.
  9489. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  9490. queued than it is processed and the queue is getting longer. As a
  9491. consequence, momory usage is increased.
  9492. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  9493. replacement cache in DHTBucket which is described in Kademlia paper.
  9494. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  9495. DHTReplaceNodeTask.
  9496. * src/DHTBucket.{h, cc}
  9497. (cacheNode): New function.
  9498. (getCachedNodes): New function.
  9499. (dropNode): Push back cached node to _nodes.
  9500. * test/DHTBucketTest.cc
  9501. (testCacheNode): New test
  9502. (testDropNode): New test
  9503. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9504. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  9505. the unused 4KB memory when ssl is not used.
  9506. * src/SocketCore.cc
  9507. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9508. Added summary log for peer announce storage.
  9509. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  9510. Removed cast
  9511. * src/DefaultPeerStorage.cc (addPeer)
  9512. Log exception message
  9513. * src/DHTMessageTracker.cc (handleTimeout)
  9514. Fixed casting
  9515. * test/HttpRequestTest.cc
  9516. * test/MetalinkProcessorTest.cc
  9517. * test/PieceTest.cc
  9518. * test/MetalinkEntryTest.cc
  9519. * test/SequenceTest.cc
  9520. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9521. * src/ParameterizedStringParser.cc (createLoop):
  9522. Removed unused variable sstep.
  9523. * src/AlphaNumberDecorator.h (decode): Rewritten.
  9524. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9525. * src/Util.{h, cc}
  9526. (parseUInt): New function.
  9527. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  9528. The actual range is uint32_t.
  9529. * test/UtilTest.cc
  9530. * src/ParameterizedStringParser.cc:
  9531. Use Util::parseUInt() for loop variables.
  9532. * test/ParameterizedStringParserTest.cc
  9533. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  9534. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9535. Rewritten the functions for binding port.
  9536. * src/DHTConnectionImpl.{h, cc}
  9537. * src/PeerListenCommand.{h, cc}
  9538. * src/DHTSetup.cc
  9539. * src/BtSetup.cc
  9540. * test/DHTConnectionImplTest.cc
  9541. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9542. type cleanup for allmost all remaining files.
  9543. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9544. Type clarification
  9545. * src/PeerSessionResource.{h, cc}
  9546. * src/DefaultPieceStorage.{h, cc}
  9547. * src/Peer.{h, cc}
  9548. * test/PeerSessionResourceTest.cc
  9549. Use div function
  9550. * src/BtPieceMessage.cc (erasePieceOnDisk)
  9551. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9552. Type clarification
  9553. * src/DefaultPeerStorage.{h, cc}
  9554. * test/DefaultPeerStorageTest.cc
  9555. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9556. Type clarification: size_t for length or size, uint64_t for file
  9557. length, off_t for file offset.
  9558. * src/DefaultBtProgressInfoFile.cc
  9559. * src/DefaultBtContext.{h, cc}
  9560. * src/DefaultBtInteractive.cc
  9561. * src/DownloadCommand.{h, cc}
  9562. * src/IteratableChunkChecksumValidator.{h, cc}
  9563. * src/SegmentMan.{h, cc}
  9564. * src/SingleFileDownloadContext.{h, cc}
  9565. * src/IteratableChecksumValidator.{h, cc}
  9566. * src/BtContext.h
  9567. * src/IteratableValidator.h
  9568. * src/DownloadContext.h
  9569. * test/SingleFileDownloadContextTest.cc
  9570. * test/DefaultBtContextTest.cc
  9571. * test/MockBtContext.h
  9572. * test/Metalink2RequestGroupTest.cc
  9573. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9574. Type clarification: size_t for length or size, uint64_t for file
  9575. length, off_t for file offset.
  9576. * src/PiecedSegment.cc
  9577. * src/GrowSegment.h
  9578. * src/DefaultBtRequestFactory.h
  9579. * src/DefaultBtProgressInfoFile.cc
  9580. * src/UnknownLengthPieceStorage.h
  9581. * src/DefaultPieceStorage.cc
  9582. * src/UnknownLengthPieceStorage.cc
  9583. * src/DefaultBtInteractive.cc
  9584. * src/GrowSegment.cc
  9585. * src/BitfieldMan.h
  9586. * src/DownloadCommand.cc
  9587. * src/BtRequestFactory.h
  9588. * src/PiecedSegment.h
  9589. * src/DefaultPieceStorage.h
  9590. * src/Piece.cc
  9591. * src/DefaultBtRequestFactory.cc
  9592. * src/PieceStorage.h
  9593. * src/Segment.h
  9594. * src/Piece.h
  9595. * src/BitfieldMan.cc
  9596. * src/Util.cc
  9597. * test/DefaultBtProgressInfoFileTest.cc
  9598. * test/DefaultPieceStorageTest.cc
  9599. * test/MockPieceStorage.h
  9600. * test/BtRequestMessageTest.cc
  9601. * test/DefaultBtMessageDispatcherTest.cc
  9602. * test/BitfieldManTest.cc
  9603. * test/GrowSegmentTest.cc
  9604. * test/PieceTest.cc
  9605. * test/SegmentTest.cc
  9606. * test/SegmentManTest.cc
  9607. * test/DefaultBtRequestFactoryTest.cc
  9608. * test/MockBtRequestFactory.h
  9609. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9610. Fixed compilation error with --disable-nls
  9611. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  9612. in gettext.h causes the problem.
  9613. * src/common.h
  9614. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9615. Removed subPiece related functions.
  9616. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  9617. * src/DefaultPieceStorage.{h, cc}
  9618. * test/PieceTest.cc
  9619. * test/DefaultPieceStorageTest.cc
  9620. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9621. Use unsigned char for data store.
  9622. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9623. Bump up version number to 0.13.0+1
  9624. * configure.ac
  9625. * Release 0.13.0+1
  9626. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9627. Changed inactive connection timeout to 120.
  9628. To accept more mulually interested peers, disconnect peer when there
  9629. is no interest between us after certain time passed.
  9630. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  9631. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9632. Fixed the bug that aria2 only uses first dns server in resolv.conf
  9633. when compiled with async DNS support.
  9634. * src/DownloadEngine.cc
  9635. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  9636. value '10' will be a little bit short when some DNS servers are
  9637. offline and several DNS servers are tried. It should be configured
  9638. by command-line option.
  9639. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9640. Merged Ross's mingw patch.
  9641. * src/DHTRoutingTableDeserializer.cc
  9642. * src/DHTRoutingTableSerializer.cc
  9643. * src/Platform.{h, cc}
  9644. * src/timegm.h
  9645. * src/gettimeofday.h
  9646. * src/getaddrinfo.h
  9647. * src/SocketCore.h
  9648. * src/common.h
  9649. * src/inet_aton.h
  9650. * src/DownloadEngine.h
  9651. * src/gai_strerror.h
  9652. * src/a2netcompat.h
  9653. * configure.ac
  9654. * configure
  9655. * aclocal.m4
  9656. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9657. Included missing iostream.
  9658. * test/AllTest.cc
  9659. * test/BtDependencyTest.cc
  9660. * test/BtExtendedMessageTest.cc
  9661. * test/DHTConnectionImplTest.cc
  9662. * test/DHTMessageFactoryImplTest.cc
  9663. * test/DHTMessageTrackerEntryTest.cc
  9664. * test/DHTNodeTest.cc
  9665. * test/DHTRoutingTableSerializerTest.cc
  9666. * test/DefaultBtAnnounceTest.cc
  9667. * test/DefaultBtContextTest.cc
  9668. * test/DefaultBtMessageFactoryTest.cc
  9669. * test/DefaultExtensionMessageFactoryTest.cc
  9670. * test/HandshakeExtensionMessageTest.cc
  9671. * test/HttpResponseTest.cc
  9672. * test/MetalinkProcessorTest.cc
  9673. * test/MultiFileAllocationIteratorTest.cc
  9674. * test/SocketCoreTest.cc
  9675. * test/UTPexExtensionMessageTest.cc
  9676. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9677. Reorganized includes.
  9678. * src/NameResolver.cc
  9679. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9680. Fixed compilation error without ares/c-ares
  9681. * src/NameResolver.h:
  9682. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9683. Added a test for large file.
  9684. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  9685. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9686. Fixed the bug that file size is ignored if size > INT32_MAX
  9687. * src/SizeMetalinkParserState.cc (endElement):
  9688. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9689. Bump up version number to 0.13.0
  9690. * configure.ac
  9691. * Release 0.13.0
  9692. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9693. Updated Makfefile.am to make 'make dist' work.
  9694. Now packaged filename is aria2c-VERSION.tar.bz2.
  9695. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  9696. Added LICENSE.OpenSSL to dist_noinst_DATA.
  9697. Large file support is now configured by configure script.
  9698. * configure.ac
  9699. Removed unsused source files
  9700. * src/
  9701. * test/
  9702. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  9703. Peer.h and BtContext.h respectively.
  9704. * src/Peer.h
  9705. * src/BtContext.h
  9706. Updated translations.
  9707. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  9708. translations. Great thanks to all translators!;)
  9709. * po/*.{po, gmo}
  9710. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9711. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  9712. statically declared sha1 MessageDigestContext.
  9713. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  9714. initialization of short-lived MessageDigestContext.
  9715. * src/MessageDigestHelper.{h, cc}
  9716. * src/main.cc
  9717. Now DownloadCommand has a reference to MessageDigestContext to avoid
  9718. the initialization of MessageDigestContext every time in validating
  9719. chunk checksum.
  9720. * src/DownloadCommand.{h, cc}
  9721. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9722. Add a file descriptor which connected to fast peer(latency<1500) to
  9723. select(). This change reduced CPU load.
  9724. * src/PeerInteractionCommand.cc
  9725. * src/DefaultBtInteractive.{h, cc}
  9726. * src/BtInteractive.h
  9727. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9728. Fixed the previous insufficient fix for possible busy loop.
  9729. * src/MSEHandshake.cc (identifyHandshakeType)
  9730. Removed unused functions.
  9731. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  9732. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9733. Fixed possible busy loop if first 20 bytes are not received for a few
  9734. minutes.
  9735. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  9736. * src/ReceiverMSEHandshakeCommand.cc
  9737. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9738. Fixed compilation error
  9739. * src/ExpatMetalinkProcessor.cc
  9740. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9741. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  9742. * src/DHTBucket.cc
  9743. Removed unnecessary cast.
  9744. * src/HandshakeExtensionMessage.cc
  9745. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9746. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  9747. is missing.
  9748. * src/OptionHandlerFactory.cc
  9749. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9750. Fixed the bug that HAVE message is not sent for a piece they are
  9751. downloaded fom http/ftp server before any BitTorrent handshake is done
  9752. with peers.
  9753. * src/DefaultBtInteractive.cc
  9754. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9755. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  9756. * src/Makefile.am
  9757. * src/Makefile.in
  9758. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9759. Updated README. Added html version of README and man page.
  9760. * README
  9761. * README.html
  9762. * readme2html: Shell script to generate README.html from README using
  9763. asciidoc.
  9764. * doc/aria2c.1.html
  9765. * doc/makeman: Added the line to generate aria2c.1.html
  9766. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9767. Fixed offset calculation.
  9768. * src/LibgcryptDHKeyExchange.h (computeSecret)
  9769. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9770. Rewritten itos and uitos using template. llitos and ullitos are
  9771. replaced with itos and uitos respectively.
  9772. * src/Util.{h, cc}
  9773. * test/UtilTest.cc
  9774. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9775. Fixed the bug that DH key exchange sometimes fails due to bad handling
  9776. of the number of bytes required for storing public key and shared
  9777. secret.
  9778. * src/LibgcryptDHKeyExchange.h
  9779. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  9780. * src/MSEHandshake.cc
  9781. * test/DHKeyExchangeTest.cc
  9782. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9783. Removed since they are not used.
  9784. * src/Xml2MetalinkProcessor.{h, cc}
  9785. * src/Socket.cc
  9786. * src/SegmentSplitter.{h, cc}
  9787. * test/Xml2MetalinkProcessorTest.cc
  9788. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9789. Fixed the bug that prevents aria2 from stopping other than by pressing
  9790. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  9791. option. aria2 doesn't stop even after --seed-time is satisfied and
  9792. continues to output blank lines in the console.
  9793. * src/ReceiverMSEHandshakeCommand.cc
  9794. * src/PeerReceiveHandshakeCommand.cc
  9795. * src/PeerListenCommand.cc
  9796. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9797. Bump up version number to 0.13.0rc
  9798. * configure.ac
  9799. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9800. Updated man page and some usage text.
  9801. * doc/aria2c.1.txt
  9802. * src/usage_text.h
  9803. * po/*.{po, gmo}
  9804. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9805. Updated translations. Added Finnish and Hebrew translations.
  9806. Great thanks to all translators!
  9807. * po/*.{po, gmo}
  9808. * po/LINGUAS
  9809. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9810. Log more detailed information about each message.
  9811. * src/DHTQueryMessage.{h, cc}
  9812. * src/DHTGetPeersMessage.{h, cc}
  9813. * src/DHTFindNodeReplyMessage.{h, cc}
  9814. * src/DHTGetPeersReplyMessage.{h, cc}
  9815. * src/DHTAnnouncePeerMessage.{h, cc}
  9816. * src/DHTResponseMessage.{h, cc}
  9817. * src/DHTFindNodeMessage.{h, cc}
  9818. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9819. Use constants defined in prefs.h
  9820. * src/option_processing.cc
  9821. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9822. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  9823. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9824. Make room for future enchancements for IPv6 addresses.
  9825. Bump up version number of dht.dat file format to 2.
  9826. Not compatible with previous version.
  9827. * src/DHTRoutingTableSerializer.cc
  9828. * src/DHTRoutingTableDeserializer.cc
  9829. * test/DHTRoutingTableSerializerTest.cc
  9830. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9831. Added handling for the return values from
  9832. PeerMessageUtil::createcompact().
  9833. * src/DefaultBtContext.cc (computeFastSet):
  9834. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9835. Fixed abort when peer's ip address is IPv4-mapped address.
  9836. * src/DefaultBtContext.cc (computeFastSet)
  9837. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  9838. cannot handle IPv4-mapped addresses.
  9839. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  9840. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9841. Proper return value handling for OpenSSL functions.
  9842. * src/LibsslDHKeyExchange.h
  9843. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9844. Random bytes generation using libgcrypt and OpenSSL.
  9845. * src/DHTUtil.{h, cc}
  9846. * test/DHTUtilTest.cc
  9847. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9848. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  9849. received.
  9850. * src/DHTMessageReceiver.cc (receiveMessage)
  9851. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9852. Fixed the bug that a return code is always 0. BUG#1897704
  9853. If error occurred during the download or there exist unfinished
  9854. downloads, aria2 returns with code 1.
  9855. * src/RequestGroupMan.{h, cc}
  9856. * src/MultiUrlRequestInfo.{h, cc}
  9857. * src/main.cc
  9858. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9859. IPv6 support for SocketCore class.
  9860. TODO: In SocketCore::establishConnection(), this is insufficient to
  9861. determin the failure of connect() here because the socket is
  9862. non-blocking state. The next addresses should be tried after select().
  9863. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  9864. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  9865. instead which address family independent.
  9866. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  9867. information in a compact peer format which is for IPv4 only.
  9868. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  9869. this is a spec of BitTorrent protocol.
  9870. * src/SocketCore.{h, cc}
  9871. * src/PeerMessageUtil.cc
  9872. * test/SocketCoreTest.cc
  9873. * test/PeerMessageUtilTest.cc
  9874. * test/DHTConnectionImplTest.cc
  9875. Handle IPv4-mapped addresses.
  9876. * src/DHTNode.cc: Now identity is determined by node id.
  9877. * src/DHTMessageTrackerEntry.cc
  9878. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  9879. should handle it.
  9880. * src/DHTRoutingTableDeserializer.cc
  9881. * src/DHTMessageFactoryImpl.cc
  9882. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9883. Change the unit of --stop option from a minute to a second.
  9884. * src/usage_text.h
  9885. * src/DownloadEngineFactory.cc
  9886. * src/OptionHandlerFactory.cc
  9887. * src/message.h
  9888. * src/TimedHaltCommand.cc
  9889. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9890. Make listening socket non-block mode.
  9891. * src/FtpConnection.cc
  9892. * src/FtpNegotiationCommand.{h, cc}
  9893. * src/PeerListenCommand.cc
  9894. Fixed the bug that cause slow ftp negotiation.
  9895. * src/FtpNegotiationCommand.{h, cc}
  9896. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9897. Added basic tag to --enable-dht, --dht-listen-port option.
  9898. * src/HelpItemFactory.cc (createHelpItems)
  9899. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9900. Updated text.
  9901. * src/usage_text.h
  9902. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9903. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  9904. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9905. Determin _threadtholdSpeed in each constructor for
  9906. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  9907. * src/ActivePeerConnectionCommand.{h, cc}
  9908. * src/PeerReceiveHandshakeCommand.{h, cc}
  9909. * src/BtSetup.cc
  9910. * src/BtConstants.h
  9911. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9912. Added --bt-min-crypto-level and --bt-require-crypto options.
  9913. * src/OptionHandlerFactory.cc
  9914. * src/MSEHandshake.cc
  9915. * src/HelpItemFactory.cc
  9916. * src/option_processing.cc
  9917. * src/ReceiverMSEHandshakeCommand.cc
  9918. * src/prefs.h
  9919. * src/DefaultBtAnnounce.cc
  9920. * src/InitiatorMSEHandshakeCommand.cc
  9921. * src/usage_text.h
  9922. * test/MSEHandshakeTest.cc
  9923. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9924. Bump version number to 0.13.0b
  9925. * configure.ac
  9926. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9927. Updated doc.
  9928. * src/MessageDigestHelper.h:
  9929. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9930. Use raw message digest as a token instead of its hexadecimal
  9931. representation.
  9932. * src/DHTTokenTracker.cc (generateToken)
  9933. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9934. Added Message Stream Encryption(MSE) support.
  9935. Currently, aria2 accepts incoming connections with Obfuscation Header
  9936. and legacy BitTorrent Header and establishes connections with
  9937. Obfuscation Header first and if failed then retry with legacy
  9938. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  9939. choose ARC4. The new option to change the default behavior is planned.
  9940. For tracker extension, "supportcrypto=1" is added statically.
  9941. * src/PeerInitiateConnectionCommand.{h, cc}
  9942. * src/PeerConnection.{h, cc}
  9943. * src/HandleRegistry.h
  9944. * src/SocketCore.h
  9945. * src/PeerReceiveHandshakeCommand.{h, cc}
  9946. * src/BtRegistry.{h, cc}
  9947. * src/PeerListenCommand.cc
  9948. * src/InitiatorMSEHandshakeCommand.{h, cc}
  9949. * src/ReceiverMSEHandshakeCommand.{h, cc}
  9950. * src/MSEHandshake.{h, cc}
  9951. * src/ARC4Encryptor.h
  9952. * src/ARC4Decryptor.h
  9953. * src/LibgcryptARC4Encryptor.h
  9954. * src/LibgcryptARC4Decryptor.h
  9955. * src/LibgcryptARC4Context.h
  9956. * src/LibsslARC4Encryptor.h
  9957. * src/LibsslARC4Decryptor.h
  9958. * src/LibsslARC4Context.h
  9959. * src/DHKeyExchange.h
  9960. * src/LibgcryptDHKeyExchange.h
  9961. * src/LibsslDHKeyExchange.h
  9962. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  9963. * test/DefaultBtAnnounceTest.cc
  9964. * test/ARC4Test.cc
  9965. * test/DHKeyExchangeTest.cc
  9966. Removed prepareForRetry() because it is not used.
  9967. * src/PeerAbstractCommand.{h, cc}
  9968. * src/PeerInteractionCommand.{h, cc}
  9969. * src/PeerInitiateConnectionCommand.{h, cc}
  9970. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9971. Added the ability to load nodes from torrent file. These nodes are
  9972. added to the routing table when downloading that torrent.
  9973. * src/BtContext.h
  9974. * src/DefaultBtContext.{h, cc}
  9975. * src/DHTSetup.cc
  9976. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  9977. hostname and port pair, and resolves all of them.
  9978. * src/NameResolver.{h, cc}: Added reset().
  9979. * src/RequestGroup.cc
  9980. * test/DefaultBtContextTest.cc
  9981. * test/MockBtContext.h
  9982. Removed assert() from DefaultBtContext and throw exception instead.
  9983. * src/DefaultBtContext.cc
  9984. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9985. Fixed segmentation fault bug when exiting if dht is disabled.
  9986. * src/RequestGroup.cc
  9987. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9988. Fixed typo in log message and define the message in message.h
  9989. * src/TimedHaltCommand.cc
  9990. * src/message.h
  9991. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9992. Included RecoverableException.h to fix compilation error.
  9993. * test/DHTMessageFactoryImplTest.cc
  9994. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9995. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  9996. * test/DHTPingMessageTest.cc
  9997. * test/DHTGetPeersMessageTest.cc
  9998. * test/DHTFindNodeMessageTest.cc
  9999. * test/DHTAnnouncePeerMessageTest.cc
  10000. * test/MockDHTMessage.h
  10001. * test/MockDHTMessageFactory.h
  10002. * test/MockDHTMessageDispatcher.h: New class.
  10003. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10004. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  10005. virtual.
  10006. * src/DHTMessageDispatcher.h
  10007. * src/DHTMessageDispatcherImpl.{h, cc}
  10008. * src/DHTSetup.cc
  10009. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10010. Adding handling of DHT error message. Just log error message and
  10011. throw exception.
  10012. * src/DHTMessageFactoryImpl.cc
  10013. * test/DHTMessageFactoryImplTest.cc
  10014. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10015. Added handling of dynamic cast failure.
  10016. * src/DHTNodeLookupTask.cc
  10017. * src/DHTPeerLookupTask.cc
  10018. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10019. Added the ability to stop aria2 itself when given time has passed
  10020. from start. Use --stop option to specify time in minutes.
  10021. When 0 is given, this feature is disabled.
  10022. * src/OptionHandlerFactory.cc
  10023. * src/TimeBasedCommand.h: Make _interval protected scope.
  10024. * src/HelpItemFactory.cc
  10025. * src/option_processing.cc
  10026. * src/prefs.h
  10027. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  10028. before calling RequestGroupMan::fillRequestGroupFromReserver().
  10029. Without this modification, the result list shows "ERR" when aria2 is
  10030. stopped by --stop option. It should be "INPR".
  10031. * src/DownloadEngine.{h, cc}
  10032. * src/DownloadEngineFactory.cc
  10033. * src/usage_text.h
  10034. * src/TimedHaltCommand.{h, cc}: New class.
  10035. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10036. Bootstrap through node added by port message.
  10037. Currently bootstrap is executed if the number of buckets in routing
  10038. table is 1.
  10039. * src/BtPortMessage.{h, cc}
  10040. * src/DefaultBtMessageFactory.{h, cc}
  10041. * src/PeerInteractionCommand.cc
  10042. * test/BtPortMessageTest.cc
  10043. * test/MockDHTTask.h
  10044. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10045. Extract the Peer class's member variables, which are only needed after
  10046. PeerInteractionCommand, into PeerSessionResource class.
  10047. This class is instantiated in PeerInteractionCommand class's ctor and
  10048. released in its dtor.
  10049. This will make Peer class lightweight and uses less memory for peers
  10050. which are not connected and wait in the queue.
  10051. * src/PeerChokeCommand.cc
  10052. * src/PeerSessionResource.{h, cc}
  10053. * src/PeerInteractionCommand.cc
  10054. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  10055. * src/DefaultBtInteractive.cc
  10056. * src/BtPieceMessage.cc
  10057. * src/BtInterestedMessage.cc
  10058. * src/BtUnchokeMessage.cc
  10059. * src/DefaultPeerStorage.{h, cc}
  10060. * src/PeerInitiateConnectionCommand.cc
  10061. * src/ActivePeerConnectionCommand.cc
  10062. * src/BtNotInterestedMessage.cc
  10063. * src/DefaultBtMessageDispatcher.cc
  10064. * src/BtChokeMessage.cc
  10065. * src/BtRequestMessage.cc
  10066. * src/Peer.{h, cc}
  10067. * src/BtRegistry.h
  10068. * src/TrackerWatcherCommand.cc
  10069. * src/PeerReceiveHandshakeCommand.cc
  10070. * test/BtExtendedMessageTest.cc
  10071. * test/BtAllowedFastMessageTest.cc
  10072. * test/BtCancelMessageTest.cc
  10073. * test/DefaultPieceStorageTest.cc
  10074. * test/BtBitfieldMessageTest.cc
  10075. * test/BtHaveMessageTest.cc
  10076. * test/BtNotInterestedMessageTest.cc
  10077. * test/BtRequestMessageTest.cc
  10078. * test/PeerSessionResourceTest.cc
  10079. * test/DefaultBtMessageDispatcherTest.cc
  10080. * test/PeerTest.cc
  10081. * test/BtInterestedMessageTest.cc
  10082. * test/BtRejectMessageTest.cc
  10083. * test/BtChokeMessageTest.cc
  10084. * test/DefaultPeerStorageTest.cc
  10085. * test/BtHaveNoneMessageTest.cc
  10086. * test/BtHaveAllMessageTest.cc
  10087. * test/DefaultExtensionMessageFactoryTest.cc
  10088. * test/BtUnchokeMessageTest.cc
  10089. * test/DefaultBtMessageFactoryTest.cc
  10090. * test/HandshakeExtensionMessageTest.cc
  10091. * test/UTPexExtensionMessageTest.cc
  10092. * test/DefaultBtRequestFactoryTest.cc
  10093. * test/BtPieceMessageTest.cc
  10094. Removed typedef PeerStats.
  10095. * src/PeerStat.h
  10096. * src/SegmentMan.cc
  10097. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10098. Added std namespace to copy, remove_copy, back_inserter,
  10099. front_inserter.
  10100. * src/RequestGroupMan.cc
  10101. * src/DefaultPieceStorage.cc
  10102. * src/StreamFileAllocationEntry.cc
  10103. * src/BtFileAllocationEntry.cc
  10104. * src/RequestGroup.cc
  10105. * src/MetalinkEntry.cc
  10106. * src/DelegatingPeerListProcessor.cc
  10107. * src/DefaultBtRequestFactory.cc
  10108. * src/DefaultBtMessageDispatcher.cc
  10109. * src/version_usage.cc: Included <algorithm>
  10110. * src/main.cc
  10111. * src/MetalinkParserController.cc
  10112. * src/DefaultBtContext.cc
  10113. * src/DownloadEngineFactory.cc
  10114. * src/a2algo.h
  10115. Removed.
  10116. * test/StreamUriListParserTest.cc
  10117. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10118. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  10119. ActivePeerConnectionCommand when it is given and
  10120. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  10121. * src/ActivePeerConnectionCommand.{h, cc}
  10122. * src/BtSetup.cc
  10123. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10124. Only add socket to DownloadEngine's select routine when peer or
  10125. localhost is unchoked and interested. This lowers CPU usage a
  10126. little bit.
  10127. * src/PeerInteractionCommand.cc
  10128. * src/PeerAbstractCommand.{h, cc}
  10129. * src/BtInteractive.h
  10130. * src/DefaultBtInteractive.{h, cc}
  10131. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10132. Revert previous change because get_peers message is needed for
  10133. announce_peer anyway.
  10134. * src/DHTGetPeersCommand.cc
  10135. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10136. Request peers thought DHT only when download hasn't finished.
  10137. * src/DHTGetPeersCommand.cc
  10138. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10139. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  10140. * src/DHTBucketRefreshTask.{h, cc}
  10141. * src/DHTSetup.cc
  10142. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10143. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  10144. standard classes.
  10145. Included string.h where mem* function are used.
  10146. Added namespace aria2.
  10147. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10148. Create directory before saving DHT routing table.
  10149. Now ios::failure is now handled properly.
  10150. * src/DHTAutoSaveCommand.cc
  10151. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10152. Removed unnecessary cerr.
  10153. * src/DownloadEngine.cc
  10154. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10155. Catch exception inside DHTMessageReceiver::receiveMessage().
  10156. Log unknown message.
  10157. * src/DHTMessageReceiver.{h, cc}
  10158. * src/DHTMessageFactory.h
  10159. * src/DHTMessageFactoryImpl.{h, cc}
  10160. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  10161. * src/DHTInteractionCommand.cc
  10162. * src/DHTUnknownMessage.{h, cc}
  10163. * test/DHTUnknownMessageTest.cc
  10164. * test/MockDHTMessageFactory.h
  10165. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10166. Commented out ip address comparison because a host can have multiple
  10167. ip addresses and it is hard to predict the hostname is resolved into
  10168. which one.
  10169. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  10170. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10171. * po/Makefile.in: Removed since this is generated by configure.
  10172. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10173. Fixed compiler warning about redefinition of SIZE_MAX.
  10174. Use common.h instead of config.h directly here.
  10175. * src/Platform.{h, cc}
  10176. The check of ENABLE_NLS is made in gettext.h, so it is not required
  10177. here.
  10178. * common.h
  10179. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  10180. Updated gettext related files.
  10181. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  10182. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  10183. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10184. Added DHT functionality, compatible with mainline.
  10185. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  10186. You may need to specify entry point to DHT network using
  10187. --dht-entry-point. DHT uses UDP port to listen incoming message.
  10188. Use --dht-listen-port to specify port number. Make sure that your
  10189. firewall configuration can pass through UDP traffic to the port.
  10190. The routing table is saved in $HOME/.aria2/dht.dat.
  10191. * src/DHT*
  10192. * src/BNode.{h, cc}
  10193. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  10194. particular torrent.
  10195. * src/Data.cc: Rewritten ctor.
  10196. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  10197. --dht-entry-point.
  10198. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  10199. * src/RequestGroup.cc: Initialize DHT functionality. When download
  10200. ends, remove BtContext from DHTPeerAnnounceStorage.
  10201. * src/BtPortMessage.{h, cc}: Rewritten.
  10202. * src/message.h
  10203. * src/OptionHandlerImpl.cc
  10204. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  10205. --dht-entry-point.
  10206. * src/Dictionary.{h, cc} (remove): New function.
  10207. * src/prefs.h
  10208. * src/DefaultBtMessageFactory.h
  10209. * src/BtHandshakeMessage.cc
  10210. * src/ActivePeerConnectionCommand.cc
  10211. * src/SocketCore.{h, cc}: Added datagram socket support.
  10212. * src/DefaultBtMessageFactory.cc
  10213. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  10214. Create DHT commands.
  10215. * src/BtMessageFactory.h
  10216. * src/PeerMessageUtil.{h, cc}
  10217. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10218. Fixed the bug that log file is not written when configuration file doesn't exist.
  10219. This is caused by using Logger class before LogFactory is not configured.
  10220. BUG #1875079
  10221. * src/option_processing.cc
  10222. Warning message "configuration doesn't exist" is only printed when --conf is
  10223. given.
  10224. * src/option_processing.cc
  10225. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10226. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  10227. ShaVisitor is now deprecated and slated to be removed.
  10228. * src/DefaultBtContext.cc
  10229. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10230. Externalize message to message.h
  10231. * src/Platform.cc
  10232. * src/message.h
  10233. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10234. Set default domain and default path to cookie.
  10235. * src/HttpResponse.cc
  10236. * src/CookieBox.{h, cc}
  10237. * src/CookieParser.{h, cc}
  10238. * test/CookieParserTest.cc
  10239. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10240. Added --no-conf and --conf-path command-line option.
  10241. --no-conf option disables loading aria2.conf file.
  10242. --conf-path option changes the configuration file path. The default
  10243. file path is $HOME/.aria2/aria2.conf
  10244. Added a warning message when the configuration file is not found.
  10245. * src/HelpItemFactory.cc
  10246. * src/option_processing.cc
  10247. * src/prefs.h
  10248. * src/usage_text.h
  10249. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10250. Added the message to inform users that other help categories are
  10251. available in -h option.
  10252. * src/version_usage.cc
  10253. * src/TagContainer.{h, cc}
  10254. * test/TagContainerTest.cc
  10255. * src/TaggedItem.{h, cc}
  10256. * test/TaggedItemTest.cc
  10257. * src/HelpItem.h
  10258. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10259. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  10260. from PiecedSegment's ctor.
  10261. Previously Piece::getAllMissingBlockIndexes() is called from
  10262. PiecedSegment() but it is rather expensive since only first element is
  10263. used.
  10264. * src/PiecedSegment.cc
  10265. * src/Piece.{h, cc}
  10266. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10267. Rewritten get*Missing*Index functions. Now no need to allocate memory
  10268. each time these functions are called.
  10269. * src/BitfieldMan.{h, cc}
  10270. * test/BitfieldManTest.cc
  10271. * src/array_fun.h
  10272. * test/array_funTest.cc
  10273. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  10274. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  10275. filtered. Removed unnecessary cast to int32_t.
  10276. * src/BitfieldMan.{h, cc}
  10277. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10278. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  10279. payload length(4bytes) are received. This happens because lenbufLength
  10280. is not updated in this particular case and successive call of
  10281. receiveMessage() overwrites payload length with bytes recieved which
  10282. are payload body.
  10283. * src/PeerConnection.{h, cc}
  10284. * src/message.h
  10285. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10286. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  10287. peer if there are peers that have same ipaddr and port.
  10288. I've experiened segmentation fault and "pure virtual function was
  10289. called" error.
  10290. * src/Peer.h
  10291. * test/PeerTest.cc
  10292. * src/DefaultPeerStorage.cc
  10293. * test/DefaultPeerStorageTest.cc
  10294. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10295. Removed a call to isPowerOf() because it is no longer necessary here
  10296. and a request block is not always power of 2.
  10297. BUG#1866924
  10298. * src/PeerMessageUtil.cc (checkLength)
  10299. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10300. Fixed the bug that always first found Segment is removed from
  10301. usedSegmentEntries. Removed unused functions.
  10302. * src/SegmentMan.{h, cc}
  10303. * test/SegmentManTest.cc
  10304. Fixed the bug that ServerHost is not removed.
  10305. * src/RequestGroup.cc
  10306. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10307. Fixed the bug that SegmentMan::completeSegment() is not called
  10308. even if Segment is complete when --lowest-speed-limit is enabled.
  10309. BUG#1864525
  10310. * src/DownloadCommand.{h, cc}
  10311. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10312. Fixed: hash algorithm 'sha1' is always used.
  10313. * src/DownloadCommand.cc (validatePieceHash)
  10314. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10315. Added --enable-peer-exchange command-line option.
  10316. * src/OptionHandlerFactory.cc
  10317. * src/HelpItemFactory.cc
  10318. * src/option_processing.cc
  10319. * src/usage_text.h
  10320. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10321. Move extension from BtRuntime to ExtensionMessageFactory, because
  10322. extension can be specified per peer, not per torrent.
  10323. * src/DefaultBtInteractive.cc
  10324. * src/BtRuntime.h
  10325. * src/ExtendedMessagingAware.h
  10326. * src/ExtensionMessageFactory.h
  10327. * src/DefaultExtensionMessageFactory.cc
  10328. * test/DefaultExtensionMessageFactoryTest.cc
  10329. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10330. Added categorized option help. Specify category using --help option.
  10331. Also added the ability to search options in forward match.
  10332. * src/HelpItem.{h, cc}
  10333. * test/HelpItemTest.cc
  10334. * src/HelpItemFactory.{h, cc}
  10335. * src/TagContainer.{h, cc}
  10336. * test/TagContainerTest.cc
  10337. * src/option_processing.cc
  10338. * src/prefs.h
  10339. * src/TaggedItem.{h, cc}
  10340. * test/TaggedItemTest.cc
  10341. * src/version_usage.cc
  10342. * src/help_tags.h
  10343. * src/usage_text.h
  10344. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10345. Fixed segmentation fault when bad torrent metainfo is parsed.
  10346. Added dynamic_cast properly to detect the misconfiguration of metainfo
  10347. and then throw exception or skip it.
  10348. * src/DefaultBtContext.{h, cc}
  10349. * test/DefaultBtContextTest.cc
  10350. * src/AnnounceList.cc
  10351. * src/CompactPeerListProcessor.cc
  10352. * src/message.h
  10353. * src/DefaultBtAnnounce.{h, cc}
  10354. * test/DefaultBtAnnounceTest.cc
  10355. * src/BencodeVisitor.cc
  10356. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10357. Added missing "B"(=Byte). So now the message looks like this:
  10358. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  10359. * src/message.h (MSG_SHARE_RATIO_REPORT)
  10360. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10361. Show the seed ratio after torrent downloads.
  10362. For example, after torrent download completed and --seed-time and
  10363. --seed-ratio conditions are fulfilled, following message is printed
  10364. right after "Download complete: .....":
  10365. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  10366. * src/RequestGroupMan.cc
  10367. * src/RequestGroup.{h, cc}
  10368. * src/message.h
  10369. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10370. Remove a defunct control file. A defunct control file means that while
  10371. it exists, but the corresponding download file is missing.
  10372. After its removal, a download restarts from the beginning.
  10373. * src/RequestGroup.cc
  10374. * src/message.h
  10375. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10376. Allocate bitfield in Peer when it is really used. More specifically,
  10377. bitfield in Peer is allocated after the connection is established and
  10378. deallocated when the connection is dropped.
  10379. Since 2 parameters(piece length and total length) was removed from the
  10380. constructor of Peer class, many test classes were modified accordingly.
  10381. See svn log for more detailed information.
  10382. * src/PeerInteractionCommand.cc
  10383. * src/CompactPeerListProcessor.cc
  10384. * src/Peer.cc
  10385. * src/DefaultPeerListProcessor.cc
  10386. * src/PeerListenCommand.cc
  10387. * src/PeerReceiveHandshakeCommand.cc
  10388. Fixed memory leak
  10389. * src/Piece.cc
  10390. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10391. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  10392. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  10393. command-line options.
  10394. * src/option_processing.cc
  10395. * src/ActivePeerConnectionCommand.cc
  10396. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10397. Send have message to peer if it already has the piece.
  10398. * src/BtHaveMessage.{h, cc}
  10399. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10400. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  10401. port.
  10402. * src/DefaultPeerStorage.{h, cc}
  10403. * test/DefaultPeerStorageTest.cc
  10404. * src/HandshakeExtensionMessage.cc
  10405. * test/HandshakeExtensionMessageTest.cc
  10406. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  10407. * src/PeerStorage.h
  10408. * test/MockPeerStorage.h
  10409. * src/PeerListenCommand.cc
  10410. * src/PeerReceiveHandshakeCommand.cc
  10411. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10412. Added --metalink-enable-unique-protocol option.
  10413. * src/Metalink2RequestGroup.cc
  10414. * src/option_processing.cc
  10415. * src/prefs.h
  10416. * src/version_usage.cc
  10417. * doc/aria2c.1.txt
  10418. * doc/aria2c.1
  10419. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10420. Allow a peer in incomingPeer to be added peers.
  10421. * src/DefaultPeerStorage.cc
  10422. * test/DefaultPeerStorageTest.cc
  10423. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10424. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  10425. I could reproduce this bug in following procedure:
  10426. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  10427. 2. Restart aria2.
  10428. 3. You see the download stopped around 99%.
  10429. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  10430. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  10431. If timeout is reached, then _nextCommand is unused and it may contains
  10432. segments and they won't be canceled. Actually, timeout is not needed
  10433. here because if the server dropped connection, then retry is made.
  10434. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10435. Added uTorrent compatible Peer Exchange.
  10436. * src/BencodeVisitor.{h, cc}
  10437. * test/BencodeVisitorTest.cc
  10438. * src/BtConstants.h
  10439. * src/BtContext.h: Added 'private' flag.
  10440. * src/BtExtendedMessage.{h, cc}
  10441. * test/BtExtendedMessageTest.cc
  10442. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  10443. reserved field.
  10444. * test/BtHandshakeMessageTest.cc
  10445. * src/BtMessageFactory.h
  10446. * src/BtRegistry.h
  10447. * src/BtRuntime.h: This class holds default extension message IDs for
  10448. aria2. By default, aria2 uses ID 8 for ut_pex.
  10449. * src/DefaultBtContext.cc
  10450. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  10451. When it is true, aria2 enables ut_pex. This value is set by
  10452. PeerInteractionCommand.
  10453. * src/DefaultBtMessageFactory.{h, cc}
  10454. * test/DefaultBtMessageFactoryTest.cc
  10455. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  10456. handling to DefaultBtInteractive class.
  10457. * src/DefaultExtensionMessageFactory.{h, cc}
  10458. * test/DefaultExtensionMessageFactoryTest.cc
  10459. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  10460. the container(peers and incomingPeers. The equality is determined by
  10461. Peer::id).
  10462. * test/DefaultPeerStorageTest.cc
  10463. * src/ExtensionMessage.h
  10464. * test/MockExtensionMessage.h
  10465. * src/ExtensionMessageFactory.h
  10466. * test/MockExtensionMessageFactory.h
  10467. * src/HandshakeExtensionMessage.{h, cc}
  10468. * test/HandshakeExtensionMessageTest.cc
  10469. * src/MetaEntry.h
  10470. * src/Peer.{h, cc}
  10471. * src/PeerInteractionCommand.cc
  10472. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  10473. addIncomingPeer.
  10474. * src/PeerMessageUtil.{h, cc}
  10475. * src/PeerObject.h
  10476. * src/UTPexExtensionMessage.{h, cc}
  10477. * test/UTPexExtensionMessageTest.cc
  10478. * src/message.h
  10479. * src/prefs.h
  10480. Fixed the bug that returns incomplete data when it contains null
  10481. character. A convenient constructor was also added.
  10482. * src/Data.{h, cc}
  10483. Rewritten.
  10484. * src/CompactPeerListProcessor.cc
  10485. Fixed typos.
  10486. * src/message.h
  10487. * src/MetaFileUtil.cc
  10488. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10489. Added "Status Legend" label to the explanation text of 'stat' in
  10490. download result and moved it to the last. BUG#1848214
  10491. * src/RequestGroupMan.cc
  10492. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10493. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  10494. * src/Makefie.am
  10495. * test/Makefile.am
  10496. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10497. Fixed the bug that prevents aria2 from loading cookie file when expire
  10498. value is greater than 2^31-1. BUG#1851066
  10499. * src/CookieBoxFactory.cc
  10500. * test/CookieBoxFactoryTest.cc
  10501. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10502. Fixed possible memory leak when an exception is thrown.
  10503. * src/XML2SAXMetalinkProcessor.cc
  10504. Added Expat support. If both libxml2 and Expat are installed, then
  10505. libxml2 is used by default.
  10506. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  10507. ExpatMetalinkProcessor according to the configuration.
  10508. * src/ExpatMetalinkProcessor.{h, cc}
  10509. * src/main.cc: Removed libxml2 specific header and init/free function.
  10510. * src/MetalinkProcessorFactory.{h, cc}
  10511. * src/MetalinkHelper.cc
  10512. * src/Metalinker.h: Removed unnecessary libxml2 header.
  10513. * src/MetalinkProcessor.h
  10514. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  10515. MetalinkProcessorTest is used instead.
  10516. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  10517. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  10518. MetalinkProcessorFactory::newInstance().
  10519. * m4/libexpat.m4
  10520. * configure.ac: Added configuration options for libexpat.
  10521. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10522. Disabled -s option in metalink download.
  10523. * src/Metalink2RequestGroup.cc
  10524. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10525. If several protocols are available for a mirror in metalink file,
  10526. aria2 now use one of them. --metalink-preferred-protocol option was
  10527. added to specify the preference of protocol.
  10528. * src/AbstractCommand.cc
  10529. * src/OptionHandlerFactory.cc
  10530. * src/ServerHost.{h, cc}
  10531. * src/Metalink2RequestGroup.cc
  10532. * src/RequestGroup.{h, cc}
  10533. * test/RequestGroupTest.cc
  10534. * src/option_processing.cc
  10535. * src/prefs.h
  10536. * src/HttpResponseCommand.cc
  10537. * src/MetalinkResource.{h, cc}
  10538. * src/FtpNegotiationCommand.cc
  10539. * src/MetalinkEntry.{h, cc}
  10540. * src/MetalinkEntryTest.cc
  10541. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10542. Code cleanup and added debug log.
  10543. * src/PeerConnection.cc
  10544. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10545. Compiler error fix: applied the patch by Tiziano Mueller
  10546. * src/RequestGroup.cc
  10547. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10548. Fixed the bug: only first announce URL is tried in AnnounceTier,
  10549. in stopped and completed event.
  10550. * src/AnnounceList.{h, cc}
  10551. * test/AnnounceListTest.cc
  10552. * src/DefaultBtAnnounce.cc
  10553. * test/DefaultBtAnnounceTest.cc
  10554. Sorted URLs.
  10555. * test/Metalink2RequestGroupTest.cc
  10556. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10557. Removed unnecessary string copy. Updated doc and corrected indentation.
  10558. * src/Base64.cc
  10559. Fixed compilation warnings
  10560. * test/DataTest.cc
  10561. * test/HttpRequestTest.cc
  10562. * test/MetaFileUtilTest.cc
  10563. * test/RequestTest.cc
  10564. * Release 0.12.0
  10565. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10566. Updated translations
  10567. * po/{de,fr,ja,nl,ru}.po
  10568. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  10569. translations. Many thanks to translators.
  10570. * po/{ca,es,it,pt_BR,sv}.po
  10571. * po/LINGUAS
  10572. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10573. Added a notice about URL
  10574. * src/version_usage.cc
  10575. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  10576. Fixed the bug#1845750; CTRL+C does not stop torrent.
  10577. aria2 repeatedly sends stopped request when tracker returns error code.
  10578. * src/AnnounceList.cc
  10579. * test/AnnounceListTest.cc
  10580. * src/AnnounceTier.h
  10581. Added a message when ctrl-c is hit.
  10582. Now second ctrl-c is also handled in signal handler.
  10583. * src/RequestGroupMan.{h, cc}
  10584. * src/RequestGroup.{h, cc}
  10585. * src/MultiUrlRequestInfo.cc
  10586. * src/DownloadEngine.cc
  10587. * src/TrackerWatcherCommand.cc
  10588. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10589. Code cleanup
  10590. * src/Base64.cc (encode)
  10591. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10592. Changed Direct/IO enable/disable procesure in file allocation routine.
  10593. * src/SingleFileAllocationIterator.cc
  10594. (SingleFileAllocationIterator):
  10595. Disable directIO if offset is not multiple of 512.
  10596. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  10597. * src/MultiFileAllocationIterator.cc (allocateChunk):
  10598. Enable created SingleFileAllocationIterator's directIO.
  10599. * src/FileAllocationEntry.cc
  10600. (FileAllocationEntry): Enable directIO here.
  10601. (~FileAllocationEntry): Disable directIO here.
  10602. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10603. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  10604. * src/Peer.{h, cc}
  10605. * src/DefaultPieceStorage.cc
  10606. * test/DefaultPieceStorageTest.cc
  10607. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10608. Rewritten direct I/O support routine
  10609. * src/SingleFileAllocationIterator.cc
  10610. * src/MultiDiskAdaptor.{h, cc}
  10611. * src/ByteArrayDiskWriter.h
  10612. * src/AbstractSingleDiskAdaptor.h
  10613. * src/AbstractDiskWriter.cc
  10614. * src/DefaultPieceStorage.cc
  10615. * src/DiskWriter.h
  10616. * src/BinaryStream.h
  10617. * src/IteratableChunkChecksumValidator.cc
  10618. * src/IteratableChecksumValidator.cc
  10619. * src/CheckIntegrityEntry.cc
  10620. * src/FileAllocationEntry.cc
  10621. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10622. Fixed typo
  10623. * src/version_usage.cc
  10624. Updated doc
  10625. * doc/aria2c.1.txt
  10626. * doc/aria2c.1
  10627. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10628. Fixed compile error without message digest support.
  10629. * src/FileMetalinkParserState.cc
  10630. * src/MetalinkParserController.{h, cc}
  10631. * test/XML2SAXMetalinkProcessorTest.cc
  10632. * test/MetalinkParserControllerTest.cc
  10633. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10634. Enable direct I/O support in checksum checking.
  10635. * src/IteratableChunkChecksumValidator.{h, cc}
  10636. * test/IteratableChunkChecksumValidatorTest.cc
  10637. * src/CheckIntegrityEntry.cc
  10638. * src/PieceHashCheckIntegrityEntry.cc
  10639. * src/IteratableChecksumValidator.{h, cc}
  10640. * src/BtCheckIntegrityEntry.cc: Added doc.
  10641. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10642. Added --allow-piece-length-change option.
  10643. * src/DefaultBtProgressInfoFile.cc
  10644. * test/DefaultBtProgressInfoFileTest.cc
  10645. * src/OptionHandlerFactory.cc
  10646. * src/option_processing.cc
  10647. * src/prefs.h
  10648. * src/version_usage.cc
  10649. * doc/aria2c.1.txt
  10650. * doc/aria2c.1
  10651. Fixed: duplicated result entry appears when exception is thrown in
  10652. RequestGroup::createInitiateConnectionCommand().
  10653. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  10654. Add RequestGroup to _requestGroup after RequetGroup::
  10655. createInitiateConnectionCommand() succeeds.
  10656. Externalized message
  10657. * src/XML2SAXMetalinkProcessor.cc
  10658. * src/message.h
  10659. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10660. Forced download abort when received negative response from http/ftp
  10661. server.
  10662. * src/HttpResponseCommand.cc
  10663. * src/FtpNegotiationCommand.cc
  10664. * src/HttpResponse.cc
  10665. * src/FtpConnection.cc
  10666. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10667. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  10668. the predecessor, Xml2MetalinkParser class.
  10669. I tested them against 94KB metalink file with 1234 chunk checksums.
  10670. The new one parsed it in 22msec, while it took 6000msec with old one.
  10671. * src/XML2SAXMetalinkProcessor.{h, cc}
  10672. * test/XML2SAXMetalinkProcessorTest.cc
  10673. * src/MetalinkParserController.{h, cc}
  10674. * test/MetalinkParserControllerTest.cc
  10675. * src/MetalinkParserState.h: Also added 16 subclasses.
  10676. * src/main.cc
  10677. * src/Metalink2RequestGroup.cc
  10678. * src/MetalinkHelper.cc
  10679. * src/MetalinkEntry.cc
  10680. * src/ChunkChecksum.h
  10681. Rewritten Base64 class for better performance.
  10682. * src/Base64.{h, cc}
  10683. * test/Base64Test.cc
  10684. * src/HttpRequest.cc
  10685. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10686. Fixed the bug#1841757: aria2 will connect to server to only get
  10687. file size.
  10688. * src/StreamFileAllocationEntry.cc
  10689. * src/option_processing.cc
  10690. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  10691. downloads.
  10692. * src/FtpNegotiationCommand.cc
  10693. Suppressed wrong message when finding PreDownloadHandler
  10694. * src/RequestGroup.cc
  10695. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10696. Updated usage
  10697. * src/version_usage.cc
  10698. Updated man page
  10699. * doc/aria2c.1.txt
  10700. * doc/aria2c.1
  10701. Updated po files
  10702. * po/aria2c.pot
  10703. * po/*.po
  10704. * po/*.gmo
  10705. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10706. Eliminated g++-4.2 warning
  10707. * src/DownloadHandlerConstants.{h, cc}
  10708. * src/Util.cc
  10709. * test/MetaFileUtilTest.cc
  10710. * test/PStringBuildVisitorTest.cc
  10711. Fixed bug: --check-integrity doesn't work for multi file torrent.
  10712. * src/RequestGroup.cc
  10713. * src/BtCheckIntegrityEntry.cc
  10714. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10715. Fixed a2io.h
  10716. * src/a2io.h
  10717. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10718. Added direct I/O support. The current implementation uses O_DIRECT,
  10719. which is not posix standard and is tested on linux 2.6.21.
  10720. Currently only file allocation uses direct I/O.
  10721. * src/SingleFileAllocationIterator.{h, cc}
  10722. * test/SingleFileAllocationIteratorTest.cc
  10723. * src/MultiFileAllocationIterator.{h, cc}
  10724. * test/MultiFileAllocationIteratorTest.cc
  10725. * src/BinaryStream.h
  10726. * src/DiskWriter.h
  10727. * src/AbstractDiskWriter.{h, cc}
  10728. * src/ByteArrayDiskWriter.h
  10729. * src/DiskAdaptor.h
  10730. * src/AbstractSingleDiskAdaptor.{h, cc}
  10731. * src/MultiDiskAdaptor.{h, cc}
  10732. * src/FileAllocationEntry.cc
  10733. * src/Util.{h, cc}
  10734. * src/OptionHandlerFactory.cc
  10735. * src/prefs.h
  10736. * src/version_usage.cc
  10737. * src/option_processing.cc
  10738. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  10739. handleException.
  10740. * src/MultiFileAllocationIterator.cc
  10741. Added EINTR handling
  10742. * src/SocketCore.cc
  10743. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10744. Updated usage
  10745. * src/version_usage.cc
  10746. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10747. Applied Ross's patch for MinGW port.
  10748. * src/DownloadEngine.h
  10749. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10750. Set Content-Type to SingleFileDownloadContext when http response is
  10751. received.
  10752. * src/HttpResponseCommand.cc
  10753. * src/HttpResponse.{h, cc}
  10754. * test/HttpResponseTest.cc
  10755. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10756. Rewritten to add content-type support.
  10757. * src/DownloadHandler.{h, cc}
  10758. * src/BtPostDownloadHandler.{h, cc}
  10759. * test/BtPostDownloadHandlerTest.cc
  10760. * src/MetalinkPostDownloadHandler.{h, cc}
  10761. * test/MetalinkPostDownloadHandlerTest.cc
  10762. * src/PostDownloadHandler.{h, cc}
  10763. * src/DownloadHandlerConstants.{h, cc}
  10764. * src/RequestGroup.cc
  10765. * src/HttpResponseCommand.cc
  10766. * src/FtpNegotiationCommand.cc
  10767. * src/SingleFileDownloadContext.{h, cc}
  10768. * src/RequestGroup.h
  10769. * src/RequestGroupCriteria.h
  10770. * src/ContentTypeRequestGroupCriteria.h
  10771. Added 'mem' option value for --follow-metalink, --follow-torrent.
  10772. If it is give, metalink/torrent file is not written to the disk, but
  10773. just is kept in memory. Parsing is occurred on memory.
  10774. * src/MetalinkHelper.{h, cc}
  10775. * src/MetalinkProcessor.h
  10776. * src/Xml2MetalinkProcessor.{h, cc}
  10777. * test/Xml2MetalinkProcessorTest.cc
  10778. * src/DownloadHandlerFactory.{h, cc}
  10779. * test/DownloadHandlerFactoryTest.cc
  10780. * src/PreDownloadHandler.{h, cc}
  10781. * src/OptionHandlerFactory.cc
  10782. * src/DefaultBtContext.{h, cc}
  10783. * test/DefaultBtContextTest.cc
  10784. * src/version_usage.cc
  10785. * src/Metalink2RequestGroup.{h, cc}
  10786. * src/RequestGroup.{h, cc}
  10787. * src/a2functional.h
  10788. * test/a2functionalTest.cc
  10789. * src/MemoryBufferPreDownloadHandler.{h, cc}
  10790. * src/OptionHandlerImpl.h
  10791. * src/prefs.h
  10792. * src/Util.{h, cc}
  10793. * test/UtilTest.cc
  10794. Keep DownloadResult rather than RequestGroup after downloads to reduce
  10795. memory usage.
  10796. * src/RequestGroupMan.{h, cc}
  10797. * src/DownloadEngine.cc
  10798. * src/BtDependency.{h, cc}: Changed the type of dependee from
  10799. WeakHandle to SharedHandle because WeakHandle could be null.
  10800. * src/RequestGroup.{h, cc}
  10801. * src/DownloadEngineFactory.cc
  10802. * src/DownloadResult.h
  10803. Set totalLength after download finished
  10804. * src/UnknownLengthPieceStorage.{h, cc}
  10805. Keep torrent file specified in metalink in memory.
  10806. * src/Metalink2RequestGroup.cc
  10807. * src/BtDependency.cc
  10808. * src/TrueRequestGroupCriteria.h
  10809. Fixed the bug: seekg is used where seekp should be used.
  10810. * src/ByteArrayDiskWriter.cc
  10811. * test/ByteArraydiskWriterTest.cc
  10812. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10813. Fixed syntax error
  10814. * test/SequenceTest.cc
  10815. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10816. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  10817. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  10818. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  10819. * src/RequestGroup.cc (downloadFinishedByFileLength)
  10820. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10821. Added the check to see whether ares_host_callback accepts timeouts
  10822. with c-ares; only c-ares 1.5.0 or newer accepts it.
  10823. * src/NameResolver.{h, cc}
  10824. * m4/libcares.m4
  10825. * configure.ac: Set C++ for language choice.
  10826. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10827. Fixed: compilation fails without c-ares/ares
  10828. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  10829. Generate http/ftp commands only when download is incomplete.
  10830. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  10831. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10832. Corrected typo. Examples are removed since they are available in man
  10833. page.
  10834. * src/version_usage.cc
  10835. Updated man page.
  10836. * doc/aria2c.1
  10837. * doc/aria2c.1.txt
  10838. * doc/makeman: Commented out sed command.
  10839. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10840. Throw DlAbortEx when a remote file is not found.
  10841. * src/HttpResponse.cc
  10842. * src/FtpNegotiationCommand.cc
  10843. * src/message.h
  10844. Overwrite an existing file if --allow-overwrite=true is given.
  10845. * src/RequestGroup.cc
  10846. Removed unused functions
  10847. * src/AbstractCommand.h
  10848. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10849. Removed 'extern' from 'extern typedef ...' in src/*.h
  10850. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10851. Updated usage
  10852. * src/version_usage.cc
  10853. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10854. Trim announce URL
  10855. * src/DefaultBtContext.cc
  10856. * test/ShaVisitorTest.cc
  10857. Trim argument s. Give trimed s to exception constructor.
  10858. * src/Util.cc (parseInt)(parseLLInt)
  10859. * test/UtilTest.cc
  10860. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10861. Set precision back to 1.
  10862. * src/ConsoleStatCalc.cc (calculateStat)
  10863. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10864. Replaced strtol with Util::parseInt
  10865. * src/ChunkedEncoding.cc
  10866. * src/HttpConnection.cc
  10867. * src/CookieBoxFactory.cc
  10868. * src/ParameterizedStringParser.cc
  10869. * src/Util.cc
  10870. * test/UtilTest.cc
  10871. * test/OptionHandlerTest.cc
  10872. * src/Request.cc
  10873. Throw exception when empty string is given. The message for exception
  10874. changed.
  10875. * src/Util.cc (parseInt)(parseLLInt)
  10876. * src/message.h
  10877. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10878. Set precision to 2 because share ratio is rounded into 1.0 if precision
  10879. set to 1.
  10880. * src/ConsoleStatCalc.cc (calculateStat)
  10881. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10882. Preallocate non-requested file which is adjacent forward to requested
  10883. file('requested' files means the files given in --select-file option)
  10884. if they share a same piece.
  10885. This fixes long pause in the file system which doesn't support sparse
  10886. files like FAT32 while downloading.
  10887. * src/MultiFileAllocationIterator.{h, cc}
  10888. * test/MultiFileAllocationIteratorTest.cc
  10889. * src/FileEntry.{h, cc}
  10890. Removed unused _option.
  10891. * src/MultiDiskAdaptor.h
  10892. * test/MultiDiskAdaptorTest.cc
  10893. * src/DefaultPieceStorage.cc
  10894. Set the default value of --seed-ratio to 1.0.
  10895. If 0.0 is given, then seeding continues regardless of share ratio.
  10896. * src/version_usage.cc
  10897. * src/option_processing.cc
  10898. * src/BtSetup.cc
  10899. * doc/aria2c.1.txt
  10900. * doc/aria2c.1
  10901. Fixed: Selective download is not working in BitTorrent
  10902. * src/RequestGroup.cc
  10903. Introduced Sequence class. Use this instead of Util::unfoldRange()
  10904. * src/PieceStorage.h
  10905. * test/MockPieceStorage.h
  10906. * src/UnknownLengthPieceStorage.h
  10907. * src/DefaultPieceStorage.{h, cc}
  10908. * src/Metalink2RequestGroup.cc
  10909. * src/RequestGroup.cc
  10910. * src/Sequence.h
  10911. * test/SequenceTest.cc
  10912. * src/IntSequence.h
  10913. * src/message.h
  10914. * src/Util.{h, cc}
  10915. * test/UtilTest.cc
  10916. Added new function 'parse' to catch exception thrown by subclass's
  10917. parseArg
  10918. * src/OptionHandler.h
  10919. * src/OptionParser.cc
  10920. * src/NameMatchOptionHandler.h
  10921. * src/OptionHandlerImpl.h
  10922. * test/OptionHandlerTest.cc
  10923. Added IntegerRangeOptionHandler. Used for --listen-port and
  10924. --select-file. Now --listen-port accepts range of port.
  10925. * src/OptionHandlerFactory.cc
  10926. * src/version_usage.cc
  10927. * src/OptionHandlerImpl.h
  10928. * src/option_processing.cc
  10929. * src/BtSetup.cc
  10930. * src/PeerListenCommand.{h, cc}
  10931. * doc/aria2c.1.txt
  10932. * doc/aria2c.1
  10933. Implemented operator< for Exception class to provide easy way to print
  10934. exception stack trace.
  10935. * src/Exception.{h, cc}
  10936. * src/main.cc
  10937. * src/option_processing.cc
  10938. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10939. * src/version_usage.cc
  10940. (showVersion): Reworked.
  10941. (showUsage): Added examples.
  10942. Removed Hint for total length and file name.
  10943. * src/Metalink2RequestGroup.cc
  10944. * src/RequestGroup.{h, cc}
  10945. * src/HttpResponseCommand.cc
  10946. * src/FtpNegotiationCommand.cc
  10947. Now --follow-torrent and --follow-metalink option work properly.
  10948. * src/RequestGroup.cc
  10949. Updated man page
  10950. * doc/aria2c.1.txt
  10951. * doc/aria2c.1
  10952. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10953. Removed.
  10954. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  10955. Use Segment::operator==()
  10956. * src/HttpConnection.cc
  10957. * src/Segment.h
  10958. Updated usage
  10959. * src/version_usage.cc
  10960. Added EINTR treatment.
  10961. * src/SocketCore.cc
  10962. * src/AbstractDiskWriter.cc
  10963. Rewritten.
  10964. * src/Util.cc (rangedFileCopy)
  10965. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10966. Fixed typo.
  10967. * src/version_usage.cc
  10968. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10969. Implemented. Now -c option works fine.
  10970. * src/DefaultPieceStorage.cc (markPiecesDone)
  10971. * test/DefaultPieceStorageTest.cc
  10972. Removed.
  10973. * src/SegmentMan.{h, cc}
  10974. (markAllPiecesDone)
  10975. (markPieceDone)
  10976. Synchronized po files with
  10977. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  10978. * src/fr.po
  10979. * src/ru.po
  10980. * src/de.po
  10981. * src/ja.po
  10982. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10983. Added ifdef and some modifications to compile without BitTorrent,
  10984. Metalink, MessageDigest
  10985. support.
  10986. * src/PieceHashCheckIntegrityEntry.cc
  10987. * src/MetalinkEntry.h
  10988. * src/version_usage.cc
  10989. * src/main.cc
  10990. * src/DownloadEngine.{h, cc}
  10991. * src/Metalink2RequestGroup.cc
  10992. * src/Peer.cc
  10993. * src/RequestGroup.cc
  10994. * src/MetalinkHelper.cc
  10995. * test/DefaultPieceStorageTest.cc
  10996. * test/MetalinkPostDownloadHandlerTest.cc
  10997. * test/Metalink2RequestGroupTest.cc
  10998. Hide TOTAL SPD when all downloads complete.
  10999. * src/ConsoleStatCalc.cc
  11000. Log target system information.
  11001. * src/main.cc
  11002. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11003. Now --metalink-location accepts a comma-deliminated list of locations.
  11004. * src/MetalinkEntry.{h, cc}
  11005. * test/MetalinkEntryTest.cc
  11006. * src/version_usage.cc
  11007. * src/Metalink2RequestGroup.cc
  11008. * src/Xml2MetalinkProcessor.cc
  11009. * test/Xml2MetalinkProcessorTest.cc
  11010. * doc/aria2c.1.txt
  11011. * doc/aria2c.1
  11012. * src/Util.cc (toUpper)(toLower): Rewritten.
  11013. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11014. Added the ability to detect duplicate download entry which is about to
  11015. download the same file other RequestGroup is downloading.
  11016. * src/RequestGroup.cc
  11017. * src/HttpResponseCommand.cc
  11018. * src/FtpNegotiationCommand.cc
  11019. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11020. Recalculates download progress when loading a control file,
  11021. if the piece length of DownloadContext is different from the one saved
  11022. in the control file. Currently in-flight pieces are ignored.
  11023. * src/DefaultBtProgressInfoFile.cc
  11024. * test/DefaultBtProgressInfoFileTest.cc
  11025. * src/Util.{h, cc}
  11026. * test/UtilTest.cc
  11027. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11028. Do not rotate tiers in announce-list.
  11029. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  11030. AnnounceList::allTiersFailed() used instead to detect whether all
  11031. tiers are tried and failed.
  11032. * test/DefaultBtAnnounceTest.cc
  11033. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  11034. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  11035. * test/AnnounceListTest.cc
  11036. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  11037. clause. Catch RecoverableException instead of DlRetryEx instead.
  11038. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11039. Implemented checksum validation feature(1 checksum for each file)
  11040. The validation takes place after the download.
  11041. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  11042. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  11043. * src/CheckIntegrityCommand.cc: Changed log message.
  11044. * src/Metalink2RequestGroup.cc: Set checksum to
  11045. SingleFileDownloadContext.
  11046. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  11047. PieceHashCheckIntegrity class.
  11048. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  11049. PieceHashCheckIntegrity class.
  11050. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  11051. * src/IteratableValidator.h: New class.
  11052. * src/message.h
  11053. * src/CheckIntegrityEntry.{h, cc}
  11054. * src/IteratableChunkChecksumValidator.{h, cc}
  11055. * src/SingleFileDownloadContext.h
  11056. * src/DownloadCommand.cc
  11057. --allow-overwrite=true is no longer needed to check file integrity
  11058. before download in BitTorrent download.
  11059. * src/RequestGroup.cc (getInitialCommand)
  11060. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  11061. throws exception.
  11062. * src/RequestGroupMan.cc (getInitialCommands)
  11063. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11064. urlencode the given url inside Request::parseUrl(...)
  11065. * src/Request.{h, cc}
  11066. * src/Util.{h, cc}
  11067. * test/RequestTest.cc
  11068. Removed #!metalink3! notation support because it is deleted from
  11069. the metalink specification.
  11070. * src/Request.{h, cc}
  11071. * test/RequestTest.cc
  11072. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11073. Don't connect server before checking file integrity at startup, if
  11074. filesize and output file path are known.
  11075. * src/AbstractCommand.cc
  11076. * src/StreamFileAllocationEntry.cc
  11077. * src/Metalink2RequestGroup.cc
  11078. * src/RequestGroup.{h, cc}
  11079. * src/HttpResponseCommand.cc
  11080. * src/FtpNegotiationCommand.cc
  11081. Added DownloadFailureException. If it is thrown, RequestGroup should
  11082. halt.
  11083. * src/AbstractCommand.cc
  11084. * src/DownloadFailureException.h
  11085. * src/RequestGroup.cc
  11086. Catch RecoverableException, instead of DlAbortEx.
  11087. * src/RequestGroupMan.cc
  11088. * src/FillRequestGroupCommand.cc
  11089. * src/MetaFileUtil.cc
  11090. * src/IteratableChunkChecksumValidator.cc
  11091. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  11092. getGID())
  11093. * src/CheckIntegrityCommand.cc
  11094. * src/message.h
  11095. Print gid instead of idx.
  11096. * src/RequestGroupMan.cc
  11097. Removed exception throwers declaration.
  11098. * src/DirectDiskAdaptor.{h, cc}
  11099. * src/SocketCore.{h, cc}
  11100. * src/MultiDiskAdaptor.{h, cc}
  11101. * src/HttpConnection.{h, cc}
  11102. * src/HttpResponse.{h, cc}
  11103. * src/DiskAdaptor.{h, cc}
  11104. * src/CopyDiskAdaptor.{h, cc}
  11105. * src/MultiDiskAdaptor.{h, cc}
  11106. * src/HttpHeaderProcessor.{h, cc}
  11107. * src/AbstractSingleDiskAdaptor.{h, cc}
  11108. * src/Util.{h, cc}
  11109. * test/UtilTest.cc
  11110. * src/DefaultDiskWriter.{h, cc}
  11111. * src/FtpConnection.{h, cc}
  11112. * src/AbstractDiskWriter.{h, cc}
  11113. Removed duplicate code.
  11114. * src/StreamCheckIntegrityEntry.cc
  11115. Removed unnecessary include.
  11116. * src/DiskWriter.h
  11117. Included Exception.h
  11118. * src/option_processing.cc
  11119. Included 2 files and added doc
  11120. * src/TrackerWatcherCommand.cc
  11121. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  11122. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11123. Changed CheckIntegrityEntry interface so that it can define
  11124. the action when all the chunk checksums are valid.
  11125. * src/CheckIntegrityEntry.h
  11126. * src/StreamCheckIntegrityEntry.{h, cc}
  11127. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  11128. are valid, then aira2 goes to seeding mode. Sometimes it is better
  11129. to exit rather than doing seeding. So, it would be good to toggle this
  11130. behavior.
  11131. * src/CheckIntegrityCommand.cc
  11132. * src/AbstractCommand.cc
  11133. * src/RequestGroup.cc
  11134. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11135. Reflect the download length of in-flight pieces.
  11136. It makes the download length readout more precise.
  11137. * src/DefaultPieceStorage.{h, cc}
  11138. * test/DefaultPieceStorageTest.cc
  11139. * src/a2functional.h
  11140. * test/a2functionalTest.cc
  11141. Lower CPU load when --max-download-limit is used.
  11142. There is up and down in speed indicator when enabling
  11143. http-pipelining but a download goes well. I think the problem is that
  11144. because http-pipelining is enabled, DownloadCommand is created for
  11145. each segment and in its constructor, PeerStat::downloadStart() is
  11146. called. In PeerStat::downloadStart(), speed calculation object is
  11147. reseted, which makes download speed zero.
  11148. * src/DownloadCommand.cc
  11149. Rewritten using accumulate.
  11150. * src/RequestGroupMan.cc (calculateStat)
  11151. Code clearnup.
  11152. * src/FtpNegotiationCommand.cc
  11153. * src/HttpResponseCommand.cc
  11154. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11155. Fixed: Can not resume: aria2 reports download already finished.
  11156. * src/AbstractCommand.{h, cc}
  11157. * src/HttpResponseCommand.cc
  11158. * src/FtpNegotiateCommand.cc
  11159. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11160. Now a file is stored in the directory specified in .metalnk file
  11161. (file[@name]).
  11162. * src/Metalink2RequestGroup.cc
  11163. Create the directory structure when opening the file if it doesn't
  11164. exist.
  11165. * src/AbstractDiskWriter.cc
  11166. * src/Util.{h, cc}
  11167. * src/File.h
  11168. * test/UtilTest.cc
  11169. Removed file name comparison
  11170. * src/Metalink2RequestGroup.cc
  11171. * src/HttpResponseCommand.cc
  11172. Rewritten using Util::mkdirs()
  11173. * src/FileEntry.cc (setupDir)
  11174. * test/FileEntryTest.cc
  11175. Updated doc
  11176. * src/SingleFileDownloadContext.h
  11177. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11178. Now SleepCommand dispatches nextCommand when halt is requested.
  11179. It avoids a possible long wait after hitting CTRL-C.
  11180. * src/SleepCommand.{h, cc}
  11181. * src/RequestGroupAware.{h, cc}
  11182. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11183. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  11184. to open listen port, then remove the port number from the tracker
  11185. request.
  11186. * src/DefaultBtAnnounce.cc
  11187. * test/DefaultBtAnnounceTest.cc
  11188. * test/MockPieceStorage.h
  11189. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  11190. them more testable.
  11191. * src/DefaultBtAnnounce.{h, cc}
  11192. * src/DefaultBtContext.{h, cc}
  11193. * src/Util.{h, cc}
  11194. * test/DefaultBtAnnounceTest.cc
  11195. * test/DefaultBtContextTest.cc
  11196. * test/UtilTest.cc
  11197. Added 'B' to upload bytes readout.
  11198. * src/ConsoleStatCalc.cc
  11199. Now the listen port for BitTorrent download is opened when it is
  11200. needed.
  11201. * src/DownloadEngineFactory.cc
  11202. * src/BtSetup.{h, cc}
  11203. * src/PeerListenCommand.{h, cc}
  11204. Now an exception thrown while parsing tracker response is now logged.
  11205. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  11206. called, which means no retry is made in this case, assuming a tracker
  11207. has a problem.
  11208. * src/TrackerWatcherCommand.cc
  11209. Fixed: downloading a file whose length is unkown fails.
  11210. * src/DownloadCommand.cc
  11211. Simplified prepareForNextSegment()
  11212. * src/DownloadCommand.cc
  11213. Updated
  11214. * po/POTFILES.in
  11215. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11216. Re-implemented a file listing for Metalink, which was dropped while
  11217. http/ftp/torrent integration was being implemented.
  11218. * src/MetalinkHelper.{h, cc}: New class.
  11219. * test/MetalinkHelperTest.cc
  11220. * src/main.cc
  11221. * src/Metalink2RequestGroup.cc
  11222. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11223. Added the ability to display the detailed torrent file information.
  11224. Now -S option gives not only a file listing, but also total download
  11225. length, info hash, announce URI, piece length, the number of pieces,
  11226. and mode(single or multi-torrent).
  11227. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  11228. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  11229. KiB)
  11230. * test/UtilTest.cc
  11231. * src/main.cc
  11232. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11233. Added ftp://USER:PASSWD@Servername automatic parsing.
  11234. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  11235. _password. Recognize username and password in URI.
  11236. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  11237. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  11238. * src/RequestFactory.{h, cc}: Removed.
  11239. * src/AuthConfigFactory.{h, cc}: New class.
  11240. * src/FtpConnection.cc: Use AuthConfigFactory.
  11241. * src/HttpRequest.cc: Use AuthConfigFactory.
  11242. * test/HttpRequestTest.cc: Updated.
  11243. * test/RequestTest.cc: Updated.
  11244. * test/AuthConfigFactoryTest.cc: New class.
  11245. * test/RequestFactoryTest.cc: Removed.
  11246. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11247. Use RequestGroup::allDownloadFinished() to decide whether the control
  11248. file should be removed or saved.
  11249. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  11250. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  11251. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11252. Use File::renameTo()
  11253. * src/DefaultBtProgressInfoFile.cc
  11254. Added --no-file-allocation-limit command-line option.
  11255. * src/version_usage.cc
  11256. * src/option_processing.cc
  11257. * src/OptionHandlerFactory.cc
  11258. * src/RequestGroup.{h, cc}
  11259. * src/BtCheckIntegrityEntry.cc
  11260. * src/StreamCheckIntegrityEntry.cc
  11261. * src/prefs.h
  11262. * doc/aria2c.1.txt
  11263. * doc/aria2c.1
  11264. Now prealloc is the default value for --file-allocation option.
  11265. * src/version_usage.cc
  11266. * src/option_processing.cc
  11267. * doc/aria2c.1.txt
  11268. * doc/aria2c.1
  11269. Don't URL-encode user-agent.
  11270. * src/HttpRequest.cc
  11271. Updated translations
  11272. * po/LINGUAS: Added nl for Dutch translation.
  11273. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  11274. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  11275. * po/POTFILES.in: Updated.
  11276. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11277. Added the ability to recognize url-list in a torrent file.
  11278. The retrieved URLs are attached to the corresponding FileEntry.
  11279. * src/DefaultBtContext.{h, cc}
  11280. * src/FileEntry.{h, cc}
  11281. * test/DefaultBtContextTest.cc
  11282. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11283. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  11284. after the download finishes.
  11285. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11286. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  11287. the data smaller than block length.
  11288. A block length can be specified by constructor's argument.
  11289. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  11290. Get a missing piece in the range of given FileEntry. This function is
  11291. not used in the program yet.
  11292. * src/Util.h: Added some macros.
  11293. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11294. Added HTTP/1.1 keep alive and pipelining support.
  11295. See --enable-http-keep-alive and --enable-http-pipelining option.
  11296. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  11297. Segment.
  11298. * src/HttpDownloadCommand.{h, cc}
  11299. * src/OptionHandlerFactory.cc
  11300. * src/HttpConnection.{h, cc}
  11301. * src/version_usage.cc
  11302. * src/HttpInitiateConnectionCommand.cc
  11303. * src/FtpInitiateConnectionCommand.cc
  11304. * src/Segment.h
  11305. * src/HttpRequestCommand.{h, cc}
  11306. * src/option_processing.cc
  11307. * src/prefs.h
  11308. * src/HttpResponseCommand.cc
  11309. * src/SegmentMan.{h, cc}
  11310. * src/FtpNegotiateCommand.cc
  11311. * src/HttpProxyResponseCommand.cc
  11312. * src/Request.cc
  11313. * src/HttpRequest.cc
  11314. * src/DownloadCommand.cc
  11315. * test/HttpRequestTest.cc
  11316. * test/RequestTest.cc
  11317. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11318. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  11319. finished.
  11320. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11321. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  11322. catching it inside the method.
  11323. When no file entry is found in a metalink without querying user
  11324. preferences, throw the exception with the error message that suggests
  11325. metalink file is probably broken.
  11326. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  11327. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11328. Fixed the bug that prevents remote Metalink/Torrent file from begin
  11329. processed.
  11330. * src/RequestGroupMan.cc (removeStoppedGroup)
  11331. Added debug message.
  11332. * src/BtPostDownloadHandler.cc
  11333. * src/MetalinkPostDownloadHandler.cc
  11334. * src/PostDownloadHandler.{h, cc}
  11335. * src/RequestGroup.cc
  11336. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11337. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  11338. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11339. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  11340. stops and there are any unfinished or in-progress downloads.
  11341. Added the legend of "stat".
  11342. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11343. Throw exception when chunck checksum verification fails.
  11344. * src/DownloadCommand.cc (validatePieceHash): New function.
  11345. * src/PiecedSegment.{h, cc} (clear): New function.
  11346. * src/GrowSegment.{h, cc} (clear): New function.
  11347. * src/Segment.h (clear): New function.
  11348. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  11349. * test/SegmentTest.cc
  11350. * test/GrowSegmentTest.cc
  11351. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11352. Do not send referer when redirected.
  11353. * src/Request.cc (redirectUrl)
  11354. * test/RequestTest.cc
  11355. * test/HttpRequestTest.cc
  11356. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11357. Implemented BitTorrent/http/ftp integrated download.
  11358. I've rewritten lots of files and now some headers have forward
  11359. class declarations to reduce compile time.
  11360. The implementation is extremely alpha stage, I recommend to use this
  11361. for testing purpose only.
  11362. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11363. Fixed the compilation error on 64bit platform.
  11364. * test/HttpHeaderProcessorTest.cc
  11365. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11366. Merged Ross's patch that fixes compilation problem in MinGW
  11367. * test/DefaultBtProgressInfoFileTest.cc
  11368. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11369. Updated fr.po by sebone
  11370. * po/fr.po
  11371. Updated man page.
  11372. * doc/aria2c.1.txt
  11373. * Release 0.11.3
  11374. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11375. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  11376. failure in Metalink.
  11377. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11378. Automatically save *.aria2 control file of http/ftp download in every
  11379. 60 seconds.
  11380. * src/AutoSaveCommand.{h, cc}: New class.
  11381. * src/TimeBasedCommand.{h, cc}: New class.
  11382. * src/DownloadEngineFactory.cc (newConsoleEngine)
  11383. Disable parameterized URI support by default. Added -P option to
  11384. enable the feature.
  11385. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  11386. * src/OptionHandlerFactory.cc
  11387. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  11388. Updated Japanese translation.
  11389. * po/ja.po
  11390. Updated man page.
  11391. * doc/aria2c.1.txt
  11392. * Release 0.11.3-rc
  11393. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11394. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  11395. it is successful, then renamed to *.aria2.
  11396. This prevents *.aria2 file from being truncated or corrupted when
  11397. file system becomes out of space.
  11398. * src/DefaultBtProgressInfoFile.cc (save)
  11399. * src/SegmentMan.cc (save)
  11400. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  11401. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11402. Reduced the fragmentation of bitfield in http/ftp download.
  11403. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  11404. * test/BitfieldManTest.cc
  11405. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11406. Added the ability to disable segmented download in .metalink.
  11407. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  11408. 'url' tag.
  11409. * src/MetalinkEntry.{h, cc}
  11410. * src/RequestResource.{h, cc}
  11411. * src/MetalinkRequestInfo.cc
  11412. * src/Xml2MetalinkProcessor.cc
  11413. * test/Xml2MetalinkProcessorTest.cc
  11414. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11415. Added parameterized URI support.
  11416. * src/main.cc: -Z option added.
  11417. * src/OptionHandlerFactory.cc
  11418. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  11419. * src/PStringDatum.h: New class.
  11420. * src/PStringSegment.{h,cc}: New class.
  11421. * src/PStringNumLoop.h: New class.
  11422. * src/PStringSelect.h: New class.
  11423. * src/NumberDecorator.h: New class.
  11424. * src/FixedWidthNumberDecorator.h: New class.
  11425. * src/AlphaNumberDecorator.h: New class.
  11426. * src/PStringVisitor.h: New class.
  11427. * src/PStringBuildVisitor.{h,cc}: New class.
  11428. * src/ParameterizedStringParser.{h,cc}: New class.
  11429. * src/Util.{h,cc}
  11430. (isNumber): New function.
  11431. (isLowercase): New function.
  11432. (isUppercase): New function.
  11433. (alphaToNum): New function.
  11434. * test/ParameterizedStringParserTest.cc: New class.
  11435. * test/AlphaNumberDecoratorTest.cc: New class.
  11436. * test/PStringBuildVisitorTest.cc: New class.
  11437. * test/UtilTest.cc
  11438. (testIsNumber): New function.
  11439. (testIsLowercase): New function.
  11440. (testIsUppercase): New function.
  11441. (testAlphaToNum): New function.
  11442. Added '\n' after the error message
  11443. * src/RequestInfo.h (printDownloadAbortMessage)
  11444. Added auto file renaming feature in http(s)/ftp download.
  11445. * src/main.cc: Added --auto-file-renaming command-line option.
  11446. * src/OptionHandlerFactory.cc
  11447. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  11448. * src/RequestGroup.{h, cc}
  11449. (shouldCancelDownloadForSafety): Rewritten
  11450. (tryAutoFileRenaming): New function.
  11451. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  11452. * src/HttpResponseCommand.cc
  11453. (executeInternal): Removed the call to RequestGroupMan::
  11454. isSameFileBeingDownloaded()
  11455. * src/FtpNegotiateCommand.cc
  11456. (recvSize): Removed the call to RequestGroupMan::
  11457. isSameFileBeingDownloaded()
  11458. * test/RequestGroupTest.cc: New class.
  11459. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11460. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  11461. IO.
  11462. * src/DefaultBtProgressInfoFile.cc
  11463. * src/MetaFileUtil.cc
  11464. * src/SimpleLogger.cc
  11465. * src/SegmentMan.cc
  11466. * src/Util.cc
  11467. * src/Platform.cc
  11468. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11469. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  11470. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11471. Avoid sparse files if possible, because VFAT32 doesn't support it.
  11472. * src/DefaultDiskWriter.cc (initAndOpenFile)
  11473. Fixed the bug that prevents file allocation is not done when
  11474. dowloading multi-torrent file.
  11475. * src/AbstractDiskWriter.cc (openFile)
  11476. Increase the maximum number of -j option from 15 to 45.
  11477. * src/OptionHandlerFactory.cc (createOptionHandlers)
  11478. Added fr.po, thanks to Charles Landemaine.
  11479. * po/fr.po
  11480. * po/LINGUAS
  11481. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  11482. gcc 3.4.4 support:
  11483. * src/DefaultBtContext.cc: int32_t -> int
  11484. * src/main.cc: int -> int32_t, int32_t -> int
  11485. * src/messageDigest.h: uint32_t -> unsigned int
  11486. * src/NameResolver.h: int32_t -> int
  11487. * src/PeerConnection.cc: int -> int32_t
  11488. * src/SpeedCalc.cc: int32_t -> int
  11489. * src/TrackerUpdateCommand.h: int -> int32_t
  11490. * src/Util.cc: int32_t -> int
  11491. * src/Util.h: int32_t -> int
  11492. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  11493. * test/AnnounceListTest.cc: int -> int32_t
  11494. * test/ChunkedEncodingTest.cc: int -> int32_t
  11495. * test/DataTest.cc: int -> int32_t
  11496. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  11497. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  11498. * test/DefaultPieceStorageTest.cc: int -> int32_t
  11499. * test/FeatureConfigTest.cc: int -> int32_t
  11500. * test/MetalinkEntryTest.cc: int -> int32_t
  11501. * test/MockBtRequestFactory.h: int -> int32_t
  11502. * test/MockPieceStorage.h: int -> int32_t
  11503. * test/OptionTest.cc: int -> int32_t
  11504. * test/RequestTest.cc: int -> int32_t
  11505. * test/SegmentManTest.cc: int -> int32_t
  11506. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  11507. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  11508. Move sleep functions to Util class:
  11509. * src/Util.cc
  11510. (sleep): New function.
  11511. (usleep): New function.
  11512. * src/DownloadCommand.cc: sleep -> Util::sleep
  11513. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  11514. MinGW build enhancements. The following files are added:
  11515. * src/timegm.{c,h}
  11516. Changes to support the above new files:
  11517. * configure.ac
  11518. * src/Makefile.am
  11519. * src/a2time.h
  11520. * src/Util.cc:
  11521. * src/strptime.c: Added support for %Z option.
  11522. Fixed MinGW non-blocking bug.
  11523. * src/SocketCore.cc
  11524. * src/HttpRequestCommand.cc
  11525. Miscellenous build fixes/enhancements.
  11526. * configure.ac: Added summary report.
  11527. * src/Platform.h: Tweaked #include's.
  11528. * src/a2netcompat.h: Tweaked #include's.
  11529. * src/strptime.h: Tweaked #include's.
  11530. * src/gai_strerror.c: Tweaked #include's.
  11531. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  11532. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  11533. * src/gettimeofday.h: Added HAVE_CONFIG_H
  11534. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11535. Increased the initial connection size in BitTorrent download to 40.
  11536. * src/BtRuntime.h
  11537. Added the usage message of --peer-id-prefix option.
  11538. * src/main.cc
  11539. * Release 0.11.2
  11540. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11541. MessageDigestHelper is introduced in order to simplify the use
  11542. of message digest. Removed repeated code.
  11543. The message digest algorithm is now specified by string, like "sha1",
  11544. "md5".
  11545. * src/messageDigest.{h, cc}
  11546. * src/MessageDigestHelper.{h, cc}: New class.
  11547. * src/DefaultPieceStorage.cc
  11548. * src/DefaultBtContext.{h, cc}
  11549. (computeFastSet): New function.
  11550. (setInfoHash): Added for unit testing.
  11551. (setNumPieces): Added for unit testing.
  11552. * src/DefaultBtInteractive.cc
  11553. * src/BtPieceMessage.cc
  11554. * src/Peer.cc
  11555. * src/Checksum.h
  11556. * src/message.h
  11557. * src/IteratableChecksumValidator.h
  11558. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  11559. inside it.
  11560. * src/SegmentMan.{h, cc}
  11561. (checkIntegrity): Removed.
  11562. * src/IteratableChunkChecksumValidator.{h, cc}
  11563. * src/Util.h
  11564. (sha1Sum): Removed.
  11565. (simpleMessageDigest): Removed.
  11566. (fileChecksum): Removed.
  11567. (computeFastSet): Removed.
  11568. * src/ShaVisitor.cc
  11569. * src/ChunkChecksum.h
  11570. * src/DownloadCommand.cc
  11571. Removed messageDigest virtual functions.
  11572. * src/MultiDiskAdaptor.{h, cc}
  11573. * src/DiskAdaptor.h
  11574. * src/ByteArrayDiskWriter.h
  11575. * src/DiskWriter.h
  11576. * src/DiskAdaptorWriter.h
  11577. * src/AbstractSingleDiskAdaptor.{h, cc}
  11578. * src/AbstractDiskWriter.{h, cc}
  11579. Fixed comilation error when message digest is disabled.
  11580. * src/MetalinkEntry.{h, cc}
  11581. * src/MetalinkRequestInfo.cc
  11582. Removed srandom and random.
  11583. * src/SimpleRandomizer.h
  11584. Added size() virtual function to DiskAdaptor
  11585. * src/MultiDiskAdaptor.h
  11586. Fixed the bug that causes that files are not opened correctly in
  11587. multi-file torrent.
  11588. * src/TorrentRequestInfo.cc
  11589. * src/MultiDiskAdaptor.cc
  11590. Added SHA256 support
  11591. * src/messageDigest.cc
  11592. * src/Xml2MetalinkProcessor.cc
  11593. Show supported message digest algorithms
  11594. * src/main.cc
  11595. Updated contact info.
  11596. * src/main.cc
  11597. Applied Ross's patch
  11598. * src/a2netcompat.h
  11599. * src/main.cc
  11600. Fixed the bug that prevents a remote metalink from not being processed
  11601. even if '-o foo.metalink' is specified.
  11602. * src/MetalinkRequestInfo.cc
  11603. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11604. Merged Dan's patch:
  11605. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  11606. Use va_copy to avoid core dump on amd64:
  11607. * src/SimpleLogger.cc
  11608. Updated contact info.
  11609. * src/main.cc
  11610. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  11611. digest is not available.
  11612. * src/MetalinkEntry.h
  11613. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11614. Make a2netcompat.h include a2io.h to fix compilation error:
  11615. * src/a2netcompat.h
  11616. * src/SocketCore.cc: Removed include of a2io.h
  11617. * src/Util.cc: Removed include of a2io.h
  11618. Gather time related functions to a2time.h:
  11619. * src/a2time.h: New file.
  11620. * src/DefaultPeerStorage.cc
  11621. * src/SimpleLogger.cc
  11622. * src/Util.{h, cc}
  11623. * src/SimpleRandomizer.h
  11624. * src/TimeA2.{h,cc}
  11625. * src/DownloadCommand.cc
  11626. * src/main.cc
  11627. Removed #ifdef __MINGW32__ since gai_strerror is included in
  11628. a2netcompat.h:
  11629. * src/NameResolver.cc
  11630. Fixed compilation error without openssl:
  11631. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  11632. Added default block to suppress compiler warnings:
  11633. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  11634. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  11635. MinGW build enhancements. The following files are added:
  11636. * src/gai_strerror.{c,h}
  11637. * src/gettimeofday.{c,h}
  11638. Changes to support the above new files:
  11639. * configure.ac
  11640. * src/Makefile.am
  11641. * src/a2netcompat.h
  11642. * src/TimeA2.cc
  11643. * src/DefaultPeerStorage.cc
  11644. * src/NameResolver.cc: removed mingw_strerror() function.
  11645. * src/SocketCore.cc: removed mingw_strerror() function.
  11646. Miscellaneous MinGW build fixes.
  11647. * src/a2io.h: Use _lseeki64() instead of lseek()
  11648. * src/common.h
  11649. * src/DefaultFileAllocator.cc
  11650. * src/GlowFileAllocator.cc
  11651. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  11652. * src/NameResolver.cc
  11653. (callback): Changed int32_t to int.
  11654. (resolve): Changed int32_t to int.
  11655. * src/Platform.cc
  11656. * src/Platform.h
  11657. * test/MultiDiskWriterTest.cc
  11658. * test/PeerMessageUtilTest.cc
  11659. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  11660. Other enhancements and fixes.
  11661. * src/HttpRequestCommand.cc
  11662. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  11663. * src/SocketCore.cc:
  11664. (error): New function to abstract errno/WSAGetLastError().
  11665. (errorMsg): New function to abstract errno/WSAGetLastError().
  11666. (initiateSecureConnection): Added more detailed error reporting.
  11667. * src/SocketCore.h: Added private variable blocking, to allow
  11668. proper handling of OpenSSL psuedo-errors.
  11669. * src/message.h
  11670. (EX_SSL_INIT_FAILURE)
  11671. (EX_SSL_IO_ERROR)
  11672. (EX_SSL_PROTOCOL_ERROR)
  11673. (EX_SSL_UNKNOWN_ERROR)
  11674. (EX_SSL_CONNECT_ERROR)
  11675. (EX_SOCKET_BLOCKING)
  11676. (EX_SOCKET_NONBLOCKING)
  11677. (EX_SOCKET_UNKNOWN_ERROR)
  11678. * src/Util.cc
  11679. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  11680. reserved name.
  11681. (httpGMT): Fixed typo.
  11682. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11683. Merged Ross's win32 patch(manually)
  11684. In the course of merging, following files are added.
  11685. * src/strptime.{h,c}
  11686. * src/libgen.{h,c}
  11687. * src/inet_aton.{h,c}
  11688. * src/Platform.{h,cc}
  11689. * src/localtime_r.{h,c}
  11690. * src/getaddrinfo.{h,c}
  11691. I've gethered network related things, and put them to following file:
  11692. * src/a2netcompat.h
  11693. Also io related things are put to following file:
  11694. * src/a2io.h
  11695. Changed %lld to %s because mingw32 doesn't recognize %lld.
  11696. * src/message.h
  11697. (MSG_ALLOCATION_COMPLETED)
  11698. (EX_TOO_LARGE_FILE)
  11699. (EX_SIZE_MISMATCH)
  11700. (EX_FILE_OFFSET_OUT_OF_RANGE)
  11701. (EX_INVALID_CHUNK_CHECKSUM)
  11702. (EX_INVALID_RANGE_HEADER)
  11703. * src/FileAllocationCommand.cc
  11704. * src/HttpResponse.cc
  11705. * src/RequestGroup.cc
  11706. * src/MultiDiskAdaptor.cc
  11707. * src/OptionHandlerImpl.h
  11708. * src/HttpResponseCommand.cc
  11709. * src/FtpNegotiateCommand.cc
  11710. * src/IteratableChecksumValidator.cc
  11711. * src/SegmentMan.cc
  11712. * src/ChunkChecksumValidator.cc
  11713. Added Randomizer::getRandomNumber(long int)
  11714. * src/Randomizer.h (getRandomNumber)
  11715. * src/SimpleRandomizer.h (getRandomNumber)
  11716. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  11717. * src/Util.cc (randomAlpha): Use this new function.
  11718. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11719. Converted int's to in32_t. long long int's are also converted to
  11720. int64_t
  11721. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11722. Fixed the bug that prevents cookies from being sent to the server
  11723. if the domain of cookie is FQDN and starts with ".".
  11724. * src/Cookie.cc (match)
  11725. To add the ability to change peer id.
  11726. * src/DefaultBtContext.h
  11727. (_peerIdPrefix): New variable
  11728. (setPeerIdPrefix): New function.
  11729. * src/torrentRequestInfo.cc
  11730. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  11731. DefaultBtContext.
  11732. * src/main.cc (main): Added peer-id-prefix command-line option.
  11733. The usage message is not added yet.
  11734. * src/DefaultBtContext.cc
  11735. (generatePeerId): Use _peerIdPrefix.
  11736. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  11737. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11738. Fixed the bug that prevents filename in content-disposition from
  11739. being retrieved when filename is not quoted.
  11740. * src/Util.cc (getContentDispositionFilename)
  11741. Fixed the bug that causes infinate loop and memory leak when file open
  11742. operation failed.
  11743. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11744. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11745. Fixed the bug that causes segfault when all URIs specified are
  11746. unsupported.
  11747. * src/RequestGroupMan.cc (getInitialCommands)
  11748. Check if RequestGroup::createNextCommand() returns empty list of
  11749. commands.
  11750. * src/RequestGroup.cc (createNextCommand)
  11751. Change log level from info to error so that users can notice that
  11752. an error occurred.
  11753. Fixed the bug that causes segfault when a zero-sized file is
  11754. downloaded.
  11755. * src/BitfieldMan.cc (isAllBitSet)
  11756. Return true if bitfieldLength is 0.
  11757. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11758. * src/main.cc
  11759. (showUsage): Added 3 usage examples for metalink download.
  11760. Replace MetalinkChunkChecksum with ChunkChecksum.
  11761. * src/MetalinkChunkChecksum.h: Removed.
  11762. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  11763. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  11764. * src/Xml2MetalinkProcessor.cc
  11765. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  11766. * src/MetalinkRequestInfo.cc (execute)
  11767. * Release 0.11.1
  11768. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11769. Reads URIs from stdin when "-i -" is specified.
  11770. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  11771. * src/UriListParser.h, src/UriListParser.cc: New class.
  11772. * src/StreamUriListParser.h: New class.
  11773. * src/FileUriListParser.h: New class.
  11774. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  11775. instead of UriFileListParser.
  11776. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11777. Made console readout more readable.
  11778. * src/ConsoleDownloadEngine.cc (sendStatistics)
  11779. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11780. Fix the bug that causes -s option not to work.
  11781. * src/main.cc (main)
  11782. * src/a2algo.h: New file.
  11783. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11784. Create directory structure specified in metalink file.
  11785. * src/RequestGroup.h, src/RequestGroup.cc
  11786. (initAndOpenFile): Create a directory to store files if it does not
  11787. exist.
  11788. (getDir): New function.
  11789. Added ETA and download speed for an individual file to readout.
  11790. * src/ConsoleDownloadEngine.cc (sendStatistics)
  11791. * src/RequestGroup.h
  11792. (calculateDownloadSpeed): New function.
  11793. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11794. Made -S option work with metalink file and provided selective download
  11795. to metalink.
  11796. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  11797. (filename): Removed.
  11798. (file): New variable.
  11799. (size): Removed.
  11800. (operator=): Updated.
  11801. (getPath): New function.
  11802. (getLength): New function.
  11803. (toFileEntry): New function.
  11804. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  11805. (execute): Use toStream.
  11806. (showFileEntry): Removed.
  11807. * src/MetalinkRequestInfo.h
  11808. (targetFiles): New variable.
  11809. (setTargetFiles): New variable.
  11810. * src/MetalinkRequestInfo.cc
  11811. (execute): Added the ability to print file information included in
  11812. a metalink file.
  11813. Added selective download mode to metalink.
  11814. * src/main.cc
  11815. (showUsage): Updated to denote that -S and --select-file options are
  11816. applicable to metalink.
  11817. * src/FileEntry.h
  11818. (operator=): New function.
  11819. (getBasename): New function.
  11820. (getDirname): New function.
  11821. * src/Util.h, src/Util.cc
  11822. (toStream): New function.
  11823. * src/Xml2MetalinkProcessor.cc: Updated.
  11824. Made aria2 work with metalink with directory structure.
  11825. * src/File.h, src/File.cc
  11826. (getBasename): New function.
  11827. (getDirname): New function.
  11828. * src/RequestGroup.h, src/RequestGroup.cc
  11829. (_topDir): New variable.
  11830. (setTopDir): New function.
  11831. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  11832. Rewrote HTTP header parsing with stringstream.
  11833. * src/HttpConnection.h, src/HttpConnection.cc
  11834. (HttpRequestEntry): New class.
  11835. (headerBuf): Removed.
  11836. (headerBufLength): Removed.
  11837. (outstandingHttpRequests): Now its element type is
  11838. HttpRequestEntryHandle.
  11839. (findEndOfHeader): Removed.
  11840. (receiveResponse): Rewritten.
  11841. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  11842. Updated doc for -j option to notice that it should be used with -i
  11843. option.
  11844. * src/main.cc (showUsage)
  11845. Removed unused classes.
  11846. * src/RequestInfo.h
  11847. (FileInfo): Removed.
  11848. (checksum): Removed.
  11849. (fileInfo): Removed.
  11850. (setChecksum): Removed.
  11851. (getChecksum): Removed.
  11852. (getFileInfo): Removed.
  11853. Use ISO units.
  11854. * src/ConsoleDownloadEngine.cc
  11855. * src/TorrentConsoleDownloadEngine.cc
  11856. * src/Util.cc (abbrevSize)
  11857. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11858. Added the default listening ports to the help message.
  11859. * src/main.cc (showUsage)
  11860. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11861. Reduce the number of calls to gettimeofday to lower CPU load.
  11862. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  11863. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  11864. * src/Peer.h (calculateUploadSpeed): New function.
  11865. (calculateDownloadSpeed): New function.
  11866. * src/DefaultPeerStorage.cc
  11867. (CalculateStat): Added _now variable.
  11868. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  11869. and Peer::calculateUploadSpeed(const struct timeval&)
  11870. Drop connection if no request or piece message is exchanged in
  11871. a certain interval.
  11872. * src/DefaultBtInteractive.h
  11873. (btRuntime): New variable.
  11874. (inactiveCheckPoint): New variable.
  11875. (checkActiveInteraction): New function.
  11876. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  11877. request or piece message is received.
  11878. (checkActiveInteraction): New function.
  11879. (doInteractionProcessing): Call checkActiveInteraction.
  11880. Fixed the bug that causes remote Metalink and Torrent files are not
  11881. processed.
  11882. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  11883. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11884. Changed format of log file.
  11885. * src/SimpleLogger.cc
  11886. * Release 0.11.0
  11887. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11888. * src/AbstractCommand.cc
  11889. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  11890. MSG_MAX_TRY from error to info.
  11891. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  11892. * src/message.h
  11893. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  11894. (MSG_DOWNLOAD_ABORTED): Added %s.
  11895. (MSG_RESTARTING_DOWNLOAD): Added %s.
  11896. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  11897. * src/PeerAbstractCommand.cc
  11898. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  11899. * src/Request.h
  11900. (cookieBox): Made ShardHandle.
  11901. * src/RequestGroup.h, src/RequestGroup.cc
  11902. (createNextCommandWithAdj): New function.
  11903. * src/FileAllocationCommand.cc
  11904. (executeInternal): Use createNextCommandWithAdj().
  11905. * src/CheckIntegrityCommand.cc
  11906. (executeInternal): Use createNextCommandWithAdj().
  11907. Added --load-cookies command-option.
  11908. * src/OptionHandlerFactory.cc
  11909. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  11910. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  11911. Now aria2 can handle cookie's expiration date.
  11912. * src/Cookie.h (expires): Changed its type to time_t.
  11913. * src/main.cc: Added --load-cookies command-line option.
  11914. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  11915. * src/Util.h, src/Util.cc (httpGMT): New function.
  11916. * src/Request.cc (Request): Initialize cookieBox using
  11917. CookieBoxFactory.
  11918. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  11919. * src/CookieParser.h, src/CookieParser.cc: New class.
  11920. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  11921. * src/HttpResponseCommand.cc
  11922. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  11923. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  11924. download.
  11925. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11926. Added -j command-line option.
  11927. * src/OptionHandlerFactory.cc (createOptionHandlers)
  11928. * src/main.cc
  11929. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  11930. Rewritten using stringstream.
  11931. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  11932. Rewritten using stringstream.
  11933. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11934. Make download size shown in MB, KB.
  11935. * src/ConsoleDownloadEngine.h (sendStatistics)
  11936. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  11937. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11938. Accept incoming connections if download rate is low.
  11939. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  11940. (_lowestSpeedLimit): New variable.
  11941. (setLowestSpeedLimit): New function.
  11942. (execute): Accept incoming connections if download rate is low.
  11943. MAX_PEERS is ignored in this case.
  11944. Disable PREF_OUT in multiple concurrent download:
  11945. * src/RequestGroup.h, src/RequestGroup.cc
  11946. (setUserDefinedFilename): New function.
  11947. * src/DownloadEngineFactory.cc
  11948. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  11949. concurrent download.
  11950. * src/DefaultSegmentManFactory.cc
  11951. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  11952. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11953. RequestGroup::getNextCommand() was renamed to createNextCommand().
  11954. Added its overloaded method.
  11955. * src/RequestGroup.h
  11956. (_numConcurrentCommand): New variable.
  11957. (setNumConcurrentCommand): New function.
  11958. * src/RequestGroup.cc
  11959. Abort download if same file is being downloaded concurrently.
  11960. * src/RequestGroup.h, src/RequestGroupMan.cc
  11961. (isSameFileBeingDownloaded): New function.
  11962. * src/HttpResponseCommand.cc (executeInternal)
  11963. * src/FtpNegotiateCommand.cc (recvSize)
  11964. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  11965. * main.cc: Added help message for -i option.
  11966. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11967. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  11968. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  11969. * src/MetalinkEntry.h
  11970. (checksum): Changed to ChecksumHandle
  11971. * src/MetalinkRequestInfo.cc
  11972. (checksum): Changed to ChecksumHandle
  11973. * src/File.cc
  11974. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  11975. * src/common.h
  11976. (DIR_OPEN_MODE): New definition
  11977. * src/RequestGroup.cc
  11978. (prepareForNextAction): Added an argument.
  11979. * src/message.h
  11980. (MSG_GOOD_CHECKSUM): New definition
  11981. (MSG_BAD_CHECKSUM): New definition
  11982. * src/HttpResponseCommand.cc
  11983. (handleDefaultEncoding): Continue download sequence in new
  11984. non-segmented download.
  11985. * src/FileAllocationEntry.h
  11986. (_nextDownloadCommand): New variable.
  11987. * src/DownloadCommand.cc
  11988. (prepareForNextSegment): Create ChecksumCommand if checksum is
  11989. available.
  11990. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  11991. * src/IteratableChecksumValidator.h,
  11992. src/IteratableChecksumValidator.cc: New class.
  11993. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  11994. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11995. Change file mode to 666:
  11996. * src/common.h (OPEN_MODE): New definition.
  11997. * src/File.cc
  11998. * src/Util.cc
  11999. * src/Directry.cc
  12000. * src/AbstractDiskWriter.cc
  12001. Change the level of log message "download aborted" to debug:
  12002. * src/PeerAbstractCommand.cc (execute)
  12003. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  12004. * src/TrackerWatcherCommand.cc
  12005. (createCommand): Sleep some seconds after request failed.
  12006. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  12007. then abort tracker request.
  12008. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12009. * Added the simultaneous download feature.
  12010. * src/main.cc: Print "Exception caught: " when exception is caught.
  12011. Use CUIDCounter instead of BtRuntime::getNewCuid():
  12012. * src/ActivePeerConnectionCommand.cc
  12013. * src/PeerInteractionCommand.cc
  12014. * src/BtRuntime.h
  12015. (cuidCounter): Removed.
  12016. (getNewCuid): Removed.
  12017. * src/DownloadEngineFactory.cc
  12018. * src/PeerListenCommand.cc
  12019. * src/TrackerUpdateCommand.cc
  12020. * src/PeerInitiateConnectionCommand.cc
  12021. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12022. * src/PeerAbstractCommand.cc
  12023. (onAbort): Call PeerStorage::returnPeer()
  12024. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  12025. (incomingPeers): New variable.
  12026. (addIncomingPeer): New function.
  12027. (returnPeer): New function.
  12028. (onErasingPeer): New function.
  12029. (addPeer): push_back -> push_front
  12030. (getActivePeers): Rewritten.
  12031. (calculateStat): Rewritten.
  12032. * src/PeerStorage.h
  12033. (TransferStat::copy): New function.
  12034. (TransferStat::TransferStat): New function.
  12035. (TransferStat::operator=): New function.
  12036. (addIncomingPeer): New function.
  12037. (returnPeer): New function.
  12038. * src/PeerListenCommand.cc
  12039. (execute): Use PeerStorage::addIncomingPeer() instead of
  12040. Peer::addPeer().
  12041. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12042. Connect to a peer actively when download speed is lower than specified
  12043. speed in torrent download:
  12044. * src/ActivePeerConnectionCommand.h: New class.
  12045. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12046. * src/HttpRequest.cc (createRequest): url-encode user-agent
  12047. * src/main.cc: Fixed the bug that prevents download if .netrc
  12048. doesn't exist.
  12049. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12050. To cache resolved hostname:
  12051. * src/AbstractCommand.h, src/AbstractCommand.cc
  12052. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  12053. Added dns cache.
  12054. * src/FtpInitiateConnectionCommand.cc
  12055. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  12056. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  12057. NameResolver working without ares.
  12058. * src/TorrentRequestInfo.cc
  12059. (execute): Don't cache dns in torrent download.
  12060. * src/HttpInitiateConnectionCommand.cc
  12061. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  12062. * src/DNSCache.h: New class.
  12063. * src/UrlRequestInfo.cc
  12064. (execute): Use dns cache.
  12065. In http request, suppress port number in http request header if port
  12066. is 80 or 443:
  12067. * src/HttpRequest.cc (getHostText): Suppress port number in http
  12068. request header if port is 80 or 443.
  12069. (createProxyRequest): Allways send port number.
  12070. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12071. To add the command-line option which disables netrc support:
  12072. * src/OptionHandlerFactory.cc
  12073. (createOptionHandlers): Added PREF_NO_NETRC.
  12074. * src/main.cc: Added -n option.
  12075. * src/prefs.h (PREF_NO_NETRC): New definition.
  12076. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  12077. V_TRUE.
  12078. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  12079. is V_FALSE. This may get configurable in the future release.
  12080. To clear peer's error status by time basis:
  12081. * src/PeerAbstractCommand.cc
  12082. (onAbort): Call Peer::startBadCondition().
  12083. * src/Peer.h, src/Peer.cc
  12084. (error): Removed.
  12085. (_badConditionStartTime): New variable.
  12086. (_badConditionInterval): New variable. Initialized to 10 seconds.
  12087. (startBadCondition): New function.
  12088. (isGood): New function.
  12089. * src/DefaultPeerStorage.cc
  12090. (addPeer): Use Peer::isGood().
  12091. (FindFinePeer): Use Peer::isGood().
  12092. Always include port number in http request header:
  12093. * src/HttpRequest.cc (getHostText): Always include port number in
  12094. http request header.
  12095. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12096. To the ability to read options from a config file:
  12097. * src/main.cc: Command-line parameter validation is delegated to
  12098. OptionHandler class.
  12099. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  12100. * src/Option.h, src/Option.cc (clear): New function.
  12101. * src/OptionParser.h, src/OptionParser.cc: New class.
  12102. * src/OptionHandler.h: New class.
  12103. * src/NameMatchOptionHandler.h: New class.
  12104. * src/OptionHandlerImpl.h: New classes.
  12105. * src/prefs.h: '_' -> '-'
  12106. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  12107. (FTP_PASV): New definition.
  12108. * src/Util.h, src/Util.cc (getRealSize): New function.
  12109. To disable netrc support if .netrc file does not have correct
  12110. permissions:
  12111. * src/File.h, src/File.cc (mode): New function.
  12112. To prevent confidential information to be logged:
  12113. * src/HttpConnection.h, src/HttpConnection.cc
  12114. (eraseConfidentialInfo): New function.
  12115. (sendRequest): Call eraseConfidentialInfo().
  12116. (sendProxyRequest): Call eraseConfidentialInfo().
  12117. * src/main.cc: Validate permissions of .netrc file.
  12118. To add --user-agent command-line option:
  12119. * src/main.cc: Added new command line option: --user-agent
  12120. * src/prefs.h (PREF_USER_AGENT): New definition.
  12121. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  12122. parameter to HttpRequest object.
  12123. * src/AbstractProxyRequestCommand.cc
  12124. (executeInternal): Set user-agent option parameter to HttpRequest
  12125. object.
  12126. Marged the patches from Dan Fandrich.
  12127. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12128. Use filename and size from Metalink file instead of sending HEAD
  12129. request:
  12130. * src/UrlRequestInfo.h
  12131. (_filename): New variable.
  12132. (_totalLength): New variable.
  12133. (setTotalLength): New variable.
  12134. (setFilename): New variable.
  12135. * src/MetalinkRequestInfo.cc
  12136. (execute): Set filename and size to UrlRequestInfo
  12137. * src/UrlRequestInfo.cc
  12138. (execute): Use filename and size from Metalink instead of seding
  12139. HEAD request to servers.
  12140. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12141. To add the ability to resume downloading a partially downloaded file
  12142. which is downloaded from the beginning:
  12143. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  12144. takes this role.
  12145. * src/main.cc: Added -c option.
  12146. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  12147. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  12148. * src/prefs.h (PREF_CONTINUE): New definition.
  12149. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  12150. * src/DefaultDiskWriter.cc
  12151. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  12152. * src/AbstractDiskWriter.h
  12153. (glowFileAllocator): New variable.
  12154. * src/AbstractDiskWriter.cc
  12155. (openExistingFile): Now preallocate file space from the end of the
  12156. existing file if totalLength argument is specified and grater than 0.
  12157. * src/UrlRequestInfo.cc: If -c option is specified and the file
  12158. to download exists in local, continue the download of the file.
  12159. --allow-overwrite=true is assumed in this context.
  12160. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  12161. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  12162. Throw exception if --check-integrity=true is specified but chunk
  12163. checksums are not provided:
  12164. * src/UrlRequestInfo.cc
  12165. Do not print URLs to stdout:
  12166. * src/UrlRequestInfo.cc
  12167. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12168. * src/Request.h: Use AuthResolver to get authentication information.
  12169. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  12170. set to RequestFactory object.
  12171. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  12172. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  12173. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  12174. create Request object.
  12175. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  12176. To integrate Netrc into exsiting classes:
  12177. * src/Request.h
  12178. (_userDefinedAuthConfig): New variable.
  12179. (findNetrcAuthenticator): New function.
  12180. (segment): Removed.
  12181. (setUserDefinedAuthConfig): New function.
  12182. (resolveHttpAuthConfigItem): New function.
  12183. (resolveFtpAuthConfigItem): New function.
  12184. (resolveHttpProxyAuthConfigItem): New function.
  12185. * src/HttpRequest.h
  12186. (authConfig): Removed.
  12187. (proxyAuthConfig): Removed.
  12188. (setAuthConfig): Removed.
  12189. (setProxyAuthConfig): Removed.
  12190. * src/UrlRequest.h
  12191. (getHeadResult): Added a parameter: authConfigHandle
  12192. * src/common.h
  12193. (SingletonHolder.h): New include.
  12194. * src/main.cc
  12195. (Netrc.h): New include.
  12196. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  12197. Added initial value of PREF_NETRC_PATH.
  12198. Added the initialization of netrc.
  12199. * src/AuthConfig.h: New class.
  12200. * src/prefs.h
  12201. (PREF_NETRC_PATH): New definition.
  12202. * src/HttpAuthConfig.h: Removed.
  12203. * src/Netrc.cc
  12204. (getRequiredNextToken): New function.
  12205. (skipMacdef): New function.
  12206. (parse): Rewritten.
  12207. * src/Netrc.h
  12208. (getRequiredNextToken): New function.
  12209. (skipMacdef): New function.
  12210. * src/Util.h, src/Util.cc
  12211. (getHomeDir): New function.
  12212. * src/TrackerWatcherComand.cc
  12213. (createRequestCommand): Use AuthConfig.
  12214. * src/FtpConnection.cc
  12215. (sendUser): Use Request::resolveFtpAuthConfigItem().
  12216. (sendPass): Use Request::resolveFtpAuthConfigItem().
  12217. * src/Request.cc
  12218. (findNetrcAuthenticator): New function.
  12219. (resolveHttpAuthConfigItem): New function.
  12220. (resolveFtpAuthConfigItem): New function.
  12221. (resolveHttpProxyAuthConfigItem): New function.
  12222. * src/UrlRequestInfo.cc: Use AuthConfig.
  12223. * src/HttpRequest.cc
  12224. (createRequest): Use authConfig.
  12225. (getProxyAuthString): Use authConfig.
  12226. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  12227. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  12228. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12229. To reduce overhead to find commands whose socket is either
  12230. readable or writable in the download engine loop:
  12231. * src/Command.h, src/Command.cc
  12232. (STATUS): New enum.
  12233. (status): New variable.
  12234. (statusMatch): New function.
  12235. (setStatusActive): New function.
  12236. (setStatusInactive): New function.
  12237. * src/DownloadEngine.h, src/DownloadEngine.cc
  12238. (executeCommand): New function.
  12239. (run): Simplified.
  12240. (waitData): Call Command::setStatusActive() when command's socket is
  12241. readable or writable.
  12242. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12243. To handle Segment as SegmentHandle:
  12244. * src/AbstractCommand.cc (execute): Rewritten.
  12245. * src/SegmentMan.h: Segment -> SegmentHandle
  12246. Introducded HttpResponse class, HttpRequest class to improve code
  12247. extensiveness and make it clear:
  12248. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  12249. HttpResponse class.
  12250. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  12251. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  12252. * src/HttpConnection.cc: Contruction of http request were moved to
  12253. HttpRequest class.
  12254. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  12255. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  12256. * src/HttpAuthConfig.h: New class.
  12257. * src/Range.h: New class.
  12258. To make FtpTunnel{Request, Response}Command and
  12259. HttpProxy{Request, Response}Command derived from
  12260. AbstractProxy{Request, Response}Command:
  12261. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  12262. Derived from AbstractProxyRequestCommand class.
  12263. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  12264. Derived from AbstractProxyResponseCommand class.
  12265. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  12266. Derived from AbstractProxyRequestCommand class.
  12267. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  12268. Derived from AbstractProxyResponseCommand class.
  12269. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  12270. : New class.
  12271. * src/AbstractProxyResponseCommand.h,
  12272. src/AbstractProxyResponseCommand.cc: New class.
  12273. To add netrc support:
  12274. * src/Netrc.h, src/Netrc.cc: New class.
  12275. * src/Util.h, src/Util.cc (split): New function.
  12276. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  12277. "Content-Range" header instead of "Range" header.
  12278. * src/HttpHeader.h
  12279. (getStatus): Removed.
  12280. (setStatus): Removed.
  12281. * src/Segment.h
  12282. (getPositionToWrite): New function.
  12283. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12284. * src/HttpHeader.h
  12285. (Range.h): New include.
  12286. (status): New variable.
  12287. (HttpHeader): Initialized status with 0.
  12288. (getStatus): New function.
  12289. (setStatus): New function.
  12290. (getRange): New function.
  12291. (HttpHeaderHandle): New function.
  12292. * src/HttpHeader.cc
  12293. (getRange): New function.
  12294. * src/Request.h
  12295. (RequestWeakHandle): New definition.
  12296. * src/HttpConnection.h
  12297. (HttpConnectionHandle): New type definition.
  12298. * src/HttpConnection.cc
  12299. (receiveResponse): Set HTTP status to headers.
  12300. * src/main.cc
  12301. (showUsage): Fixed typo.
  12302. * src/Segment.h
  12303. (SegmentHandle): New type definition.
  12304. * src/BitfieldMan.h
  12305. (getMissingUnusedLength): New function.
  12306. * src/BitfieldMan.cc
  12307. (getMissingUnusedLength): New function.
  12308. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12309. To fix static initialization order problem:
  12310. * src/BitfieldManFactory.h
  12311. (defaultRandomizer): Removed.
  12312. (factory): New variable.
  12313. (getNewFactory): Removed.
  12314. (getFactoryInstance): New function.
  12315. (setDefaultRandomizer): Rewritten.
  12316. (getDefaultRandomizer): Rewritten.
  12317. * src/BitfieldManFactory.cc
  12318. (defaultRandomizer): Removed.
  12319. (factory): Initialized to 0.
  12320. (BitfieldManFactory): Initialized randomizer to 0.
  12321. * src/DefaultPieceStorage.cc
  12322. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  12323. * src/Peer.cc
  12324. (Peer): getNewFactory() -> getFactoryInstance()
  12325. * src/SegmentMan.cc
  12326. (initBitfield): getNewFactory() -> getFactoryInstance()
  12327. * src/Piece.cc
  12328. (Piece): getNewFactory() -> getFactoryInstance()
  12329. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12330. To fix the bug that causes crash on Max OS X:
  12331. * src/SimpleRandomizer.h
  12332. (getInstance): Create new instance if the static variable is null.
  12333. * src/SimpleRandomizer.cc
  12334. (randomizer): Initialized to 0.
  12335. * src/BitfieldManFactory.h
  12336. (getNewFactory): Removed the call to setRandomizer().
  12337. To fix the miscalculation of the range of checksum:
  12338. * src/BitfieldMan.h
  12339. (isBitSetOffsetRange): New function.
  12340. * src/BitfieldMan.cc
  12341. (isBitSetOffsetRange): New function.
  12342. * src/SegmentMan.cc
  12343. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  12344. Use bitfield->getBlockLength() instead of segment.segmentLength.
  12345. * Release 0.10.1
  12346. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12347. To lower CPU usage in BitTorrent download when --max-upload-limit
  12348. command-line option specified:
  12349. * src/DefaultBtMessageDispatcher.cc
  12350. (sendMessages): Calculate uploading speed only when current message
  12351. is uploading data and is not sent yet.
  12352. * src/DefaultPeerStorage.h
  12353. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  12354. * src/HttpResponseCommand.cc
  12355. (handleDefaultEncoding): Added the cast to int32_t to itos.
  12356. This fixes compile error in Soralis 10.
  12357. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12358. To fix segfault in Metalink download:
  12359. * src/UrlRequestInfo.h
  12360. (filename): Removed.
  12361. (totalLength): Removed.
  12362. (setTotalLength): Removed.
  12363. (setFilename): Removed.
  12364. * src/MetalinkRequestInfo.cc
  12365. (execute): Do not set filename and totalLength to reqInfo.
  12366. Set chunk checksum to reqInfo if it is not null.
  12367. * src/HttpResponseCommand.cc
  12368. (executeInternal): Fixed filename in log.
  12369. (handleDefaultEncoding): Removed the call to initBitfield() and
  12370. markAllPiecesDone().
  12371. (handleOtherEncoding): Added HEAD method handling.
  12372. * src/FtpNegotiateCommand.cc
  12373. (executeInternal): Added SEQ_HEAD_OK handling.
  12374. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  12375. return false.
  12376. * src/FtpNegotiateCommand.h
  12377. (SEQ_HEAD_OK): New definition.
  12378. * src/SegmentMan.cc
  12379. (initBitfield): Delete bitfield.
  12380. (isChunkChecksumValidationReady): Fixed the condition.
  12381. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  12382. works fine.
  12383. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12384. * src/Xml2MetalinkProcessor.h
  12385. (xpathExists): New function.
  12386. * src/Xml2MetalinkProcessor.cc
  12387. (xpathExists): New function.
  12388. Not to send HEAD request if filename and size are available in Metalink
  12389. file:
  12390. * src/UrlRequestInfo.h
  12391. (filename): New variable.
  12392. (totalLength): New variable.
  12393. (setTotalLength): New function.
  12394. (setFilename): New function.
  12395. * src/MetalinkRequestInfo.cc
  12396. (execute): Set filename and size to UrlRequestInfo.
  12397. * src/MetalinkEntry.cc
  12398. (MetalinkEntry): Initialize size with 0.
  12399. * src/UrlRequestInfo.cc
  12400. (execute): Set filename and size to SegmentMan.
  12401. Not to download rest of the files after selected files are downloaded
  12402. in BitTorrent:
  12403. * src/PieceStorage.h
  12404. (allDownloadFinished): New function.
  12405. * src/DefaultBtAnnounce.cc
  12406. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  12407. downloadFinished.
  12408. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  12409. * src/DefaultPieceStorage.cc
  12410. (completePiece): Use allDownloadFinished instead of downloadFinished.
  12411. Commented out the call to finishSelectiveDownloadingMode().
  12412. (downloadFinished): Call isFilteredAllBitSet() instead of
  12413. isAllBitSet().
  12414. (allDownloadFinished): New function.
  12415. * src/DefaultBtInteractive.cc
  12416. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  12417. downloadFinished().
  12418. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  12419. * src/TorrentDownloadEngine.cc
  12420. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  12421. * src/BitfieldMan.h
  12422. (isFilteredAllBitSet): New function.
  12423. * src/ShareRatioSeedCriteria.h
  12424. (PieceStorage.h): New include.
  12425. (pieceStorage): New variable.
  12426. (evaluate):
  12427. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  12428. * src/BitfieldMan.cc
  12429. (isFilteredAllBitSet): New function.
  12430. (isAllBitSet): Filter is not took into account.
  12431. Rename --force-truncate as --allow-overwrite:
  12432. * src/TorrentRequestInfo.cc
  12433. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  12434. * src/main.cc
  12435. (showUsage): --force-truncate -> --allow-overwrite
  12436. * src/message.h
  12437. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  12438. * src/prefs.h
  12439. (PREF_FORCE_TRUNCATE): Removed.
  12440. (PREF_ALLOW_OVERWRITE): New definition.
  12441. * src/SegmentMan.cc
  12442. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  12443. * src/MetalinkRequestInfo.cc
  12444. (execute): Queueing message are now logged in info level.
  12445. * src/common.h
  12446. (LONG_LONG_MAX): Removed.
  12447. (LONG_LONG_MIN): Removed.
  12448. * src/HttpResponseCommand.cc
  12449. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  12450. * src/FtpNegotiateCommand.cc
  12451. (recvSize): LONG_LONG_MAX -> INT64_MAX
  12452. * src/main.cc
  12453. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  12454. command-line option.
  12455. (main): Added --check-integriy and --realtime-chunk-checksum
  12456. command-line option.
  12457. --force-truncate -> --allow-overwrite
  12458. Set initial value of --check-integrity option to false.
  12459. Don't show usage when error occurs while persing command-line options.
  12460. Removed deprecated --upload-limit option.
  12461. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12462. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  12463. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  12464. * src/BtAllowedFastMessage.cc:
  12465. * src/BtBitfieldMessage.cc
  12466. * src/BtCancelMessage.cc
  12467. * src/BtChokeMessage.cc
  12468. * src/BtHaveAllMessage.cc
  12469. * src/BtHaveMessage.cc
  12470. * src/BtHaveNoneMessage.cc
  12471. * src/BtInterestedMessage.cc
  12472. * src/BtNotInterestedMessage.cc
  12473. * src/BtPieceMessage.cc
  12474. * src/BtPortMessage.cc
  12475. * src/BtRejectMessage.cc
  12476. * src/BtRequestMessage.cc
  12477. * src/BtSuggestPieceMessage.cc
  12478. * src/BtUnchokeMessage.cc
  12479. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  12480. files are affected.
  12481. * src/ChunkChecksumValidator.cc
  12482. * src/SegmentMan.cc
  12483. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12484. To add chunk checksum validation:
  12485. * src/MetalinkEntry.h
  12486. (MetalinkChunkChecksum.h): New include.
  12487. (chunkChecksum): New variable.
  12488. * src/Request.h
  12489. (method): New variable.
  12490. (setMethod): New function.
  12491. (getMethod): New function.
  12492. (METHOD_GET): New static constant.
  12493. (METHOD_HEAD): New static constant.
  12494. * src/Xml2MetalinkProcessor.h
  12495. (getPieceHash): New function.
  12496. * src/PieceStorage.h
  12497. (markAllPiecesDone): New function.
  12498. (checkIntegrity): New function.
  12499. * src/FileAllocator.h
  12500. (NullFileAllocationMonitor.h): New include.
  12501. (FileAllocator): Initialize fileAllocationMonitor with new
  12502. NullFileAllocationMonitor().
  12503. * src/MultiDiskAdaptor.h
  12504. (messageDigest.h): Remove include.
  12505. (ctx): Removed.
  12506. (hashUpdate): Added ctx.
  12507. (MultiDiskAdaptor): Removed ctx.
  12508. (sha1Sum): Renamed as messageDigest.
  12509. (messageDigest): New function.
  12510. * src/UrlRequestInfo.h
  12511. (HeadResult): New class.
  12512. (digestAlgo): New variable.
  12513. (chunkChecksumLength): New variable.
  12514. (chunkChecksums): New variable.
  12515. (getHeadResult): New function.
  12516. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  12517. (setDigestAlgo): New function.
  12518. (setChunkChecksumLength): New function.
  12519. (setChunkChecksums): New function.
  12520. * src/DefaultPieceStorage.cc
  12521. (DiskAdaptorWriter.h): New include.
  12522. (ChunkChecksumValidator.h): New include.
  12523. (markAllPiecesDone): New function.
  12524. (checkIntegrity): New function.
  12525. * src/DefaultBtContext.h
  12526. (getPieceHashes): New function.
  12527. * src/TorrentRequestInfo.cc
  12528. (execute): Try to validate chunk checksum if file already exists and
  12529. .aria2 file doesn't there and user allows aria2 to overwrite it.
  12530. * src/messageDigest.h
  12531. (~MessageDigestContext): Added digestFree().
  12532. * src/MetalinkRequestInfo.cc
  12533. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  12534. * src/DiskAdaptor.h
  12535. (messageDigest.h): New include.
  12536. (sha1Sum): Renamed as messageDigest.
  12537. (messageDigest): New function.
  12538. * src/DownloadCommand.h
  12539. (PeerStat.h): New include.
  12540. (maxDownloadSpeedLimit): New variable.
  12541. (startupIdleTime): New variable.
  12542. (lowestDownloadSpeedLimit): New variable.
  12543. (peerStat): New variable.
  12544. (setMaxDownloadSpeedLimit): New function.
  12545. (setStartupIdleTime): New function.
  12546. (setLowestDownloadSPeedLimit): New function.
  12547. * src/BtContext.h
  12548. (getPieceHashes): New function.
  12549. * src/main.cc
  12550. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  12551. option to true for testing purpose.
  12552. * src/BtPieceMessage.cc
  12553. (checkPieceHash): Use messageDigest
  12554. * src/DownloadEngine.cc
  12555. (SetDescriptor): Removed.
  12556. (AccumulateActiveCommand): Removed.
  12557. (waitData): Rewritten.
  12558. (updateFdSet): Rewritten.
  12559. * src/MultiDiskAdaptor.cc
  12560. (hashUpdate): Added ctx.
  12561. (sha1Sum): Renamed as messageDigest.
  12562. (messageDigest): New function.
  12563. * src/BitfieldMan.h
  12564. (isBitRangeSet): New function.
  12565. (unsetBitRange): New function.
  12566. * src/ByteArrayDiskWriter.h
  12567. (sha1Sum): Renamed as messageDigest.
  12568. (messageDigest): New function.
  12569. * src/ConsoleDownloadEngine.cc
  12570. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  12571. * src/DiskWriter.h
  12572. (messageDigest.h): New include.
  12573. (sha1Sum): Renamed as messageDigest.
  12574. (messageDigest): New function.
  12575. * src/ChunkChecksumValidator.h: New class.
  12576. * src/DiskAdaptorWriter.h: New class.
  12577. * src/prefs.h
  12578. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  12579. (PREF_CHECK_INTEGRITY): New definition.
  12580. * src/HttpResponseCommand.cc
  12581. (handleDefaultEncoding): Added method "HEAD" handling.
  12582. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  12583. (handleOtherEncoding):
  12584. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  12585. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  12586. startupIdleTime, lowestDownloadSpeedLimit to command.
  12587. * src/SegmentMan.h
  12588. (getSegmentEntryByIndex): New function.
  12589. (getSegmentEntryByCuid): New function.
  12590. (getSegmentEntryIteratorByCuid): New function.
  12591. (diskWriter): DiskWriter -> DiskWriterHandle
  12592. (pieceHashes): New variable.
  12593. (chunkHashLength): New variable.
  12594. (digestAlgo): New variable.
  12595. (FindPeerStat): Removed.
  12596. (getPeerStat): Rewritten.
  12597. (markAllPiecesDone): New function.
  12598. (checkIntegrity): New function.
  12599. (tryChunkChecksumValidation): New function.
  12600. (isChunkChecksumValidationReady): New function.
  12601. * src/BitfieldMan.cc
  12602. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  12603. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  12604. blocks to 0.
  12605. (isBitRangeSet): New function.
  12606. (unsetBitRange): New function.
  12607. * src/FtpNegotiateCommand.cc
  12608. (executeInternal): Set maxDownloadSpeedLimit,
  12609. startupIdleTime, lowestDownloadSpeedLimit to command.
  12610. (recvSize): Added method "HEAD" handling.
  12611. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  12612. * src/AbstractSingleDiskAdaptor.cc
  12613. (sha1Sum): Renamed as messageDigest.
  12614. (messageDigest): New function.
  12615. * src/AbstractSingleDiskAdaptor.h
  12616. (sha1Sum): Renamed as messageDigest.
  12617. (messageDigest): New function.
  12618. * src/Util.h
  12619. (indexRange): New function.
  12620. * src/MetalinkEntry.cc
  12621. (MetalinkEntry): Initialized chunkChecksum to 0.
  12622. * src/ShaVisitor.cc
  12623. (~ShaVisitor): Removed the call to ctx.digestFree().
  12624. * src/SegmentMan.cc
  12625. (ChunkChecksumValidator.h): New include.
  12626. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  12627. to DIGEST_ALGO_SHA1.
  12628. (~SegmentMan): Removed diskWriter.
  12629. (FindSegmentEntryByIndex): Removed.
  12630. (FindSegmentEntryByCuid): Removed.
  12631. (checkoutSegment): Rewritten.
  12632. (findSlowerSegmentEntry): Rewritten.
  12633. (getSegment): Rewritten.
  12634. (updateSegment): Rewritten.
  12635. (completeSegment): Rewritten.
  12636. (markAllPiecesDone): New function.
  12637. (checkIntegrity): New function.
  12638. (isChunkChecksumValidationReady): New function.
  12639. (tryChunkChecksumValidation): New function.
  12640. * src/Xml2MetalinkProcessor.cc
  12641. (getEntry): Get size and set it to entry.
  12642. Get chunk checksum and set it to entry.
  12643. (getPieceHash): New function.
  12644. * src/Util.cc
  12645. (sha1Sum): Removed ctx.digestFree()
  12646. (fileChecksum): Removed ctx.digestFree()
  12647. (indexRange): New function.
  12648. * src/Request.cc
  12649. (METHOD_GET): New variable.
  12650. (METHOD_HEAD): New variable.
  12651. (Request): Added method.
  12652. * src/UrlRequestInfo.cc
  12653. (FatalException.h): New include.
  12654. (message.h): New include.
  12655. (operator<<): Added operator<< for class HeadResult.
  12656. (getHeadResult): New function.
  12657. (execute): Get filename and size in separate download engine.
  12658. * src/ChunkChecksumValidator.cc: New class.
  12659. * src/DownloadCommand.cc:
  12660. (DownloadCommand): Added peerStat.
  12661. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  12662. the value from Option.
  12663. The buffer size is now 16KB.
  12664. Use peerStat member instead of getting it from SegmentMan.
  12665. Use startupIdleTime member instead of gettingit from Option.
  12666. Added chunk checksum validation.
  12667. * src/AbstractDiskWriter.cc
  12668. (AbstractDiskWriter): Removed ctx.
  12669. (~AbstractDiskWriter): Removed ctx.digestFree()
  12670. (writeDataInternal): Returns the return value of write.
  12671. (readDataInternal): Returns the return value of read.
  12672. (sha1Sum): Renamed as messageDigest
  12673. (messageDigest): New function.
  12674. * src/AbstractDiwkWriter.h
  12675. (messageDigest.h): Removed include.
  12676. (ctx): Removed.
  12677. (sha1Sum): Renamed as messageDigest
  12678. (messageDigest): New function.
  12679. * src/DefaultPieceStorage.h
  12680. (markAllPiecesDone): New function.
  12681. (checkIntegrity): New function.
  12682. * src/NullFileAllocationMonitor.h: New class.
  12683. * src/MetalinkChunkChecksum.h: New class.
  12684. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12685. To decrease CPU usage in bittorrent download, calculation results in
  12686. BitfieldMan were cached and realtime fetching PeerObject was removed
  12687. with WeakHandle introduced. Option values are set to the objects
  12688. by setter before download begins.
  12689. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  12690. * src/DefaultBtRequestFactory.h
  12691. (dispatcher): BtMessageDispatcherHandle ->
  12692. BtMessageDispatcherWeakHandle.
  12693. (messageFactory): New variable.
  12694. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  12695. BtMessageDispatcherWeakHandle.
  12696. (setBtMessageFactory): New function.
  12697. * src/DefaultBtMessageDispatcher.cc:
  12698. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  12699. from Option.
  12700. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  12701. feating the value from Option.
  12702. Use messageFactory member.
  12703. * src/PeerInteractionCommand.cc
  12704. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  12705. Add reverse dependencies to factory object.
  12706. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  12707. dispatcher.
  12708. Set messageFactory to receiver.
  12709. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  12710. btInteractive.
  12711. Set receiver to peerObject.
  12712. Set maxDownloadSpeedLimit to this.
  12713. (executeInternal): Use maxDownloadSpeedLimit member.
  12714. * src/BtChokeMessage.cc
  12715. (doReceivedAction): Use dispatcher, requestFactory member.
  12716. (onSendComplete): Use dispatcher member.
  12717. * src/PeerInteractionCommand.h
  12718. (maxDownloadSpeedLimit): New variable.
  12719. * src/DefaultBtMessageReceiver.h
  12720. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12721. (dispatcher):
  12722. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  12723. (messageFactory): New variable.
  12724. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12725. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12726. (setDispatcher):
  12727. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  12728. (setBtMessageFactory): New function.
  12729. * src/DefaultBtInteractive.cc
  12730. (initiateHandshake): Use messageFactory member.
  12731. (addBitfieldMessageToQueue): Use messageFactory member.
  12732. (addAllowedFastMessageToQueue): Use messageFactory member.
  12733. (decideChoking): Use messageFactory member.
  12734. (checkHave): Use messageFactory member.
  12735. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  12736. (receiveMessages): Use maxDownloadSpeedLimit member.
  12737. (decideInterest): Use messageFactory member.
  12738. * src/BtRequestMessage.cc
  12739. (doReceivedAction): Use messageFactory, dispatcher member.
  12740. (onQueued): Use dispatcher member.
  12741. * src/BtPieceMessage.cc
  12742. (doReceivedAction): Use dispatcher member.
  12743. (send): Use peerConnection member.
  12744. (onWrongPiece): Use requestFactory member.
  12745. (handleChokingEvent): Use messageFactory, dispatcher member.
  12746. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  12747. * src/BtMessageDispatcher.h
  12748. (BtMessageDispatcherWeakHandle): New type definition.
  12749. * src/SimpleBtMessage.cc
  12750. (send): Use peerConnection member.
  12751. * src/BtRejectMessage.cc
  12752. (doReceivedAction): Use dispatcher member.
  12753. * src/DefaultBtMessageDispatcher.h
  12754. (Option.h): Removed include.
  12755. (messageFactory): New variable.
  12756. (option): Removed.
  12757. (maxUploadSpeedLimit): New variable.
  12758. (requestTimeout): New variable.
  12759. (DefaultBtMessageDispatcher): Removed option.
  12760. Added maxUploadSpeedLimit, requestTimeout.
  12761. (setOption): Removed.
  12762. (getOption): Removed.
  12763. (setMaxUploadSpeedLimit): New function.
  12764. (setRequestTimeout): New function.
  12765. (setBtMessageFactory): New function.
  12766. * src/DefaultBtInteractive.h
  12767. (btMessageReceiver):
  12768. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  12769. (dispatcher):
  12770. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  12771. (btRequestFactory):
  12772. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  12773. (peerConnection):
  12774. PeerConnectionHandle -> PeerConnectionWeakHandle
  12775. (messageFactory): New variable.
  12776. (option): Removed.
  12777. (keepAliveInterval): New variable.
  12778. (maxDownloadSpeedLimit): New variable.
  12779. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  12780. (setBtMessageReceiver):
  12781. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  12782. (setDispatcher):
  12783. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  12784. (setBtRequestFactory):
  12785. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  12786. (setPeerConnection):
  12787. PeerConnectionHandle -> PeerConnectionWeakHandle
  12788. (setOption): Removed.
  12789. (setKeepAliveInterval): New function.
  12790. (setMaxDownloadSpeedLimit): New function.
  12791. (setBtMessageFactory): New function.
  12792. * src/BitfieldMan.h
  12793. (cachedNumMissingBlock): New variable.
  12794. (cachedNumFilteredBlock): New variable.
  12795. (cachedCompletedLength): New variable.
  12796. (cachedFilteredComletedLength): New variable.
  12797. (cachedFilteredTotalLength): New variable.
  12798. (countMissingBlockNow): New function.
  12799. (countFilteredBlockNow): New function.
  12800. (getFilteredTotalLengthNow): New function.
  12801. (getCompletedLengthNow): New function.
  12802. (getFilteredCompletedLengthNow): New function.
  12803. (updateCache): New function.
  12804. * src/AbstractBtMessage.h
  12805. (BtMessageDispatcher.h): New include.
  12806. (PeerConnection.h): New include.
  12807. (BtRequestFactory.h): New include
  12808. (BtMessageFactory.h): New include.
  12809. (dispatcher): New variable.
  12810. (messageFactory): New variable.
  12811. (peerConnection: New variable.
  12812. (setBtMessageDispatcher): New function.
  12813. (setPeerConnection): New function.
  12814. (setBtMessageFactory): New function.
  12815. (setBtRequestFactory): New function.
  12816. * src/DefaultBtMessageFactory.cc
  12817. (setCommonProperty): Set dispatcher, requestFactory, this,
  12818. peerConnection to msg.
  12819. * src/BtRegistry.h
  12820. (BT_MESSAGE_RECEIVER): New macro.
  12821. * src/PeerConnection.h
  12822. (PeerConnectionWeakHandle): New type definition.
  12823. * src/BtMessageFactory.h
  12824. (BtMessageFactoryWeakHandle): New type definition.
  12825. * src/BitfieldMan.cc
  12826. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  12827. cachedCompletedLength, cachedFilteredComletedLength,
  12828. cachedFilteredTotalLength.
  12829. Call updateCache().
  12830. (countMissingBlock): Return cachedNumMissingBlock.
  12831. (countMissingBlockNow): New function.
  12832. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  12833. (countFilteredBlockNow): New function.
  12834. (setBit): Call updateCache().
  12835. (unsetBit): Call updateCache().
  12836. (setBitfield): Call updateCache().
  12837. (clearAllBit): Call updateCache().
  12838. (setAllBit): Use setBitInternal instead of setBit.
  12839. Call updateCache().
  12840. (addFilter): Call updateCache().
  12841. (enableFilter): Call updateCache().
  12842. (disableFilter): Call updateCache().
  12843. (clearFilter): Call updateCache().
  12844. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  12845. (getFilteredTotalLengthNow): New function.
  12846. (getCompletedLength): Return cachedCompletedLength.
  12847. (getCompletedLengthNow): New function.
  12848. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  12849. (getFilteredCompletedLengthNow): New function.
  12850. (updateCache): New function.
  12851. * src/BtMessageReceiver.h
  12852. (BtMessageReceiverWeakHandle): New type definition.
  12853. * src/DefaultBtMessageReceiver.cc
  12854. (receiveHandshake): Use messageFactory member.
  12855. (sendHandshake): Use messageFactory member.
  12856. (receiveMessage): Use messageFactory member.
  12857. * src/DefaultBtMessageFactory.h
  12858. (dispatcher): New variable.
  12859. (requestFactory): New variable.
  12860. (peerConnection): New variablle.
  12861. (setBtMessageDispatcher): New function.
  12862. (setBtRequestFactory): New function.
  12863. (setPeerConnection): New function.
  12864. * src/SharedHandle.h
  12865. (RefCount): New class.
  12866. (WeakHandle): New class.
  12867. * src/PeerObject.h
  12868. (BtMessageReceiver.h): New include.
  12869. (PeerObject): Added btMessageReceiver.
  12870. (btMessageReceiver): New variable.
  12871. * src/Util.cc
  12872. (countBit): Simplified.
  12873. * src/BtCancelMessage.cc
  12874. (doReceivedAction): Use dispatcher member.
  12875. * src/BtRequestFactory.h
  12876. (BtRequestFactoryWeakHandle): New type definition.
  12877. * src/PeerStorage.h
  12878. (downloadSpeed): int -> uint32_t
  12879. (uploadSpeed): int -> uint32_t
  12880. (sessionDownloadLength): long long int -> uint64_t
  12881. (sessionUploadLength): long long int -> uint64_t
  12882. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12883. To add RecoverableException, FatalException:
  12884. * src/AbstractCommand.cc
  12885. (onAbort): Exception -> RecoverableException
  12886. * src/PeerAbstractCommand.h
  12887. (RecoverableException.h): New include.
  12888. (onAbort): Exception -> RecoverableException.
  12889. * src/PeerInteractionCommand.cc
  12890. (onAbort): Exception -> RecoverableException.
  12891. * src/PeerAbstractCommand.cc
  12892. (execute): Exception -> RecoverableException.
  12893. (onAbort): Exception -> RecoverableException.
  12894. * src/TorrentRequestInfo.cc
  12895. (execute): Exception -> RecoverableException.
  12896. * src/MetalinkRequestInfo.cc
  12897. (execute): Exception -> RecoverableException.
  12898. * src/MetaFileUtil.cc: RecoverableException.
  12899. * src/AbstractCommand.h
  12900. (onAbort): Exception -> RecoverableException.
  12901. * src/DlRetryEx.h: Exception -> RecoverableException.
  12902. * src/DlAbortEx.h: Exception -> RecoverableException.
  12903. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  12904. * src/Util.cc: Exception -> RecoverableException.
  12905. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  12906. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  12907. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  12908. To make ID static const int
  12909. * src/BtInterestedMessage.h
  12910. (ID_t): Removed.
  12911. (ID): New variable.
  12912. (getId): Made non-const.
  12913. * src/BtPieceMessage.h
  12914. (ID_t): Removed.
  12915. (ID): New variable.
  12916. (getId): Made non-const.
  12917. * src/BtChokeMessage.h
  12918. (ID_t): Removed.
  12919. (ID): New variable.
  12920. (getId): Made non-const.
  12921. * src/BtHaveAllMessage.h
  12922. (ID_t): Removed.
  12923. (ID): New variable.
  12924. (getId): Made non-const.
  12925. * src/BtKeepAliveMessage.h
  12926. (ID_t): Removed.
  12927. (ID): New variable.
  12928. (getId): Made non-const.
  12929. * src/BtHandshakeMessage.h
  12930. (ID): New variable.
  12931. (getId): Made non-const.
  12932. * src/BtSuggestPieceMessage.h
  12933. (ID_t): Removed.
  12934. (ID): New variable.
  12935. (getId): Made non-const.
  12936. * src/BtPortMessage.h
  12937. (ID_t): Removed.
  12938. (ID): New variable.
  12939. (getId): Made non-const.
  12940. * src/AbstractBtMessage.h
  12941. (id): Removed.
  12942. (AbstractBtMessage): Removed id.
  12943. (getId): Removed.
  12944. * src/BtHaveMessage.h
  12945. (ID_t): Removed.
  12946. (ID): New variable.
  12947. (getId): Made non-const.
  12948. * src/BtAllowedFastMessage.h
  12949. (ID_t): Removed.
  12950. (ID): New variable.
  12951. (getId): Made non-const.
  12952. * src/BtCancelMessage.h
  12953. (ID_t): Removed.
  12954. (ID): New variable.
  12955. (getId): Made non-const.
  12956. * src/BtNotInterestedMessage.h
  12957. (ID_t): Removed.
  12958. (ID): New variable.
  12959. (getId): Made non-const.
  12960. * src/BtChokeMessage.h
  12961. (ID_t): Removed.
  12962. (ID): New variable.
  12963. (getId): Made non-const.
  12964. * src/BtRejectMessage.h
  12965. (ID_t): Removed.
  12966. (ID): New variable.
  12967. (getId): Made non-const.
  12968. * src/BtBitfieldMessage.h
  12969. (ID_t): Removed.
  12970. (ID): New variable.
  12971. (getId): Made non-const.
  12972. * src/BtUnchokeMessage.h
  12973. (ID_t): Removed.
  12974. (ID): New variable.
  12975. (getId): Made non-const.
  12976. * src/BtRequestMessage.h
  12977. (ID_t): Removed.
  12978. (ID): New variable.
  12979. (getId): Made non-const.
  12980. * src/BtHaveMessage.h
  12981. (ID_t): Removed.
  12982. (ID): New variable.
  12983. (getId): Made non-const.
  12984. To add --force-truncate command-line option and a check whether
  12985. the file already exists:
  12986. * src/DirectDiskAdaptor.h
  12987. (getFilePath): Made virtual public.
  12988. * src/MultiDiskAdaptor.h
  12989. (File.h): New include.
  12990. (DiskWriterEntry::fileEntry): Made private.
  12991. (DiskWriterEntry::fileExists): New function.
  12992. (DiskWriterEntry::getFileEntry): New function.
  12993. (fileExists): New function.
  12994. (getFilePath): New function.
  12995. * src/TorrentRequestInfo.cc
  12996. (FatalException.h): New include.
  12997. (message.h): New include.
  12998. (RecoverableException.h): New include.
  12999. (execute): Added a check whether file is already exists or not.
  13000. * src/DiskAdaptor.h
  13001. (fileExists): New function.
  13002. (getFilePath): New function.
  13003. * src/main.cc
  13004. (showUsage): Added an explanation of --force-truncate command-line
  13005. option.
  13006. (main): Added --force-truncate command-line option.
  13007. * src/Exception.h
  13008. (setMsg): buf[256] -> buf[1024]
  13009. * src/CopyDiskWriter.h
  13010. (getFilePath): Made public virtual.
  13011. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  13012. (fileExists): New function.
  13013. * src/DownloadEngineFactory.cc
  13014. (newTorrentConsoleEngine): Don't open file here.
  13015. * src/message.h
  13016. (EX_FILE_ALREADY_EXISTS): New definition.
  13017. * src/prefs.h
  13018. (PREF_FOECE_TRUNCATE): New definition.
  13019. * src/HttpResponseCommand.cc
  13020. (handleDefaultEncoding): Added a check whether the file already exists.
  13021. * src/SegmentMan.h
  13022. (fileExists): New function.
  13023. (shouldCancelDownloadForSafety): New function.
  13024. * src/FtpNegotiateCommand.cc
  13025. (recvSize): Added a check whether the file already exists.
  13026. * src/AbstractSingleDiskAdaptor.cc
  13027. (File.h): New include.
  13028. (fileExists): New function.
  13029. * src/AbstractSingleDiskAdaptor.h
  13030. (getFilePath): Removed.
  13031. (fileExists): New function.
  13032. * src/SegmentMan.cc
  13033. (fileExists): New function.
  13034. (shouldCancelDownloadForSafety): New function.
  13035. To fix regression bug in torrent downloading:
  13036. * src/DefaultBtRequestFactory.cc
  13037. (doChokedAction): New function.
  13038. * src/DefaultBtRequestFactory.h
  13039. (doChokedAction): New function.
  13040. * src/DefaultBtMessageDispatcher.cc
  13041. (doChokedAction): Do not delete request if its target is in allowed
  13042. fast set.
  13043. * src/DefaultBtInteractive.cc
  13044. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  13045. (sendKeepAlive): Send keep alive message even if the outgoing message
  13046. queue is not empty.
  13047. (decideInterest): Simplified the code.
  13048. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  13049. it is already called when BtChokeMessage is received from a peer.
  13050. * src/BtRequestFactory.h
  13051. (doChokedAction): New function.
  13052. To clean up code:
  13053. * src/PeerInteractionCommand.h
  13054. (executeInternal): Added virtual keyword explicitly.
  13055. (prepareForRetry): Added virtual keyword explicitly.
  13056. (prepareForNextPeer): Added virtual keyword explicitly.
  13057. (onAbort): Added virtual keyword explicitly.
  13058. * src/RequestSlot.cc
  13059. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  13060. * src/BtPieceMessage.cc
  13061. (doReceivedAction): Added a debug log of piece's bitfield.
  13062. * src/Piece.h
  13063. (getBitfieldLength): New function.
  13064. * src/ByteArrayDiskWriter.cc
  13065. (clear): Added buf = 0 to avoid double free corruption.
  13066. * src/FileAllocator.cc
  13067. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  13068. Added cp.reset().
  13069. * src/BitfieldMan.h
  13070. (operator=): Rewritten.
  13071. * src/BitfieldMan.cc
  13072. (BitfieldMan): Initialized bitfield, useBitfield.
  13073. * src/PeerConnection.cc
  13074. (receiveMessage): Added a call to socket->readable() after getting
  13075. message length to avoid possible EOF.
  13076. * src/Util.cc
  13077. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  13078. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13079. To add an ability to pre-allocate file space:
  13080. * src/DirectDiskAdaptor.h: Rewritten.
  13081. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  13082. * src/MultiDiskAdaptor.h: Rewritten.
  13083. * src/DefaultPieceStorage.cc
  13084. (MultiDiskWriter.h): Removed include.
  13085. (PreAllocationDiskWriter.h): Removed include.
  13086. (FileAllocationMonitor.h): New include.
  13087. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  13088. (initStorage): Rewritten.
  13089. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13090. * src/FileAllocator.h: New class.
  13091. * src/FileAllocator.cc: New class.
  13092. * src/FileAllocationMonitor.h: New class.
  13093. * src/FileAllocationMonitor.cc: New class.
  13094. * src/ConsoleFileAllocationMonitor.h: New class.
  13095. * src/ConsoleFileAllocationMonitor.cc: New class.
  13096. * src/AbstractSingleDiskAdaptor.h: New class.
  13097. * src/AbstractSingleDiskAdaptor.cc: New class.
  13098. * src/DiskAdaptor.h
  13099. (Directory.h): Removed include.
  13100. (DiskWriter.h): Removed include.
  13101. (FileEntry.h): Removed include.
  13102. (diskWriter): Removed.
  13103. (DiskAdaptor): Removed diskWriter.
  13104. (openFile): Made pure virtual.
  13105. (closeFile): Made pure virtual.
  13106. (openExistingFile): Made pure virtual.
  13107. (initAndOpenFile): Made pure virtual.
  13108. (writeData): Made pure virtual.
  13109. (readData): Made pure virtual.
  13110. (sha1Sum): Made pure virtual.
  13111. (getStoreDir): Returns const reference of storeDir.
  13112. (DiskAdaptorHandle): New type definition.
  13113. * src/main.cc
  13114. (ConsoleFileAllocationMonitor.h): New include.
  13115. (showUsage): Added default value description of -s option.
  13116. Added the description of --file-allocation option.
  13117. (main): Set default value of --file-allocation option to 'none'.
  13118. Added --file-allocation command-line option.
  13119. Setup FileAllocationMonitorFactory.
  13120. * src/FtpInitiateConnectionCommand.cc
  13121. (executeInternal): Removed diskWriter related processing, which was
  13122. moved to FtpNegotiationCommand.cc.
  13123. * src/DirectDiskAdaptor.cc
  13124. (getFilePath): Made non-const.
  13125. * src/CopyDiskAdaptor.h
  13126. (DiskAdaptor.h): Removed include.
  13127. (DiskWriter.h): Removed include.
  13128. (AbstractSingleDiskAdaptor.h): New include.
  13129. (getFilePath): Made non-const. Added virtual keyword.
  13130. (CopyDiskAdaptor): Removed diskWriter.
  13131. (getTempFile): Returns const reference.
  13132. (CopyDiskAdaptorHandle): New type definition.
  13133. * src/ByteArrayDiskWriter.cc
  13134. (clear): Simplified.
  13135. (initAndOpenFile): Rewritten.
  13136. (openFile): Call initAndOpenFile()
  13137. * src/MultiDiskAdaptor.cc: Rewritten.
  13138. * src/DownloadEngineFactory.cc
  13139. (FileAllocator.h): New include.
  13140. (FileAllocationMonitor.h): New include.
  13141. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  13142. create DefaultDiskWriter with file allocator.
  13143. * src/DiskWriter.h
  13144. (initAndOpenFile): Added totalLength argument.
  13145. (openFile): Added totalLength argument.
  13146. * src/prefs.h
  13147. (PREF_FILE_ALLOCATION): New definition.
  13148. (V_PREALLOC): New definition.
  13149. (V_NONE): New definition.
  13150. * src/HttpResponseCommand.cc
  13151. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  13152. size.
  13153. * src/FtpNegotiateCommand.cc
  13154. (Util.h): New include.
  13155. (recvSize): Open file here.
  13156. * src/Util.h
  13157. (ullitos): New function.
  13158. * src/CopyDiskWriter.h
  13159. (getFilePath): Made non-const.
  13160. * src/DefaultDiskWriter.h
  13161. (Option.h): New include.
  13162. (totalLength): Removed.
  13163. (DefaultDiskWriter): Removed totalLength.
  13164. (initAndOpenFile): Added totalLength argument.
  13165. (DefaultDiskWriterHandle): New type definition.
  13166. (createNewDiskWriter): New function.
  13167. * src/Util.cc
  13168. (ullitos): New function.
  13169. * src/DefaultDiskWriter.cc
  13170. (message.h): New include.
  13171. (FileAllocator.h): New include.
  13172. (prefs.h): New include.
  13173. (Util.h): New include.
  13174. (DefaultDiskWriter): Removed totalLength.
  13175. (initAndOpenFile): Added file allocation.
  13176. (createNewDiskWriter): New function. Just for temporary solution.
  13177. It will be rewritten later.
  13178. * src/DiskAdaptor.cc
  13179. (DiskAdaptor): Removed diskWriter.
  13180. * src/AbstractDiskWriter.cc
  13181. (LogFactory.h): New include.
  13182. (AbstractDiskWriter): Added fileAllocator, logger.
  13183. (openFile): Added totalLength argument.
  13184. * src/AbstractDiskWriter.h
  13185. (FileAllocator.h): New include.
  13186. (Logger.h): New include.
  13187. (fileAllocator): New variable.
  13188. (logger): New variable.
  13189. (openFile): Added totalLength argument. Added virtual keyword
  13190. explicitly.
  13191. (openExistingFile): Added totalLength argument. Added virtual keyword
  13192. explicitly.
  13193. (closeFile): Added virtual keyword explicitly.
  13194. (sha1Sum): Added virtual keyword explicitly.
  13195. (writeData): Added virtual keyword explicitly.
  13196. (readData): Added virtual keyword explicitly.
  13197. (setFileAllocator): New function.
  13198. * src/DefaultPieceStorage.h
  13199. (FileAllocator.h): New include.
  13200. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13201. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13202. * src/FileProgressMonitor.h: New class.
  13203. To compile aria2 on PC-BSD:
  13204. * src/DefaultBtContext.cc
  13205. (libgen.h): New include.
  13206. To fix memory leak:
  13207. * src/Exception.h
  13208. (~Exception): Delete cause. Fixed memory leak.
  13209. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13210. Rewritten a portion of bittorrent implementation:
  13211. * src/BtMessageValidator.h: New class.
  13212. * src/BtBitfieldMessageValidator.h: New class.
  13213. * src/BtHandshakeMessageValidator.h: New class.
  13214. * src/BtRequestMessageValidator.h: New class.
  13215. * src/BtSuggestPieceMessageValidator.h: New class.
  13216. * src/BtAllowedFastMessageValidator.h: New class.
  13217. * src/BtRejectMessageValidator.h: New class.
  13218. * src/BtCancelMessageValidator.h: New class.
  13219. * src/BtPieceMessageValidator.h: New class.
  13220. * src/BtHaveMessageValidator.h: New class.
  13221. * src/BtEventListener.h: New class.
  13222. * src/AbstractBtEventListener.h: New class.
  13223. * src/BtEvent.h: New class.
  13224. * src/BtChokingEvent.h: New class.
  13225. * src/BtChokedEvent.h: New class.
  13226. * src/BtCancelSendingPieceEvent.h: New class.
  13227. * src/BtAbortOutstandingRequestEvent.h: New class.
  13228. * src/Randomizer.h: New class.
  13229. * src/SimpleRandomizer.h: New class.
  13230. * src/BtMessage.h: New class.
  13231. * src/AbstractBtMessage.h: New class.
  13232. * src/SimpleBtMessage.h: New class.
  13233. * src/BtHaveMessage.h: New class.
  13234. * src/BtInterestedMessage.h: New class.
  13235. * src/BtAllowedFastMessage.h: New class.
  13236. * src/BtUnchokeMessage.h: New class.
  13237. * src/BtCancelMessage.h: New class.
  13238. * src/BtNotInterestedMessage.h: New class.
  13239. * src/BtChokeMessage.h: New class.
  13240. * src/BtHaveNoneMessage.h: New class.
  13241. * src/BtHandshakeMessage.h: New class.
  13242. * src/BtSuggestPieceMessage.h: New class.
  13243. * src/BtHaveMessage.h: New class.
  13244. * src/BtPieceMessage.h: New class.
  13245. * src/BtHaveAllMessage.h: New class.
  13246. * src/BtKeepAliveMessage.h: New class.
  13247. * src/BtPortMessage.h: New class.
  13248. * src/BtRejectMessage.h: New class.
  13249. * src/BtBitfieldMessage.h: New class.
  13250. * src/BtRequestMessage.h: New class.
  13251. * src/DefaultBtRequestFactory.h: New class.
  13252. * src/DefaultBtMessageReceiver.h: New class.
  13253. * src/BtInteractive.h: New class.
  13254. * src/BtMessageDispatcher.h: New class.
  13255. * src/DefaultBtMessageDispatcher.h: New class.
  13256. * src/DefaultBtInteractive.h: New class.
  13257. * src/BitfieldManFactory.h: New class.
  13258. * src/HandleRegistry.h: New class.
  13259. * src/BtMessageFactory.h: New class.
  13260. * src/BtMessageReceiver.h: New class.
  13261. * src/DefaultBtMessageFactory.h: New class.
  13262. * src/PeerObject.h: New class.
  13263. * src/BtRequestFactory.h: New class.
  13264. * src/SuggestPieceMessage.h: Removed.
  13265. * src/PortMessage.h: Removed.
  13266. * src/SuggestPieceMessage.h: Removed.
  13267. * src/KeepAliveMessage.h: Removed.
  13268. * src/HandshakeMessage.h: Removed.
  13269. * src/PeerInteraction.h: Removed.
  13270. * src/UnchokeMessage.h: Removed.
  13271. * src/PieceMessage.h: Removed.
  13272. * src/RequestMessage.h: Removed.
  13273. * src/InterestedMessage.h: Removed.
  13274. * src/HaveMessage.h: Removed.
  13275. * src/CancelMessage.h: Removed.
  13276. * src/RejectMessage.h: Removed.
  13277. * src/AllowedFastMessage.h: Removed.
  13278. * src/HaveNoneMessage.h: Removed.
  13279. * src/SimplePeerMessage.h: Removed.
  13280. * src/HaveAllMessage.h: Removed.
  13281. * src/BitfieldMessage.h: Removed.
  13282. * src/PeerMessageFactory.h: Removed.
  13283. * src/NotInterestedMessage.h: Removed.
  13284. * src/ChokeMessage.h: Removed.
  13285. * src/PeerMessage.h: Removed.
  13286. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13287. To know root cause of exception:
  13288. * src/Exception.h
  13289. (cause): New variable.
  13290. (Exception): Added a parameter.
  13291. (getMsg): Return const reference to msg.
  13292. (getCause): New function.
  13293. * src/DlRetryEx.h
  13294. (DlRetryEx): Added a parameter 'cause'.
  13295. Added an overloaded constructor.
  13296. (DlAbortEx): Added a parameter 'cause'.
  13297. Added an overloaded constructor.
  13298. * src/SimpleLogger.cc
  13299. (writeLog): Log nested exception messages recursively.
  13300. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13301. * src/DefaultBtProgressInfoFile.cc
  13302. (load): Fixed memory leak when the infohash doesn't match.
  13303. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13304. * src/DefaultPeerStorage.cc
  13305. (calculateStat): Simplified the code by combining 2 loops into 1.
  13306. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13307. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  13308. for BitTorrent download:
  13309. * src/PeerAbstractCommand.cc
  13310. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  13311. * src/main.cc:
  13312. (timeoutSpecified): Removed.
  13313. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  13314. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  13315. * src/TorrentRequestInfo.cc
  13316. (timeoutSpecified): Removed.
  13317. (torrentHandler): Removed timeoutSpecified and the adjustment of
  13318. timeout value.
  13319. * src/prefs.h
  13320. (PREF_BT_TIMEOUT): New definition.
  13321. Delete unused variables:
  13322. * src/TorrentRequestInfo.cc
  13323. (requestInfo): Removed.
  13324. Move setSignalHander to Util::setGlobalSignalHandler:
  13325. * src/TorrentRequestInfo.cc:
  13326. setSignalHander -> Util::setGlobalSignalHandler
  13327. * src/main.cc
  13328. (setSignalHander): Removed.
  13329. (main): setSignalHander -> Util::setGlobalSignalHandler
  13330. * src/Util.h
  13331. (setGlobalSignalHandler): New function.
  13332. * src/Util.cc
  13333. (setGlobalSignalHandler): New function.
  13334. * src/UrlRequestInfo.cc:
  13335. setSignalHander -> Util::setGlobalSignalHandler
  13336. Reset peer status in order to exit gracefully:
  13337. * src/PeerAbstractCommand.cc
  13338. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  13339. To fix the bug that causes the number of bytes uploaded is not saved
  13340. to .aria2 file:
  13341. * src/DefaultPeerStorage.h
  13342. (removedPeerSessionDownloadLength): New variable.
  13343. (removedPeerSessionUploadLength): New variable.
  13344. * src/DefaultPeerStorage.cc
  13345. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  13346. removedPeerSessionUploadLength(0).
  13347. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  13348. through all peers, and then add removedPeerSessionDownloadLength(
  13349. removedPeerSessionUploadLength) to it.
  13350. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  13351. (to) the peer to removedPeerSessionDownloadLength
  13352. (removedPeerSessionUploadLength).
  13353. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13354. To add Metalink location option:
  13355. * src/MetalinkRequestInfo.cc
  13356. (execute): Call MetalinkEntry::setLocationPreference()
  13357. * src/main.cc
  13358. (showUsage): Added the help message for --metalink-location option.
  13359. (main): Added --metalink-location option.
  13360. * src/prefs.h
  13361. (PREF_METALINK_LOCATION): New definition.
  13362. * src/MetalinkEntry.cc
  13363. (AddLocationPreference): New function object.
  13364. (setLocationPreference): New function.
  13365. * src/Xml2MetalinkProcessor.cc
  13366. (getResource): Set location attribute to MetalinkResource
  13367. To show URLs to download
  13368. * src/UrlRequestInfo.h
  13369. (printUrls): New function.
  13370. To add multiple <file> Metalink support:
  13371. * src/MetalinkEntry.h
  13372. (MetalinkResources): Removed.
  13373. (setLocationPreference): New function.
  13374. (MetalinkEntryHandle): New type definition.
  13375. (MetalinkEntries): New type definition.
  13376. * src/Xml2MetalinkProcessor.h
  13377. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  13378. (getResource): MetalinkResource* -> MetalinkResourceHandle
  13379. (parseFile): Metalinker* -> MetalinkerHandle
  13380. * src/UrlRequestInfo.h
  13381. (execute): RequestInfo* -> RequestInfos
  13382. * src/MetalinkRequestInfo.cc
  13383. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  13384. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  13385. (execute): RequestInfo* -> RequestInfos
  13386. Added multiple <file> support. Print filename when it is queued.
  13387. * src/MetalinkRequestInfo.h
  13388. (execute): RequestInfo* -> RequestInfos
  13389. (getDownloadEngine): Removed.
  13390. * src/RequestInfo.h
  13391. (RequestInfoHandle): New type definition.
  13392. (RequestInfos): New type definition.
  13393. (execute): RequestInfo* -> RequestInfos
  13394. (getDownloadEngine): Removed.
  13395. * src/MetalinkResource.h
  13396. (MetalinkResourceHandle): New type definition.
  13397. (MetalinkResources): New type definition.
  13398. * src/MetalinkEntry.cc
  13399. (~MetalinkEntry): Removed the deletion of the elements of resources,
  13400. because the element is now of type MetalinkResourceHandle.
  13401. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  13402. (Supported): MetalinkResource* -> MetalinkResourceHandle
  13403. (dropUnsupportedResource): Removed the deletion of the elements of
  13404. resources because the element is now of type MetalinkResourceHandle.
  13405. * src/Xml2MetalinkProcessor.cc
  13406. (parseFile): Metalinker* -> MetalinkerHandle
  13407. MetalinkEntry* -> MetalinkEntryHandle
  13408. Removed try-catch block.
  13409. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  13410. MetalinkResource* -> MetalinkResourceHandle
  13411. Removed try-catch block.
  13412. (getResource): MetalinkResource* -> MetalinkResourceHandle
  13413. Free result by using xmlXPathFreeObject()
  13414. * src/Metalinker.cc
  13415. (~Metalinker): Removed the deletion of entries.
  13416. MetalinkEntry* -> MetalinkEntryHandle
  13417. (queryEntry): Add multiple <file> Metalink support.
  13418. * src/Metalinker.h
  13419. (MetalinkEntries): Removed.
  13420. (queryEntry): MetalinkEntry* -> MetalinkEntries
  13421. * src/MetalinkProcessor.h
  13422. (parseFile): Metalinker* -> MetalinkerHandle
  13423. Bug fixes:
  13424. * src/PeerChokeCommand.cc
  13425. (execute): cat01->cat02
  13426. * src/DefaultPieceStorage.cc
  13427. (DefaultPieceStorage): Added diskAdaptor(0)
  13428. * src/TrackerWatcherComand.cc:
  13429. (execute): Use btAnnounce->noMoreAnnounce()
  13430. to determin whether the function returns true or not.
  13431. * src/TrackerUpdateCommand.cc:
  13432. (execute): Use btAnnounce->noMoreAnnounce()
  13433. to determin whether the function returns true or not.
  13434. * src/FtpConnection.cc
  13435. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  13436. This is the fix of the busy loop bug.
  13437. * src/DownloadCommand.cc
  13438. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  13439. cached PeerStat.
  13440. The value of "name" entry in torrent file is now set by
  13441. *DiskAdaptor::setTopDir(...) methods.
  13442. * src/MultiDiskAdaptor.h
  13443. (topDir): New variable.
  13444. (setTopDir): New function.
  13445. (getTopDir): New function.
  13446. * src/MultiDiskAdaptor.cc
  13447. (getFilePath): Concat storDir, "/" and topDir.
  13448. (mkdir): Use getFilePath() to get the directory path for output.
  13449. * src/DefaultPieceStorage.cc
  13450. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  13451. CopyDiskAdaptor.
  13452. * src/CopyDiskAdaptor.h
  13453. (topDir): New variable.
  13454. (setTopDir): New function.
  13455. (getTopDir): New function.
  13456. * src/CopyDiskAdaptor.cc
  13457. (fixFilename): Updated.
  13458. Misc
  13459. * src/UrlRequestInfo.h
  13460. (e): Removed.
  13461. (UrlRequestInfo): Removed e.
  13462. (getDownloadEngine): Removed.
  13463. * src/UrlRequestInfo.cc
  13464. (handler): Rewritten.
  13465. (printUrls): New function.
  13466. (execute): Call printUrls().
  13467. * src/HandshakeMessage.cc
  13468. (check): peerinteraction->getBtContext() -> btContext
  13469. * src/PeerInteraction.h
  13470. (getBtContext): Removed.
  13471. * src/TorrentRequestInfo.h
  13472. (execute): RequestInfo* -> RequestInfos
  13473. (getDownloadEngine): Removed.
  13474. * src/TorrentRequestInfo.cc
  13475. (haltRequested): Removed.
  13476. (btHaltRequested): New variable.
  13477. (torrentHandler): haltRequested -> btHaltRequested
  13478. (execute): RequestInfo* -> RequestInfos
  13479. * src/TorrentConsoleDownloadEngine.cc
  13480. (afterEachIteration): haltRequested -> btHaltRequested.
  13481. * src/ConsoleDownloadEngine.h
  13482. (initStatistics): Added virtual.
  13483. (calculateStatistics): Added virtual.
  13484. (onEndOfRun): Added virtual.
  13485. (afterEachIteration): Added virtual.
  13486. * src/ConsoleDownloadEngine.cc
  13487. (haltRequested): New variable.
  13488. (afterEachIteration): New function.
  13489. * src/main.cc
  13490. (requestInfo): Removed.
  13491. * src/SegmentMan.cc
  13492. (findSlowerSegmentEntry): Refactored.
  13493. * Release 0.9.0
  13494. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13495. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  13496. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  13497. * src/TorrentMan.h: Removed.
  13498. * src/TorrentMan.cc: Removed.
  13499. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  13500. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  13501. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  13502. * src/PeerAbstractCommand.cc: Use btRuntime.
  13503. * src/BtContextAwareCommand.h: New class.
  13504. * src/FileEntry.h: Added accessor methods for following variables.
  13505. (path): Made private.
  13506. (length): Made private.
  13507. (offset): Made private.
  13508. (extracted): Made private.
  13509. (requested): Made private.
  13510. (FileEntries): New definition.
  13511. (FileEntryHandle): New definition.
  13512. * src/FileEntry.cc: New file.
  13513. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  13514. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  13515. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  13516. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  13517. * src/PieceStorage.h: New file.
  13518. * src/PeerInteractionCommand.h: Use btContext.
  13519. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  13520. btRuntime.
  13521. * src/DefaultBtProgressInfoFile.h: New file.
  13522. * src/DefaultBtProgressInfoFile.cc: New file.
  13523. * src/File.cc
  13524. (Util.h): New include.
  13525. (mkdirs): New function.
  13526. * src/MultiDiskAdaptor.h
  13527. (mkdir): New function.
  13528. * src/PeerListProcessor.h
  13529. (Peers): Removed.
  13530. * src/PeerInteraction.h
  13531. (torrentMan): Removed.
  13532. (btContext): New variable.
  13533. (peerStorage): New variable.
  13534. (pieceStorage): New variable.
  13535. (btAnnounce): New variable.
  13536. (getTorrentMan): Removed.
  13537. (getBtContext): New function.
  13538. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  13539. btAnnounce.
  13540. * src/HandshakeMessage.h
  13541. (TorrentMan.h): Removed.
  13542. * src/HandshakeMessage.cc: Use btContext.
  13543. * src/DefaultBtAnnounce.cc: New file.
  13544. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  13545. * src/DefaultPieceStorage.cc: New file.
  13546. * src/DefaultBtContext.h: New file.
  13547. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  13548. Use the accessor methods of FileEntry.
  13549. * src/CookieBox.cc: Updated to use Util::slice().
  13550. * src/PieceMessage.cc: Use btContext, pieceStorage.
  13551. * src/common.h (SharedHandle.h): New include.
  13552. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  13553. pieceStorage.
  13554. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  13555. * src/DiskAdaptor.h
  13556. (topDir): Removed.
  13557. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  13558. (setTopDir): Removed.
  13559. (getTopDir): Removed.
  13560. * src/BtContext.h: New file.
  13561. * src/DefaultPeerStorage.h: New file.
  13562. * src/PieceMessage.h (TorrentMan.h): Removed.
  13563. * src/RequestMessage.h (TorrentMan.h): Removed.
  13564. * src/TorrentDownloadEngine.h
  13565. (uploadLength): New variable.
  13566. (btContext): New variable.
  13567. (btRuntime): New variable.
  13568. (pieceStorage): New variable.
  13569. (peerStorage): New variable.
  13570. (btAnnounce): New variable.
  13571. (btProgressInfoFile): New variable.
  13572. (torrentMan): Removed.
  13573. (setBtContext): New function.
  13574. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  13575. peerStorage, btAnnounce, btProgressInfoFile.
  13576. * src/Piece.h
  13577. (toString): New function.
  13578. (Pieces): New type definition.
  13579. * src/Peer.h
  13580. (active): New variable.
  13581. (Peer): Added active.
  13582. (activate): Set active to true.
  13583. (deactivate): Set active to false.
  13584. (isActive): New function.
  13585. (Peers): New type definition.
  13586. * src/DirectDiskAdaptor.cc
  13587. (getFilePath): Use the accessor methods of FileEntry.
  13588. * src/TorrentConsoleDownloadEngine.h
  13589. (afterEachIteration): New function.
  13590. * src/TorrentConsoleDownloadEngine.cc
  13591. (haltRequested): New variable.
  13592. (sendStatistics): Use pieceStorage, btRuntime.
  13593. (afterEachIteration): New function.
  13594. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  13595. * src/Directry.h
  13596. (Directory): New function.
  13597. (DirectoryHandle): New type definition.
  13598. * src/BtProgressInfoFile.h: New file.
  13599. * src/RequestMessage.cc: Use pieceStorage.
  13600. * src/BtRuntime.h: New file.
  13601. * src/DefaultBtContext.cc: New file.
  13602. * src/BitfieldMan.h
  13603. (getCompletedLength): New function(private).
  13604. (getCompletedLength): New function.
  13605. (getFilteredCompletedLength): New function.
  13606. * src/BitfieldMan.h
  13607. (getCompletedLength): New function(private).
  13608. (getCompletedLength): New function.
  13609. (getFilteredCompletedLength): New function.
  13610. * src/MultiDiskAdaptor.cc
  13611. (mkdir): New function.
  13612. (openFile): Call mkdir().
  13613. (initAndOpenFile): Call mkdir().
  13614. * src/CancelMessage.h
  13615. (TorrentMan.h): Removed.
  13616. * src/RejectMessage.h
  13617. (TorrentMan.h): Removed.
  13618. * src/DownloadEngineFactory.cc
  13619. (DefaultPieceStorage.h): New include.
  13620. (DefaultPeerStorage.h): New include.
  13621. (DefaultBtAnnounce.h): New include.
  13622. (DefaultBtProgressInfoFile.h): New include.
  13623. (newTorrentConsoleEngine): Rewritten.
  13624. * src/ShareRatioSeedCriteria.h
  13625. (torrentMan): Removed.
  13626. (btContext): New variable.
  13627. (peerStorage): New variable.
  13628. (btRuntime): New variable.
  13629. (evaluate): Use btContext, btRuntime, peerStorage.
  13630. * src/AnnounceTier.h: New file.
  13631. * src/BtAnnounce.h: New file.
  13632. * src/BtRegistry.h: New file.
  13633. * src/PeerInitiateConnectionCommand.h: Added btContext.
  13634. * src/PeerConnection.h (TorrentMan.h): Removed.
  13635. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  13636. * src/Util.h
  13637. (slice): Added an argument.
  13638. * src/Util.cc
  13639. (slice): Added an argument to control whether trim is made or not.
  13640. * src/PeerStorage.h: New file.
  13641. * src/BtRegistry.cc: New file.
  13642. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  13643. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  13644. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  13645. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  13646. * src/TorrentRequestInfo.h
  13647. (e): Removed.
  13648. (showFileEntry): Added an argument.
  13649. (getDownloadEngine): Return 0.
  13650. * src/DefaultBtAnnounce.h: New file.
  13651. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  13652. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  13653. * src/PeerMessageFactory.h
  13654. (btContext): New variable.
  13655. (pieceStorage): New variable.
  13656. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  13657. btAnnounce.
  13658. * src/DiskAdaptor.cc
  13659. (DiskAdaptor): Removed topDir.
  13660. (~DiskAdaptor): Removed topDir.
  13661. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  13662. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  13663. * src/File.h (mkdirs): New function.
  13664. * src/DefaultPeerStorage): New file.
  13665. * src/DownloadEngineFactory.h
  13666. (newTorrentConsoleEngine): Use btContext.
  13667. * src/BtContextAwareCommand.cc: New file.
  13668. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  13669. * src/PeerMessage.h
  13670. (btContext): New variable.
  13671. (peerStorage): New variable.
  13672. (pieceStorage): New variable.
  13673. (setBtContext): New function.
  13674. * src/Directry.cc
  13675. (Directory): New function.
  13676. (createDir): Do nothing if name.size() == 0.
  13677. * src/AnnounceList.h
  13678. (AnnounceTier): Removed.
  13679. (AnnounceTiers): Removed.
  13680. * src/DefaultPieceStorage.h: New file.
  13681. * src/Piece.cc (toString): New function.
  13682. To fix typo:
  13683. * src/main.cc (showVersion): Fixed typo.
  13684. To fix compile warning:
  13685. * src/DelegatingPeerListProcessor.cc
  13686. (canHandle): Added "return false".
  13687. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13688. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  13689. make the process of announce request testable.
  13690. * src/TrackerWatcherCommand.h
  13691. (TimeA2.h): Removed.
  13692. (interval): Removed.
  13693. (checkPoint): Removed.
  13694. (createRequestCommand): Added an argument 'url'.
  13695. (TrackerWatherCommand): Removed interval.
  13696. (createCommand): New function.
  13697. * src/DownloadEngineFactory.cc
  13698. (newTorrentConsoleEngine): Updated according to the changes in
  13699. TrackerWatherCommand.
  13700. * src/TorrentMan.cc
  13701. (DelegatingPeerListProcessor.h): New includes.
  13702. (TorrentMan): Added the initialization of announceInterval.
  13703. (isStoppedAnnounceReady): New function.
  13704. (isCompletedAnnounceReady): New function.
  13705. (isDefaultAnnounceReady): New function.
  13706. (isAnnounceReady): New function.
  13707. (getAnnounceUrl): New function.
  13708. (announceStart): New function.
  13709. (announceFailure): New function.
  13710. (announceSuccess): New function.
  13711. (isAllAnnounceFailed): New function.
  13712. (resetAnnounce): New function.
  13713. (processAnnounceResponse): New function.
  13714. (needMorePeerConnection): New function.
  13715. (noMoreAnnounce): New function.
  13716. * src/TrackerUpdateCommand.h
  13717. (getTrackerResponse): int->size_t
  13718. * src/TorrentMan.h
  13719. (isStoppedAnnounceReady): New function.
  13720. (isCompletedAnnounceReady): New function.
  13721. (isDefaultAnnounceReady): New function.
  13722. (announceInterval): New variable.
  13723. (isAnnounceReady): New function.
  13724. (getAnnounceUrl): New function.
  13725. (announceStart): New function.
  13726. (announceFailure): New function.
  13727. (announceSuccess): New function.
  13728. (isAllAnnounceFailed): New function.
  13729. (resetAnnounce): New function.
  13730. (processAnnounceResponse): New function.
  13731. (needMorePeerConnection): New function.
  13732. (noMoreAnnounce): New function.
  13733. * src/TrackerWatcherCommand.cc
  13734. (TrackerWatherCommand): Removed interval and checkPoint.
  13735. (execute): Rewritten.
  13736. (createCommand): New function.
  13737. (createRequestCommand): Rewritten.
  13738. * src/TrackerUpdateCommand.cc
  13739. (MetaFileUtil.h): Removed.
  13740. (DelegatingPeerListProcessor.h): Removed.
  13741. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  13742. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13743. Request -> RequestHandle:
  13744. * src/HttpResponseCommand.h: Request->RequestHandle
  13745. * src/AbstractCommand.cc: Request->RequestHandle
  13746. * src/HttpDownloadCommand.cc: Request->RequestHandle
  13747. * src/HttpRequestCommand.cc: Request->RequestHandle
  13748. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  13749. * src/AbstractCommand.h: Request->RequestHandle
  13750. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  13751. * src/HttpResponseCommand.cc: Request->RequestHandle
  13752. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  13753. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  13754. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  13755. * src/HttpConnection.h: Request->RequestHandle
  13756. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  13757. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  13758. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  13759. * src/DownloadCommand.h: Request->RequestHandle
  13760. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  13761. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  13762. * src/HttpRequestCommand.h: Request->RequestHandle
  13763. * src/FtpNegotiateCommand.h: Request->RequestHandle
  13764. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  13765. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  13766. * src/HttpDownloadCommand.h: Request->RequestHandle
  13767. * src/FtpConnection.cc: Request->RequestHandle
  13768. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  13769. * src/UrlRequestInfo.cc: Request->RequestHandle
  13770. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  13771. * src/HttpConnection.h: Request->RequestHandle
  13772. * src/DownloadCommand.cc: Request->RequestHandle
  13773. * src/FtpConnection.h: Request->RequestHandle
  13774. * src/FtpDowndloadCommand.h: Request->RequestHandle
  13775. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  13776. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  13777. * src/Request.h
  13778. (SharedHandle.h): New include.
  13779. (RequestHandle): New type definition.
  13780. (Requests): Redefined.
  13781. To add MULTITRACKER support:
  13782. * src/TrackerWatcherCommand.h
  13783. (createRequestCommand): New function.
  13784. * src/DownloadEngineFactory.cc
  13785. (newTorrentConsoleEngine): Removed req.
  13786. * src/prefs.h
  13787. (PREF_TRACKER_MAX_TRIES): New definition.
  13788. * src/TorrentMan.cc
  13789. (TorrentMan): Removed req. Added trackerNumTry.
  13790. (~TorrentMan): Removed req.
  13791. (setupInternal1): Added announceList.
  13792. * src/TorrentRequestInfo.cc
  13793. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  13794. announces is now specified by PREF_TRACKER_MAX_TRIES.
  13795. * src/main.cc
  13796. (main): Added PREF_TRACKER_MAX_TRIES.
  13797. * src/TorrentMan.h
  13798. (Request.h): Removed.
  13799. (AnnounceList.h): New include.
  13800. (trackerNumTry): New variable.
  13801. (req): Removed.
  13802. (announceList): New variable.
  13803. * src/TrackerWatcherCommand.cc
  13804. (execute): Rewritten.
  13805. (createRequestCommand): New function.
  13806. * src/TrackerUpdateCommand.cc
  13807. (execute): Updated with the use of AnnounceList.
  13808. * src/AnnounceList.cc: New class.
  13809. * src/AnnounceList.h: New class.
  13810. To fix typo:
  13811. * src/prefs.h
  13812. (PREF_MAX_TRIES): max_try->max_tries
  13813. To not to decode "+" as space in URL decode:
  13814. * src/Util.cc
  13815. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  13816. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13817. To add timeout to async name resolution:
  13818. * src/AbstractCommand.h
  13819. (nameResolveFinished): New function. This is not elegant way. It needs
  13820. to be more refined.
  13821. (nameResolverCheck): New variable.
  13822. * src/AbstractCommand.cc
  13823. (AbstractCommand): Added nameResolverCheck.
  13824. (execute): Added the check whether the name resolution has finished.
  13825. (setNameResolverCheck): Set nameResolverCheck to true.
  13826. (disableNameResolverCheck): Set nameResolverCheck to false.
  13827. (nameResolverFinished): New function.
  13828. * src/FtpInitiateConnectionCommand.h
  13829. (nameResolverFinished): New function.
  13830. * src/FtpInitiateConnectionCommand.cc
  13831. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  13832. * src/HttpInitiateConnectionCommand.h
  13833. (nameResolverFinished): New function.
  13834. * src/HttpInitiateConnectionCommand.cc
  13835. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  13836. * src/prefs.h
  13837. (PREF_DNS_TIMEOUT): New definition.
  13838. * src/main.cc
  13839. (main): Added PREF_DNS_TIMEOUT.
  13840. To add the support for a non-compact response from a tracker:
  13841. * src/PeerListProcessor.h: New class.
  13842. * src/DefaultPeerListProcessor.h: New class.
  13843. * src/DefaultPeerListProcessor.cc: New class.
  13844. * src/CompactPeerListProcessor.h: New class.
  13845. * src/CompactPeerListProcessor.cc: New class.
  13846. * src/DelegatingPeerListProcessor.h: New class.
  13847. * src/DelegatingPeerListProcessor.cc: New class.
  13848. * src/TorrentMan.cc
  13849. (addPeer): New function(overload).
  13850. (addPeer): Delete unused peers only when new peer is added.
  13851. * src/TorrentMan.h
  13852. (PeerListProcessor.h): Included.
  13853. (Peers): Removed.
  13854. (addPeer): New function(overload).
  13855. * src/TrackerUpdateCommand.cc
  13856. (netinet/in.h): Removed.
  13857. (DelegatingPeerListProcessor.h): Included.
  13858. (execute): Updated to use DelegatingPeerListProcessor.
  13859. To fix the memory leak in TorrentMan::peers:
  13860. * src/PeerAbstractCommand.cc
  13861. (onAbort): Added peer->resetStatus().
  13862. * src/Peer.h
  13863. (resetStatus): Made public.
  13864. To improve the precision of the speed calculation:
  13865. * src/SpeedCalc.h
  13866. (nextInterval): New variable.
  13867. * src/SpeedCalc.cc
  13868. (reset): Added nextInterval.
  13869. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  13870. (changeSw): Set nextInterval to 15 seconds relative to the current
  13871. instant time.
  13872. * src/main.cc
  13873. (showVersion): Updated.
  13874. (showUsage): Updated.
  13875. * Release 0.8.1
  13876. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13877. * src/main.cc
  13878. (showUsage): Commented out --min-segment-size option.
  13879. (main): Commented out --min-segment-size option.
  13880. * Release 0.8.0
  13881. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13882. * src/*.{h,cc}:
  13883. Added an exception to the license which allows linking with OpenSSL.
  13884. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13885. * src/AbstractCommand.cc
  13886. (execute): Check whether the download has finished before checking
  13887. socket status.
  13888. Return true if peerStat->getStatus() == REQUEST_IDLE.
  13889. Do not exit even if no segment is available.
  13890. * src/prefs.h
  13891. (PREF_STARTUP_IDLE_TIME): New definition.
  13892. * src/PeerInteractionCommand.cc
  13893. (executeInternal): Removed max speed limit. Because it performs bad.
  13894. (receiveMessages): Added max speed limit. This was better than above,
  13895. but still a little bit to be desired. Sometimes the download speed
  13896. became much faster than I specified.
  13897. * src/SpeedCalc.h
  13898. (start): New variable.
  13899. (accumulatedLength): New variable.
  13900. (getAvgSpeed): New function.
  13901. * src/SpeedCalc.cc
  13902. (reset): Added start, accumulatedLength.
  13903. (update): Added calculation of an average speed.
  13904. (getAvgSpeed): New function.
  13905. * src/DownloadCommand.h
  13906. (sw): Removed.
  13907. * src/main.cc
  13908. (main): Added PREF_STARTUP_IDLE_TIME.
  13909. * src/PeerStat.h
  13910. (STATUS): Added REQUEST_IDLE.
  13911. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  13912. (getAvgDownloadSpeed): New function
  13913. (requestIdle): New function.
  13914. * src/SegmentMan.h
  13915. (SegmentEntryHandle): New type definition.
  13916. (SegmentEntries): Now holds SegmentEntryHandle.
  13917. (findSlowerSegmentEntry): New funtion.
  13918. * src/SegmentMan.cc
  13919. (save): Updated according to the changes in SegmentEntries.
  13920. (read): Updated according to the changes in SegmentEntries.
  13921. (FindSegmentEntryByIndex): Updated according to the changes in
  13922. SegmentEntries.
  13923. (FindSegmentEntryByCuid): Updated according to the changes in
  13924. SegmentEntries.
  13925. (checkoutSegment): Updated according to the changes in SegmentEntries.
  13926. (onNullBitfield): Updated according to the changes in SegmentEntries.
  13927. Renamed uitr as itr.
  13928. (findSlowerSegmentEntry): New function.
  13929. (getSegment): Updated according to the changes in SegmentEntries.
  13930. Added the feature that cancels the segment with slow server and fast
  13931. one takes it over.
  13932. (cancelSegment): Updated according to the changes in SegmentEntries.
  13933. (getDownloadLength): Updated according to the changes in
  13934. SegmentEntries.
  13935. (init): Assigned 0 to bitfield after deleting it.
  13936. * src/DownloadCommand.cc
  13937. (STARTUP_IDLE_TIME): Removed.
  13938. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  13939. * src/PeerChokeCommand.cc
  13940. (optUnchokingPeer): Updated according to the changes in Peer.
  13941. (ResetDelta): Removed.
  13942. (UploadFaster): Updated according to the changes in Peer.
  13943. (DownloadFaster): Updated according to the changes in Peer.
  13944. (execute): I clarify the meaning of "upload" and "download" here.
  13945. "upload" means the transfer from localhost to remote host.
  13946. "download" means the transfer from remote host to localhost.
  13947. Based on this rule, I swapped orderByUploadRate and
  13948. orderByDownloadRate.
  13949. * src/PeerInteractionCommand.cc
  13950. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  13951. (executeInternal): Removed the argument of
  13952. peerInteraction->sendMessages().
  13953. (receiveMessages): Rewritten download speed limit.
  13954. (sendKeepAlive): Removed peerInteraction->sendMessages().
  13955. * src/HttpResponseCommand.cc
  13956. (handleDefaultEncoding): If file size is unknown in torrent request,
  13957. do not call segmentMan->initBitfield() here.
  13958. Disabled persistent connection feature in torrent request.
  13959. * src/UrlRequestInfo.h
  13960. (UrlRequestInfo): Removed const qualifier from option.
  13961. * src/TorrentMan.h
  13962. (TransferStat): New class.
  13963. (deltaDownloadLength): Removed.
  13964. (deltaUploadLength): Removed.
  13965. (addDeltaDownloadLength): Removed.
  13966. (getDeltaDownloadLength): Removed.
  13967. (resetDeltaDownloadLength): Removed.
  13968. (addDeltaUploadLength): Removed.
  13969. (getDeltaUploadLength): Removed.
  13970. (resetDeltaUploadLength): Removed.
  13971. (addActivePeer): Added peer->activate().
  13972. (deleteActivePeer): Added peer->deactivate().
  13973. (calculateStat): New function.
  13974. * src/TorrentMan.cc
  13975. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  13976. (calculateStat): New function.
  13977. * src/PeerInteraction.h
  13978. (uploadLimit): Removed.
  13979. (option): New variable.
  13980. (setUploadLimit): Removed.
  13981. (getUploadSpeed): Removed.
  13982. (sendMessages): Removed the argument "currentUploadSpeed".
  13983. * src/PeerInteraction.cc
  13984. (prefs.h): Included.
  13985. (PeerInteraction): Removed uploadLimit. Added option.
  13986. (sendMessages): Rewritten upload speed limit.
  13987. (sendHandshake): Removed the argument from sendMessages().
  13988. (sendBitfield): Removed the argument from sendMessages().
  13989. * src/PeerAbstractCommand.cc
  13990. (execute): Commented out the portion of upload limit.
  13991. (onAbort): Removed peer->resetStatus().
  13992. * src/TorrentRequestInfo.cc
  13993. (timeoutSpecified): Declared extern.
  13994. (execute): Set timeout to 180 if timeout is not specified by.
  13995. command-line.
  13996. * src/PieceMessage.cc
  13997. (receivedAction): Added peer->updateDownloadLength().
  13998. Removed peer->addPeerUpload().
  13999. Removed torrentMan->addDeltaDownloadLength().
  14000. (send): Added peer->updateUploadLength().
  14001. Removed peer->addPeerDownload().
  14002. Removed torrentMan->addDeltaUploadLength().
  14003. * src/main.cc
  14004. (timeoutSpecified): New variable.
  14005. (main): Set timeoutSpecified to false.
  14006. If the command-line option "--upload-limit" is specified, then
  14007. timeoutSpecified is set to true. This option will remain in the next
  14008. release, but be deprecated in the future release.
  14009. * src/TorrentRequestInfo.h
  14010. (TorrentRequestInfo): Removed const qualifier from op.
  14011. * src/PeerStat.h
  14012. (uploadSpeed): New variable.
  14013. (PeerStat): Added default value to cuid.
  14014. (calculateUploadSpeed): New function.
  14015. (updateUploadLength): New function.
  14016. (getMaxUploadSpeed): New function.
  14017. (getAvgUploadSpeed): New function.
  14018. (reset): Added uploadSpeed. Set status to IDLE.
  14019. * src/TorrentDownloadEngine.h
  14020. (cp): Declared as Time.
  14021. (sessionDownloadLengthArray): Removed.
  14022. (sessionUploadLengthArray): Removed.
  14023. (currentCp): Removed.
  14024. (lastCalcStat): New variable
  14025. (lastElapsed): Removed.
  14026. (sessionDownloadLength): Removed.
  14027. (calculateStat): New function.
  14028. * src/TorrentDownloadEngine.cc
  14029. (initStatistics): Removed lastElapsed, cp[],
  14030. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  14031. currentCp, sessionDownloadLength.
  14032. Added cp.reset() and lastCalcStat.reset().
  14033. (calculateSpeed): Changed the name of the argument.
  14034. (calculateStatistics): Rewritten.
  14035. (calculateStat): New function.
  14036. * src/Peer.h
  14037. (PeerStat.h): Included.
  14038. (peerUpload): Removed.
  14039. (peerDownload): Removed.
  14040. (peerStat): New variable.
  14041. (sessionUploadLength): New variable.
  14042. (sessionDownloadLength): New variable.
  14043. (deltaUpload): Removed.
  14044. (deltaDownload): Removed.
  14045. (resetStatus): Made private.
  14046. (Peer): Added sessionUploadLength, sessionDownloadLength.
  14047. Removed peerUpload, peerDownload.
  14048. (updateUploadLength): New function.
  14049. (addDeltaUpload): Removed.
  14050. (updateDownloadLength): New function.
  14051. (resetDeltaUpload): Removed.
  14052. (getDeltaUpload): Removed.
  14053. (addDeltaDownload): Removed.
  14054. (calculateUploadSpeed): New function.
  14055. (resetDeltaDownload): Removed.
  14056. (getDeltaDownload): Removed.
  14057. (calculateDownloadSpeed): New function.
  14058. (getSessionUploadLength): New function.
  14059. (getSessionDownloadLength): New function.
  14060. (activate): New function.
  14061. (deactivate): New function.
  14062. (addPeerUpload): Removed.
  14063. (setPeerUpload): Removed.
  14064. (getPeerUpload): Removed.
  14065. (addPeerDownload): Removed.
  14066. (setPeerDownload): Removed.
  14067. (getPeerDownload): Removed.
  14068. * src/Peer.cc
  14069. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  14070. * src/MetalinkRequestInfo.h
  14071. (MetalinkRequestInfo): Removed const qualifier from op.
  14072. * src/RequestInfo.h
  14073. (op): Removed const qualifier.
  14074. (RequestInfo): Removed const qualifier from op.
  14075. * src/prefs.h
  14076. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  14077. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  14078. * src/PeerInteractionCommand.cc
  14079. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  14080. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  14081. * src/PeerInteraction.cc
  14082. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  14083. * src/main.cc
  14084. (showUsage): Updated the description of "--lowest-speed-limit" option.
  14085. Added the description of "--max-download-limit" option.
  14086. Removed the description of "--upload-limit" option.
  14087. Added the description of "--max-upload-limit" option.
  14088. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  14089. Added "--max-download-limit" option and "--max-upload-limit" option.
  14090. Added the warning message if "--upload-limit" option is used.
  14091. * src/DownloadCommand.cc
  14092. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  14093. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14094. To rewrite segment download mechanism for HTTP/FTP download.
  14095. Use BitfieldMan to manage segment download.
  14096. * src/HttpResponseCommand.h
  14097. (executeInternal): Pass the reference of segment.
  14098. * src/AbstractCommand.cc
  14099. (prepareForRetry): Call segmentMan->cancelSegment here.
  14100. (onAbort): Call segmentMan->cancelSegment here.
  14101. * src/HttpDownloadCommand.cc
  14102. (prepareForNextSegment): New function.
  14103. * src/DownloadEngineFactory.cc
  14104. (newConsoleEngine): Removed splitter.
  14105. (newTorrentConsoleEngine): Removed splitter.
  14106. * src/Request.h
  14107. (segment): Renamed from seg.
  14108. * src/FtpInitiateConnectionCommand.h
  14109. (executeInternal): Pass the reference of segment.
  14110. * src/AbstractCommand.h
  14111. (executeInternal): Pass the reference of segment.
  14112. * src/pref.h
  14113. (PREF_SEGMENT_SIZE): New definition.
  14114. * src/HttpProxyRequestCommand.h
  14115. (executeInternal): Pass the reference of segment.
  14116. * src/HttpResponseCommand.cc
  14117. (checkResponse): Allowed status 206 when a request range starts 0.
  14118. (handleDefaultEncoding): Rewritten the code related to Segment.
  14119. (handleOtherEncoding): Rewritten the code related to Segment.
  14120. * src/SegmentMan.h
  14121. (SegmentEntry): New class.
  14122. (SegmentEntries): New type definition.
  14123. (bitfield): New variable.
  14124. (usedSegmentEntries): New variable.
  14125. (onNullBitfield): New function.
  14126. (checkoutSegment): New function.
  14127. (segments): Removed.
  14128. (splitter): Removed.
  14129. (unregisterId): Removed.
  14130. (getSegment): New function(overload)
  14131. (getDownloadedSize): Removed.
  14132. (cancelSegment): New function.
  14133. (completeSegment): New function.
  14134. (initBitfield): New function.
  14135. (hasSegment): New function.
  14136. (getDownloadLength): New function.
  14137. * src/BitfieldMan.h
  14138. (getStartIndex): New function.
  14139. (getEndIndex): New function.
  14140. (getMissingUnusedIndex): New function(overload).
  14141. (getSparseMissingUnusedIndex): New function.
  14142. * src/BitfieldMan.cc
  14143. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  14144. (getMissingUnusedIndex): New function(overload).
  14145. (Range): New class.
  14146. (getStartIndex): New function.
  14147. (getEndIndex): New function.
  14148. (getSparseMissingUnusedIndex): New function.
  14149. (isBitSetInternal): Return false if the given index is less than 0.
  14150. * src/HttpInitiateConnectionCommand.h
  14151. (executeInternal): Pass the reference of segment.
  14152. * src/FtpNegotiateCommand.h
  14153. (executeInternal): Pass the reference of segment.
  14154. * src/FtpNegotiateCommand.cc
  14155. (recvSize): Initialize bitfield here.
  14156. * src/FtpTunnelResponseCommand.h
  14157. (executeInternal): Pass the reference of segment.
  14158. * src/HttpConnection.cc
  14159. (createRequest): Rewritten range header processing.
  14160. * src/DownloadCommand.h
  14161. (executeInternal): Pass the reference of segment.
  14162. (prepareForRetry): Removed.
  14163. (prepareForNextSegment): Added an argument segment. Made it a virtual
  14164. function.
  14165. * src/main.cc
  14166. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  14167. * src/SegmentMan.cc
  14168. (SegmentMan): Added bitfield. Removed splitter.
  14169. (~SegmentMan): Added bitfield. Removed splitter.
  14170. (unregisterId): Removed.
  14171. (getSegment): Rewritten.
  14172. (updateSegment): Rewritten.
  14173. (save): Rewritten.
  14174. (read): Rewritten.
  14175. (finished): Rewritten.
  14176. (getDownloadedSize): Removed.
  14177. (initBitfield): New function.
  14178. (FindSegmentEntryByIndex): New function object.
  14179. (FindSegmentEntryByCuid): New function object.
  14180. (checkoutSegment): New function.
  14181. (onNullBitfield): New function.
  14182. (getSegment): New function(overload).
  14183. (CancelSegment): New function object.
  14184. (cancelSegment): New function.
  14185. (completeSegment): New function.
  14186. (hasSegment): New function.
  14187. (getDownloadLength): New function.
  14188. * src/FtpInitiateConnectionCommand.cc
  14189. (executeInternal): Load .aria2 file after hostname resolution finishes.
  14190. * src/Segment.h: Rewritten.
  14191. * src/Segment.cc (operator<<): New function.
  14192. * src/HttpDownloadCommand.h
  14193. (prepareForNextSegment): New function.
  14194. * src/Request.cc
  14195. (resetUrl): Made segment null.
  14196. * src/DownloadEngine.cc
  14197. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  14198. * src/HttpProxyRequestCommand.h
  14199. (executeInternal): Pass the reference of segment.
  14200. * src/DownloadCommand.cc
  14201. (executeInternal): Rewritten the code related to Segment.
  14202. (prepareForRetry): Removed.
  14203. (prepareForNextSegment): Rewritten.
  14204. * src/FtpTunnelResponseCommand.h
  14205. (executeInternal): Pass the reference of segment.
  14206. To add HTTP 1.1 persistent connection support(experimental)
  14207. * src/HttpRequestCommand.cc
  14208. (executeInternal): Disable keep alive if it is disabled by
  14209. configuration.
  14210. * src/Request.h
  14211. (keepAlive): New variable.
  14212. (isKeepAlive): New function.
  14213. (setKeepAlive): New function.
  14214. * src/pref.h
  14215. (PREF_HTTP_KEEP_ALIVE): New definition.
  14216. * src/HttpResponseCommand.cc
  14217. (executeInternal): Check the remote server supports keep alive.
  14218. * src/HttpConnection.cc
  14219. (createRequest): Send "Connection: close" only if keep alive is
  14220. disabled.
  14221. * src/main.cc
  14222. (main):
  14223. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  14224. To add max download speed limit:
  14225. * src/pref.h
  14226. (PREF_MAX_SPEED_LIMIT): New definition.
  14227. * src/PeerInteractionCommand.cc
  14228. (executeInternal): Added max download speed limit. Not tested yet.
  14229. * src/SegmentMan.h
  14230. (PeerStats): New type definition.
  14231. (peerStats): New variable.
  14232. (registerPeerStat): New function.
  14233. (FindPeerStat): New function object.
  14234. (getPeerStat): New function.
  14235. (calculateDownloadSpeed): New function.
  14236. * src/SpeedCalc.h: New class.
  14237. * src/SpeedCalc.cc: New class.
  14238. * src/main.cc
  14239. (main):
  14240. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  14241. download speed is not restricted).
  14242. * src/PeerStat.h: New class.
  14243. * src/SegmentMan.cc
  14244. (registerPeerStat): New function.
  14245. (calculateDownloadSpeed): New function.
  14246. * src/DownloadCommand.cc
  14247. (STARTUP_IDLE_TIME): New definition.
  14248. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  14249. downloadStart.
  14250. (~DownloadCommand): Call peerStat->downloadStop.
  14251. (executeInternal): Added download speed limitter. Rewritten lowest
  14252. speed limitter.
  14253. * src/HttpConnection.cc
  14254. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  14255. * src/AbstractCommand.cc
  14256. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  14257. Added hostname to the error message.
  14258. * src/ConsoleDownloadEngine.cc
  14259. (calculateStatistics): Initialize psize with dlSize.
  14260. * src/PieceMessage.cc
  14261. (receivedAction): Do not call peerInteraction->abortPiece here.
  14262. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  14263. * src/BitfieldMan.h
  14264. (clearAllUseBit): New function.
  14265. (setAllUseBit): New function.
  14266. * src/BitfieldMan.cc
  14267. (clearAllBit): Do not clear useBitfield here.
  14268. (clearAllUseBit): New function.
  14269. (setAllUseBit): New function.
  14270. * src/Piece.cc
  14271. (clearAllBlock): Call bitfield->clearAllUseBit().
  14272. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14273. To make filename URL-decoded:
  14274. * src/HttpResponseCommand.h: Updated doc.
  14275. * src/HttpResponseCommand.cc
  14276. (determinFilename): Made filename URL-decoded.
  14277. * src/FtpInitiateConnectionCommand.cc
  14278. (executeInternal): Made filename URL-decoded.
  14279. * src/Util.h (urldecode): New function.
  14280. * src/Util.cc (urldecode): New function.
  14281. To fix a bug that caused assertion failure in ares_strerror:
  14282. * src/NameResolver.cc (callback): Fixed the bug.
  14283. * Release 0.7.3
  14284. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14285. To add --seed-time and --seed-ratio command-line option:
  14286. * src/Option.h (getAsDouble): New function.
  14287. * src/Option.cc (getAsDouble): New function.
  14288. * src/SeedCheckCommand.h: New class.
  14289. * src/SeedCheckCommand.cc: New class.
  14290. * src/DownloadEngineFactory.cc
  14291. (SeedCheckCommand.h): Included.
  14292. (UnionSeedCriteria.h): Included.
  14293. (TimeSeedCriteria.h): Included.
  14294. (ShareRatioSeedCriteria.h): Included.
  14295. (newTorrentConsoleEngine): Added the processing of seed option.
  14296. * src/SeedCriteria.h: New class.
  14297. * src/ShareRatioSeedCriteria.h: New class.
  14298. * src/TimeSeedCriteria.h: New class.
  14299. * src/UnionSeedCriteria.h: New class.
  14300. * src/prefs.h
  14301. (PREF_SEED_TIME): New definition.
  14302. (PREF_SEED_RATIO): New definition.
  14303. * src/main.cc
  14304. (showUsage): Added --seed-time and --seed-ratio option.
  14305. (main): Added --seed-time and --seed-ratio option.
  14306. Made default log file name "/dev/null".
  14307. * src/SharedHandle.h
  14308. (SharedHandle): Copy constructor. Made it assignable from the
  14309. SharedHandle of the subclasses.
  14310. (operator=): Made it assignable from the SharedHandle of the
  14311. subclasses.
  14312. (getRefCount): New function.
  14313. To add notice log level and the switch to write log to stdout. This
  14314. switch is configurable per log level.
  14315. * src/Logger.h
  14316. (notice): New function.
  14317. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  14318. constant.
  14319. * src/LogFactory.cc
  14320. (getInstance): The use of NullLogger was removed. A log message with
  14321. notice log level was made written to stdout along with log file.
  14322. * src/NullLogger.h
  14323. (notice): New function.
  14324. * src/SimpleLogger.h
  14325. (writeHeader): Added the 'file' argument.
  14326. (writeLog): Added the 'file' argument.
  14327. (writeFile): New function.
  14328. (stdoutField): New variable.
  14329. (SimpleLogger): Removed the default constructor.
  14330. (SimpleLogger): Made the default value of logfile 0.
  14331. (debug): Added 'virtual' keyword.
  14332. (info): Added 'virtual' keyword.
  14333. (warn): Added 'virtual' keyword.
  14334. (error): Added 'virtual' keyword.
  14335. (notice): New function.
  14336. (setStdout): New function.
  14337. * src/SimpleLogger.cc
  14338. (WRITE_LOG): Replaced writeLog with writeFile.
  14339. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  14340. (SimpleLogger): Removed the default constructor.
  14341. (setStdout): New function.
  14342. (writeLog): Added the handling of NOTICE log level.
  14343. (writeFile): New function.
  14344. (notice): New function.
  14345. * src/TorrentMan.h: Updated doc.
  14346. * src/BitfieldMan.h: Updated doc.
  14347. * src/TrackerWatcherCommand.cc
  14348. (execute): Return true if error occurred in the request to the tracker
  14349. and halt is requested.
  14350. * src/TrackerUpdateCommand.cc
  14351. (execute): Return true if error occurred in the request to the tracker
  14352. and halt is requested.
  14353. To call onDownloadComplete from TorrentMan::completePiece(), not from
  14354. DownloadEngine:
  14355. * src/TorrentConsoleDownloadEngine.h
  14356. (onSelectiveDownloadingCompletes): Removed.
  14357. * src/TorrentConsoleDownloadEngine.cc
  14358. (onSelectiveDownloadingCompletes): Removed.
  14359. * src/TorrentDownloadEngine.h
  14360. (onEndOfRun): Added 'virtual' keyword.
  14361. (afterEachIteration): Removed.
  14362. (onSelectiveDownloadingCompletes): Removed.
  14363. * src/TorrentDownloadEngine.cc
  14364. (onEndOfRun): Removed filenameFixed.
  14365. (afterEachIteration): Removed.
  14366. * src/TorrentMan.cc
  14367. (completePiece): Call onDownloadComplete here.
  14368. (onDownloadComplete): Added 2 log messages.
  14369. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14370. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  14371. * src/NameResolver.h: Added the prototype declaration of callback().
  14372. To support c-ares library:
  14373. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14374. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14375. * src/FtpInitiateConnectionCommand.h:
  14376. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14377. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14378. * src/HttpInitiateConnectionCommand.h:
  14379. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14380. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  14381. Added thes upport of c-ares's ares_strerror(the idea came from patch
  14382. #1542285 by tizianomueller)
  14383. * src/HttpInitiateConnectionCommand.cc:
  14384. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14385. * src/FtpInitiateConnectionCommand.cc:
  14386. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14387. * src/DownloadEngine.h:
  14388. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14389. * src/DownloadEngine.cc:
  14390. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14391. To fix the bug that causes compilation failure with metalink-support
  14392. disabled(bug#1543587):
  14393. * src/main.cc: Fixed with the patch by tizianomueller.
  14394. * Release 0.7.2
  14395. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14396. * src/main.cc
  14397. (main): Added a message to inform users that aria2 is starting to
  14398. verify checksum.
  14399. * src/RequestInfo.cc
  14400. (printDownloadAbortMessage): Added a message to inform users that
  14401. transfer can be resumed.
  14402. * src/FeatureConfig.cc
  14403. (FEATURE_ASYNC_DNS): New definition.
  14404. (FeatureConfig): Added aysnc DNS entry.
  14405. To replace CommandUuid with Command* in SocketEntry and
  14406. NameResolverEntry:
  14407. * src/DownloadEngine.h
  14408. (CommandUuids): Removed.
  14409. (SocketEntry::commandUuid): Removed.
  14410. (SocketEntry::command): New variable.
  14411. (SocketEntry::SocketEntry): Updated.
  14412. (SocketEntry::operator==): Updated.
  14413. (NameResolverEntry::commandUuid): Removed.
  14414. (NameResolverEntry::command): New variable.
  14415. (NameResolverEntry::NameResolverEntry): Updated.
  14416. (NameResolverEntry::operator==): Updated.
  14417. (waitData): Changed the argument type.
  14418. (addSocketForReadCheck): Changed the argument type.
  14419. (deleteSocketForReadCheck): Changed the argument type.
  14420. (addSocketForWriteCheck): Changed the argument type.
  14421. (deleteSocketForWriteCheck): Changed the argument type.
  14422. (addNameResolverCheck): Changed the argument type.
  14423. (deleteNameResolverCheck): Changed the argument type.
  14424. * src/DownloadEngine.cc
  14425. (FindCommand): Removed.
  14426. (run): Removed activeUuid. Added activeCommands instead.
  14427. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  14428. (AccumulateActiveCommand): New function object.
  14429. (waitData): Use AccumulateActiveCommand.
  14430. (addSocketForReadCheck): Use Command instead of CommandUuid.
  14431. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  14432. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  14433. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  14434. (addNameResolverCheck): Use Command instead of CommandUuid.
  14435. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  14436. * src/AbstractCommand.cc
  14437. (disableReadCheckSocket): Updated according to the changes in
  14438. DownloadEngine.
  14439. (setReadCheckSocket): Updated according to the changes in
  14440. DownloadEngine.
  14441. (disableWriteCheckSocket): Updated according to the changes in
  14442. DownloadEngine.
  14443. (setWriteCheckSocket): Updated according to the changes in
  14444. DownloadEngine.
  14445. (setNameResolverCheck): Updated according to the changes in
  14446. DownloadEngine.
  14447. (disableNameResolverCheck): Updated according to the changes in
  14448. DownloadEngine.
  14449. * src/AbstractCommand.cc
  14450. (disableReadCheckSocket): Updated according to the changes in
  14451. DownloadEngine.
  14452. (setReadCheckSocket): Updated according to the changes in
  14453. DownloadEngine.
  14454. (disableWriteCheckSocket): Updated according to the changes in
  14455. DownloadEngine.
  14456. (setWriteCheckSocket): Updated according to the changes in
  14457. DownloadEngine.
  14458. * release 0.7.1
  14459. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14460. To handle the case where some BitTorrent tracker requires all letters
  14461. except for [A-Za-z0-9] is URL encoded.
  14462. * src/Util.h
  14463. (torrentUrlencode): New function.
  14464. * src/Util.cc
  14465. (ctype.h): Included.
  14466. (torrentUrlencode): New function.
  14467. * src/TrackerWatcherCommand.cc
  14468. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  14469. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14470. To add asynchronous DNS support(libares):
  14471. * src/AbstractCommand.h
  14472. (setNameResolverCheck): New function.
  14473. (disableNameResolverCheck): New function
  14474. (resolveHostname): New function.
  14475. * src/AbstractCommand.cc
  14476. (setNameResolverCheck): New function.
  14477. (disableNameResolverCheck): New function
  14478. (resolveHostname): New function.
  14479. * src/FtpInitiateConnectionCommand.h
  14480. (nameResolver): New function.
  14481. * src/FtpInitiateConnectionCommand.cc
  14482. (Util.h): Included.
  14483. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  14484. disableWriteCheckSocket.
  14485. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  14486. (executeInternal): Added async DNS support.
  14487. * src/HttpInitiateConnectionCommand.h
  14488. (nameResolver): New function.
  14489. * src/HttpInitiateConnectionCommand.cc
  14490. (DlRetryEx.h): Included.
  14491. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  14492. disableWriteCheckSocket.
  14493. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  14494. (executeInternal): Added async DNS support.
  14495. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  14496. by extern "C" declaration.
  14497. * src/NameResolver.cc: New class.
  14498. * src/Util.h:
  14499. (isNumberAndDotsNotation): New function
  14500. * src/Util.cc
  14501. (isNumberAndDotsNotation): New function.
  14502. * src/DownloadEngine.h
  14503. (NameResolver.h): Included.
  14504. (NameResolverEntry): New class.
  14505. (NameResolverEntries): New type definition.
  14506. (addNameResolverCheck): New function.
  14507. (deleteNameResolverCheck): New function.
  14508. * src/DownloadEngine.cc
  14509. (run): Initialize cp with 0.
  14510. (SetDescriptor::operator()): Added for NameResolverEntry.
  14511. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  14512. (waitData): Check nameResolver entries.
  14513. (updateFdSet): Update fds in nameResolver entries.
  14514. (addNameResolverCheck): New function.
  14515. (deleteNameResolverCheck): new function.
  14516. * src/PeerInteractionCommand.cc
  14517. (executeInternal): Fixed wrong socket handling.
  14518. * src/main.cc
  14519. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  14520. * src/Util.cc
  14521. (fileChecksum): Removed the call to ctx.digestReset().
  14522. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14523. * po/ru.po: Azamat sent me Russian translation.
  14524. * src/FtpNegotiateCommand.cc
  14525. (recvGreeting): Call disableWriteCheckSocket just after
  14526. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  14527. (recvRetr): Recognized status code 125 as a acceptable response code.
  14528. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  14529. case-insesitive filesystem(BUG#1531057).
  14530. * src/Time.h: Renamed as TimeA2.h.
  14531. * src/Time.cc: Renamed as TimeA2.cc.
  14532. * src/TimeA2.h: New class.
  14533. * src/TimeA2.cc: New class.
  14534. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  14535. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  14536. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  14537. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  14538. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  14539. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  14540. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  14541. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  14542. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  14543. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  14544. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  14545. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  14546. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  14547. * release 0.7.0
  14548. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14549. * src/PeerChokeCommand.h
  14550. (PeerChokeCommand): Rearranged the arguments.
  14551. * src/PeerChokeCommand.cc
  14552. (PeerChokeCommand): Rearranged the arguments.
  14553. * src/MetalinkEntry.h
  14554. (Checksum.h): Included.
  14555. (md5): Removed.
  14556. (sha1): Removed.
  14557. (checksum): New variable.
  14558. (operator=): Updated.
  14559. (check): Removed.
  14560. * src/prefs.h
  14561. (PREF_LOWEST_SPEED_LIMIT): New definition.
  14562. (PREF_FOLLOW_TORRENT): New definition.
  14563. (PREF_SELECT_FILE): New definition.
  14564. (PREF_FOLLOW_METALINK): New definition.
  14565. * src/MetalinkResource.h
  14566. (TYPE_HTTPS): Added to enum TYPE.
  14567. * src/TorrentMan.cc
  14568. (~TorrentMan): Rewritten.
  14569. * src/MultiDiskWriter.cc
  14570. (MultiDiskAdaptor): Updated according to the changes in
  14571. MessageDigestContext.
  14572. (~MultiDiskAdaptor): Updated according to the changes in
  14573. MessageDigestContext.
  14574. (hashUpdate): Updated according to the changes in MessageDigestContext.
  14575. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14576. * src/Util.h
  14577. (fileChecksum): Updated according to the changes in
  14578. MessageDigestContext.
  14579. * src/Util.cc
  14580. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14581. (fileChecksum): Updated according to the changes in
  14582. MessageDigestContext.
  14583. * src/messageDigest.h: Rewritten.
  14584. * src/MetalinkEntry.cc
  14585. (check): Removed.
  14586. (Supported): Updated.
  14587. (dropUnsupportedResource): Fixed a memory leak.
  14588. * src/ShaVisitor.cc
  14589. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  14590. (~ShaVisitor): Updated according to the changes in
  14591. MessageDigestContext.
  14592. (visit): Updated according to the changes in MessageDigestContext.
  14593. * src/main.cc
  14594. (main): Rewritten the portion of download loop. --lowest-speed-limit
  14595. command-line option added.
  14596. * src/DownloadEngine.h
  14597. (SocketEntry): New class.
  14598. (SocketEntries): New definition.
  14599. (PairFind): Removed.
  14600. (SockCmdMap): Removed.
  14601. * src/DownloadEngine.cc
  14602. (DownloadEngine): Rewritten.
  14603. (~DownloadEngine): Rewritten.
  14604. (run): Renamed activeCommandUuids as activeUuids.
  14605. (SetDescriptor): Rewritten.
  14606. (AccumulateActiveCommandUuid): Removed.
  14607. (AccumulateActiveUuid): New function object.
  14608. (waitData): Rewritten.
  14609. (updateFdSet): Rewritten.
  14610. (addSocket): Rewritten.
  14611. (deleteSocket): Rewritten.
  14612. (addSocketForReadCheck): Rewritten.
  14613. (deleteSocketForReadCheck): Rewritten.
  14614. (addSocketForWriteCheck): Rewritten.
  14615. (deleteSocketForWriteCheck): Rewritten.
  14616. * src/Xml2MetalinkProcessor.cc
  14617. (getEntry): Rewritten the portion of MetalinkEntry creation.
  14618. * src/DownloadCommand.cc
  14619. (executeInternal): Added the check routine for lowest speed limit.
  14620. * src/AbstractDiskWriter.cc
  14621. (AbstractDiskWriter): Updated according to the changes in
  14622. MessageDigestContext.
  14623. (~AbstractDiskWriter): Updated according to the changes in
  14624. MessageDigestContext.
  14625. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14626. * src/RequestInfo.h: New class.
  14627. * src/UrlRequestInfo.h: New class.
  14628. * src/UrlRequestInfo.cc: New class.
  14629. * src/TorrentRequestInfo.h: New class.
  14630. * src/TorrentRequestInfo.cc: New class.
  14631. * src/MetalinkRequestInfo.h: New class.
  14632. * src/MetalinkRequestInfo.cc: New class.
  14633. * src/Checksum.h: New class.
  14634. * src/DownloadEngineFactory.h: New class.
  14635. * src/DownloadEngineFactory.cc: New class.
  14636. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14637. * src/Option.h
  14638. (getAsBool): New function.
  14639. * src/Option.cc
  14640. (prefs.h): Included.
  14641. (defined): 0-length value is now recognized as undefined.
  14642. (getAsInt): Rewritten.
  14643. (getAsLLInt): Rewritten.
  14644. (getAsBool): New function.
  14645. * src/FeatureConfig.h: Rewritten.
  14646. * src/FeatureConfig.cc: Rewritten.
  14647. * src/prefs.h
  14648. (PREF_STDOUT_LOG): New definition.
  14649. (PREF_LOG): New definition.
  14650. (PREF_DIR): New definition.
  14651. (PREF_OUT): New definition.
  14652. (PREF_SPLIT): New definition.
  14653. (PREF_DAEMON): New definition.
  14654. (PREF_REFERER): New definition.
  14655. (PREF_TORRENT_FILE): New definition.
  14656. (PREF_LISTEN_PORT): New definition.
  14657. (PREF_METALINK_FILE): New definition.
  14658. (PREF_METALINK_VERSION): New definition.
  14659. (PREF_METALINK_LANGUAGE): New definition.
  14660. (PREF_METALINK_OS): New definition.
  14661. (PREF_METALINK_SERVERS): New definition.
  14662. * src/main.cc
  14663. (main): Following command-line parameters are now put into Option
  14664. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  14665. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  14666. metalinkLanguage, metalinkOs, metalinkServers
  14667. To fix the bug that aria2 can not handle http response header properly.
  14668. * src/HttpHeader.cc
  14669. (put): Made name lowercased.
  14670. (defined): Made name lowercased.
  14671. (getFirst): Made name lowercased.
  14672. (get): Made name lowercased.
  14673. (getFirstAsInt): Rewritten.
  14674. (getFirstAsLLInt): Rewritten.
  14675. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14676. * src/TorrentMan.h:
  14677. (advertisePiece): Updated doc.
  14678. (getAdvertisedPieceIndexes): Updated doc.
  14679. (removeAdvertisedPiece); New function.
  14680. * src/TorrentMan.cc
  14681. (FindElapsedHave): New function object.
  14682. (removeAdvertisedPiece): New function.
  14683. * src/HaveEraseCommand.h: New class.
  14684. * src/HaveEraseCommand.cc: New class.
  14685. * src/FeatureConfig.h: New class.
  14686. * src/FeatureConfig.cc: New class.
  14687. * src/Request.h
  14688. (defaultPorts): Removed.
  14689. * src/Request.cc
  14690. (FeatureConfig.h): Included.
  14691. (Request): Removed the statements related to defaultPorts.
  14692. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  14693. A default port number is now retrieved from FeatureConfig.
  14694. * src/main.cc
  14695. (HaveEraseCommand.h): Included.
  14696. (showVersion): Added the output of feature list.
  14697. (main): Added HaveEraseCommand to command queue in BitTorrent
  14698. downloading.
  14699. * src/PeerInteractionCommand.h
  14700. (chokeCheckPoint): Commented out.
  14701. (periodicExecPoint): New variable.
  14702. * src/PeerInteractionCommand.cc
  14703. (executeInternal): Following methods are now called in at least every
  14704. 0.5 seconds to reduce CPU usage:
  14705. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  14706. checkHave(), sendKeepAlive().
  14707. (checkLongTimePeerChoking): Commented out.
  14708. * src/BitfieldMan.h
  14709. (getNthBitIndex): Changed the method signature.
  14710. (getMissingIndexRandomly): Changed the method signature.
  14711. * src/BitfieldMan.cc
  14712. (getNthBitIndex): Rewritten
  14713. (getMissingIndexRandomly): Rewritten.
  14714. (hasMissingPiece): Rewritten.
  14715. (getMissingIndex): Refactored.
  14716. (getMissingUnusedIndex); Refactored.
  14717. (getMissingIndex): Refactored.
  14718. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14719. * src/PeerMessage.h
  14720. (Piece.h): Included.
  14721. (SharedHandle.h): Included.
  14722. (invalidate): New variable.
  14723. (uploading): New variable.
  14724. (isInvalidate): New function.
  14725. (isUploading): New function.
  14726. (onPush): New function.
  14727. (onChoked): New function.
  14728. (onCanceled): New function.
  14729. (onAbortPiece): New function.
  14730. (PeerMessageHandle): New type definition.
  14731. * src/PeerMessage.cc
  14732. (PeerMessage): Added the initialization for invalidate and uploading.
  14733. * src/CancelMessage.h
  14734. (CancelMessage): Rewritten.
  14735. * src/RejectMessage.h
  14736. (RejectMessage): Rewritten.
  14737. * src/Metalinker.h
  14738. (operator=): Defined.
  14739. * src/MetaEntry.h
  14740. (operator=): Defined.
  14741. * src/MetalinkResource.h
  14742. (operator=): Defined.
  14743. * src/AllowedFastMessage.h
  14744. (AllowedFastMessage): Rewritten.
  14745. * src/HandshakeMessage.h
  14746. (HandshakeMessage): New function(overload).
  14747. * src/HandshakeMessage.cc
  14748. (HandshakeMessage): Rewritten.
  14749. (init): New function.
  14750. * src/HaveMessage.h
  14751. (HaveMessage): Rewritten.
  14752. * src/Time.h
  14753. (operator=): Defined the function body here.
  14754. * src/Time.cc
  14755. (operator=): Removed.
  14756. * src/SocketCore.h
  14757. (operator==): Defined here.
  14758. (operator!=): Defined here.
  14759. (operator<): Defined here.
  14760. * src/SocketCore.cc
  14761. (operator==): Removed.
  14762. (operator<): Removed.
  14763. * src/BitfieldMan.h
  14764. (operator=): Defined the function body here.
  14765. * src/BitfieldMan.cc
  14766. (operator=): Removed.
  14767. * src/TorrentMan.h
  14768. (deleteErrorPeer): Removed.
  14769. (deleteUnusedPeer); New function.
  14770. * src/TorrentMan.cc
  14771. (addPeer): Call deleteUnusedPeer.
  14772. (deleteErrorPeer): Removed.
  14773. (deleteUnusedPeer): New function.
  14774. * src/PeerAbstractCommand.h
  14775. (setNoCheck): New function.
  14776. (noCheck): New variable.
  14777. * src/PeerAbstractCommand.cc
  14778. (PeerAbstractCommand): Added the initialization of noCheck.
  14779. (execute): Added a check for noCheck.
  14780. (setNoCheck): New function.
  14781. * src/Util.h
  14782. (stdio.h): Included.
  14783. * src/Util.cc
  14784. (unistd.h): Included.
  14785. * src/DefaultDiskWriter.cc
  14786. (unistd.h): Included.
  14787. * src/Peer.h
  14788. (operator==): Defined the function body here.
  14789. (operator!=): Defined the function body here.
  14790. * src/Peer.cc
  14791. (operator==): Removed.
  14792. (operator!=): Removed.
  14793. * src/Piece.h
  14794. (Piece): Defined the function body here(copy constructor).
  14795. (operator=): Defined the function body here.
  14796. (operator==): Defined the function body here.
  14797. * src/Piece.cc
  14798. (Piece): Removed(copy constructor).
  14799. (operator=): Removed.
  14800. (operator==): Removed.
  14801. * src/PeerMessageUtil.h
  14802. (ChokeMessage.h): Removed.
  14803. (UnchokeMessage.h): Removed.
  14804. (InterestedMessage.h): Removed.
  14805. (NotInterestedMessage.h): Removed.
  14806. (HaveMessage.h): Removed.
  14807. (BitfieldMessage.h): Removed.
  14808. (RequestMessage.h): Removed.
  14809. (CancelMessage.h): Removed.
  14810. (PieceMessage.h): Removed.
  14811. (HandshakeMessage.h): Removed.
  14812. (KeepAliveMessage.h): Removed.
  14813. (PortMessage.h): Removed.
  14814. (HaveAllMessage.h): Removed.
  14815. (HaveNoneMessage.h): Removed.
  14816. (PeerConnection.h): Removed.
  14817. (HandshakeMessage.h): Included.
  14818. * src/BitfieldMessage.h
  14819. (init): New function.
  14820. (BitfieldMessage): Rewritten.
  14821. (BitfieldMessage): New function(overload).
  14822. * src/RequestSlot.h
  14823. (operator=): Defined the function body here.
  14824. (operator==): Defined the function body here.
  14825. * src/RequestSlot.cc
  14826. (operator=): Removed.
  14827. (operator==): Removed.
  14828. To remove the dependency on the PeerMessage subclass from
  14829. PeerInteraction:
  14830. * src/PeerMessageFactory.h: New class.
  14831. * src/PeerMessageFactory.cc: New class.
  14832. * src/SimplePeerMessage.cc
  14833. (send): If invalidate is true then do nothing.
  14834. * src/PeerInteractionCommand.cc
  14835. (HandshakeMessage.h): Included.
  14836. (KeepAliveMessage.h): Included.
  14837. (ChokeMessage.h): Included.
  14838. (UnchokeMessage.h): Included.
  14839. (HaveMessage.h): Included.
  14840. (executeInternal): Call setNoCheck().
  14841. Removed setWriteCheckSocket(socket).
  14842. * src/PeerInteraction.h
  14843. (ChokeMessage.h): Removed.
  14844. (UnchokeMessage.h): Removed.
  14845. (InterestedMessage.h): Removed.
  14846. (NotInterestedMessage.h): Removed.
  14847. (HaveMessage.h): Removed.
  14848. (BitfieldMessage.h): Removed.
  14849. (RequestMessage.h): Removed.
  14850. (CancelMessage.h): Removed.
  14851. (PieceMessage.h): Removed.
  14852. (HandshakeMessage.h): Removed.
  14853. (KeepAliveMessage.h): Removed.
  14854. (PortMessage.h): Removed.
  14855. (HaveAllMessage.h): Removed.
  14856. (HaveNoneMessage.h): Removed.
  14857. (RejectMessage.h): Removed.
  14858. (AllowedFastMessage.h): Removed.
  14859. (SuggestPieceMessage.h): Removed.
  14860. (PeerMessageFactory.h): Included.
  14861. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  14862. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  14863. (PeerMessageFactory): New variable.
  14864. (createPeerMessage): Removed.
  14865. (createHandshakeMessage): Removed.
  14866. (setPeerMessageCommonProperty): Removed.
  14867. (addRequestSlot): New function.
  14868. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14869. (getPeerMessageFactory): New function.
  14870. (createRequestMessage): Removed.
  14871. (createCancelMessage): Removed.
  14872. (createPieceMessage): Removed.
  14873. (createHaveMessage): Removed.
  14874. (createChokeMessage): Removed.
  14875. (createUnchokeMessage): Removed.
  14876. (createInterestedMessage): Removed.
  14877. (createNotInterestedMessage): Removed.
  14878. (createBitfieldMessage): Removed.
  14879. (createKeepAliveMessage): Removed.
  14880. (createHaveAllMessage): Removed.
  14881. (createHaveNoneMessage): Removed.
  14882. (createRejectMessage): Removed.
  14883. (createAllowedFastMessage): Removed.
  14884. * src/PeerInteraction.cc
  14885. (PeerInteraction): Allocate PeerMessageFactory here.
  14886. (~PeerInteraction): Deallocate PeerMessageFactory here.
  14887. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  14888. PieceMessage::ID.
  14889. (addMessage): Simplified by using PeerMessage::onPush().
  14890. (addRequestSlot): New function.
  14891. (rejectAllPieceMessageInQueue): Simplified by using
  14892. PeerMessage::onChoked().
  14893. (rejectPieceMessageInQueue): Simplified by using
  14894. PeerMessage::onCanceled().
  14895. (abortPiece): Simplified by using PeerMessage::abortPiece().
  14896. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14897. (createHandshakeMessage): Removed.
  14898. (createPeerMessage): Removed.
  14899. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  14900. (setPeerMessageCommonProperty): Removed.
  14901. (createRequestMessage): Removed.
  14902. (createCancelMessage): Removed.
  14903. (createPieceMessage): Removed.
  14904. (createHaveMessage): Removed.
  14905. (createChokeMessage): Removed.
  14906. (createUnchokeMessage): Removed.
  14907. (createInterestedMessage): Removed.
  14908. (createNotInterestedMessage): Removed.
  14909. (createBitfieldMessage): Removed.
  14910. (createKeepAliveMessage): Removed.
  14911. (createHaveAllMessage): Removed.
  14912. (createHaveNoneMessage): Removed.
  14913. (createRejectMessage): Removed.
  14914. (createAllowedFastMessage): Removed.
  14915. * src/PieceMessage.h
  14916. (createRejectMessage): New function.
  14917. (PieceMessage): Rewritten.
  14918. (onChoked): New function.
  14919. (onCanceled): New function.
  14920. * src/PieceMessage.cc
  14921. (send): If invalidate is true then do nothing, just return.
  14922. (createRejectMessage): New function.
  14923. (onChoked): New function.
  14924. (onCanceled): New function.
  14925. * src/RequestMessage.h
  14926. (RequestMessage): Rewritten.
  14927. (onPush): New function.
  14928. (onAbortPiece): New function.
  14929. * src/RequestMessage.cc
  14930. (onPush): New function.
  14931. (onAbortPiece): New function.
  14932. Update fd_set when a socket is added or deleted in order to improve
  14933. performance:
  14934. * src/DownloadEngine.h
  14935. (rfdset): New variable.
  14936. (wfdset): New variable.
  14937. (updateFdSet): New function.
  14938. * src/DownloadEngine.cc
  14939. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  14940. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  14941. (waitData): Copy rfdset and wfdset.
  14942. (updateFdSet): New function.
  14943. (addSocket): Call updateFdSet.
  14944. (deleteSocket): Call updateFdSet.
  14945. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14946. To add the support for Metalink3.0 backward compatible links:
  14947. * src/Request.h
  14948. (SAFE_CHARS): Added '#'.
  14949. (METALINK_MARK): New definition.
  14950. * src/Request.cc
  14951. (parseUrl): Added the support for Metalink3.0 backward compatible
  14952. links.
  14953. etc
  14954. * src/PeerInteraction.cc
  14955. (MsgPushBack): Removed.
  14956. (sendMessages): Use STL copy and back_inserter.
  14957. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  14958. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  14959. * src/TorrentMan.h
  14960. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  14961. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14962. * src/SharedHandle.h: New class.
  14963. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  14964. * src/HttpResponseCommand.h
  14965. (HttpResponseCommand): Wrapped Socket.
  14966. * src/SocketCore.h
  14967. (operator==): New function.
  14968. (operator!=): New function.
  14969. (operator<): New function.
  14970. (getSockfd): New function.
  14971. (isOpen): New function.
  14972. (writeData): New function.
  14973. * src/SocketCore.cc
  14974. (operator==): New function.
  14975. (operator!=): New function.
  14976. (operator<): New function.
  14977. * src/AbstractCommand.h
  14978. (socket): Changed its type to SocketHandle.
  14979. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14980. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14981. (disableReadCheckSocket): New function.
  14982. (disableWriteCheckSocket): New function.
  14983. (readCheckTarget): Changed its type to SocketHandle.
  14984. (writeCheckTarget): Changed its type to SocketHandle.
  14985. (AbstractCommand): Replaced Socket with SocketHandle.
  14986. * src/AbstractCommand.cc
  14987. (AbstractCommand): Replaced Socket with SocketHandle.
  14988. (~AbstractCommand): Removed the deallocation for Socket object.
  14989. (disableReadCheckSocket): New function.
  14990. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14991. (disableWriteCheckSocket): New function.
  14992. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14993. * src/HttpDownloadCommand.cc
  14994. (DownloadCommand): Replaced Socket with SocketHandle.
  14995. * src/PeerAbstractCommand.h
  14996. (socket): Changed its type to SocketHandle.
  14997. (peer): Changed its type to PeerHandle.
  14998. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14999. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15000. (disableReadCheckSocket): New function.
  15001. (disableWriteCheckSocket): New function.
  15002. (readCheckTarget): Changed its type to SocketHandle.
  15003. (writeCheckTarget): Changed its type to SocketHandle.
  15004. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  15005. Replaced Peer with PeerHandle.
  15006. * src/HttpRequestCommand.cc
  15007. (HttpRequestCommand): Replaced Socket with SocketHandle.
  15008. Use disableReadCheckSocket.
  15009. * src/PeerInitiateConnectionCommand.h
  15010. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  15011. * src/PeerChokeCommand.cc
  15012. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  15013. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  15014. (execute): Use PeerHandle.
  15015. * src/PeerConnection.h
  15016. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  15017. (socket): Changed its type to SocketHandle.
  15018. (PeerConnection): Replaced Socket with SocketHandle.
  15019. * src/PeerConnection.cc
  15020. (PeerConnection): Replaced Socket with SocketHandle.
  15021. * src/PeerInteractionCommand.h
  15022. (PeerInteractionCommand): Replaced socket with SocketHandle.
  15023. Replaced Peer with PeerHandle.
  15024. * src/PeerInteractionCommand.cc
  15025. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  15026. Replaced Peer with PeerHandle.
  15027. (executeInternal): Use disableWriteCheckSocket.
  15028. Use HandshakeMessageHandle.
  15029. (receiveMessages): Use PeerMessageHandle.
  15030. (prepareForNextPeer): Use PeerHandle.
  15031. * src/HttpProxyRequestCommand.h
  15032. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15033. * src/HttpResponseCommand.cc
  15034. (HttpResponseCommand): Replaced Socket with SocketHandle.
  15035. * src/TorrentMan.cc
  15036. (nullPeer): Added external reference.
  15037. (~TorrentMan): Removed the deallocation of the elements of peers.
  15038. (addPeer): Rewritten.
  15039. (isPeerAvailable): Use nullPeer.
  15040. (deleteOldpeers): Replaced with deleteErrorPeer.
  15041. (deleteErrorPeer): New function.
  15042. (getPeer): Use PeerHandle and nullPeer.
  15043. (hasMissingPiece): Replaced Peer with PeerHandle.
  15044. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  15045. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  15046. (getMissingFastPiece): Replaced Peer with PeerHandle.
  15047. (getMissingPiece): Replaced Peer with PeerHandle.
  15048. * src/FtpNegotiateCommand.cc
  15049. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  15050. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  15051. (recvGreeting): Use disableWriteCheckSocket.
  15052. (recvPasv): Removed the allocation of Socket.
  15053. Use disableReadCheckSocket.
  15054. (sendRestPasv): Use disableWriteCheckSocket.
  15055. (recvRetr): Changed assertion.
  15056. * src/PeerInteraction.h
  15057. (SharedHandle.h): Included SharedHandle.h.
  15058. (PeerMessageHandle): New type definition.
  15059. (HandshakeMessageHandle): New type definition.
  15060. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  15061. (peer): Changed its type to PeerHandle.
  15062. (createHandshakeMessage): Replaced HandshakeMessage with
  15063. HandshakeMessageHandle.
  15064. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  15065. (PeerInteraction): Replaced Peer with PeerHandle.
  15066. Replaced Socket with SocketHandle.
  15067. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  15068. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  15069. (receiveHandshake): Replaced HandshakeMessage with
  15070. HandshakeMessageHandle.
  15071. * src/PeerInteraction.cc
  15072. (PeerInteraction): Replaced Peer with PeerHandle.
  15073. Replaced Socket with SocketHandle.
  15074. (~PeerInteraction): Removed the deallocation of the elements of
  15075. messageQueue.
  15076. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  15077. (isSendingMessageInProgress): Replaced PeerMessage with
  15078. PeerMessageHandle.
  15079. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  15080. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  15081. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  15082. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  15083. (abortPiece): Use PeerMessageHandle.
  15084. (receiveHandshake): Replaced HandshakeMessage with
  15085. HandshakeMessageHandle. Removed try-catch block.
  15086. (createHandshakeMessage): Replaced HandshakeMessage with
  15087. HandshakeMessageHandle.
  15088. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  15089. Removed try-catch block.
  15090. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  15091. * src/HttpProxyResponseCommand.cc
  15092. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15093. * src/FtpTunnelResponseCommand.h
  15094. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  15095. * src/HttpConnection.cc
  15096. (HttpConnection): Replaced Socket with SocketHandle.
  15097. * src/PeerAbstractCommand.cc
  15098. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  15099. (~PeerAbstractCommand): Removed the deallocation of socket.
  15100. Use disableReadCheckSocket, disableWriteCheckSocket.
  15101. (disableReadCheckSocket): New function.
  15102. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15103. (disableWriteCheckSocket): New function.
  15104. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15105. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  15106. * src/FtpTunnelRequestCommand.cc
  15107. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  15108. (~FtpTunnelRequestCommand): Corrected indentation.
  15109. * src/DownloadCommand.h
  15110. (DownloadCommand): Replaced Socket with SocketHandle.
  15111. * src/PeerListenCommand.cc
  15112. (PeerListenCommand): Removed the initialization of socket.
  15113. (~PeerListenCommand): Removed the deallocation of socket.
  15114. (bindPort): Use SocketHandle.
  15115. (execute): Use SocketHandle and PeerHandle.
  15116. * src/FtpDowndloadCommand.cc
  15117. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  15118. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  15119. * src/main.cc
  15120. (main): Corrected indentation.
  15121. * src/HttpInitiateConnectionCommand.cc
  15122. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  15123. (executeInternal): Removed the allocation of socket.
  15124. * src/HttpRequestCommand.h
  15125. (HttpRequestCommand): Replaced Socket with SocketHandle.
  15126. * src/FtpNegotiationCommand.h
  15127. (dataSocket): Changed its type to SocketHandle.
  15128. (serverSocket): Changed its type to SocketHandle.
  15129. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  15130. * src/TorrentMan.h
  15131. (MAX_PEER_UPDATE): Removed.
  15132. (MAX_PEERS): New definition.
  15133. (Peers): The element is now of type PeerHandle.
  15134. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  15135. (getPeer): Replaced Peer with PeerHandle.
  15136. (deleteOldErrorPeers): Removed.
  15137. (deleteErrorPeer): New function.
  15138. (hasMissingPiece): Replaced Peer with PeerHandle.
  15139. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  15140. (getMissingPiece): Replaced Peer with PeerHandle.
  15141. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  15142. (getMissingFastPiece): Replaced Peer with PeerHandle.
  15143. (addActivePeer): Replaced Peer with PeerHandle.
  15144. (deleteActivePeer): Replaced Peer with PeerHandle.
  15145. Added a check for the return value of find.
  15146. * src/FtpTunnelResponseCommand.cc
  15147. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  15148. * src/FtpInitiateConnectionCommand.cc
  15149. (executeInternal): Removed the allocation of socket.
  15150. * src/DownloadEngine.h
  15151. (Sockets): An element is now of type SocketHandle.
  15152. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  15153. (CommandUuids): New type definition.
  15154. (rsockets): Changed its type to SockCmdMap.
  15155. (wsockets): Changed its type to SockCmdMap.
  15156. (addSocket): Rewritten.
  15157. (deleteSocket): Rewritten.
  15158. (addSocketForReadCheck): Rewritten.
  15159. (deleteSocketForReadCheck): Rewritten.
  15160. (addSocketForWriteCheck): Rewritten.
  15161. (deleteSocketForWriteCheck): Rewritten.
  15162. (PairFind): New template class.
  15163. * src/HttpDownloadCommand.h
  15164. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  15165. * src/FtpConnection.cc
  15166. (FtpConnection): Replaced Socket with SocketHandle.
  15167. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  15168. block.
  15169. * src/InitiateConnectionCommandFactory.cc
  15170. (DlAbortEx.h): Included DlAbortEx.h.
  15171. (createInitiateConnectionCommand): Throw exception if the protocol of
  15172. requested URI is not supported.
  15173. * src/Peer.cc
  15174. (nullPeer): Changed its type to PeerHandle.
  15175. (operator==): New function.
  15176. (operator!=): New function.
  15177. * src/Peer.h
  15178. (SharedHandle.h): Included SharedHandle.h.
  15179. (operator==): New function.
  15180. (operator!=): New function.
  15181. (Peer): Added the default constructor.
  15182. Use resetStatus() to initialize member variables.
  15183. (nullPeer): Removed.
  15184. * src/TrackerUpdateCommand.cc
  15185. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  15186. with MIN_PEERS.
  15187. * src/PeerListenCommand.h
  15188. (socket): Changed its type to SocketHandle.
  15189. * src/Command.h
  15190. (CommandUuid): New type definition.
  15191. (uuid): New variable.
  15192. (uuidGen): New variable.
  15193. (Command): Added the initialization of uuid.
  15194. (getUuid): New function.
  15195. * src/Socket.h
  15196. (Socket): Removed.
  15197. (SocketHandle): New type definition.
  15198. * src/DownloadEngine.h
  15199. (FindCommand): New function object.
  15200. (run): The portion of socket check was rewritten.
  15201. (SetDescriptor): New function object.
  15202. (AccumulateActiveCommandUuid): New function object.
  15203. (waitData): Rewritten.
  15204. (addSocket): Rewritten.
  15205. (deleteSocket): Rewritten.
  15206. (addSocketForReadCheck): Rewritten.
  15207. (addSocketForWriteCheck): Rewritten.
  15208. (deleteSocketForReadCheck): Rewritten.
  15209. (deleteSocketForWriteCheck): Rewritten.
  15210. * src/HttpProxyResponseCommand.h
  15211. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  15212. * src/HttpConnection.h
  15213. (socket): Changed its type to SocketHandle.
  15214. (HttpConnection): Replaced Socket with SocketHandle.
  15215. * src/PeerInitiateConnectionCommand.cc
  15216. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  15217. (executeInternal): Removed the allocation of socket.
  15218. (prepareForNextPeer): Use PeerHandle.
  15219. * src/PeerMessage.h
  15220. (peer): Changed its type to PeerHandle.
  15221. (getPeer): Replaced Peer with PeerHandle.
  15222. (setPeer): Replaced Peer with PeerHandle.
  15223. * src/DownloadCommand.cc
  15224. (DownloadCommand): Replaced Socket with SocketHandle.
  15225. * src/FtpConnection.h
  15226. (socket): Changed its type to SocketHandle.
  15227. (FtpConnection): Replaced Socket with SocketHandle.
  15228. (sendPort); Replaced Socket with SocketHandle.
  15229. * src/FtpDowndloadCommand.h
  15230. (ctrlSocket): Changed its type to SocketHandle.
  15231. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  15232. * src/HttpProxyRequestCommand.cc
  15233. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15234. * src/FtpTunnelRequestCommand.h
  15235. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  15236. etc
  15237. * src/PeerChokeCommand.h
  15238. (setAllPeerChoked): Removed.
  15239. (setAllPeerResetDelta): Removed.
  15240. * src/PeerChokeCommand.cc
  15241. (setAllPeerChoked): Removed.
  15242. (ChokePeer): New function object.
  15243. (setAllPeerResetDelta): Removed.
  15244. (ResetDelta): New function object.
  15245. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  15246. (execute): Show download speed when the local node is a seeder.
  15247. setAllPeerChoked and setAllPeerResetDelta were rewritten
  15248. using STL.
  15249. * src/TrackerWatcherCommand.h
  15250. (MIN_PEERS): Removed.
  15251. * src/TorrentMan.cc
  15252. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  15253. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15254. To fix the bug that .aria2 file is not saved if downloading is stopped
  15255. by the errors:it results that aria2 can not resume downloading:
  15256. * src/main.cc
  15257. (normalDownload): Added the call to save().
  15258. (main): Added the deletion of the elements in 'reserved'.
  15259. To fix log:
  15260. * src/PeerInteraction.cc
  15261. (receiveHandshake): Fixed log.
  15262. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15263. To improve download performance in BitTorrent:
  15264. * src/TorrentMan.cc
  15265. (getPeer): Check the number of connections. Return nullPeer if
  15266. it is greater than MAX_PEER_UPDATE.
  15267. This code was originally here, but was removed in 0.5.1.
  15268. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15269. To improve the conditional compilation:
  15270. * src/MultiDiskWriter.h:
  15271. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15272. * src/MultiDiskWriter.cc:
  15273. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15274. * src/Util.h:
  15275. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15276. Added ENABLE_BITTORRENT around computeFastSet().
  15277. * src/Util.cc:
  15278. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15279. Added ENABLE_BITTORRENT around computeFastSet().
  15280. * src/messageDigest.h:
  15281. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  15282. * src/ShaVisitor.h:
  15283. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15284. * src/ShaVisitor.cc:
  15285. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15286. * src/main.cc:
  15287. Added ENABLE_BITTORRENT around includes and blocks related to
  15288. BitTorrent.
  15289. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  15290. digest support is not available.
  15291. * src/AbstractDiskWriter.h:
  15292. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15293. * src/AbstractDiskWriter.cc:
  15294. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15295. * src/MetalinkEntry.cc
  15296. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  15297. support is not available.
  15298. To add command-line options for Metalink:
  15299. * src/main.cc:
  15300. Added metalink-version, metalink-language, metalink-os,
  15301. follow-metalink.
  15302. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  15303. * src/main.cc: Use these definition.
  15304. * Release 0.6.0
  15305. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15306. To add Metalink support(http/ftp only):
  15307. * src/AbstractCommand.h
  15308. (tryReserved): New function.
  15309. * src/AbstractCommand.cc
  15310. (execute): Call tryReserved().
  15311. (tryReserved): New function.
  15312. * src/Request.h
  15313. (Requests): New type definition.
  15314. * src/SegmentMan.h
  15315. (reserved): New variable.
  15316. * src/Util.h
  15317. (fileChecksum): New function.
  15318. (toUpper): New function.
  15319. (toLower): New function.
  15320. * src/Util.cc
  15321. (messageDigest.h): Included.
  15322. (trim): Trim \r\n\t.
  15323. (fileChecksum): New function.
  15324. (toUpper): New function.
  15325. (toLower): New function.
  15326. * src/main.cc
  15327. (normalDownload): New function.
  15328. (main): Added 2 command-line options: metalink-file,
  15329. metalink-connection. Their usage has not been written yet.
  15330. * src/MetalinkProcessor.h: New class.
  15331. * src/Xml2MetalinkProcessor.h: New class.
  15332. * src/Xml2MetalinkProcessor.cc: New class.
  15333. * src/MetalinkEntry.h: New class.
  15334. * src/MetalinkEntry.cc: New class.
  15335. * src/MetalinkResource.h: New class.
  15336. * src/MetalinkResource.cc: New class.
  15337. To add md5 message digest checking:
  15338. * src/messageDigest.h: Rewritten.
  15339. * src/MultiDiskWriter.cc: Updated according to the changes in
  15340. messageDigest.h.
  15341. * src/ShaVisitor.cc: Updated according to the changes in
  15342. messageDigest.h.
  15343. * src/Util.cc: Updated according to the changes in messageDigest.h.
  15344. * src/AbstractDiskWriter.cc: Updated according to the changes in
  15345. messageDigest.h.
  15346. To fix a bug that causes segfault when the payload length in peer
  15347. message is less than 0:
  15348. * src/PeerConnection.cc:
  15349. (receiveMessage): Fixed the bug.
  15350. * src/PeerMessageUtil.cc
  15351. (checkLength): Throw an exception if length is less than or equals to
  15352. 0.
  15353. To add new interfaces to Base64 encoding/decoding:
  15354. * src/Base64.h
  15355. (part_encode): Changed the method signature.
  15356. (encode): New function(overload).
  15357. (decode): New function(overload).
  15358. * src/Base64.cc
  15359. (part_encode): Rewritten.
  15360. (encode): Rewritten.
  15361. (encode): New function(overload).
  15362. To prevent a peer to download same piece if there is an error in
  15363. checksum:
  15364. * src/PieceMessage.cc
  15365. (receivedAction): Call peerInteraction->abortPiece().
  15366. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15367. To fix the bug that causes same have message is sent many times to
  15368. a single peer.
  15369. * src/Time.cc
  15370. (isNewer): Use Util::difftv().
  15371. * src/Util.cc
  15372. (difftv): Added a cast to (long long int).
  15373. * src/TorrentMan.cc
  15374. (advertisePiece): Use push_front.
  15375. (getAdvertisedPieceIndexes): A performance improvement was made.
  15376. To fix the bug that sends tracker requests without a sleep interval
  15377. when the number of connections is less than 15.
  15378. * src/TrackerWatcherCommand.cc
  15379. (execute): Now the number of connections is not a factor to decide
  15380. whether or not a tracker request should be sent or not.
  15381. * src/Time.h
  15382. (setTimeInSec): New function.
  15383. * src/Time.cc
  15384. (setTimeInSec): New function.
  15385. etc.
  15386. * src/ChokeMessage.cc
  15387. (receivedAction): Removed peer->snubbing = false
  15388. * src/PeerConnection.h
  15389. (receiveHandshake): Updated doc.
  15390. * src/TorrentMan.h
  15391. (getAdvertisedPieceIndexes): Updated the method signature.
  15392. * src/TorrentMan.cc
  15393. (getAdvertisedPieceIndexes): Updated the method signature.
  15394. * src/Time.h
  15395. (getTimeInMicros): Added a cast to (long long int).
  15396. (getTimeInMillis): Added a cast to (long long int).
  15397. * Release 0.5.2
  15398. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15399. To make a listening socket non-block:
  15400. * src/SocketCore.h
  15401. (setNonBlockingMode): New function.
  15402. * src/SocketCore.cc
  15403. (setNonBlockingMode): New function.
  15404. (beginListen): Added a call to setNonBlockingMode().
  15405. (acceptConnection): Call setNonBlockingMode().
  15406. (setBlockingMode): Updated.
  15407. To handle tracker's NAT-checking:
  15408. * src/PeerConnection.cc
  15409. (receiveHandshake): 'msg' param is filled with received data and
  15410. its length is assigned to 'length' param, even if all handshake
  15411. message is not yet received.
  15412. * src/PeerInteractionCommand.cc
  15413. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  15414. a new peer connects to localhost.
  15415. A call to peerInteraction->sendHandshake() was removed because
  15416. it is called from peerInteraction->receiveHandshake(true).
  15417. * src/PeerInteraction.h
  15418. (quickReplied): New variable.
  15419. (receiveHandshake): Added an argument.
  15420. * src/PeerInteraction.cc
  15421. (PeerInteraction): Added the initialization of quickReplied.
  15422. (receiveHandshake): Send handshake message as soon as the info hash
  15423. in a handshake message from a peer is correct.
  15424. To change the random part of peer id and key parameter:
  15425. * src/TorrentMan.h
  15426. (key): New variable.
  15427. * src/TorrentMan.cc
  15428. (setupInternal1): Use Util::randomAlpha() to generate random part
  15429. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  15430. key is also generated by Util::randomAlpha() and it is now 8 character
  15431. long.
  15432. * src/Util.h
  15433. (randomAlpha): New function.
  15434. * src/Util.cc
  15435. (randomAlpha): New function.
  15436. * src/TrackerWatcherCommand.cc
  15437. (execute): In a tracker request: Use torrentMan->key as key parameter.
  15438. Added no_peer_id=1.
  15439. Set snubbing flag to false when a choke message is received from a
  15440. snubbed peer.
  15441. * src/ChokeMessage.cc
  15442. (receivedAction): Set snubbing flag to false.
  15443. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15444. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  15445. * src/SimpleLogger.h (writeHeader): New function.
  15446. * src/SimpleLogger.cc (writeHeader): New function.
  15447. (writeLog): Fixed the bug that causes segfaults if exception message
  15448. contains an unescaped "%" character.
  15449. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  15450. when a tracker request fails.
  15451. * src/Request.cc (parseUrl): Query string is now handled properly.
  15452. * Release 0.5.1
  15453. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15454. To add Time class which represents a specific instant in time and
  15455. its precision is microseconds. Time checking procedures were rewritten
  15456. using this object.
  15457. * src/Time.h: New class.
  15458. * src/Time.cc: New class.
  15459. * src/AbstractCommand.h
  15460. (updateCheckPoint): Removed.
  15461. (isTimeoutDetected): Removed.
  15462. (checkPoint): Changed the type to Time.
  15463. (timeout): New variable.
  15464. (setTimeout): New function.
  15465. * src/AbstractCommand.cc
  15466. (AbstractCommand): Removed the initialization of checkPoint.
  15467. Added the initialization of timeout.
  15468. (updateCheckPoint): Removed.
  15469. (isTimeoutDetected): Removed.
  15470. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  15471. * src/PeerChokeCommand.h
  15472. (checkPoint): Changed the type to Time.
  15473. * src/PeerChokeCommand.cc
  15474. (PeerChokeCommand): Removed the initialization of checkPoint.
  15475. (execute): Rewritten using Time object.
  15476. * src/TrackerWatcherCommand.h
  15477. (checkPoint): Changed the type to Time.
  15478. * src/TrackerWatcherCommand.cc
  15479. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  15480. (execute): Rewritten.
  15481. * src/ConsoleDownloadEngine.h
  15482. (cp): Changed the type to Time.
  15483. (startup): Changed the type to Time.
  15484. * src/ConsoleDownloadEngine.cc
  15485. (initStatistics): Use cp.reset(), startup.reset().
  15486. (calculateStatistics): Rewritten using Time object.
  15487. * src/PeerAbstractCommand.h
  15488. (updateCheckPoint): Removed.
  15489. (isTimeoutDetected): Removed.
  15490. (checkPoint): Changed the type to Time.
  15491. * src/PeerAbstractCommand.cc
  15492. (PeerAbstractCommand): Removed the initialization of checkPoint.
  15493. (updateCheckPoint): Removed.
  15494. (isTimeoutDetected): Removed.
  15495. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  15496. * src/PeerInteractionCommand.cc
  15497. (PeerInteractionCommand): Removed the initializations of struct
  15498. timeval variables.
  15499. * src/PeerInteractionCommand.h
  15500. (keepAliveCheckPoint): Changed the type to Time.
  15501. (chokeCheckPoint): Changed the type to Time.
  15502. (freqCheckPoint): Changed the type to Time.
  15503. (haveCheckTime): Changed the type to Time.
  15504. * src/PeerInteractionCommand.cc
  15505. (executeInternal): Rewritten using Time object.
  15506. (detectMessageFlooding): Rewritten using Time object.
  15507. (checkLongTimePeerChoking): Rewritten using Time object.
  15508. (sendKeepAlive): Rewritten using Time object.
  15509. (checkHave): Rewritten using Time object.
  15510. * src/SleepCommand.h
  15511. (checkPoint): Changed the type to Time.
  15512. * src/SleepCommand.cc
  15513. (SleepCommand): Removed the initialization of checkPoint.
  15514. (execute): Rewritten using Time object.
  15515. * src/TorrentAutoSaveCommand.h
  15516. (checkPoint): Changed the type to Time.
  15517. * src/TorrentAutoSaveCommand.cc
  15518. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  15519. (execute): Rewritten.
  15520. * src/DownloadCommand.h
  15521. (sw): Changed the type to Time.
  15522. * src/DownloadCommand.cc
  15523. (DownloadCommand): Removed the initialization of sw.
  15524. (executeInternal): Rewritten.
  15525. * src/RequestSlot.h
  15526. (dispatchedTime): Changed the type to Time.
  15527. * src/RequestSlot.cc
  15528. (RequestSlot): Removed the call to setDispatchedTime().
  15529. (setDispatchedTime): Rewirtten.
  15530. (isTimeout): Rewritten.
  15531. (getLatencyInMillis): Rewritten.
  15532. * src/TorrentDownloadEngine.h
  15533. (cp): Changed the type to Time[2].
  15534. (startup): Changed the type to Time.
  15535. * src/TorrentDownloadEngine.cc
  15536. (initStatistics): Rewritten.
  15537. (calculateStatistics): Rewritten.
  15538. * src/DownloadEngine.cc
  15539. (run): Rewritten.
  15540. To detect all attempts to connect to the tracker are failed:
  15541. * src/AbstractCommand.cc
  15542. (execute): Increment e->segmentMan->errors if a command aborted.
  15543. * src/SegmentMan.h
  15544. (errors): New variable.
  15545. * src/SegmentMan.cc
  15546. (SegmentMan): Added the initialization of errors.
  15547. (init): Added the initialization of errors.
  15548. * src/TrackerWatcherCommand.cc
  15549. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  15550. request was failed.
  15551. To handle snubbed peers:
  15552. * src/PeerChokeCommand.cc
  15553. (optUnchokingPeer): Snubbed peers don't get unchoked.
  15554. (execute): Snubbed peers don't get unchoked.
  15555. * src/PeerInteraction.h
  15556. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  15557. * src/PeerInteraction.cc
  15558. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  15559. back the requested 16k block in 60 seconds.
  15560. * src/PieceMessage.cc
  15561. (receivedAction): A peer's snubbed state is cleard if it sends
  15562. the requested 16k block in 60 seconds.
  15563. * src/Peer.h
  15564. (snubbing): New variable.
  15565. * src/Peer.cc
  15566. (resetStatus): Added snubbed = false.
  15567. To fix the bug that causes have message is not sent:
  15568. * src/PeerInteractionCommand.cc
  15569. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  15570. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  15571. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  15572. * src/TorrentMan.h
  15573. (HaveEntry): New class.
  15574. (advertisePiece): Rewritten.
  15575. (getAdvertisedPieceIndexes): Rewritten.
  15576. (Haves): Changed the type.
  15577. (getAdvertisedPieceIndexes): Added an argument.
  15578. Others:
  15579. * src/TorrentMan.h
  15580. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  15581. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  15582. * src/TorrentMan.cc
  15583. (getPeer): Don't check the number of connections here.
  15584. (setupInternal1): Changed peerId.
  15585. * src/PeerInteractionCommand.h
  15586. (KEEP_ALIVE_INTERVAL): New definition.
  15587. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  15588. * src/main.cc
  15589. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  15590. * src/DownloadEngine.h: Removed unnecessary header includes.
  15591. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15592. To fix the bug that causes segfaults if a tracker returns a zero-length
  15593. list as "peers":
  15594. * src/TrackerUpdateCommand.cc
  15595. (execute): Added a check to see wether the type of peers is Data*.
  15596. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15597. * Release 0.5.0
  15598. To fix compile issue with gcc3:
  15599. * src/CancelMessage.h
  15600. (ID): Renamed as ID_t
  15601. (ID_t): New enum.
  15602. * src/RejectMessage.h
  15603. (ID): Renamed as ID_t
  15604. (ID_t): New enum.
  15605. * src/SuggestPieceMessage.h
  15606. (ID): Renamed as ID_t
  15607. (ID_t): New enum.
  15608. * src/AllowedFastMessage.h
  15609. (ID): Renamed as ID_t
  15610. (ID_t): New enum.
  15611. * src/PortMessage.h
  15612. (ID): Renamed as ID_t
  15613. (ID_t): New enum.
  15614. * src/HaveNoneMessage.h
  15615. (ID): Renamed as ID_t
  15616. (ID_t): New enum.
  15617. * src/KeepAliveMessage.h
  15618. (ID): Renamed as ID_t
  15619. (ID_t): New enum.
  15620. * src/HaveAllMessage.h
  15621. (ID): Renamed as ID_t
  15622. (ID_t): New enum.
  15623. * src/UnchokeMessage.h
  15624. (ID): Renamed as ID_t
  15625. (ID_t): New enum.
  15626. * src/BitfieldMessage.h
  15627. (ID): Renamed as ID_t
  15628. (ID_t): New enum.
  15629. * src/PieceMessage.h
  15630. (ID): Renamed as ID_t
  15631. (ID_t): New enum.
  15632. * src/RequestMessage.h
  15633. (ID): Renamed as ID_t
  15634. (ID_t): New enum.
  15635. * src/NotInterestedMessage.h
  15636. (ID): Renamed as ID_t
  15637. (ID_t): New enum.
  15638. * src/ChokeMessage.h
  15639. (ID): Renamed as ID_t
  15640. (ID_t): New enum.
  15641. * src/InterestedMessage.h
  15642. (ID): Renamed as ID_t
  15643. (ID_t): New enum.
  15644. * src/HaveMessage.h
  15645. (ID): Renamed as ID_t
  15646. (ID_t): New enum.
  15647. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15648. * src/PeerAbstractCommand.h
  15649. (beforeSocketCheck): Removed.
  15650. * src/PeerAbstractCommand.cc
  15651. Modified in order to call executeInternal() even if socket check
  15652. and upload limit check fail.
  15653. * src/PeerInteractionCommand.h
  15654. (keepAlive): Removed.
  15655. (sendKeepAlive): New function.
  15656. (checkHave): New function.
  15657. (beforeSocketCheck): Removed.
  15658. * src/PeerInteractionCommand.cc
  15659. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  15660. calls to checkHave() and sendKeepAlive().
  15661. (keepAlive): Renamed to sendKeepAlive().
  15662. (sendKeepAlive): New function.
  15663. (beforeSocketCheck): Removed.
  15664. (checkHave): New function.
  15665. * src/BitfieldMan.cc
  15666. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  15667. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  15668. 0.
  15669. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  15670. * src/TorrentMan.h
  15671. (UsedPieces): Removed.
  15672. (Pieces): New type definition.
  15673. * src/Piece.h: Updated doc.
  15674. * src/Peer.h
  15675. (totalLength): Removed.
  15676. * src/Peer.cc
  15677. (updateLatency): Fixed the latency calculation.
  15678. * src/TorrentMan.cc
  15679. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  15680. than or equal to MAX_PEER_LIST_SIZE.
  15681. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  15682. then return false.
  15683. (deleteOldErrorPeers): Rewritten.
  15684. (deleteUsedPiece): Fixed the miss use of STL remove.
  15685. * src/PeerInteraction.h
  15686. (Pieces): Removed.
  15687. (deleteTimeoutRequestSlot): Removed.
  15688. (deleteCompletedRequestSlot): Removed.
  15689. (checkRequestSlot): New function.
  15690. * src/PeerInteraction.cc
  15691. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  15692. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  15693. (checkRequestSlot): New function.
  15694. * src/DownloadEngine.cc
  15695. (run): Clear activeSockets before calling waitData().
  15696. (waitData): Removed a call to activeSockets.clear().
  15697. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15698. To attempt to handle EINTR:
  15699. * src/SocketCore.cc
  15700. (isReadable): Added EINTR handling.
  15701. (isWritable): Added EINTR handling.
  15702. To improve the performance:
  15703. * src/AbstractCommand.cc
  15704. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  15705. * src/PeerInteractionCommand.h
  15706. (receiveMessage): Renamed as receiveMessages().
  15707. (receiveMessages): New function.
  15708. * src/PeerInteractionCommand.cc
  15709. (executeInternal): receiveMessage loop is moved to new receiveMessages
  15710. () function. detectMessageFlooding() is moved here.
  15711. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  15712. (). The flooding detection for have message is comment out.
  15713. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  15714. Util::difftv().
  15715. (receiveMessage): Renamed as receiveMessages().
  15716. (receiveMessages): New function.
  15717. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  15718. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  15719. * src/SleepCommand.cc
  15720. (execute): Use Util::difftvsec() instead of Util::difftv().
  15721. * src/BitfieldMan.h
  15722. (getNthBitIndex): New function.
  15723. (hasMissingPiece): New function.
  15724. (getAllMissingIndexes): New function.
  15725. * src/BitfieldMan.cc
  15726. (countSetBit): Rewritten.
  15727. (getNthBitIndex): New function.
  15728. (getMissingIndexRandomly): Rewritten.
  15729. (hasMissingPiece): New function.
  15730. (getAllMissingIndexes): New function.
  15731. * src/TorrentMan.cc
  15732. (hasMissingPiece): New function.
  15733. (deleteUsedPiece): Rewritten using STL.
  15734. * src/PeerInteraction.cc
  15735. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  15736. is a little bit faster then TorrentMan::getMissingPieceIndex().
  15737. (addRequests): Updated the number of pending requests.
  15738. * src/PeerAbstractCommand.cc
  15739. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  15740. (execute): Returns true if TorrentMan::isHalt() is true.
  15741. Corrected the condition of upload limit checking.
  15742. * src/Util.h
  15743. (countBit): New function.
  15744. * src/Util.cc
  15745. (nbits): New variable.
  15746. (countBit): New function.
  15747. * src/DownloadEngine.h
  15748. (SockCmdMap): New type definition.
  15749. (waitData): Added an argument.
  15750. (addSocket): Added an argument.
  15751. (addSocketForReadCheck): Added an argument.
  15752. (addSocketForWriteCheck): Added an argument.
  15753. * src/DownloadEngine.cc
  15754. (run): Executes only commands whose sockets are ready to read or write.
  15755. All commands are executed in every 1 second.
  15756. (waitData): Calls select() again if it returned
  15757. EINTR.
  15758. (addSocket): Saves socket and command object pair to the map.
  15759. (deleteSocket): Deletes socket and command object pair from the map.
  15760. (addSocketForReadCheck): Added an argument.
  15761. (addSocketForWriteCheck): Added an argument.
  15762. * src/DownloadCommand.cc
  15763. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  15764. To send "event=stopped" to the tracker when the application finishes:
  15765. * src/PeerChokeCommand.h
  15766. (checkPoint): New variable.
  15767. * src/PeerChokeCommand.cc
  15768. (PeerChokeCommand): Added the initialization of checkPoint.
  15769. (execute): The interval check is now done by checkPoint, not
  15770. SleepCommand. Return true if TorrentMan::isHalt() is true.
  15771. * src/TorrentMan.h
  15772. (halt): New function.
  15773. (hasMissingPiece): New function.
  15774. (isHalt): New function.
  15775. (setHalt): New function.
  15776. * src/TorrentMan.cc
  15777. (TorrentMan): Added the initialization of halt.
  15778. * src/TorrentAutoSaveCommand.h
  15779. (checkPoint): New variable.
  15780. * src/PeerListenCommand.cc
  15781. (execute): Returns true if TorrentMan::isHalt() is true.
  15782. * src/main.cc
  15783. (setSignalHander): Added flags argument.
  15784. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  15785. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  15786. Removed printDownloadAbortMessage() after torrent downloading loop.
  15787. * src/TorrentAutoSaveCommand.cc
  15788. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  15789. (execute): Returns true if TorrentMan::isHalt() is true.
  15790. The interval check is now done by checkPoint, not SleepCommand.
  15791. * src/TrackerWatcherCommand.cc
  15792. (execute): If TorrentMan::isHalt(), then create a tracker request with
  15793. event=stopped.
  15794. * src/TrackerUpdateCommand.cc
  15795. (prepareForRetry): Do not use SleepCommand here.
  15796. (execute): Returns true if TorrentMan::isHalt() is true.
  15797. Others:
  15798. * src/TorrentMan.cc
  15799. (getMissingPieceIndex): Updated log message.
  15800. * src/PeerInteraction.cc
  15801. (createPeerMessag): Updated log message.
  15802. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15803. To add the ability to download several pieces in mix in a command and
  15804. increase the number of request slots according to request-cancel
  15805. latency:
  15806. * src/PeerInteractionCommand.cc
  15807. (executeInternal): The number of messages to be received at a time
  15808. is increased from 10 to 50.
  15809. * src/LogFactory
  15810. (getInstance): Added NullLogger.
  15811. * src/NullLogger.h: New class.
  15812. * src/BitfieldMan.h
  15813. (getMissingIndex): New function.
  15814. * src/BitfieldMan.cc
  15815. (getMissingIndex): New function.
  15816. * src/TorrentMan.h
  15817. (checkOutPiece): New function.
  15818. (getMissingPieceIndex): New function.
  15819. (getMissingFastPieceIndex): New function.
  15820. (getMissingFastPiece): New function.
  15821. * src/TorrentMan.cc
  15822. (updatePiece): Rewritten using STL.
  15823. (syncPiece): Rewritten using STL.
  15824. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  15825. checkOutPiece().
  15826. (getMissingPieceIndex): New function.
  15827. (getMissingFastPieceIndex): New function.
  15828. (getMissingFastPiece): New function.
  15829. (checkOutPiece): New function.
  15830. * src/PeerInteraction.h
  15831. (Pieces): New type definition.
  15832. (piece): Removed.
  15833. (pieces): New variable.
  15834. (getNewPieceAndSendInterest): Added the "piece" argument.
  15835. (abortPiece): Added the "piece" argument.
  15836. (abortAllPieces): New function.
  15837. (isInRequestSlot): New function.
  15838. (hasDownloadPiece): Added the "index" argument.
  15839. (setDownloadPiece): Removed.
  15840. (getDownloadPiece): Added the "index" argument.
  15841. (updatePiece): New function.
  15842. (createRequestMessage): Added the "index" argument.
  15843. * src/PeerInteraction.cc
  15844. (onChoked): Rewritten.
  15845. (abortPiece): Rewirtten.
  15846. (abortAllPieces): New function.
  15847. (deleteTimeoutRequestSlot): Rewritten.
  15848. Clarified code a little bit.
  15849. (deleteCompletedRequestSlot): Rewritten.
  15850. (isInRequestSlot): New function.
  15851. (syncPiece): Rewritten.
  15852. (updatePiece): New function.
  15853. (getNewPieceAndSendInterest): Rewritten.
  15854. (addRequests): Rewritten.
  15855. (getDownloadPiece): Rewritten.
  15856. (hasDownloadPiece): Rewritten.
  15857. (createRequestMessage): Added the "index" argument.
  15858. * src/common.h
  15859. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  15860. (DIV_FLOOR): New definition.
  15861. * src/PieceMessage.cc
  15862. (receivedAction): Update request-piece latency here.
  15863. * src/RequestSlot.h
  15864. (getLatencyInMillis): New function.
  15865. * src/RequestSlot.cc
  15866. (isTimeout): Rewritten using getLatencyInMillis.
  15867. (getLatencyInMillis): New function.
  15868. * src/Piece.h
  15869. (operator==): New function.
  15870. (getMissingBlockIndex): New function.
  15871. * src/Piece.cc
  15872. (operator==): New function.
  15873. (getMissingBlockIndex): New function.
  15874. * src/Peer.h
  15875. (DEFAULT_LATENCY): New definition.
  15876. (latency): New variable.
  15877. (updateLatency): New function.
  15878. (getLatency): New function.
  15879. * src/Peer.cc
  15880. (resetStatus): Reset latecy.
  15881. (updateLatency): New function.
  15882. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15883. * src/SocketCore.cc
  15884. (isReadable): Added secure to the condition.
  15885. * src/HttpConnection.cc
  15886. (receiveResponse): Fixed a bug that causes no response header
  15887. exception.
  15888. * src/Peer.h
  15889. (getFastSet): Fixed the return value type.
  15890. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15891. To remove a wait from download loop:
  15892. * src/DownloadEngine.cc
  15893. (run): Comment out shortSleep.
  15894. To rewrite the message handling:
  15895. * src/SimplePeerMessage.h: New class.
  15896. * src/SimplePeerMessage.cc: New class.
  15897. * src/CancelMessage.h: Derived from SimplePeerMessage.
  15898. (msg): New variable.
  15899. (create): New function.
  15900. (send): Removed.
  15901. (getMessage): New function.
  15902. (getMessageLength): New function.
  15903. * src/CancelMessage.cc
  15904. (create): New function.
  15905. (receivedAction): Replaced deleteRequestMessageInQueue with
  15906. rejectPieceMessageInQueue.
  15907. (send): Removed.
  15908. (getMessage): New function.
  15909. (getMessageLength): New function.
  15910. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  15911. (msg): New variable.
  15912. (msgLength): New variable.
  15913. (~BitfieldMessage): Deleted msg.
  15914. (send): Removed.
  15915. (getMessage): New function.
  15916. (getMessageLength): New function.
  15917. * src/BitfieldMessage.cc
  15918. (create): New function.
  15919. (send): Removed.
  15920. (getMessage): New function.
  15921. (getMessageLength): New function.
  15922. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  15923. (msg): New variable.
  15924. (sendPredicate): New function.
  15925. (onSendComplete): New function.
  15926. (send): Removed.
  15927. (getMessage): New function.
  15928. (getMessageLength): New function.
  15929. (create): New function.
  15930. * src/ChokeMessage.cc
  15931. (create): New function.
  15932. (send): Removed.
  15933. (sendPredicate): New function.
  15934. (getMessage): New function.
  15935. (getMessageLength): New function.
  15936. (onSendComplete): New function.
  15937. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  15938. (msg): New variable.
  15939. (send): Removed.
  15940. (getMessage): New function.
  15941. (getMessageLength): New function.
  15942. * src/KeepAliveMessage.cc
  15943. (send): Removed.
  15944. (getMessage): New function.
  15945. (getMessageLength): New function.
  15946. * src/PortMessage.h
  15947. (create): New function.
  15948. (receivedAction): Updated log message.
  15949. * src/PortMessage.cc: New file.
  15950. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  15951. (msg): New variable.
  15952. (sendPredicate): New function.
  15953. (onSendComplete): New function.
  15954. (create): New function.
  15955. (send): Removed.
  15956. (getMessage): New function.
  15957. (getMessageLength): New function.
  15958. * src/UnchokeMessage.cc
  15959. (create): New function.
  15960. (send): Removed.
  15961. (sendPredicate): New function.
  15962. (getMessage): New function.
  15963. (getMessageLength): New function.
  15964. (onSendComplete): New function.
  15965. * src/PieceMessage.h
  15966. (leftPieceDataLength): Removed.
  15967. (leftDataLength): New variable.
  15968. (headerSend): New variable.
  15969. (pendingCount): New variable.
  15970. (msgHeader): New variable.
  15971. (sendPieceData): New function.
  15972. (incrementPendingCount): New function.
  15973. (isPendingCountMax): New function.
  15974. (create): New function.
  15975. (getMessageHeader): New function.
  15976. (getMessageHeaderLength): New function.
  15977. * src/PieceMessage.cc
  15978. (create): New function.
  15979. (getMessageHeader): New function.
  15980. (getMessageHeaderLength): New function.
  15981. (send): Rewritten.
  15982. (sendPieceData): New function.
  15983. * src/HaveMessage.h: Derived from SimplePeerMessage.
  15984. (msg): New variable.
  15985. (create): New function.
  15986. (getMessage): New function.
  15987. (getMessageLength): New function.
  15988. * src/HaveMessage.cc
  15989. (create): New function.
  15990. (send): Removed.
  15991. (sendPieceData): New function.
  15992. (getMessage): New function.
  15993. (getMessageLength): New function.
  15994. * src/RequestMessage.h: Derived from SimplePeerMessage.
  15995. (msg): New variable.
  15996. (create): New function.
  15997. (send): Removed.
  15998. (getMessage): New function.
  15999. (getMessageLength): New function.
  16000. * src/RequestMessage.cc
  16001. (create): New function.
  16002. (receivedAction): Added the handling of fast extension.
  16003. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  16004. (send): Removed.
  16005. (getMessage): New function.
  16006. (getMessageLength): New function.
  16007. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  16008. (msg): New variable.
  16009. (sendPredicate): New function.
  16010. (onSendComplete): New function.
  16011. (create): New function.
  16012. (getMessage): New function.
  16013. (getMessageLength): New function.
  16014. * src/InterestedMessage.cc
  16015. (create): New function.
  16016. (send): Removed.
  16017. (sendPieceData): New function.
  16018. (getMessage): New function.
  16019. (getMessageLength): New function.
  16020. (onSendComplete): New function.
  16021. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  16022. (msg): New variable.
  16023. (sendPieceData): New function.
  16024. (onSendComplete): New function.
  16025. (create): New function.
  16026. (send): Removed.
  16027. (getMessage): New function.
  16028. (getMessageLength): New function.
  16029. * src/NotInterestedMessage.cc
  16030. (create): New function.
  16031. (send): Removed.
  16032. (sendPredicate): New function.
  16033. (getMessage): New function.
  16034. (getMessageLength): New function.
  16035. (onSendComplete): New function.
  16036. * src/AllowedFastMessage.h: New class.
  16037. * src/AllowedFastMessage.cc: New class.
  16038. * src/RejectMessage.h: New class.
  16039. * src/RejectMessage.cc: New class.
  16040. * src/SuggestPieceMessage.h: New class.
  16041. * src/SuggestPieceMessage.cc: New class.
  16042. * src/HaveAllMessage.h: New class.
  16043. * src/HaveAllMessage.cc: New class.
  16044. * src/HaveNoneMessage.h: New class.
  16045. * src/HaveNoneMessage.cc: New class.
  16046. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  16047. (msg): New variable.
  16048. (reserved): New variable.
  16049. (create): New function.
  16050. (getId): New function.
  16051. (receivedAction): New function.
  16052. (getMessage): New function.
  16053. (getMessageLength): New function.
  16054. (isFastExtensionSupported): New function.
  16055. * src/HandshakeMessage.cc
  16056. (HandshakeMessage): Moved here from HandshakeMessage.h.
  16057. (create): New function.
  16058. (getMessage): New function.
  16059. (getMessageLength): New function.
  16060. (toString): Added the output of reserved field.
  16061. (check): Added const qualifier.
  16062. (isFastExtensionSupported): New function.
  16063. * src/PeerMessageUtil.h
  16064. (createChokeMessage): Removed.
  16065. (createUnchokeMessage): Removed.
  16066. (createInterestedMessage): Removed.
  16067. (createNotInterestedMessage): Removed.
  16068. (createHaveMessage): Removed.
  16069. (createBitfieldMessage): Removed.
  16070. (createRequestMessage): Removed.
  16071. (createCancelMessage): Removed.
  16072. (createPieceMessage): Removed.
  16073. (createPortMessage): Removed.
  16074. (createChokeMessage): Removed.
  16075. (createUnchokeMessage): Removed.
  16076. (createInterestedMessage): Removed.
  16077. (createNotInterestedMessage): Removed.
  16078. (createHaveMessage): Removed.
  16079. (createBitfieldMessage): Removed.
  16080. (createRequestMessage): Removed.
  16081. (createCancelMessage): Removed.
  16082. (createPieceMessage): Removed.
  16083. (createKeepAliveMessage): Removed.
  16084. (createHandshakeMessage): Removed.
  16085. (setIntParam): New function.
  16086. (createPeerMessageString): New function.
  16087. * src/PeerMessageUtil.cc
  16088. (createChokeMessage): Removed.
  16089. (createUnchokeMessage): Removed.
  16090. (createInterestedMessage): Removed.
  16091. (createNotInterestedMessage): Removed.
  16092. (createHaveMessage): Removed.
  16093. (createBitfieldMessage): Removed.
  16094. (createRequestMessage): Removed.
  16095. (createCancelMessage): Removed.
  16096. (createPieceMessage): Removed.
  16097. (createPortMessage): Removed.
  16098. (createRequestMessage): Removed.
  16099. (createCancelMessage): Removed.
  16100. (createPieceMessage): Removed.
  16101. (createHaveMessage): Removed.
  16102. (createChokeMessage): Removed.
  16103. (createUnchokeMessage): Removed.
  16104. (createInterestedMessage): Removed.
  16105. (createNotInterestedMessage): Removed.
  16106. (createBitfieldMessage): Removed.
  16107. (createKeepAliveMessage): Removed.
  16108. (createHandshakeMessage): Removed.
  16109. (setIntParam): New function.
  16110. (createPeerMessageString): New function.
  16111. * src/PeerConnection.h
  16112. (peer): Removed.
  16113. (torrentMan): Removed.
  16114. (createNLengthMessage): Removed.
  16115. (setIntParam): Removed.
  16116. (writeOutgoingMessageLog): Removed all overloaded functions.
  16117. (PeerConnection): Deleted peer and torrentMan from its arguments.
  16118. (sendMessage): New function.
  16119. (sendHandshake): Removed.
  16120. (sendKeepAlive): Removed.
  16121. (sendChoke): Removed.
  16122. (sendUnchoke): Removed.
  16123. (sendInterested): Removed.
  16124. (sendNotInterested): Removed.
  16125. (sendHave): Removed.
  16126. (sendBitfield): Removed.
  16127. (sendRequest): Removed.
  16128. (sendPiece): Removed.
  16129. (sendPieceHeader): Removed.
  16130. (sendPieceData): Removed.
  16131. (sendCancel): Removed.
  16132. (getPeer): Removed.
  16133. * src/PeerConnection.cc
  16134. (PeerConnection): Deleted peer and torrentMan from its arguments.
  16135. (sendHandshake): Removed.
  16136. (sendKeepAlive): Removed.
  16137. (createNLengthMessage): Removed.
  16138. (setIntParam): Removed.
  16139. (writeOutgoingMessageLog): Removed all overloaded functions.
  16140. (sendChoke): Removed.
  16141. (sendUnchoke): Removed.
  16142. (sendInterested): Removed.
  16143. (sendNotInterested): Removed.
  16144. (sendHave): Removed.
  16145. (sendBitfield): Removed.
  16146. (sendRequest): Removed.
  16147. (sendPiece): Removed.
  16148. (sendPieceHeader): Removed.
  16149. (sendPieceData): Removed.
  16150. (sendMessage): New function.
  16151. (sendCancel): Removed.
  16152. * src/PeerInteractionCommand.cc
  16153. (PeerInteractionCommand): Call setUploadLimit.
  16154. (executeInternal): Call setUploadLimit.
  16155. Added the handling of "inProgress" state of handshake message.
  16156. Call sendBitfield() or sendAllowdFast() instead of deprecated
  16157. sendNow().
  16158. (keepAlive): Call addMessage and sendMessage instead of deprecated
  16159. sendNow().
  16160. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  16161. * src/TorrentMan.h
  16162. (PEER_ID_LENGTH): New definition.
  16163. (hasAllPieces): New function.
  16164. * src/TorrentMan.cc
  16165. (getMissingPiece): Added the handling of fast extension.
  16166. (cancelPiece): Call updatePiece().
  16167. (hasAllPieces): New function.
  16168. * src/PeerInteraction.h
  16169. (fastSet): New variable.
  16170. (getNewPieceAndSendInterest): Changed the return type to void.
  16171. (send): Renamed as sendMessages.
  16172. (deleteAllRequestSlot): Removed.
  16173. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  16174. (cancelAllRequest): Removed all overloaded functions.
  16175. (deleteAllRequestSlot): Removed.
  16176. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  16177. (rejectPieceMessageInQueue): New function.
  16178. (rejectAllPieceMessageInQueue): New function.
  16179. (onChoked): New function.
  16180. (isSendingMessageInProgress): New function.
  16181. (getCorrespondingRequestSlot): Changed its arguments.
  16182. (isInFastSet): New function.
  16183. (addFastSetIndex): New function.
  16184. (addRequests): New function.
  16185. (sendNow): Removed.
  16186. (trySendNow): Removed.
  16187. (sendBitfield): New function.
  16188. (sendAllowdFast): New function.
  16189. (createHaveAllMessage): New function.
  16190. (createHaveNoneMessage): New function.
  16191. (createRejectMessage): New function.
  16192. (createAllowedFastMessage): New function.
  16193. * src/PeerInteraction.cc
  16194. (send): Renamed as sendMessages.
  16195. (sendMessages): New function.
  16196. (MsgPushBack): New class.
  16197. (isSendingMessageInProgress): New function.
  16198. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  16199. (rejectAllPieceMessageInQueue): New function.
  16200. Added the handling of fast extension.
  16201. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  16202. (rejectPieceMessageInQueue): New function.
  16203. Added the handling of fast extension.
  16204. (deleteRequestSlot): Replaced for loop with std::find.
  16205. (onChoked): New function.
  16206. (deleteAllRequestSlot): Removed.
  16207. (abortPiece): Rewirtten.
  16208. (deleteTimeoutRequestSlot): Updated log messages.
  16209. (getCorrespondingRequestSlot): Changed its arguments.
  16210. (cancelAllRequest): Removed all overloaded functions.
  16211. (receiveHandshake): Added the check to see whether an incoming peer
  16212. supports fast extension.
  16213. (createHandshakeMessage): Use HandshakeMessage::create instead of
  16214. PeerMessageUtil.
  16215. (createPeerMessage): Use create() of each message class instead of
  16216. PeerMessageUtil.
  16217. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  16218. AllowedFastMessage were added.
  16219. (getNewPieceAndSendInterest): Changed its return value type to void.
  16220. Added the handling of fast extension.
  16221. (addRequests): New function.
  16222. (sendNow): Removed.
  16223. (sendHandshake): Rewritten.
  16224. (trySendNow): Removed.
  16225. (sendBitfield): New function.
  16226. (sendAllowdFast): New function.
  16227. (isInFastSet): New function.
  16228. (addFastSetIndex): New function.
  16229. (createRequestMessage): Use RequestMessage::create instead of
  16230. PeerMessageUtil.
  16231. (createCancelMessage): Use CancelMessage::create instead of
  16232. PeerMessageUtil.
  16233. (createPieceMessage): Use PieceMessage::create instead of
  16234. PeerMessageUtil.
  16235. (createHaveMessage): Use HaveMessage::create instead of
  16236. PeerMessageUtil.
  16237. (createChokeMessage): Use ChokeMessage::create instead of
  16238. PeerMessageUtil.
  16239. (createUnchokeMessage): Use UnchokeMessage::create instead of
  16240. PeerMessageUtil.
  16241. (createInterestedMessage): Use InterestedMessage::create instead of
  16242. PeerMessageUtil.
  16243. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  16244. of PeerMessageUtil.
  16245. (createBitfieldMessage): Use BitfieldMessage::create instead of
  16246. PeerMessageUtil.
  16247. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  16248. PeerMessageUtil.
  16249. (createHaveAllMessage): New function.
  16250. (createHaveNoneMessage): New function.
  16251. (createRejectMessage): New function.
  16252. (createAllowedFastMessage: New function.
  16253. * src/Util.h
  16254. (sha1Sum): New function.
  16255. (computeFastSet): New function.
  16256. * src/Util.cc
  16257. (sha1Sum): New function.
  16258. (computeFastSet): New function.
  16259. * src/Peer.h
  16260. (fastExtensionEnabled): New variable.
  16261. (fastSet): New variable.
  16262. (setAllBitfield): New function.
  16263. (setFastExtensionEnabled): New function.
  16264. (isFastExtensionEnabled): New function.
  16265. (addFastSetIndex): New function.
  16266. (getFastSet): New function.
  16267. (isInFastSet): New function.
  16268. (countFastSet): New function.
  16269. * src/Peer.cc
  16270. (isInFastSet): New function.
  16271. (addFastSetIndex): New function.
  16272. (setAllBitfield): New function.
  16273. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  16274. sockets.
  16275. * src/PeerAbstractCommand.cc
  16276. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  16277. and uploadLimit.
  16278. (execute): Changed the procedure of checking sockets. The upload speed
  16279. checking were added.
  16280. (setUploadLimit): New function.
  16281. (setUploadLimitCheck): New function.
  16282. * src/PeerAbstractCommand.h
  16283. (setUploadLimit): New function.
  16284. (setUploadLimitCheck): New function.
  16285. (uploadLimit): New variable.
  16286. (uploadLimitCheck): New variable.
  16287. To contact a tracker regularly:
  16288. * src/TrackerWatcherCommand.h (interval): New variable.
  16289. (checkPoint): New variable.
  16290. (TrackerWatcherCommand): Added interval argument.
  16291. * src/TrackerWatcherCommand.cc
  16292. (TrackerWatcherCommand): Initialized checkPoint.
  16293. (execute): Now a tracker is contacted in every specified period.
  16294. If peer list is not needed, send request with numwant=0.
  16295. * src/TrackerUpdateCommand.cc
  16296. (execute): Updated log messages.
  16297. * src/DownloadEngine.cc
  16298. (~DownloadEngine): Removed two asserts.
  16299. (waitData): Uncommented wfds. May be a bug fix.
  16300. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16301. * src/PeerInteractionCommand.h
  16302. (checkInactiveConnection): Removed.
  16303. * src/PeerInteractionCommand.cc
  16304. (executeInternal): Removed following function calls:
  16305. detectMessageFlooding(), checkLongTimePeerChoking and
  16306. checkInactiveConnection().
  16307. (checkInactiveConnection): Removed.
  16308. (detectMessageFlooding): Removed function call to
  16309. checkInactiveConnection().
  16310. * src/PeerMessageUtil.h
  16311. (createChokeMessage): New function. Overload.
  16312. (createUnchokeMessage): New function. Overload.
  16313. (createInterestedMessage): New function. Overload.
  16314. (createNotInterestedMessage): New function. Overload.
  16315. (createHaveMessage): New function. Overload.
  16316. (createBitfieldMessage): New function. Overload.
  16317. (createRequestMessage): New function. Overload.
  16318. (createCancelMessage): New function. Overload.
  16319. (createPieceMessage): New function. Overload.
  16320. (createKeepAliveMessage): New function. Overload.
  16321. * src/PeerMessageUtil.cc
  16322. (createChokeMessage): New function. Overload.
  16323. (createUnchokeMessage): New function. Overload.
  16324. (createInterestedMessage): New function. Overload.
  16325. (createNotInterestedMessage): New function. Overload.
  16326. (createHaveMessage): New function. Overload.
  16327. (createBitfieldMessage): New function. Overload.
  16328. (createRequestMessage): New function. Overload.
  16329. (createCancelMessage): New function. Overload.
  16330. (createPieceMessage): New function. Overload.
  16331. (createKeepAliveMessage): New function. Overload.
  16332. * src/SendMessageQueue.cc
  16333. (createRequestMessage): Use PeerMessageUtil.
  16334. (createCancelMessage): Use PeerMessageUtil.
  16335. (createPieceMessage): Use PeerMessageUtil.
  16336. (createHaveMessage): Use PeerMessageUtil.
  16337. (createChokeMessage): Use PeerMessageUtil.
  16338. (createUnchokeMessage): Use PeerMessageUtil.
  16339. (createInterestedMessage): Use PeerMessageUtil.
  16340. (createNotInterestedMessage): Use PeerMessageUtil.
  16341. (createBitfieldMessage): Use PeerMessageUtil.
  16342. (createKeepAliveMessage): Use PeerMessageUtil.
  16343. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  16344. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  16345. * src/PeerInteraction.h: New class.
  16346. * src/PeerInteraction.cc: New class.
  16347. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16348. Each peer message has its own class.
  16349. * src/PendingMessages.h: Removed.
  16350. * src/PendingMessages.cc: Removed. The sending process was moved to
  16351. each message class.
  16352. * src/RequestSlotMan.h: Removed.
  16353. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  16354. SendMessageQueue.
  16355. * src/RequestMessage.h: New class.
  16356. * src/RequestMessage.cc: New class.
  16357. * src/CancelMessage.h: New class.
  16358. * src/CancelMessage.cc: New class.
  16359. * src/BitfieldMessage.h: New class.
  16360. * src/BitfieldMessage.cc: New class.
  16361. * src/ChokeMessage.h: New class.
  16362. * src/ChokeMessage.cc: New class.
  16363. * src/KeepAliveMessage.h: New class.
  16364. * src/KeepAliveMessage.cc: New class.
  16365. * src/PortMessage.h: New class.
  16366. * src/UnchokeMessage.h: New class.
  16367. * src/UnchokeMessage.cc: New class.
  16368. * src/PieceMessage.h: New class.
  16369. * src/PieceMessage.cc: New class.
  16370. * src/HaveMessage.h: New class.
  16371. * src/HaveMessage.cc: New class.
  16372. * src/BitfieldMessage.h: New class.
  16373. * src/BitfieldMessage.cc: New class.
  16374. * src/NotInterestedMessage.h: New class.
  16375. * src/NotInterestedMessage.cc: New class.
  16376. * src/InterestedMessage.h: New class.
  16377. * src/InterestedMessage.cc: New class.
  16378. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  16379. (getSendMessageQueue): New function.
  16380. (setSendMessageQueue): New function.
  16381. * src/HandshakeMessage.cc: New class.
  16382. * src/PeerConnection.h (receiveMessage): Changed return value and
  16383. arguments.
  16384. (receiveHandshake): Changed return value and arguments.
  16385. * src/PeerConnection.cc (receiveMessage): Do not create message class
  16386. here.
  16387. (receiveHandshake): Do not create handshake class here.
  16388. * src/PeerInteractionCommand.h (peerConnection): Removed.
  16389. (piece): Removed.
  16390. (syncPiece): Removed.
  16391. (sendInterest): Removed.
  16392. (sendMessages): Removed.
  16393. (createRequestPendingMessage): Removed.
  16394. (checkPieceHash): Removed.
  16395. (erasePieceOnDisk): Removed.
  16396. (getNewPieceAndSendInterest): Removed.
  16397. (onGotNewPice): Removed.
  16398. (onGotWrongPiece): Removed.
  16399. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16400. Removed peerConnection, piece.
  16401. (~PeerInteractionCommand): Removed peerConnection.
  16402. (executeInternal): Use sendMessageQueue instead of peerConnection.
  16403. (syncPiece): Moved to SendMessageQueue.
  16404. (decideChoking): Removed PendingMessage.
  16405. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  16406. The action after receiving peer message was moved to each message
  16407. class.
  16408. (onGotNewPice): Moved to SendMessageQueue.
  16409. (onGotWrongPiece): Moved to SendMessageQueue.
  16410. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  16411. (sendInterest): Moved to SendMessageQueue.
  16412. (createRequestPendingMessage): Removed.
  16413. (sendMessages): Moved to SendMessageQueue.
  16414. (onAbort): Use SendMessageQueue::abortPiece()
  16415. (keepAlive): Use sendMessageQueue instead of peerConnection.
  16416. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  16417. (checkPieceHash): Moved to SendMessageQueue.
  16418. (erasePieceOnDisk): Moved to SendMessageQueue.
  16419. * src/PeerMessageUtil.h
  16420. (createBitfieldMessage): Removed.
  16421. (createHaveMessage): Changed return value and arguments.
  16422. (createBitfieldMessage): Changed return value and arguments.
  16423. (createRequestCancelMessage): Removed.
  16424. (createPieceMessage): Changed return value and arguments.
  16425. (getShortIntParam): New function.
  16426. (checkIndex): Changed arguments.
  16427. (checkBegin): Changed arguments.
  16428. (checkLength): Changed arguments.
  16429. (checkPieceOffset): Removed.
  16430. (checkRange): New function.
  16431. (checkBitfield): Changed arguments.
  16432. (createPeerMessage): Removed.
  16433. (checkIntegrity): Removed.
  16434. (createHandshakeMessage): Changed arguments.
  16435. (createChokeMessage): New function.
  16436. (createUnchokeMessage): New function.
  16437. (createInterestedMessage): New function.
  16438. (createNotInterestedMessage): New function.
  16439. (createRequestMessage): New function.
  16440. (createCancelMessage): New function.
  16441. (createPortMessage): New function.
  16442. * src/PeerMessageUtil.cc
  16443. (createBitfieldMessage): Removed.
  16444. (createHaveMessage): Changed return value and arguments.
  16445. (createBitfieldMessage): Changed return value and arguments.
  16446. (createRequestCancelMessage): Removed.
  16447. (createPieceMessage): Changed return value and arguments.
  16448. (getShortIntParam): New function.
  16449. (checkIndex): Changed arguments.
  16450. (checkBegin): Changed arguments.
  16451. (checkLength): Changed arguments.
  16452. (checkPieceOffset): Removed.
  16453. (checkRange): New function.
  16454. (checkBitfield): Changed arguments.
  16455. (createPeerMessage): Removed.
  16456. (checkIntegrity): Removed.
  16457. (createHandshakeMessage): Changed arguments.
  16458. (createChokeMessage): New function.
  16459. (createUnchokeMessage): New function.
  16460. (createInterestedMessage): New function.
  16461. (createNotInterestedMessage): New function.
  16462. (createRequestMessage): New function.
  16463. (createCancelMessage): New function.
  16464. (createPortMessage): New function.
  16465. * src/PeerMessage.h
  16466. (id): Removed.
  16467. (index): Removed.
  16468. (begin): Removed.
  16469. (length): Removed.
  16470. (bitfield): Removed.
  16471. (bitfieldLength): Removed.
  16472. (block): Removed.
  16473. (blockLength): Removed.
  16474. (inProgress): New variable.
  16475. (cuid): New variable.
  16476. (peer): New variable.
  16477. (sendMessageQueue): New variable.
  16478. (logger): New variable.
  16479. (setBitfield): Removed.
  16480. (getBitfield): Removed.
  16481. (setBlock): Removed.
  16482. (getBlock): Removed.
  16483. (getBitfieldLength): Removed.
  16484. (getBlockLength): Removed.
  16485. (isInProgress): New function.
  16486. (toString): Made pure virtual.
  16487. (check): New function.
  16488. (send): New function.
  16489. (receivedAction): New function.
  16490. (getId): Made pure virtual.
  16491. (setId): Removed.
  16492. (getIndex): Removed.
  16493. (setIndex): Removed.
  16494. (getBegin): Removed.
  16495. (setBegin): Removed.
  16496. (getLength): Removed.
  16497. (setLength): Removed.
  16498. (getCuid): New function.
  16499. (setCuid): New function.
  16500. (getPeer): New function.
  16501. (setPeer): New function.
  16502. (getSendMessageQueue): New function.
  16503. (setSendMessageQueue): New function.
  16504. (ID): Removed.
  16505. * src/PeerMessage.cc
  16506. (setBitfield): Removed.
  16507. (setBlock): Removed.
  16508. (toString): Removed.
  16509. * src/TorrentMan.h
  16510. (getPieceLength): New function.
  16511. (getPieceLength): New function.
  16512. * src/SendMessageQueue.h
  16513. (REQUEST_TIME_OUT): New definition.
  16514. (RequestSlots): New definition.
  16515. (MessageQueue): New definition.
  16516. (requestSlotMan): Removed.
  16517. (pendingMessages): Removed.
  16518. (requestSlots): New variable.
  16519. (messageQueue): New variable.
  16520. (torrentMan): New variable.
  16521. (peerConnection): New variable.
  16522. (peer): New variable.
  16523. (piece): New variable.
  16524. (getNewPieceAndSendInterest): New function.
  16525. (createPeerMessage): New function.
  16526. (createHandshakeMessage): New function.
  16527. (send): Made private.
  16528. (setPeerMessageCommonProperty): New function.
  16529. (deleteAllRequestSlot): New function.
  16530. (deleteRequestMessageInQueue): New function.
  16531. (cancelAllRequest): Made private.
  16532. (cancelAllRequest): Made private.
  16533. (countRequestSlot): Made private.
  16534. (addPendingMessage): Removed.
  16535. (deletePendingPieceMessage): Removed.
  16536. (deletePendingRequestMessage): Removed.
  16537. (addMessage): New function.
  16538. (deletePieceMessageInQueue): New function.
  16539. (deleteTimeoutRequestSlot): Changed argument.
  16540. (deleteCompletedRequestSlot): Changed argument.
  16541. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  16542. (getCorrespondingRequestSlot): New function.
  16543. (countPendingMessage): Removed.
  16544. (countMessageInQueue): New function.
  16545. (getTorrentMan): New function.
  16546. (getPeerConnection): New function.
  16547. (hasDownloadPiece): New function.
  16548. (getDownloadPiece): New function.
  16549. (setDownloadPiece): New function.
  16550. (syncPiece): New function.
  16551. (sendMessages): New function.
  16552. (sendNow): New function.
  16553. (trySendNow): New function.
  16554. (abortPiece): New function.
  16555. (sendHandshake): New function.
  16556. (receiveMessage): New function.
  16557. (receiveHandshake): New function.
  16558. (createRequestMessage): New function.
  16559. (createCancelMessage): New function.
  16560. (createPieceMessage): New function.
  16561. (createHaveMessage): New function.
  16562. (createChokeMessage): New function.
  16563. (createUnchokeMessage): New function.
  16564. (createInterestedMessage): New function.
  16565. (createNotInterestedMessage): New function.
  16566. (createBitfieldMessage): New function.
  16567. (createKeepAliveMessage): New function.
  16568. * src/SendMessageQueue.cc
  16569. (SendMessageQueue): Removed requestSlotMan.
  16570. Instantiated peerConnection here.
  16571. (~SendMessageQueue): Removed requestSlotMan.
  16572. Added deletion of peerConnection and the contents of messageQueue.
  16573. (send): Updated according to the change of messageQueue.
  16574. (addPendingMessage): Renamed to addMessage.
  16575. (addMessage): New function.
  16576. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  16577. (deletePieceMessageInQueue): New function.
  16578. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  16579. (deleteRequestMessageInQueue): New function.
  16580. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  16581. here.
  16582. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  16583. (...) was moved here.
  16584. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  16585. moved here.
  16586. (deleteCompletedRequestSlot):
  16587. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  16588. (getCorrespondingRequestSlot):
  16589. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  16590. And renamed to getCorrespondingRequestSlot, correcting a typo.
  16591. (countPendingMessage): Renamed to countMessageInQueue.
  16592. (countMessageInQueue): New function.
  16593. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  16594. (receiveHandshake): New function.
  16595. (createHandshakeMessage): New function.
  16596. (receiveMessage): New function.
  16597. (createPeerMessage): New function.
  16598. (syncPiece): New function.
  16599. (getNewPieceAndSendInterest): New function.
  16600. (sendMessages): New function.
  16601. (sendNow): New function.
  16602. (trySendNow): New function.
  16603. (sendHandshake): New function.
  16604. (abortPiece): New function.
  16605. (getDownloadPiece): New function.
  16606. (getPeerMessageCommonProperty): New function.
  16607. (createRequestMessage): New function.
  16608. (createCancelMessage): New function.
  16609. (createPieceMessage): New function.
  16610. (createHaveMessage): New function.
  16611. (createChokeMessage): New function.
  16612. (createUnchokeMessage): New function.
  16613. (createInterestedMessage): New function.
  16614. (createNotInterestedMessage): New function.
  16615. (createBitfieldMessage): New function.
  16616. (createKeepAliveMessage): New function.
  16617. To add simple Content-Disposition support:
  16618. * src/HttpResponseCommand.h (determinFilename): New function.
  16619. * src/HttpResponseCommand.cc (executeInternal):
  16620. Use determinFilename(headers) instead of req->getFile() when comparing
  16621. filename.
  16622. (determinFilename): New function.
  16623. (handleDefaultEncoding): Use determinFilename(headers) instead of
  16624. req->getFile().
  16625. (handleOtherEncoding): Use determinFilename(headers) instead of
  16626. req->getFile().
  16627. * src/Util.h (getContentDispositionFilename): New function.
  16628. * src/Util.cc (getContentDispositionFilename): New function.
  16629. * src/LogFactory.h (release): New function.
  16630. * src/LogFactory.cc (release): New function.
  16631. To fix a bug that causes out-of-bound exception when HTTP status
  16632. line is wrong:
  16633. * src/HttpConnection.cc (receiveResponse): Added a check for header
  16634. size.
  16635. * src/common.h (Deleter): New class.
  16636. * src/SegmentMan.cc
  16637. (~SegmentMan): Added deletion of splitter and diskWriter.
  16638. * src/DownloadEngine.h
  16639. (Commands): Use deque.
  16640. (clearQueue): New function.
  16641. * src/DownloadEngine.cc
  16642. (~DownloadEngine): Added deletion of segmentMan.
  16643. (cleanQueue): New function.
  16644. * src/TorrentDownloadEngine.h
  16645. (TorrentDownloadEngine): The implementation was moved to
  16646. TorrentDownloadEngine.cc.
  16647. (~TorrentDownloadEngine): The implementation was moved to
  16648. TorrentDownloadEngine.cc.
  16649. * src/TorrentDownloadEngine.cc
  16650. (~TorrentDownloadEngine): Added deletion of torrentMan.
  16651. * src/main.cc
  16652. (clearRequest): Removed.
  16653. (handler): Added deletion of e.
  16654. (torrentHandler): Added deletion of te.
  16655. (main): Do not share splitter.
  16656. Use Deleter instead of clearRequest.
  16657. Deletion of classes were updated.
  16658. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16659. * src/main.cc (main): Fixed typo.
  16660. * src/message.h: Fixed typo.
  16661. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  16662. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16663. To add --select-file command-line option:
  16664. * src/Util.cc
  16665. (unfoldRange): New function.
  16666. (getNum): New function.
  16667. (unfoldSubRange): New function
  16668. * src/main.cc
  16669. (showUsage): Added help message.
  16670. (main): Added --select-file command-line option. Updated the layout of
  16671. file listing.
  16672. * src/common.h
  16673. (Integers): New definition.
  16674. * src/SocketCore.cc
  16675. (writeData): Removed timeout argument.
  16676. (readData): Removed timeout argument.
  16677. (peekData): Removed timeout argument.
  16678. * src/Socket.cc
  16679. (writeData): Removed timeout argument.
  16680. (readData): Removed timeout argument.
  16681. (peekData): Removed timeout argument.
  16682. * Release 0.4.1
  16683. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16684. To deploy upload rate based choking algorithm:
  16685. * src/PeerInteractionCommand.cc
  16686. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  16687. peer currently used.
  16688. (decideChoking): Deleted the choke/unchoke decision algorithm when
  16689. download completes. Simplified.
  16690. (receiveMessage): Updated.
  16691. * src/TorrentMan.h
  16692. (activePeers): New variable.
  16693. (addActivePeer): New function.
  16694. (getActivePeers): New function.
  16695. (deleteActivePeer): New function.
  16696. * src/TorrentMan.cc
  16697. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  16698. * src/PeerAbstractCommand.cc
  16699. (onAbort): Use peer->resetStatus().
  16700. * src/main.cc
  16701. (PeerChokeCommand.h): Included.
  16702. (main): Added the instance of ChokingCommand to the command queue.
  16703. * src/Peer.h
  16704. (amChoking): Renamed from amChocking
  16705. (chokingRequired): New variable.
  16706. (optUnchoking): New variable.
  16707. (deltaUpload): New variable.
  16708. (deltaDownload): New variable.
  16709. (addDeltaUpload): New function.
  16710. (resetDeltaUpload): New function.
  16711. (addDeltaDownload): New function.
  16712. (resetDeltaDownload): New function.
  16713. (addPeerUpload): Added a call to addDeltaUpload.
  16714. (addPeerDownload): Added a call to addDeltaDownload.
  16715. * src/Peer.cc
  16716. (shouldBeChoking): Renamed from shouldChoke.
  16717. (resetStatus): New function.
  16718. * src/PeerChokeCommand.h: New class.
  16719. * src/PeerChokeCommand.cc: New class.
  16720. To add lazy upload speed limiter:
  16721. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  16722. statistics calculation to TorrentDownloadEngine.
  16723. * src/TorrentConsoleDownloadEngine.cc
  16724. (sendStatistics): Renamed from printStatistics.
  16725. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  16726. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  16727. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  16728. * src/TorrentDownloadEngine.h: Added the variables for statistics
  16729. calculation.
  16730. (sendStatistics): New function as pure virtual function.
  16731. (getUploadSpeed): New function.
  16732. * src/TorrentDownloadEngine.cc
  16733. (initStatistics): New function.
  16734. (calculateSpeed): New function.
  16735. (calculateStatistics): New function.
  16736. * src/SendMessageQueue.h
  16737. (uploadLength): New variable.
  16738. (send): Added an argument.
  16739. (setUploadLimit): New function.
  16740. (getUploadLimit): New function.
  16741. * src/SendMessageQueue.cc
  16742. (send): Added upload speed limiter.
  16743. * src/prefs.h
  16744. (PREF_UPLOAD_LIMIT): New definition.
  16745. * src/PeerInteractionCommand.cc
  16746. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  16747. * src/main.cc
  16748. (main): Added --upload-limit option
  16749. For bug fixes:
  16750. * src/main.cc
  16751. (showUsage): Corrected --listen-port help
  16752. Other changes:
  16753. * src/TorrentMan.cc
  16754. (getPeer): Return nullPeer if connection is grather than
  16755. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  16756. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16757. To add some useful information to the exception message:
  16758. * src/SocketCore.cc : Updated messages.
  16759. * src/SegmentMan.cc :
  16760. * src/TorrentMan.cc : Updated messages.
  16761. * src/MultiDiskWriter.cc : Updated messages.
  16762. * src/Util.cc : Updated messages.
  16763. * src/AbstractDiskWriter.cc : Updated messages.
  16764. * src/PreAllocationDiskWriter.cc : Updated messages.
  16765. * src/message.cc : Added new messages. Updated some messages.
  16766. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  16767. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  16768. Updated threshold from 30 to 15.
  16769. * src/AbstractDiskWriter.h (filename): New variable.
  16770. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  16771. (createFile): Assigned filename.
  16772. * src/main.cc: Updated the help message for http-auth-scheme.
  16773. * Release 0.4.0
  16774. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16775. To add TrackerUpdateCommand with which replaces
  16776. CompactTrackerResponseProcessor:
  16777. * src/TrackerWatcherCommand.h (req): Removed.
  16778. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  16779. if the number of peer connections are less than 30.
  16780. * src/ByteArrayDiskWriter.h (readData): Implemented.
  16781. * src/SegmentMan.h (diskWriter): New function.
  16782. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  16783. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  16784. (main): Use TrackerUpdateCommand.
  16785. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  16786. (req): New variable.
  16787. (setTrackerResponseProcessor): Removed.
  16788. (getTrackerResponseProcessor): Removed.
  16789. (processTrackerResponse): Removed.
  16790. * src/DownloadEngine.h (diskWriter): Removed.
  16791. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  16792. to torrentMan->processTrackerResponse().
  16793. To add Util::expandBuffer:
  16794. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  16795. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  16796. * src/Util.h (expandBuffer): New function.
  16797. To fix the bug that causes segmentation fault when "-l ." is specified
  16798. in command-line option:
  16799. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  16800. (openFile): New function.
  16801. (closeFile): New function.
  16802. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  16803. (~SimpleLogger): Call closeFile();
  16804. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  16805. * src/main.cc (main): Added a check to see logger is configured
  16806. properly.
  16807. To enable HTTP authentication without specifying "--http-auth-scheme"
  16808. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  16809. * src/HttpConnection.cc (createRequest): Send Authorization header
  16810. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  16811. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  16812. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  16813. * src/Peer.cc (shouldChoke): Updated algorithm.
  16814. * src/message.h (EX_AUTH_FAILED): New definition.
  16815. (EX_FILE_OPEN): New definition.
  16816. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  16817. if status == 401.
  16818. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  16819. if req->isTorrent == true.
  16820. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  16821. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  16822. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  16823. (createFile): Updated message.
  16824. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16825. To add a readout of estimated remaining time to normal HTTP/FTP
  16826. downloads:
  16827. * src/ConsoleDownloadEngine.h (startup): New variable.
  16828. (startupLength): New variable.
  16829. (isStartupLengthSet): New variable.
  16830. (avgSpeed): New variable.
  16831. (eta): New variable.
  16832. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  16833. estimated remaining time.
  16834. (initStatistics): Initialized newly added variables.
  16835. (calculateStatistics): Calculate average speed and estimated remaining
  16836. time.
  16837. To decouple TorrentDownloadEngine from HttpResponseCommand:
  16838. * src/TrackerDownloadCommand.h: Removed.
  16839. * src/TrackerDownloadCommand.cc: Removed.
  16840. * src/TrackerInitCommand.h: Removed.
  16841. * src/TrackerInitCommand.cc: Removed.
  16842. * src/TrackerUpdateCommand.h: Removed.
  16843. * src/TrackerUpdateCommand.cc: Removed.
  16844. * src/TrackerWatcherCommand.cc (execute): The construction of request
  16845. url written in TrackerInitCommand was moved here. Do not create
  16846. tracker request command if torrentMan->trackers != 0.
  16847. * src/CompactTrackerResponseProcessor.h: New class.
  16848. * src/CompactTrackerResponseProcessor.cc: New class.
  16849. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  16850. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  16851. Decoupled TorrentDownloadEngine from this.
  16852. * src/SegmentMan.h (init): New function.
  16853. * src/SegmentMan.cc (init): New function.
  16854. * src/TorrentMan.h (responseProcessor): New variable.
  16855. (trackers): New variable.
  16856. (setTrackerResponseProcessor): New function.
  16857. (getTrackerResponseProcessor): New function.
  16858. (processTrackerResponse): New function.
  16859. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  16860. (processTrackerResponse): New function.
  16861. * src/main.cc (main): Use ByteArrayDiskWriter and
  16862. CompactTrackerResponseProcessor.
  16863. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  16864. processTrackerResponse().
  16865. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  16866. readout.
  16867. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  16868. which indicates download has completed.
  16869. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  16870. (closeFile): fd >= 0, not fd > 0
  16871. * src/main.cc (main): Added short cut for show-files.
  16872. Added short cut for torrent-file.
  16873. Added new command-line option listen-port.
  16874. Updated i18n messages.
  16875. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16876. To add LogFactory which creates singleton logger:
  16877. * src/LogFactory.h: New class.
  16878. * src/LogFactory.cc: New class.
  16879. * src/Command.h (logger): New variable.
  16880. (Constructor): Use LogFactory.
  16881. * src/AbstractCommand.cc: Use Command::logger
  16882. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  16883. Use LogFactory.
  16884. * src/SegmentSplitter.h : Made logger protected.
  16885. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  16886. * src/SegmentMan.cc (Constructor): Use LogFactory.
  16887. * src/DownloadEngine.h : Made logger protected.
  16888. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  16889. * src/PeerInteractionCommand.cc : Use Command::logger.
  16890. * src/HttpResponseCommand.cc : Use Command::logger.
  16891. * src/SegmentMan.h : Made logger private.
  16892. * src/TorrentMan.h : Made logger private.
  16893. * src/TorrentMan.cc : Use LogFactory.
  16894. * src/FtpNegotiateCommand.cc : Use Command::logger.
  16895. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  16896. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  16897. Use LogFactory.
  16898. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  16899. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  16900. Use LogFactory.
  16901. * src/DownloadCommand.cc : Use Command::logger.
  16902. * src/PeerAbstractCommand.cc : Use Command::logger.
  16903. * src/PeerListenCommand.cc : Use Command::logger.
  16904. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  16905. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  16906. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  16907. * src/TrackerWatcherCommand.cc : Use Command::logger.
  16908. * src/TrackerUpdateCommand.cc : Use Command::logger.
  16909. * src/TrackerDownloadCommand.cc : Use Command::logger.
  16910. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  16911. Use LogFactory.
  16912. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  16913. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  16914. Use LogFactory.
  16915. * src/main.cc (main): Use LogFactory.
  16916. * src/DiskAdaptor.h (logger): New variable.
  16917. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  16918. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  16919. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16920. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  16921. parameter to a tracker request.
  16922. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  16923. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  16924. * src/main.cc (setSignalHander): New function.
  16925. (main): Added a handler for SIGTERM.
  16926. (handler): Updated message.
  16927. (torrentHandler): Updated message.
  16928. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16929. * src/TorrentConsoleDownloadEngine.cc
  16930. (onPartialDownloadingCompletes): Renamed as
  16931. onSelectiveDownloadingCompletes.
  16932. (onSelectiveDownloadingCompletes): Updated message.
  16933. To add DiskAdaptor which abstract DiskWriter family:
  16934. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  16935. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  16936. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  16937. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  16938. MultiDiskAdaptor.h.
  16939. (readFileEntry): Changed its arguments.
  16940. (setup): setupDiskWriter is merged into this function.
  16941. (setupDiskWriter): Removed.
  16942. (setFileFilter): New function.
  16943. (readFileEntryFromMetaInfoFile): Updated according to the changes
  16944. made in readFileEntry.
  16945. (getFilePath): Removed.
  16946. (getTempFilePath): Removed.
  16947. (getSegmentFilePath): Updated due to the removal of getFilePath.
  16948. (fixFilename): Removed.
  16949. (copySingleFile): Removed.
  16950. (splitMultiFile): Removed.
  16951. (deleteTempFile): Removed.
  16952. (setFileEntriesToDownload): Removed.
  16953. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  16954. (isSelectiveDownloadingMode): New function.
  16955. (setAllMultiFileRequestedState): Removed.
  16956. (finishPartialDownloadingMode): Renamed as
  16957. finishSelectiveDownloadingMode.
  16958. (finishSelectiveDownloadingMode): New function.
  16959. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  16960. (getSelectedTotalLength): New function.
  16961. (onDownloadComplete): Use diskAdaptor.
  16962. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  16963. (Range): Removed.
  16964. (setMultiFileEntries): Renamed as setFileEntries.
  16965. (setFileEntries): New function.
  16966. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  16967. (pieceLength): New variable.
  16968. * src/main.cc (printDownloadCompeleteMessage): New function.
  16969. (torrentHandler): Use diskAdaptor instead of diskWriter.
  16970. (main): Renamed torrent-show-files to show-files.
  16971. Rewritten file contents listing.
  16972. * src/TorrentMan.h (FileEntry): Removed.
  16973. (multiFileTopDir): Removed.
  16974. (multiFileEntries): Removed.
  16975. (diskWriter): Removed.
  16976. (diskAdaptor): New variable.
  16977. * src/DefaultDiskWriter.h (totalLength): New variable.
  16978. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  16979. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  16980. diskWriter.
  16981. * src/TorrentConsoleDownloadEngine.h
  16982. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  16983. (partialTotalLength): Renamed as selectedTotalLength.
  16984. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  16985. openExistingFile, otherwise call initAndOpenFile.
  16986. (closeFile): fd > 0, not fd != 0.
  16987. * src/DirectDiskAdaptor.h: New class.
  16988. * src/DirectDiskAdaptor.cc: New class.
  16989. * src/MultiDiskAdaptor.h: New class.
  16990. * src/MultiDiskAdaptor.cc: New class.
  16991. * src/CopyDiskAdaptor.h: New class.
  16992. * src/CopyDiskAdaptor.cc: New class.
  16993. * src/DiskAdaptor.h: New class.
  16994. * src/DiskAdaptor.cc: New class.
  16995. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  16996. (PREF_SHOW_FILES): New definition.
  16997. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16998. To add the ability to download multi torrent into respective files
  16999. directly:
  17000. * src/DiskWriter.h (openFile): New function.
  17001. (seek): Removed.
  17002. * src/MultiDiskWriter.h: New class.
  17003. * src/MultiDiskWriter.cc: New class.
  17004. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  17005. protected.
  17006. (openFile): New function.
  17007. * src/AbstractDiskWriter.cc (openFile): New function.
  17008. * src/prefs.h (V_FALSE): New definition.
  17009. (PREF_DIRECT_FILE_MAPPING): New definition.
  17010. * src/TorrentMan.h (setupDiskWriter): New function.
  17011. (setAllMultiFileRequestedState): New function.
  17012. (onDownloadComplete): New function.
  17013. * src/TorrentMan.cc : Included MultiDiskWriter.h
  17014. (setupDiskWriter): New function.
  17015. (getFilePath): Updated.
  17016. (getTempFilePath): Updated.
  17017. (getSegmentFilePath): Updated.
  17018. (fixFilename): Updated.
  17019. (deleteTempFile): Updated.
  17020. (setAllMultiFileRequestedState): New function.
  17021. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  17022. (finishPartialDownloadingMode): Reset requested flags.
  17023. (onDownloadComplete): New function.
  17024. * src/main.cc: Added --direct-file-mapping option.
  17025. Use TorrentMan::setupDiskWriter().
  17026. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  17027. onDownloadComplete().
  17028. To fix ETA bug:
  17029. * src/Util.h (difftvsec): New function.
  17030. * src/Util.cc (difftvsec): New function.
  17031. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  17032. type of "elapsed" instead of long long int.
  17033. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  17034. The updates of statistics takes place every 1 seconds.
  17035. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  17036. (calculateSpeed): Changed its argument signature.
  17037. * src/PeerMessage.cc (toString): Fixed message.
  17038. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17039. To print ETA:
  17040. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  17041. completion handling when dealing with
  17042. TorrentMan::isPartialDownloadingMode() == true.
  17043. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  17044. New function.
  17045. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  17046. (sessionDownloadLength): New variable.
  17047. (avgSpeed): New variable.
  17048. (eta): New variable.
  17049. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  17050. new variables: eta, avgSpeed, startup.
  17051. (calculateSpeed): Calculate average speed and ETA.
  17052. (printStatistics): Added ETA.
  17053. * src/Util.h (secfmt): New function.
  17054. * src/Util.cc (secfmt): New function.
  17055. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17056. To detect "keep alive" flooding:
  17057. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  17058. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  17059. variable: keepAliveCount.
  17060. (detectMessageFlooding): Added "keep alive" flooding detection.
  17061. (receiveMessage): Increase keepAliveCount when "keep alive" message
  17062. received.
  17063. To add the ability to download only specified files in multi-file
  17064. torrent:
  17065. * src/BitfieldMan.h (filterBitfield): New variable.
  17066. (filterEnabled): New variable.
  17067. (setFilterBit): New function.
  17068. (enableFilter): New function.
  17069. (disableFilter): New function.
  17070. (isFilterEnabled): New function.
  17071. (getFilteredTotalLength): New function.
  17072. (getCompletedLength): New function.
  17073. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  17074. filterBitfield, filterEnabled.
  17075. (CopyConstructor): Added filterBitfield and filterEnabled.
  17076. (operator==): Added filterBitfield and filterEnabled.
  17077. (Destructor): Added filterBitfield.
  17078. (getMissingIndex): Use filterBitfield.
  17079. (getMissingUnusedIndex): Use filterBitfield.
  17080. (getFirstMissingUnusedIndex): Use filterBitfield.
  17081. (getFirstMissingUnusedIndex): Use filterBitfield.
  17082. (getAllMissingIndexes): Use filterBitfield.
  17083. (countMissingBlock): Use filterBitfield.
  17084. (countBlock): Use filterBitfield.
  17085. (setBitInternal): Added new argument on.
  17086. (setUseBit): Use setBitInternal.
  17087. (unsetUseBit): Use setBitInternal.
  17088. (setBit): Use setBitInternal.
  17089. (unsetBit): Use setBitInternal.
  17090. (isAllBitSet): Use filterBitfield.
  17091. (setFilterBit): New function.
  17092. (addFilter): New function.
  17093. (enableFilter): New function.
  17094. (disableFilter): New function.
  17095. (clearFilter): New function.
  17096. (isFilterEnabled): New function.
  17097. (getFilteredTotalLength): New function.
  17098. (getCompletedLength): New function.
  17099. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  17100. Initalized newly added variables.
  17101. [FileEntry](offset): New variable.
  17102. [FileEntry](extracted): New variable.
  17103. [FileEntry](requested): New variable.
  17104. (readFileEntry): New function.
  17105. (option): New variable.
  17106. (splitMultiFile): Removed const qualifier.
  17107. (fixFilename): Removed const qualifier.
  17108. (readFileEntryFromMetaInfoFile): New function.
  17109. (finishPartialDownloadingMode): New function.
  17110. (isPartialDownloadingMode): New function.
  17111. (setFileEntriesToDownload): New function.
  17112. (getCompletedLength): New function.
  17113. (getPartialTotalLength): New function.
  17114. * src/TorrentMan.cc (readFileEntry): New function.
  17115. (setup): Use readFileEntry. If no-preallocation option is specified,
  17116. use DefaultDiskWriter.
  17117. (readFileEntryFromMetaInfoFile): New function.
  17118. (fixFilename): Removed const qualifier.
  17119. (splitMultiFile): Removed const qualifier.
  17120. (setFileEntriesToDownload): New function.
  17121. (isPartialDownloadingMode): New function.
  17122. (finishPartialDownloadingMode): New function.
  17123. (getCompletedLength): New function.
  17124. (getPartialTotalLength): New function.
  17125. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  17126. New variable.
  17127. (partialTotalLength): New variable.
  17128. (downloadLength): New variable.
  17129. (totalLength): New variable.
  17130. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  17131. Added log.
  17132. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  17133. partialTotalLength, downloadLength, totalLength.
  17134. (calculate): Calculate downloadLength and totalLength.
  17135. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  17136. * src/main.cc (addCommand): Changed argument signature.
  17137. (main): Added new variable: args. Added new option "torrent-show-files"
  17138. "no-preallocation". Usage is not updated yet.
  17139. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17140. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  17141. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17142. Attempt to add the ability to listing file entries in a .torrent file.
  17143. This feature is not yet complete.
  17144. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  17145. * src/TorrentMan.cc (getMultiFileEntries): New function.
  17146. (getName): New function.
  17147. * src/TorrentMan.h (getMultiFileEntries): New function.
  17148. (getName): New function.
  17149. * src/main.cc (main): Use above 2 funtion.
  17150. * Release 0.3.2
  17151. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17152. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  17153. (detectMessageFlooding): Updated threshold value.
  17154. (checkLongTimePeerChoking): Updated timeout value.
  17155. (getNewPieceAndSendInterest): Added debug log.
  17156. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  17157. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  17158. (getPeer): Updated.
  17159. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  17160. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  17161. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  17162. is localhost.
  17163. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  17164. * src/PendingMessage.cc (processMessage): Not to send piece message
  17165. if peer is not interested in the pieces localhost has.
  17166. * src/Peer.cc (shouldChoke): Updated.
  17167. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  17168. * src/Util.cc (isPowerOf): New function.
  17169. * src/Util.h (isPowerOf): New function.
  17170. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  17171. whether or not it is power of 2.
  17172. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17173. Added new class SendMessageQueue that includes PendingMessages and
  17174. RequestSlotMan.
  17175. * src/SendMessageQueue.h: New class.
  17176. * src/SendMessageQueue.cc: New class.
  17177. * src/PendingMessage.h: Added new member variable blockIndex and its
  17178. accessors.
  17179. (createRequestMessage): Updated.
  17180. * src/PendingMessage.cc (createRequestMessage): Updated.
  17181. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  17182. SendMessageQueue.
  17183. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  17184. (receiveMessage): Updated with SendMessageQueue.
  17185. (deletePendingPieceMessage): Removed.
  17186. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  17187. (sendInterest): Updated with SendMessageQueue.
  17188. (createRequestPendingMessage): Updated with SendMessageQueue.
  17189. (sendMessages): Updated with SendMessageQueue.
  17190. (onAbort): Updated with SendMessageQueue.
  17191. (keepAlive): Updated with SendMessageQueue.
  17192. (beforeSocketCheck): Updated SendMessageQueue.
  17193. * src/PeerInteractionCommand (sendMessages): Shuffle
  17194. missingBLockIndexes before using it.
  17195. Added its own timeout for peer connection.
  17196. * src/PeerAbstractCommand.h: Added member variable timeout and its
  17197. setter.
  17198. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  17199. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17200. Added setTimeout() call.
  17201. (executeInternal): Added setTimeout() call.
  17202. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  17203. Added timeout.
  17204. (isTimeoutDetected): Updated.
  17205. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  17206. option.
  17207. Added *simple* message flooding checker.
  17208. * src/PeerInteractionCommand.cc (executeInternal):
  17209. Added detectMessageFlooding() call.
  17210. (detectMessageFlooding): New function.
  17211. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  17212. (beforeSocketCheck): Added detectMessageFlooding() call.
  17213. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  17214. chokeUnchokeCount, haveCount, detectMessageFlooding().
  17215. Removed deletePendingPieceMessage(), getRequestSlot(),
  17216. deleteRequestSlot(), deleteAllRequestSlot().
  17217. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  17218. Added checkLongTimePeerChoking() call.
  17219. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  17220. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  17221. if duplicate == false.
  17222. The parameter "uploaded" and "downloaded" in the tracker request are
  17223. the size since the client sent the "started" event to the tracker.
  17224. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  17225. uploaded size to preDownloadedSize, preUploadedSize respectively.
  17226. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  17227. getSessionDownloadedSize(), getSessionUploadedSize().
  17228. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  17229. getSessionUploadedSize() instead of getDownloadedSize(),
  17230. getUploadedSize().
  17231. * src/PendingMessage.cc (processMessage): Do not send request message
  17232. if the peer is choking the client.
  17233. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  17234. less than interval.
  17235. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17236. * configure.in: Added gnutls support. Added several CPP macros.
  17237. * m4/openssl.m4: Added.
  17238. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  17239. readData(), peekData(). Added gnutls support.
  17240. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  17241. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  17242. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  17243. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  17244. Instead, added a check for whether setup method has executed
  17245. successfully.
  17246. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  17247. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  17248. * src/Makefile.am: Updated.
  17249. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  17250. using whether OpenSSL or gcrypt, depending on the result of configure
  17251. script.
  17252. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  17253. messageDigest.h.
  17254. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  17255. * src/PeerListenCommand.cc: Added log about port binded successfully.
  17256. Fixed memory leak.
  17257. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  17258. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  17259. Removed instantiation of TrackerInitCommand. Instead,
  17260. TrackerWatcherCommand is instantiated and pushed to the command queue.
  17261. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  17262. ENABLE_SSL.
  17263. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  17264. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  17265. If a piece is already acquired by another command, delete the request
  17266. slots for the piece.
  17267. * src/TrackerUpdateCommand.cc (execute):
  17268. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  17269. Added a check whether peer list is null.
  17270. Fixed the bug that causes sending completed event to the tracker
  17271. several times.
  17272. * src/TrackerInitCommand.cc (execute):
  17273. Fixed the bug that causes sending completed event to the tracker
  17274. several times.
  17275. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  17276. by using messageDigest.h.
  17277. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17278. * PeerConnection.cc: Replaced log message "keep-alive" with
  17279. "keep alive".
  17280. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  17281. localhost long time.
  17282. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  17283. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  17284. at most 100 failure entry from the list. If with duplicate = false,
  17285. MAX_PEER_LIST is not checked.
  17286. * PeerListenCommand.cc: Fixed the argument order of log message.
  17287. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17288. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  17289. Added warn().
  17290. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  17291. Implemented warn().
  17292. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  17293. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17294. * Request.h: Added AFTER_COMPLETED event.
  17295. * TorrentDownloadEngine.cc: Prints "Download complete" message
  17296. instead of downloaded size and progress(%) after download completes.
  17297. * PeerInteractionCommand.cc: After download completes, sends unchoke
  17298. message to the peer if it is interested in what localhost has
  17299. downloaded.
  17300. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  17301. destination instead of just renaming it.
  17302. * TorrentMan.cc: Added deleteTempFile().
  17303. * PeerAbstractCommand.cc: do not stop execution after download
  17304. completes. This makes localhost a seeder.
  17305. * Util.{h,cc}: Added fileCopy().
  17306. * PeerListenCommand.cc: do not stop execution after download completes.
  17307. This makes localhost a seeder.
  17308. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  17309. Added TorrentMan::deleteTempFile() to torrentHandler.
  17310. Initialized the variable dir as ".".
  17311. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  17312. Deleted renameSingleFile().
  17313. Added copySingleFile(), deleteTempFile().
  17314. * DownloadEngine.h: Added virtual function afterEachIteration().
  17315. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  17316. in onEndOfRun() to afterEachIteration().
  17317. In onEndOfRun(), changed if condition to check whether filenameFixed is
  17318. true.
  17319. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  17320. In rangedFileCopy(), added try-catch block to properly close file
  17321. descriptors.
  17322. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  17323. Added afterEachIteration(), isFilenameFixed().
  17324. * Peer.cc: Changed choking strategy.
  17325. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  17326. * TrackerInitCommand.cc: Send completed event only once.
  17327. * DownloadEngine.cc: Added a call to afterEachIteration().
  17328. * TrackerUpdateCommand.cc: Do not stop execution after download
  17329. completes.
  17330. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  17331. connect the peers at most MAX_PEER_UPDATE when a peer list is
  17332. received from a tracker.
  17333. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  17334. Decreased the number of failure peers to delete to 0(just comment out
  17335. the line).
  17336. * Release 0.3.1
  17337. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17338. * PeerInteractionCommand.cc: added a call to
  17339. TorrentMan::unadvertisePiece in Destructor.
  17340. * PeerInteractionCommand.cc: make have message sent immediately
  17341. if the size of pending message queue is zero.
  17342. * TorrentMan.cc: set the maximum size of peer list to 250.
  17343. * TorrentMan.h: changed the container type of Peers and UsedPieces
  17344. to deque.
  17345. * Util.cc: fixed rangedFileCopy.
  17346. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  17347. to Constructor. Also, moved digest cleanup to Destructor.
  17348. * MetaFileUtil.cc: fixed memory leak
  17349. * replaced std::vector with std::deque.
  17350. * AbstractCommand.cc: casted timeout value to long long int.
  17351. * ChunkedEncoding.cc: fixed memory leak.
  17352. * PeerInteractionCommand.cc: casted timeout value to long long int.
  17353. * SleepCommand.cc: casted timeout value to long long int.
  17354. * Data.cc: fixed memory leak.
  17355. * Data.cc: fixed toLLInt().
  17356. * BitfieldMan.cc: fixed memory leak.
  17357. * TorrentMan.cc: initialized storeDir to ".".
  17358. * TorrentMan.cc: fixed memory leak.
  17359. * TorrentMan.cc: corrected file paths of splitted files.
  17360. * PeerAbstractCommand.cc: casted timeout to long long int.
  17361. * main.cc: added delete(req) and delete(te->diskWriter).
  17362. * RequestSlot.cc: casted timeout value to long long int.
  17363. * Request.cc: fixed memory leak.
  17364. * PendingMessage.cc: make HAVE messages sent only when peer does not
  17365. have the piece.
  17366. * Peer.{h,cc}: added hasPiece(int index).
  17367. * main.cc: corrected addCommand.
  17368. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17369. * BitTorrent protocol support added.
  17370. * Release 0.3.0
  17371. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17372. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  17373. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17374. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  17375. decoding did not work properly.
  17376. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17377. * DownloadEngine.h: included sys/time.h
  17378. * DownloadEngine.cc: remove sys/time.h
  17379. * Makefile.am (SUBDIRS): Add intl.
  17380. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  17381. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17382. * main.cc: correct help message for --http-auth-scheme.
  17383. * main.cc: changed e-mail address for bug reports.
  17384. * ja.po: added japanese translation.
  17385. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17386. * SimpleLogger.cc: flush log file instead of stdout.
  17387. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17388. * main.cc: Fixed command-line option: max-tries
  17389. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  17390. does not equal to seg.sp.
  17391. * DownloadCommand.cc: If EOF is got from the server and the total size
  17392. of file is not zero, then throw DlRetryEx.
  17393. * main.cc: Set the minium value of min-segment-size to 1024.
  17394. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  17395. fails because of a regression since 0.2.0 release.
  17396. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17397. * HttpConnection.cc:
  17398. * common.h: defined the user agent name as macro
  17399. * DownloadEngine.{h, cc}:
  17400. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  17401. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  17402. * main.cc: Download complete/abort message is now generated by main.
  17403. * Makefile.am (SUBDIRS): Add m4.
  17404. (ACLOCAL_AMFLAGS): New variable.
  17405. (EXTRA_DIST): New variable.
  17406. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  17407. * gettext: added gettext functionality
  17408. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17409. * AbstractCommand.cc:
  17410. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  17411. unregister its cuid from SegmentMan.
  17412. * DownloadEngine.cc: .aria2 file was written when a downloading
  17413. failed with errors.
  17414. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  17415. Added "User-Agent" header to CONNECT proxy request.
  17416. Fixed "Proxy-Authorization" header. Now proxy authorization works
  17417. properly.
  17418. * Logger.h:
  17419. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  17420. * ChunkedEncoding.cc: Added #include directive for strings.h
  17421. * Release 0.2.1
  17422. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17423. * Util.{h,cc}: added startsWith().
  17424. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  17425. Util::endsWith().
  17426. * SocketCore.cc: struct addrinfo is now zero-initialized.
  17427. * common.h: added #include directive of limit.h.
  17428. * DownloadEngine.cc: added #include directive of sys/time.h and
  17429. algorithm.
  17430. * Exception.h: added #include directive of stdio.h.
  17431. * AbstractCommand.h: added #include directive of sys/time.h.
  17432. * DownloadCommand.h: added #include directive of sys/time.h.
  17433. * *.h: added #include directive of common.h to all base classes.
  17434. subclasses' one was removed.
  17435. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  17436. does not define these macros.
  17437. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17438. * Release 0.2.0
  17439. * main.cc:
  17440. * HttpInitiateConnectionCommand.{h,cc}:
  17441. * prefs.h:
  17442. * HttpConnection.{h,cc}: added --http-proxy-method option.
  17443. We can now use GET command in http proxy.
  17444. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17445. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  17446. that splits slowest segment of SegmentMan::commands vector.
  17447. This is the default split algorithm of aria2.
  17448. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  17449. that splits first segment of SegmentMan::commands vector.
  17450. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  17451. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  17452. * Segment.h:
  17453. * SegmentMan.cc: Added speed field to Segment.h
  17454. * main.cc: -s option now affects all URLs in command-line arguemtns.
  17455. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  17456. * message.h: Change file size related %d to %lld.
  17457. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17458. * FtpInitiateConnectionCommand.{h,cc}:
  17459. * FtpNegotiationCommand.{h,cc}:
  17460. * FtpDownloadCommand.{h,cc}:
  17461. * FtpConnection.{h,cc}: Added FTP support
  17462. * SimpleLogger.cc: Log message now includes time information.
  17463. * main.cc: The value of --http-auth-scheme option is chagned from
  17464. 'BASIC' to 'basic'
  17465. * main.cc: Added --timeout command-line option.
  17466. * main.cc: Added --min-segment-size command-line option.
  17467. * main.cc: Added --max-retries command-line option.
  17468. * prefs.h: option string constants are now defined in prefs.h
  17469. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17470. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  17471. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  17472. with version 0.1.0's one.
  17473. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17474. * configure.in: Added --enable-ssl option to configure script.
  17475. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  17476. cannot permit absoluteURI as Request-URI.
  17477. * HttpConnection.cc: Added Referer support.
  17478. * main.cc: Added referer command-line option.
  17479. * main.cc: Added rety-wait command-line option.
  17480. * Exception.h: Fixed formating bug in Exception::setMsg()
  17481. * SocketCore.{h,cc}:
  17482. * Socket.{h, cc}:
  17483. * Request.cc:
  17484. * InitiateConnectionCommandFactory.cc:
  17485. * HttpRequestCommand.cc: Added HTTPS support.
  17486. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  17487. for SocketCore.
  17488. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  17489. size is wrong
  17490. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  17491. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  17492. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  17493. * Release 0.1.0