ChangeLog 693 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392
  1. 2010-02-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Fixed compile error with mingw32 cross compiler. Defined
  3. a2_sockopt_t as void* for the target systems other than mingw32.
  4. * src/SocketCore.cc
  5. * src/a2netcompat.h
  6. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7. Removed 'always true' condition
  8. * src/util.cc
  9. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  10. Documented --bt-enable-lpd option in man page.
  11. * doc/aria2c.1.txt
  12. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  13. Added Local Peer Discovery. It is disabled by default. Use
  14. --bt-enable-lpd to enable the function.
  15. * src/BtConstants.h
  16. * src/BtSetup.cc
  17. * src/LpdDispatchMessageCommand.cc
  18. * src/LpdDispatchMessageCommand.h
  19. * src/LpdMessage.h
  20. * src/LpdMessageDispatcher.cc
  21. * src/LpdMessageDispatcher.h
  22. * src/LpdMessageReceiver.cc
  23. * src/LpdMessageReceiver.h
  24. * src/LpdReceiveMessageCommand.cc
  25. * src/LpdReceiveMessageCommand.h
  26. * src/Makefile.am
  27. * src/OptionHandlerFactory.cc
  28. * src/Peer.cc
  29. * src/Peer.h
  30. * src/PeerInteractionCommand.cc
  31. * src/SocketCore.cc
  32. * src/SocketCore.h
  33. * src/prefs.cc
  34. * src/prefs.h
  35. * src/usage_text.h
  36. * src/util.cc
  37. * src/util.h
  38. * test/LpdMessageDispatcherTest.cc
  39. * test/LpdMessageReceiverTest.cc
  40. * test/Makefile.am
  41. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  42. User-defined custom request headers specified by --header option
  43. now override builtin headers if they have same name.
  44. * src/HttpRequest.cc
  45. * src/HttpRequest.h
  46. * test/HttpRequestTest.cc
  47. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  48. Rewirtten util::isNumber()
  49. * src/util.cc
  50. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  51. Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
  52. because without it localized error messages are not printed
  53. correctly.
  54. * src/Platform.cc
  55. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  56. Added unit tests for util::getContentDispositionFilename() from
  57. http://greenbytes.de/tech/tc2231/ Fixed the function so that added
  58. tests are passed.
  59. * src/util.cc
  60. * test/UtilTest.cc
  61. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  62. Removed setlocale() for LC_CTYPE. It may affect isxdigit in
  63. util.cc
  64. * src/Platform.cc
  65. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  66. Support RFC2231 "Parameter Value Character Set and Language
  67. Information" in Content-Disposition header.
  68. * src/HttpResponse.cc
  69. * src/util.cc
  70. * src/util.h
  71. * test/UtilTest.cc
  72. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  73. Print CXXFLAGS
  74. * configure.ac
  75. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  76. Small optimization for A2_WOULDBLOCK(e)
  77. * src/SocketCore.cc
  78. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  79. Removed test file
  80. * test/CookieStorageTest.cc
  81. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  82. Check both EAGAIN and EWOULDBLOCK
  83. * src/SocketCore.cc
  84. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  85. Removed ret == 0 checking for SSL_read(), SSL_write() and
  86. SSL_peek() because the checks are done in the caller. In
  87. SocketBuffer::send(), throw exception if nothing could be written
  88. and socket error was not EWOULDBLOCK
  89. * src/SocketBuffer.cc
  90. * src/SocketCore.cc
  91. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  92. Fixed error code handling so that it can handle Winsock2 error
  93. code.
  94. * src/SocketCore.cc
  95. * src/SocketCore.h
  96. 2010-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  97. Bump up version number to 1.9.0a
  98. * configure.ac
  99. * doc/aria2c.1.txt
  100. 2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  101. Fixed the bug that aria2 doesn't handle return value if error
  102. occurred before download begins.
  103. * src/MultiUrlRequestInfo.cc
  104. * src/main.cc
  105. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  106. Removed SegmentManFactory class.
  107. * src/AbstractSegmentManFactory.h
  108. * src/DefaultSegmentManFactory.cc
  109. * src/DefaultSegmentManFactory.h
  110. * src/Makefile.am
  111. * src/RequestGroup.cc
  112. * src/RequestGroup.h
  113. * src/SegmentManFactory.h
  114. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  115. Destroyed digest context after getting calculated hash.
  116. * src/Piece.cc
  117. * src/Piece.h
  118. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  119. Removed BitfieldManFactory class.
  120. * src/BitfieldManFactory.cc
  121. * src/BitfieldManFactory.h
  122. * src/DefaultPieceStorage.cc
  123. * src/Makefile.am
  124. * src/PeerSessionResource.cc
  125. * src/Piece.cc
  126. * src/main.cc
  127. * test/DefaultPieceStorageTest.cc
  128. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  129. Removed unused methods from BitfieldMan class. Moved
  130. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  131. class.
  132. * src/BitfieldMan.cc
  133. * src/BitfieldMan.h
  134. * src/BitfieldManFactory.cc
  135. * src/BitfieldManFactory.h
  136. * src/bitfield.h
  137. * src/main.cc
  138. * test/BitfieldManTest.cc
  139. * test/DefaultPieceStorageTest.cc
  140. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  141. Moved getFirstNMissingIndex to bitfield.h and made it return the
  142. number of appended indexes.
  143. * src/BitfieldMan.cc
  144. * src/BitfieldMan.h
  145. * src/Piece.cc
  146. * src/Piece.h
  147. * src/bitfield.h
  148. * test/BitfieldManTest.cc
  149. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  150. Added more tests.
  151. * test/BitfieldManTest.cc
  152. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  153. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  154. unused block indexes at once instead of calling
  155. getFirstMissingUnusedIndex() multiple times. Made use of it in
  156. Piece class and DefaultBtRequestFactory class via Piece class.
  157. * src/BitfieldMan.cc
  158. * src/BitfieldMan.h
  159. * src/DefaultBtRequestFactory.cc
  160. * src/Piece.cc
  161. * src/Piece.h
  162. * test/BitfieldManTest.cc
  163. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  164. Use std::make_pair(...)
  165. * src/DHTMessageTracker.cc
  166. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  167. Use std::make_pair(...)
  168. * src/bittorrent_helper.cc
  169. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  170. urlencode(removeFragment(...)) in parseUrl(...)
  171. * src/Request.cc
  172. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  173. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  174. * src/AbstractCommand.cc
  175. * src/AdaptiveURISelector.cc
  176. * src/BtPieceMessage.cc
  177. * src/BtPortMessage.cc
  178. * src/CreateRequestCommand.cc
  179. * src/DHTAbstractNodeLookupTask.cc
  180. * src/DHTBucket.cc
  181. * src/DHTGetPeersCommand.cc
  182. * src/DHTMessageDispatcherImpl.cc
  183. * src/DHTMessageFactoryImpl.cc
  184. * src/DHTMessageTracker.cc
  185. * src/DHTPeerAnnounceStorage.cc
  186. * src/DHTRoutingTable.cc
  187. * src/DHTSetup.cc
  188. * src/DefaultBtAnnounce.cc
  189. * src/DefaultBtInteractive.cc
  190. * src/DefaultBtMessageDispatcher.cc
  191. * src/DefaultBtMessageReceiver.cc
  192. * src/DefaultBtProgressInfoFile.cc
  193. * src/DefaultBtRequestFactory.cc
  194. * src/DefaultPeerStorage.cc
  195. * src/DefaultPieceStorage.cc
  196. * src/DownloadCommand.cc
  197. * src/DownloadEngine.cc
  198. * src/EpollEventPoll.cc
  199. * src/FileAllocationCommand.cc
  200. * src/FileEntry.cc
  201. * src/FtpNegotiationCommand.cc
  202. * src/HandshakeExtensionMessage.cc
  203. * src/HttpListenCommand.cc
  204. * src/HttpServer.cc
  205. * src/HttpSkipResponseCommand.cc
  206. * src/IteratableChunkChecksumValidator.cc
  207. * src/Logger.h
  208. * src/MSEHandshake.cc
  209. * src/MetalinkPostDownloadHandler.cc
  210. * src/MultiDiskAdaptor.cc
  211. * src/PeerAbstractCommand.cc
  212. * src/PeerConnection.cc
  213. * src/PeerListenCommand.cc
  214. * src/PeerReceiveHandshakeCommand.cc
  215. * src/RequestGroup.cc
  216. * src/RequestGroupMan.cc
  217. * src/SegmentMan.cc
  218. * src/SelectEventPoll.cc
  219. * src/ServerStat.cc
  220. * src/SimpleBtMessage.cc
  221. * src/SocketCore.cc
  222. * src/TrackerWatcherCommand.cc
  223. * src/UTMetadataDataExtensionMessage.cc
  224. * src/UTMetadataRequestFactory.cc
  225. * src/UTMetadataRequestTracker.cc
  226. * src/XmlRpcMethod.cc
  227. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  228. Changed log level from debug to info
  229. * src/BtDependency.cc
  230. * src/BtPostDownloadHandler.cc
  231. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  232. Removed unused PeerSessionResource::_latency.
  233. * src/BtConstants.h
  234. * src/BtPieceMessage.cc
  235. * src/Peer.cc
  236. * src/Peer.h
  237. * src/PeerSessionResource.cc
  238. * src/PeerSessionResource.h
  239. * test/PeerSessionResourceTest.cc
  240. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  241. Fixed the bug that --file-allocation=falloc doesn't work with
  242. single file download.
  243. * src/AbstractSingleDiskAdaptor.cc
  244. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  245. Release 1.8.2
  246. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  247. Added Portuguese translation. Updated Ukrainian and Spanish
  248. translation. Thanks to all translators.
  249. * po/LINGUAS
  250. * po/es.po
  251. * po/pt.po
  252. * po/uk.po
  253. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  254. Remove fragment from redirected URI.
  255. * src/Request.cc
  256. * test/RequestTest.cc
  257. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  258. Updated po templates.
  259. * po/aria2.pot
  260. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  261. Drop legacy ifdef for ares support and code cleanup.
  262. * src/AsyncNameResolver.cc
  263. * src/AsyncNameResolver.h
  264. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  265. Call ares_library_init and ares_library_cleanup if they are
  266. available. Some code cleanups.
  267. * src/Platform.cc
  268. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  269. Call ares_process_fd() each time after epoll to handle timeout.
  270. * src/EpollEventPoll.cc
  271. * src/EpollEventPoll.h
  272. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  273. Suppressed type-cast compiler warning
  274. * src/CookieStorage.cc
  275. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  276. Fixed compile error on Mac OS X.
  277. * src/CookieStorage.h
  278. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  279. Removed cookietest.txt from Makefile.am
  280. * test/Makefile.am
  281. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  282. Updated version number in man page.
  283. * doc/aria2c.1.txt
  284. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  285. Rewritten help message for --allow-overwrite option.
  286. * doc/aria2c.1.txt
  287. * src/usage_text.h
  288. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  289. Added bittorrent key to the response of tellStatus XML-RPC method.
  290. The associated value of the key is a struct and contains data
  291. retrieved from .torrent file, such as name, announce-list,
  292. comment, etc.
  293. * doc/aria2c.1.txt
  294. * src/XmlRpcMethodImpl.cc
  295. * src/XmlRpcMethodImpl.h
  296. * test/XmlRpcMethodTest.cc
  297. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  298. Removed parse(std::istream&) and parse(const std::string&) from
  299. CookieParser.
  300. * src/CookieParser.cc
  301. * src/CookieParser.h
  302. * test/CookieParserTest.cc
  303. * test/cookietest.txt: Removed
  304. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  305. Fixed the bug that cookie for domain a.b.c is not sent to the host
  306. a.b.c if no other cookies are stored. Fixed the bug that
  307. Cookie::markOriginServerOnly() is not called when cookies are
  308. loaded from file/sqlite3 database.
  309. * src/Cookie.h
  310. * src/CookieStorage.cc
  311. * src/NsCookieParser.cc
  312. * src/Sqlite3MozCookieParser.cc
  313. * test/CookieStorageTest.cc
  314. * test/NsCookieParserTest.cc
  315. * test/Sqlite3MozCookieParserTest.cc
  316. * test/cookies.sqlite
  317. * test/nscookietest.txt
  318. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  319. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  320. both _pieceStorage and _segmentMan are initialized or they are
  321. not.
  322. * src/RequestGroup.cc
  323. * src/RequestGroup.h
  324. * test/BtDependencyTest.cc
  325. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  326. Bump up version number to 1.8.2
  327. * configure.ac
  328. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  329. Replaced "." with A2STR::DOT_C
  330. * src/AbstractCommand.cc
  331. * src/Cookie.cc
  332. * src/DownloadContext.cc
  333. * src/FtpConnection.cc
  334. * src/RequestGroup.cc
  335. * src/util.cc
  336. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  337. Replaced isNumberAndDotsNotation() with isNumericHost().
  338. isNumericHost() can handle IPv6 address.
  339. * src/Cookie.cc
  340. * src/CookieStorage.cc
  341. * src/util.cc
  342. * src/util.h
  343. * test/CookieTest.cc
  344. * test/UtilTest.cc
  345. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  346. Included A2STR.h
  347. * src/CookieStorage.cc
  348. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  349. Rewritten Cookie storage.
  350. * src/Cookie.cc
  351. * src/Cookie.h
  352. * src/CookieParser.cc
  353. * src/CookieStorage.cc
  354. * src/CookieStorage.h
  355. * src/a2functional.h
  356. * test/CookieParserTest.cc
  357. * test/CookieStorageTest.cc
  358. * test/CookieTest.cc
  359. * test/HttpResponseTest.cc
  360. * test/TestUtil.h
  361. * test/a2functionalTest.cc
  362. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  363. Handle redirected URI which is not properly percent encoded.
  364. * src/Request.cc
  365. * test/RequestTest.cc
  366. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  367. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  368. not found' in the N times(N is where --max-file-not-found=N, N>0)
  369. in a row without single '200 OK' response.
  370. * src/RequestGroup.cc.
  371. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  372. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  373. readout by 80 characters in mingw32 build. Catch exception in
  374. DHTMessageReceiver::receiveMessage().
  375. * src/AbstractDiskWriter.cc
  376. * src/ConsoleStatCalc.cc
  377. * src/DHTMessageReceiver.cc
  378. * src/File.cc
  379. * src/RequestGroupMan.cc
  380. * src/a2io.h
  381. * test/FileTest.cc
  382. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  383. Fixed compile error with intel compiler
  384. * src/XmlRpcMethodImpl.cc
  385. * src/XmlRpcMethodImpl.h
  386. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  387. Release 1.8.1
  388. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  389. Updated Swedish, Russian and Italian translations. Thanks to all
  390. translators.
  391. * po/it.po
  392. * po/ru.po
  393. * po/sv.po
  394. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  395. Fixed broken OptionParser::findByName().
  396. * src/OptionParser.cc
  397. * test/OptionParserTest.cc
  398. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  399. Fixed test error without BitTorrent support.
  400. * test/XmlRpcMethodTest.cc
  401. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  402. Fixed compile error without GNUTLS/OpenSSL.
  403. * src/util.cc
  404. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  405. Changed compression level to Z_DEFAULT_COMPRESSION.
  406. * src/GZipEncoder.cc
  407. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  408. Added missing command line options: --http-no-cache,
  409. --bt-save-metadata and --bt-metadata-only.
  410. * doc/xmlrpc/aria2rpc
  411. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  412. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  413. client accepts gzip content encoding.
  414. * src/A2STR.cc
  415. * src/A2STR.h
  416. * src/GZipEncoder.cc
  417. * src/GZipEncoder.h
  418. * src/HttpHeader.cc
  419. * src/HttpHeader.h
  420. * src/HttpServer.cc
  421. * src/HttpServer.h
  422. * src/HttpServerBodyCommand.cc
  423. * src/HttpServerCommand.cc
  424. * src/Makefile.am
  425. * src/XmlRpcResponse.cc
  426. * src/XmlRpcResponse.h
  427. * test/GZipEncoderTest.cc
  428. * test/Makefile.am
  429. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  430. Added XML-RPC client sample code in Python.
  431. * doc/aria2c.1.txt
  432. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  433. Updated po templates.
  434. * po/aria2.pot
  435. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  436. Bump up version number to 1.8.1
  437. * configure.ac
  438. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  439. Added version number to man page. Updated copyright year in man
  440. page.
  441. * doc/aria2c.1.txt
  442. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  443. Rewritten toTagString
  444. * src/NameMatchOptionHandler.cc
  445. * test/OptionHandlerTest.cc
  446. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  447. Added dir and files key to the response struct of aria2.tellStatus
  448. XML-RPC method. The value associated with files key is the list
  449. of files. Its element is the same struct used in aria2.getFiles
  450. XML-RPC method. Added uris key to the response struct of
  451. aria2.getFiles XML-RPC method. The value associated with uris key
  452. is the list of URIs. Its element is the same struct used in
  453. aria2.getUris XML-RPC method.
  454. * doc/aria2c.1.txt
  455. * src/XmlRpcMethodImpl.cc
  456. * test/XmlRpcMethodTest.cc
  457. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  458. Added aria2.getSessionInfo XML-RPC method. This method returns a
  459. struct containing Session ID, which is generated each time when
  460. aria2 is invoked.
  461. * doc/aria2c.1.txt
  462. * doc/xmlrpc/aria2rpc
  463. * src/DownloadEngine.cc
  464. * src/DownloadEngine.h
  465. * src/XmlRpcMethodFactory.cc
  466. * src/XmlRpcMethodImpl.cc
  467. * src/XmlRpcMethodImpl.h
  468. * test/XmlRpcMethodTest.cc
  469. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  470. Moved generateRandomKey() from bittorrent_helper to util.
  471. * src/DHTBucket.cc
  472. * src/DHTNode.cc
  473. * src/bittorrent_helper.cc
  474. * src/bittorrent_helper.h
  475. * src/util.cc
  476. * src/util.h
  477. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  478. Updated doc about GID.
  479. * doc/aria2c.1.txt
  480. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  481. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  482. accepts a negative integer. 'offset' == -1 points last download
  483. in the waiting queue and 'offset' == -2 points the download before
  484. the last download, and so on. The downloads in the response are in
  485. reversed order.
  486. * doc/aria2c.1.txt
  487. * src/XmlRpcMethodImpl.cc
  488. * src/XmlRpcMethodImpl.h
  489. * test/XmlRpcMethodTest.cc
  490. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  491. Added --human-readable option. This option, when true is given,
  492. prints sizes and speed in human readable format(e.g., 1.2Ki,
  493. 3.4Mi) in the console readout. The default value is true and it
  494. looks exactly the same as aria2-1.8.0. So the 'new feature'
  495. appears when false is given. In this case, sizes and speed are
  496. printed without in bytes. No Ki, Mi units conversion is used.
  497. This may be useful for a program to parse the output of aria2.
  498. * doc/aria2c.1.txt
  499. * src/ConsoleStatCalc.cc
  500. * src/ConsoleStatCalc.h
  501. * src/OptionHandlerFactory.cc
  502. * src/main.cc
  503. * src/prefs.cc
  504. * src/prefs.h
  505. * src/usage_text.h
  506. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  507. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  508. option accepts empty string "". When "" is given, it erases
  509. previously defined proxy.
  510. * doc/aria2c.1.txt
  511. * src/OptionHandlerImpl.h
  512. * src/usage_text.h
  513. * test/OptionHandlerTest.cc
  514. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  515. Code cleanup for proxy URI handling.
  516. * src/AbstractCommand.cc
  517. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  518. Added --bt-metadata-only option. If true is given to this option,
  519. aria2 downloads metadata only. The file(s) described in metadata
  520. will not be downloaded. This option has effect only when
  521. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  522. * doc/aria2c.1.txt
  523. * src/OptionHandlerFactory.cc
  524. * src/UTMetadataPostDownloadHandler.cc
  525. * src/download_helper.cc
  526. * src/prefs.cc
  527. * src/prefs.h
  528. * src/usage_text.h
  529. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  530. Fixed memory leak. Commands stored in std::deque<Command*> are not
  531. deleted when exception is thrown. Make sure that when passing
  532. std::deque<Command*> to function to store Commands, handle
  533. exception and delete these Commands.
  534. * src/AbstractCommand.cc
  535. * src/CheckIntegrityCommand.cc
  536. * src/FileAllocationCommand.cc
  537. * src/RequestGroup.cc
  538. * src/TrackerWatcherCommand.cc
  539. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  540. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  541. * src/A2STR.cc
  542. * src/A2STR.h
  543. * src/FtpNegotiationCommand.cc
  544. * src/HttpResponseCommand.cc
  545. * src/util.cc
  546. * src/util.h
  547. * test/UtilTest.cc
  548. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  549. Treat --dir="" as --dir="."
  550. * src/FtpNegotiationCommand.cc
  551. * src/HttpResponseCommand.cc
  552. * src/Metalink2RequestGroup.cc
  553. * src/UTMetadataPostDownloadHandler.cc
  554. * src/bittorrent_helper.cc
  555. * src/download_helper.cc
  556. * src/util.cc
  557. * src/util.h
  558. * test/UtilTest.cc
  559. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  560. Code clean up.
  561. * src/main.cc
  562. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  563. Reset GID to 1 when they reach maximum value. Rewritten
  564. CUIDCounter::newID()
  565. * src/CUIDCounter.h
  566. * src/RequestGroup.cc
  567. * src/RequestGroup.h
  568. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  569. Documented --http-no-cache option in man page.
  570. * doc/aria2c.1.txt
  571. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  572. Added --http-no-cache option. When true is given, aria2 sends
  573. Cache-Control: no-cache and Pragma: no-cache header to avoid
  574. cached content. If false is given , these headers are not sent
  575. and you can add Cache-Control header with a directive you like
  576. using --header option.
  577. * src/HttpRequest.cc
  578. * src/HttpRequest.h
  579. * src/HttpRequestCommand.cc
  580. * src/OptionHandlerFactory.cc
  581. * src/download_helper.cc
  582. * src/prefs.cc
  583. * src/prefs.h
  584. * src/usage_text.h
  585. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  586. Removed Logger from OptionParser. When OptionParser is used to
  587. parse options at bootstrap, LogFactory is not configured yet
  588. properly. When LogFactory is used in OptionParser, it initializes
  589. itself to return a logger which has no ability to write log to the
  590. disk.
  591. * src/OptionParser.cc
  592. * src/OptionParser.h
  593. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  594. Added following sentance to the help message of --out option:
  595. --out option is ignored when -Z is used.
  596. * doc/aria2c.1.txt
  597. * src/usage_text.h
  598. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  599. Added --bt-save-metadata option to -i list options.
  600. * doc/aria2c.1.txt
  601. * src/download_helper.cc
  602. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  603. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  604. additional libraries.
  605. * src/MultiUrlRequestInfo.cc
  606. * src/NameResolver.cc
  607. * src/SelectEventPoll.cc
  608. * src/SelectEventPoll.h
  609. * src/SocketCore.cc
  610. * src/SocketCore.h
  611. * src/a2netcompat.h
  612. * src/daemon.cc
  613. * src/main.cc
  614. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  615. Fixed typo.
  616. * src/DHTMessageReceiver.cc
  617. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  618. Fixed the bug that causes segmentation fault if unknown option is
  619. put in aria2.conf file. BUG#2928303
  620. * src/OptionParser.cc
  621. * src/OptionParser.h
  622. * src/option_processing.cc
  623. * test/OptionParserTest.cc
  624. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  625. Ignore port message with port=0.
  626. * src/BtPortMessage.cc
  627. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  628. Run autoupdate
  629. * configure.ac
  630. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  631. Updated autoconf/automake auxiliary files.
  632. * INSTALL
  633. * config.guess
  634. * config.sub
  635. * depcomp
  636. * install-sh
  637. * m4/intldir.m4
  638. * missing
  639. * mkinstalldirs
  640. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  641. Removed unused function.
  642. * src/SharedHandle.h
  643. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  644. Find pooled socket using all cached addresses.
  645. * src/DNSCache.h
  646. * src/DownloadEngine.cc
  647. * src/DownloadEngine.h
  648. * src/InitiateConnectionCommand.cc
  649. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  650. Updated copyright year.
  651. * src/version_usage.cc
  652. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  653. Pool connection if _contentEncodingDecoder is used and server
  654. supports persistent connection.
  655. * src/HttpDownloadCommand.cc
  656. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  657. Updated doc.
  658. * src/DownloadCommand.cc
  659. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  660. Untabify. Fixed one line in copyright which is longer than 80
  661. columns.
  662. * src
  663. * test
  664. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  665. Release 1.8.0
  666. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  667. Updated po templates.
  668. * po/aria2.pot
  669. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  670. Documented --bt-save-metadata option in man page.
  671. * doc/aria2c.1.txt
  672. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  673. Fixed usage of --bt-save-metadata option.
  674. * src/usage_text.h
  675. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  676. Updated po templates.
  677. * po/aria2.pot
  678. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  679. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  680. causes name resolution error when none of network interface has
  681. IPv4 address.
  682. * src/main.cc
  683. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  684. Bump up version number to 1.8.0.
  685. * configure.ac
  686. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  687. Use info hash as a filename when saving BitTorrent metadata.
  688. * src/UTMetadataPostDownloadHandler.cc
  689. * test/UTMetadataPostDownloadHandlerTest.cc
  690. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  691. Documented system.multicall XML-RPC method in man page.
  692. * doc/aria2c.1.txt
  693. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  694. Added signal handler for SIGHUP to save .aria2 file when terminal
  695. is closed. The handler is the same one for SIGINT and SIGTERM.
  696. * src/MultiUrlRequestInfo.cc
  697. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  698. Defined method name in XmlRpcMethod subclasses.
  699. * src/XmlRpcMethodFactory.cc
  700. * src/XmlRpcMethodImpl.cc
  701. * src/XmlRpcMethodImpl.h
  702. * test/XmlRpcMethodTest.cc
  703. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  704. Added system.multicall XML-RPC method.
  705. * src/XmlRpcMethod.cc
  706. * src/XmlRpcMethod.h
  707. * src/XmlRpcMethodFactory.cc
  708. * src/XmlRpcMethodImpl.cc
  709. * src/XmlRpcMethodImpl.h
  710. * test/XmlRpcMethodTest.cc
  711. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  712. Check structure depth when decoding.
  713. * src/bencode.cc
  714. * src/bencode.h
  715. * test/BencodeTest.cc
  716. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  717. Documented tellStopped XML-RPC method in man page.
  718. * doc/aria2c.1.txt
  719. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  720. Added tellStopped XML-RPC method to aria2rpc.
  721. * doc/xmlrpc/aria2rpc
  722. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  723. Added tellStopped XML-RPC method. This method returns stopped
  724. download in the specified range. It takes same parameters with
  725. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  726. * src/XmlRpcMethodFactory.cc
  727. * src/XmlRpcMethodImpl.cc
  728. * src/XmlRpcMethodImpl.h
  729. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  730. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  731. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  732. when conducting unit tests because they fail if networking
  733. interface is not configured with IPv4 address.
  734. * src/NameResolver.cc
  735. * src/SocketCore.cc
  736. * src/SocketCore.h
  737. * src/a2netcompat.h
  738. * test/AllTest.cc
  739. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  740. Fixed unit test error
  741. * test/UTMetadataPostDownloadHandlerTest.cc
  742. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  743. Defined static string constants for efficiency.
  744. * src/XmlRpcMethodImpl.cc
  745. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  746. Added --bt-save-metadata option. When true is given, it saves
  747. metadata as .torrent file. This option has effect only when
  748. BitTorrent Magnet URI is used. The filename is name in metadata
  749. with suffix .torrent. The directory to be saved is the same
  750. directory where download file is saved. If the same file already
  751. exists, metdata is not saved.
  752. * src/OptionHandlerFactory.cc
  753. * src/UTMetadataPostDownloadHandler.cc
  754. * src/UTMetadataPostDownloadHandler.h
  755. * src/message.h
  756. * src/prefs.cc
  757. * src/prefs.h
  758. * src/usage_text.h
  759. * test/UTMetadataDataExtensionMessageTest.cc
  760. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  761. Added util::saveAs() function. Use it in Signature::save().
  762. * src/Signature.cc
  763. * src/util.cc
  764. * src/util.h
  765. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  766. Upcase info hash in Magnet URI.
  767. * doc/aria2c.1.txt
  768. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  769. Refactored RequestGroupMan::changeReservedGroupPosition()
  770. * src/RequestGroupMan.cc
  771. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  772. Updated the description for aria2.addTorrent XML-RPC method.
  773. * doc/aria2c.1.txt
  774. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  775. Added changePosition to aria2rpc.
  776. * doc/xmlrpc/aria2rpc
  777. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  778. Documented changePosition XML-RPC method in man page.
  779. * doc/aria2c.1.txt
  780. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  781. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  782. pos and how. This method changes the position of download denoted
  783. by gid. If how is POS_SET, it moves the download to a position
  784. relative to the beginning of the queue. If how is POS_CUR, it
  785. moves the download to a position relative to the current
  786. position. If how is POS_END, it moves the download to a position
  787. relative to the end of the queue. If the destination position is
  788. less than 0 or beyond the end of the queue, it moves the download
  789. to the beginning or the end of the queue respectively. Returns
  790. the destination position.
  791. * src/RequestGroupMan.cc
  792. * src/RequestGroupMan.h
  793. * src/XmlRpcMethodFactory.cc
  794. * src/XmlRpcMethodImpl.cc
  795. * src/XmlRpcMethodImpl.h
  796. * test/RequestGroupManTest.cc
  797. * test/XmlRpcMethodTest.cc
  798. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  799. Added getOption and getGlobalOption to aria2rpc.
  800. * doc/xmlrpc/aria2rpc
  801. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  802. Documented getOption and getGlobalOption XML-RPC method in man
  803. page
  804. * doc/aria2c.1.txt
  805. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  806. Added getOption and getGlobalOption XML-RPC method. getOption
  807. takes GID as a parameter and returns its options as struct.
  808. getGlobalOption takes no parameter and returns global
  809. options. Because global option is used as a template for the
  810. option of newly added downloads, it includes options returned by
  811. getOption.
  812. * src/Option.h
  813. * src/XmlRpcMethodFactory.cc
  814. * src/XmlRpcMethodImpl.cc
  815. * src/XmlRpcMethodImpl.h
  816. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  817. Sort _optionHandlers in OptionParser by name in ascending order.
  818. Use vector instead of deque for efficiency.
  819. * src/OptionHandler.h
  820. * src/OptionHandlerFactory.h
  821. * src/OptionParser.cc
  822. * src/OptionParser.h
  823. * src/version_usage.cc
  824. * test/OptionParserTest.cc
  825. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  826. Code cleanup
  827. * src/XmlRpcMethod.cc
  828. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  829. Documented about followedBy and belongsTo in man page.
  830. * doc/aria2c.1.txt
  831. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  832. Added following 2 keys, followedBy and belongsTo, to the response
  833. of tellStatus.
  834. followedBy: List of GIDs which are generated by the consequence of
  835. this download. For example, when aria2 downloaded Metalink file,
  836. it generates downloads described in it(see *--follow-metalink*
  837. option). This value is useful to track these auto generated
  838. downloads. If there is no such downloads, this key will not be
  839. included in the response.
  840. belongsTo: GID of a parent download. Some downloads are a part of
  841. another download. For example, if a file in Metalink has
  842. BitTorrent resource, the download of .torrent is a part of that
  843. file. If this download has no parent, this key will not be
  844. included in the response.
  845. * src/BtPostDownloadHandler.cc
  846. * src/DownloadResult.h
  847. * src/Metalink2RequestGroup.cc
  848. * src/MetalinkPostDownloadHandler.cc
  849. * src/RequestGroup.cc
  850. * src/RequestGroup.h
  851. * src/UTMetadataPostDownloadHandler.cc
  852. * src/XmlRpcMethodImpl.cc
  853. * src/XmlRpcMethodImpl.h
  854. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  855. Assigned BObject in BDE() to avoid segmentation fault when calling
  856. methods of BDE::none().
  857. * src/BDE.cc
  858. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  859. Show info hash in Magnet URI in upper case letters in -S output.
  860. * src/bittorrent_helper.cc
  861. * test/BittorrentHelperTest.cc
  862. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  863. Removed old useless comment
  864. * src/MultiUrlRequestInfo.cc
  865. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  866. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  867. not properly used in configure script and failed to detect gnutls.
  868. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  869. and the initialization of pkg-config is done in first occurrence
  870. of PKG_CHECK_MODULES which is not executed because it is inside of
  871. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  872. * configure.ac
  873. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  874. Release 1.7.2
  875. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  876. Fixed the bug that RequestGroupMan::downloadFinished() returns
  877. true even if all downloads haven't finished, especially when
  878. PostDownloadHandler is involved. Changed the condition so that it
  879. only returns true if both _requestGroups and _reservedGroups are
  880. empty.
  881. * src/RequestGroupMan.cc
  882. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  883. Log listening port for BitTorrent/DHT in notice level.
  884. * src/DHTConnectionImpl.cc
  885. * src/PeerListenCommand.cc
  886. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  887. Updated po templates.
  888. * po/aria2.pot
  889. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  890. Bump up version number to 1.7.2
  891. * configure.ac
  892. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  893. Changed default value of --enable-dht from 'false' to 'true'.
  894. * doc/aria2c.1.txt
  895. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  896. Enabled DHT by default because of Magnet URI support. To disable
  897. DHT, use --enable-dht=false
  898. * src/OptionHandlerFactory.cc
  899. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  900. Print Magnet URI in -S output.
  901. * src/AnnounceList.cc
  902. * src/bittorrent_helper.cc
  903. * src/bittorrent_helper.h
  904. * test/BittorrentHelperTest.cc
  905. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  906. Added --bt-prioritize-piece option to aria2rpc.
  907. * doc/xmlrpc/aria2rpc
  908. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  909. Refer Magnet URI in --help. Made some cosmetic changes.
  910. * src/version_usage.cc
  911. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  912. Updated -T and -M option.
  913. * doc/aria2c.1.txt
  914. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  915. Fixed typo
  916. * doc/aria2c.1.txt
  917. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  918. Fixed the bug that line separator is missing in horizontal bar.
  919. * doc/xmlrpc/aria2mon
  920. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  921. Updated usage text for --metalink-file option.
  922. * src/usage_text.h
  923. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  924. If '-' is given as an argument to --metalink-file option, aria2
  925. reads Metalink file from stdin.
  926. * src/OptionHandlerFactory.cc
  927. * src/OptionHandlerImpl.h
  928. * src/a2io.h
  929. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  930. Fixed the bug that aria2 listens wrong port if --interface option
  931. is used.
  932. * src/SocketCore.cc
  933. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  934. Fixed the bug that query parameter in magnet URI is not decoded.
  935. * src/magnet.cc
  936. * test/MagnetTest.cc
  937. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  938. Specified defaultSize as an argument for easy testing.
  939. * src/util.cc
  940. * src/util.h
  941. * test/UtilTest.cc
  942. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  943. Release 1.7.1
  944. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  945. Bump up version number to 1.7.1
  946. * configure.ac
  947. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  948. Fixed the bug --bt-prioritize-piece=tail is not working.
  949. * src/util.cc
  950. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  951. Release 1.7.0
  952. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  953. Updated po templates.
  954. * po/aria2.pot
  955. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  956. Updated help message for --bt-prioritize-piece. Some cosmetic
  957. changes.
  958. * doc/aria2c.1.txt
  959. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  960. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  961. * src/usage_text.h
  962. * src/util.cc
  963. * test/UtilTest.cc
  964. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  965. Updated Russian, Ukrainian, German and French translations.
  966. Thanks to all translators involved.
  967. * po/de.po
  968. * po/fr.po
  969. * po/ru.po
  970. * po/uk.po
  971. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  972. Mentioned about pkg-config
  973. * README
  974. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  975. Fixed typo. Referred --index-out option in BitTorrent notes.
  976. * README
  977. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  978. Store all addresses found by getifaddrs() and getaddrinfo(). In
  979. bind, try all addresses until success
  980. * src/SocketCore.cc
  981. * src/SocketCore.h
  982. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  983. Updated po templates.
  984. * po/aria2.pot
  985. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  986. Bump up version number to 1.7.0
  987. * configure.ac
  988. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  989. Fixed compile error if ENABLE_BITTORRENT is undefined.
  990. * src/DefaultPieceStorage.cc
  991. * src/DefaultPieceStorage.h
  992. * src/PieceStorage.h
  993. * src/UnknownLengthPieceStorage.cc
  994. * src/UnknownLengthPieceStorage.h
  995. * test/MockPieceStorage.h
  996. * test/ProtocolDetectorTest.cc
  997. * test/XmlRpcMethodTest.cc
  998. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  999. Documented in man page that if getifaddrs() is missing,
  1000. --interface option doesn't accept interface name.
  1001. * doc/aria2c.1.txt
  1002. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1003. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  1004. * src/DefaultBtAnnounce.cc
  1005. * src/DefaultBtAnnounce.h
  1006. * test/DefaultBtAnnounceTest.cc
  1007. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1008. Fixed the bug that connection is always dropped if handshake
  1009. message in extension protocol don't have metadata_size.
  1010. src/HandshakeExtensionMessage.cc
  1011. * src/HandshakeExtensionMessage.cc
  1012. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1013. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  1014. text saying DHT is recommended when Magnet URI is provided.
  1015. * doc/aria2c.1.txt
  1016. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1017. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  1018. URI is supplied. Notify user that they should consider enabling
  1019. DHT if they use Magnet URI.
  1020. * src/RequestGroup.cc
  1021. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1022. Added --disable-ipv6 option to disable IPv6.
  1023. * doc/aria2c.1.txt
  1024. * src/InitiateConnectionCommand.cc
  1025. * src/NameResolver.cc
  1026. * src/NameResolver.h
  1027. * src/OptionHandlerFactory.cc
  1028. * src/main.cc
  1029. * src/prefs.cc
  1030. * src/prefs.h
  1031. * src/usage_text.h
  1032. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1033. Updated usage text for --bt-prioritize-piece option.
  1034. * doc/aria2c.1.txt
  1035. * src/usage_text.h
  1036. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1037. In configure script, if --with-PACKAGE and --enable-FEATURE are
  1038. given and PACKAGE is missing in the system or FEATURE cannot be
  1039. enabled, print error message and stop the script.
  1040. * configure.ac
  1041. * m4/aria2_arg.m4
  1042. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1043. Halt metadata download immediately when metadata download is done.
  1044. Don't wait unresponsive tracker.
  1045. * src/ByteArrayDiskWriter.h
  1046. * src/DefaultBtInteractive.cc
  1047. * src/DefaultExtensionMessageFactory.cc
  1048. * src/DefaultExtensionMessageFactory.h
  1049. * src/PeerInteractionCommand.cc
  1050. * src/UTMetadataDataExtensionMessage.cc
  1051. * src/UTMetadataDataExtensionMessage.h
  1052. * src/UTMetadataRequestExtensionMessage.cc
  1053. * test/UTMetadataDataExtensionMessageTest.cc
  1054. * test/UTMetadataRequestExtensionMessageTest.cc
  1055. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1056. Documented --interface option in man page.
  1057. * doc/aria2c.1.txt
  1058. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1059. Try resolved address in the order received from the resolver.
  1060. * src/DNSCache.h
  1061. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1062. Added debug logs.
  1063. * src/SocketCore.cc
  1064. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1065. Fixed type of tail to uint64_t
  1066. * src/util.cc
  1067. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1068. Added --interface option. This feature binds sockets to given
  1069. interface. You can specify interface name, IP address and
  1070. hostname.
  1071. * configure.ac
  1072. * src/OptionHandlerFactory.cc
  1073. * src/SocketCore.cc
  1074. * src/SocketCore.h
  1075. * src/main.cc
  1076. * src/message.h
  1077. * src/prefs.cc
  1078. * src/prefs.h
  1079. * src/usage_text.h
  1080. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1081. Updated man page for bt-prioritize-piece option in -i list.
  1082. * doc/aria2c.1.txt
  1083. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1084. Added bt-prioritize-piece option to -i list.
  1085. * src/download_helper.cc
  1086. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1087. Removed --http-auth-scheme option from man page.
  1088. * doc/aria2c.1.txt
  1089. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1090. Removed --http-auth-scheme option since it doesn't do nothing.
  1091. * src/OptionHandlerFactory.cc
  1092. * src/prefs.cc
  1093. * src/prefs.h
  1094. * src/usage_text.h
  1095. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1096. Adjusted the number of peer info which get_peers reply message can
  1097. carry.
  1098. * src/DHTGetPeersReplyMessage.cc
  1099. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1100. Added extension_message_test_helper.h to aria2c_SOURCES.
  1101. * test/Makefile.am
  1102. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1103. Documented --bt-prioritize-piece option in man page.
  1104. * doc/aria2c.1.txt
  1105. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1106. Added option --bt-prioritize-piece. This option instruct aria2 to
  1107. try to download first and last pieces of each file first. The
  1108. argument can contain 2 keywords:head and tail. To include both
  1109. keywords, they must be separated by comma. These keywords can take
  1110. one parameter, SIZE. For example , if head=SIZE is specified,
  1111. pieces in the range of first SIZE bytes of each file get higher
  1112. priority. tail=SIZE means the range of last SIZE bytes of each
  1113. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  1114. * src/DefaultPieceStorage.h
  1115. * src/Makefile.am
  1116. * src/OptionHandlerFactory.cc
  1117. * src/OptionHandlerImpl.h
  1118. * src/PriorityPieceSelector.cc
  1119. * src/PriorityPieceSelector.h
  1120. * src/RequestGroup.cc
  1121. * src/prefs.cc
  1122. * src/prefs.h
  1123. * src/usage_text.h
  1124. * src/util.cc
  1125. * src/util.h
  1126. * test/Makefile.am
  1127. * test/MockPieceSelector.h
  1128. * test/PriorityPieceSelectorTest.cc
  1129. * test/UtilTest.cc
  1130. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1131. Fixed typo
  1132. * src/HttpRequest.h
  1133. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1134. In Magnet URI with tr parameter, put each announce URI in separate
  1135. tier.
  1136. * src/bittorrent_helper.cc
  1137. * test/BittorrentHelperTest.cc
  1138. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1139. Renamed ExtensionMessage::getBencodedData() as
  1140. ExtensionMessage::getPayload()
  1141. * src/BtExtendedMessage.cc
  1142. * src/ExtensionMessage.h
  1143. * src/HandshakeExtensionMessage.cc
  1144. * src/HandshakeExtensionMessage.h
  1145. * src/UTMetadataDataExtensionMessage.cc
  1146. * src/UTMetadataDataExtensionMessage.h
  1147. * src/UTMetadataRejectExtensionMessage.cc
  1148. * src/UTMetadataRejectExtensionMessage.h
  1149. * src/UTMetadataRequestExtensionMessage.cc
  1150. * src/UTMetadataRequestExtensionMessage.h
  1151. * src/UTPexExtensionMessage.cc
  1152. * src/UTPexExtensionMessage.h
  1153. * test/HandshakeExtensionMessageTest.cc
  1154. * test/MockExtensionMessage.h
  1155. * test/UTMetadataDataExtensionMessageTest.cc
  1156. * test/UTMetadataRejectExtensionMessageTest.cc
  1157. * test/UTMetadataRequestExtensionMessageTest.cc
  1158. * test/UTPexExtensionMessageTest.cc
  1159. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1160. Updated man page for BitTorrent Magnet URI.
  1161. * doc/aria2c.1.txt
  1162. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1163. Call DownloadContext::setOwnerRequestGroup() in
  1164. RequestGroup::setDownloadContext().
  1165. * src/BtDependency.cc
  1166. * src/RequestGroup.cc
  1167. * src/RequestGroup.h
  1168. * src/download_helper.cc
  1169. * test/DefaultBtMessageDispatcherTest.cc
  1170. * test/DefaultExtensionMessageFactoryTest.cc
  1171. * test/HandshakeExtensionMessageTest.cc
  1172. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1173. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  1174. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  1175. from metadata, use new metadata2Torrent() function.
  1176. * src/BtDependency.cc
  1177. * src/UTMetadataPostDownloadHandler.cc
  1178. * src/bittorrent_helper.cc
  1179. * src/bittorrent_helper.h
  1180. * test/BittorrentHelperTest.cc
  1181. * test/BtDependencyTest.cc
  1182. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1183. Use createRequestGroupForUri to create the download for torrent
  1184. file.
  1185. * src/Metalink2RequestGroup.cc
  1186. * test/Metalink2RequestGroupTest.cc
  1187. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1188. Fixed typo
  1189. * src/DownloadContext.h
  1190. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1191. Use createRequestGroupForBitTorrent()
  1192. * src/BtPostDownloadHandler.cc
  1193. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1194. Added remove().
  1195. * src/Option.cc
  1196. * src/Option.h
  1197. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1198. Removed options which is only valid for URIs specified in
  1199. command-line. If they are left, because op is used as a template
  1200. for new RequestGroup(such as created in XML-RPC command,
  1201. BtPostDownloadHandler etc), they causes unintentional effect.
  1202. * src/main.cc
  1203. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1204. Refer to option value of PREF_OUT only in download_helper.
  1205. * src/FtpNegotiationCommand.cc
  1206. * src/HttpResponseCommand.cc
  1207. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1208. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  1209. * src/download_helper.cc
  1210. * src/download_helper.h
  1211. * src/XmlRpcMethodImpl.cc
  1212. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1213. Updated man page for changeOption XML-RPC method.
  1214. * doc/aria2c.1.txt
  1215. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1216. Added --bt-max-peers option to changeOption XML-RPC method.
  1217. * src/XmlRpcMethod.cc
  1218. * src/XmlRpcMethodImpl.cc
  1219. * test/XmlRpcMethodTest.cc
  1220. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1221. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  1222. * test/XmlRpcMethodTest.cc
  1223. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1224. Removed redundant DownloadContext::hasAttribute(...) calls.
  1225. * src/ConsoleStatCalc.cc
  1226. * src/RequestGroup.cc
  1227. * src/XmlRpcMethodImpl.cc
  1228. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1229. Changed the number of tracker request attempt from 5 to 2.
  1230. * src/TrackerWatcherCommand.cc
  1231. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1232. Use host and protocol in original URI, because URI selector
  1233. selects URI based on original URI, not redirected one.
  1234. * src/Request.cc
  1235. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1236. Fixed the bug which causes segmentation fault with tellWaiting
  1237. XML-RPC method when BitTorrent download is waiting. The key of
  1238. BtRegistry is changed from info hash to GID, because it is
  1239. registered per RequestGroup, not info hash.
  1240. * src/BtRegistry.cc
  1241. * src/BtRegistry.h
  1242. * src/BtSetup.cc
  1243. * src/ConsoleStatCalc.cc
  1244. * src/InitiatorMSEHandshakeCommand.cc
  1245. * src/PeerInitiateConnectionCommand.cc
  1246. * src/PeerInteractionCommand.cc
  1247. * src/PeerInteractionCommand.h
  1248. * src/PeerReceiveHandshakeCommand.cc
  1249. * src/RequestGroup.cc
  1250. * src/XmlRpcMethodImpl.cc
  1251. * test/BtRegistryTest.cc
  1252. * test/XmlRpcMethodTest.cc
  1253. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1254. Updated man page for changeOption XML-RPC method.
  1255. * doc/aria2c.1.txt
  1256. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1257. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  1258. method.
  1259. * src/XmlRpcMethod.cc
  1260. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1261. Documented about BitTorrent Magnet URI in man page.
  1262. * doc/aria2c.1.txt
  1263. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1264. Fixed the bug that trackers in BitTorrent Magnet URI are not
  1265. inherited to generated RequestGroup.
  1266. * src/UTMetadataPostDownloadHandler.cc
  1267. * test/UTMetadataPostDownloadHandlerTest.cc
  1268. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1269. Prepended "[METADATA]" before dn.
  1270. * src/bittorrent_helper.cc
  1271. * test/BittorrentHelperTest.cc
  1272. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1273. Rewritten Magnet URI parser.
  1274. * src/Makefile.am
  1275. * src/ProtocolDetector.cc
  1276. * src/bittorrent_helper.cc
  1277. * src/bittorrent_helper.h
  1278. * src/download_helper.cc
  1279. * src/magnet.cc
  1280. * src/magnet.h
  1281. * test/BittorrentHelperTest.cc
  1282. * test/MagnetTest.cc
  1283. * test/Makefile.am
  1284. * test/ProtocolDetectorTest.cc
  1285. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1286. Use hton64
  1287. * src/base32.cc
  1288. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1289. Added Base32 encoded BitTorrent Magnet Link support.
  1290. * src/Makefile.am
  1291. * src/base32.cc
  1292. * src/base32.h
  1293. * src/bittorrent_helper.cc
  1294. * test/Base32Test.cc
  1295. * test/BittorrentHelperTest.cc
  1296. * test/Makefile.am
  1297. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1298. Added BitTorrent Magnet Link support. Base32 encoded link is not
  1299. supported yet. Fixed typo in method name in RequestGroup. In
  1300. metadataGetMode, don't show "Your share ratio was ..." message.
  1301. * src/DefaultBtInteractive.cc
  1302. * src/DefaultBtInteractive.h
  1303. * src/DownloadHandlerFactory.cc
  1304. * src/DownloadHandlerFactory.h
  1305. * src/HandshakeExtensionMessage.cc
  1306. * src/Makefile.am
  1307. * src/Metalink2RequestGroup.cc
  1308. * src/PeerInteractionCommand.cc
  1309. * src/RequestGroup.cc
  1310. * src/RequestGroup.h
  1311. * src/UTMetadataPostDownloadHandler.cc
  1312. * src/UTMetadataPostDownloadHandler.h
  1313. * src/download_helper.cc
  1314. * test/HandshakeExtensionMessageTest.cc
  1315. * test/Makefile.am
  1316. * test/UTMetadataPostDownloadHandlerTest.cc
  1317. * test/UTMetadataRejectExtensionMessageTest.cc
  1318. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1319. In metadataGetMode, don't show SEEDING.
  1320. * src/ConsoleStatCalc.cc
  1321. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1322. Fixed ut_metadata data handling. Implemented
  1323. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  1324. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  1325. metadata_size is received.
  1326. * src/DefaultExtensionMessageFactory.cc
  1327. * src/DefaultExtensionMessageFactory.h
  1328. * src/HandshakeExtensionMessage.cc
  1329. * src/HandshakeExtensionMessage.h
  1330. * src/UTMetadataDataExtensionMessage.cc
  1331. * src/UTMetadataDataExtensionMessage.h
  1332. * src/UTMetadataRequestExtensionMessage.cc
  1333. * src/UTMetadataRequestFactory.cc
  1334. * src/UTMetadataRequestFactory.h
  1335. * src/UTMetadataRequestTracker.cc
  1336. * src/UTMetadataRequestTracker.h
  1337. * test/DefaultExtensionMessageFactoryTest.cc
  1338. * test/HandshakeExtensionMessageTest.cc
  1339. * test/MockBtMessage.h
  1340. * test/UTMetadataDataExtensionMessageTest.cc
  1341. * test/UTMetadataRequestExtensionMessageTest.cc
  1342. * test/UTMetadataRequestFactoryTest.cc
  1343. * test/UTMetadataRequestTrackerTest.cc
  1344. * test/extension_message_test_helper.h
  1345. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1346. Drop connection if ut_metadata reject message is received.
  1347. * src/UTMetadataRejectExtensionMessage.cc
  1348. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1349. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  1350. get high enough in that mode.
  1351. * src/ActivePeerConnectionCommand.cc
  1352. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1353. Added BitTorrent magnet link support to ProtocolDetector.
  1354. * src/ProtocolDetector.cc
  1355. * src/ProtocolDetector.h
  1356. * test/ProtocolDetectorTest.cc
  1357. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1358. Don't inject validator into BtMessage in metadataGetMode because
  1359. most of the checks depends on the total length of download but it
  1360. is unknown. Delegate metadataGetMode to BtMessage.
  1361. * src/DefaultBtMessageFactory.cc
  1362. * src/DefaultBtMessageFactory.h
  1363. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1364. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  1365. * src/DefaultPieceStorage.h
  1366. * src/PieceStorage.h
  1367. * src/UnknownLengthPieceStorage.h
  1368. * test/MockPieceStorage.h
  1369. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1370. Added markTotalLengthIsKnown().
  1371. * src/DownloadContext.h
  1372. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1373. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  1374. missing. If metadata is missing, always use DHT when it is ready.
  1375. * src/BtSetup.cc
  1376. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1377. Added parseMagnetLink(). Hex encoded info hash is supported.
  1378. Base32 encoded info hash is not supported yet.
  1379. * src/bittorrent_helper.cc
  1380. * src/bittorrent_helper.h
  1381. * test/BittorrentHelperTest.cc
  1382. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1383. Added FromHex()
  1384. * src/util.cc
  1385. * src/util.h
  1386. * test/UtilTest.cc
  1387. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1388. Added _metadataGetMode member variable. It toggles the action when
  1389. messages are received: usually they almost do nothing if
  1390. _metadataGetMode is true.
  1391. * src/AbstractBtMessage.cc
  1392. * src/AbstractBtMessage.h
  1393. * src/BtAllowedFastMessage.cc
  1394. * src/BtBitfieldMessage.cc
  1395. * src/BtCancelMessage.cc
  1396. * src/BtChokeMessage.cc
  1397. * src/BtHaveAllMessage.cc
  1398. * src/BtHaveMessage.cc
  1399. * src/BtInterestedMessage.cc
  1400. * src/BtNotInterestedMessage.cc
  1401. * src/BtPieceMessage.cc
  1402. * src/BtRejectMessage.cc
  1403. * src/BtRequestMessage.cc
  1404. * src/BtUnchokeMessage.cc
  1405. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1406. Added bencode::decode overload functions. They have extra argument
  1407. 'end', passed by reference. 'end' points to the beyond the last
  1408. position of data used in decoding process.
  1409. * src/bencode.cc
  1410. * src/bencode.h
  1411. * test/BencodeTest.cc
  1412. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1413. Initial support of Extension for Peers to Send Metadata
  1414. Files(BEP9). Currently aria2 only serves metadata and cannot get
  1415. metadata from swarm.
  1416. * src/BtConstants.h
  1417. * src/DefaultBtInteractive.cc
  1418. * src/DefaultExtensionMessageFactory.cc
  1419. * src/DefaultExtensionMessageFactory.h
  1420. * src/ExtensionMessage.h
  1421. * src/ExtensionMessageRegistry.h
  1422. * src/HandshakeExtensionMessage.cc
  1423. * src/HandshakeExtensionMessage.h
  1424. * src/Makefile.am
  1425. * src/PeerConnection.h
  1426. * src/PeerInteractionCommand.cc
  1427. * src/UTMetadataDataExtensionMessage.cc
  1428. * src/UTMetadataDataExtensionMessage.h
  1429. * src/UTMetadataExtensionMessage.cc
  1430. * src/UTMetadataExtensionMessage.h
  1431. * src/UTMetadataRejectExtensionMessage.cc
  1432. * src/UTMetadataRejectExtensionMessage.h
  1433. * src/UTMetadataRequestExtensionMessage.cc
  1434. * src/UTMetadataRequestExtensionMessage.h
  1435. * src/bittorrent_helper.cc
  1436. * src/bittorrent_helper.h
  1437. * test/BittorrentHelperTest.cc
  1438. * test/DefaultExtensionMessageFactoryTest.cc
  1439. * test/HandshakeExtensionMessageTest.cc
  1440. * test/Makefile.am
  1441. * test/UTMetadataDataExtensionMessageTest.cc
  1442. * test/UTMetadataRejectExtensionMessageTest.cc
  1443. * test/UTMetadataRequestExtensionMessageTest.cc
  1444. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1445. Cancel segment in prepareForRetry() because there is a chance that
  1446. the command has segments.
  1447. * src/CreateRequestCommand.cc
  1448. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1449. Fixed the bug that slow server is not knocked down in favor of
  1450. faster one.
  1451. * src/AbstractCommand.cc
  1452. * src/DefaultPieceStorage.cc
  1453. * src/DefaultPieceStorage.h
  1454. * src/PieceStorage.h
  1455. * src/UnknownLengthPieceStorage.cc
  1456. * src/UnknownLengthPieceStorage.h
  1457. * test/MockPieceStorage.h
  1458. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1459. Fixed the bug that Request object is not added to
  1460. _inFlightRequests in findFasterRequest().
  1461. * src/FileEntry.cc
  1462. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1463. Changed the strategry of how to increase the number of outstanding
  1464. requests. Now the number is doubled if there are no outstanding
  1465. requests after receiving messages.
  1466. * src/BtConstants.h
  1467. * src/DefaultBtInteractive.cc
  1468. * src/DefaultBtInteractive.h
  1469. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1470. Check socket for reading if there are outstanding requests.
  1471. * src/PeerInteractionCommand.cc
  1472. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1473. Moved frequently called methods to header file so they get
  1474. inlined.
  1475. * src/RequestSlot.cc
  1476. * src/RequestSlot.h
  1477. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1478. Copied in_addr instead of just casting from char* which might
  1479. violate strict aliasing rules.
  1480. * src/AsyncNameResolver.cc
  1481. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1482. Use dynamic_pointer_cast
  1483. * test/BtPieceMessageTest.cc
  1484. * test/BtRequestMessageTest.cc
  1485. * test/DefaultBtRequestFactoryTest.cc
  1486. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1487. Added testSetUrl20()
  1488. * test/RequestTest.cc
  1489. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1490. Code cleanup
  1491. * src/bittorrent_helper.cc
  1492. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1493. Use C++ style cast
  1494. * src/AsyncNameResolver.cc
  1495. * src/Base64.h
  1496. * src/BtBitfieldMessage.cc
  1497. * src/BtHandshakeMessage.cc
  1498. * src/DefaultBtMessageFactory.cc
  1499. * src/DefaultBtProgressInfoFile.cc
  1500. * src/EpollEventPoll.cc
  1501. * src/ExpatMetalinkProcessor.cc
  1502. * src/IteratableChecksumValidator.cc
  1503. * src/IteratableChunkChecksumValidator.cc
  1504. * src/MessageDigestHelper.cc
  1505. * src/Platform.cc
  1506. * src/RequestGroupMan.cc
  1507. * src/SingleFileAllocationIterator.cc
  1508. * src/Sqlite3MozCookieParser.cc
  1509. * src/XML2SAXMetalinkProcessor.cc
  1510. * src/Xml2XmlRpcRequestProcessor.cc
  1511. * src/util.cc
  1512. * src/util.h
  1513. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1514. Fixed integer potential alignment problem.
  1515. * src/bitfield.h
  1516. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1517. Applied a patch from tizianomueller to fix sigbus errors on Linux
  1518. sparc. I modified the patch to eliminate a cast to uint32_t* and
  1519. include file ordering.
  1520. * src/PeerListProcessor.h
  1521. * src/bittorrent_helper.cc
  1522. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1523. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  1524. * src/Request.cc
  1525. * src/util.cc
  1526. * src/util.h
  1527. * test/RequestTest.cc
  1528. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1529. Rewritten util::uitos()
  1530. * src/util.h
  1531. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1532. Code cleanup
  1533. * src/Request.cc
  1534. * src/Request.h
  1535. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1536. Rewritten Request::parseUrl()
  1537. * src/Request.cc
  1538. * test/RequestTest.cc
  1539. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1540. Removed unused macro SAFE_CHARS
  1541. * src/Request.cc
  1542. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1543. Updated doc
  1544. * src/DHTRoutingTableDeserializer.cc
  1545. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1546. Release 1.6.3
  1547. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1548. Removed unused function.
  1549. * test/DHTPeerAnnounceStorageTest.cc
  1550. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1551. Only decrement cols if cols > 0
  1552. * src/ConsoleStatCalc.cc
  1553. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1554. Updated Polish, Catalan, French, Italian, Russian and Japanese
  1555. translations. Thanks to all translators.
  1556. * po/ca.po
  1557. * po/fr.po
  1558. * po/it.po
  1559. * po/ja.po
  1560. * po/pl.po
  1561. * po/ru.po
  1562. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1563. Updated translation template
  1564. * po
  1565. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1566. Fixed compile error without ssl library.
  1567. * src/util.cc
  1568. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1569. Logged received nodes in get_peers reply message.
  1570. * src/DHTAbstractNodeLookupTask.cc
  1571. * src/DHTAbstractNodeLookupTask.h
  1572. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1573. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  1574. error occurred in DHTMessageDispatcherImpl::sendMessage().
  1575. * src/DHTMessageDispatcherImpl.cc
  1576. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1577. Don't reuse URI if Request pool is not empty.
  1578. * src/CreateRequestCommand.cc
  1579. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1580. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  1581. receive get_peers request for torrent which the client is now
  1582. downloading.
  1583. * src/BtSetup.cc
  1584. * src/DHTPeerAnnounceEntry.cc
  1585. * src/DHTPeerAnnounceEntry.h
  1586. * src/DHTPeerAnnounceStorage.cc
  1587. * src/DHTPeerAnnounceStorage.h
  1588. * src/RequestGroup.cc
  1589. * test/DHTPeerAnnounceEntryTest.cc
  1590. * test/DHTPeerAnnounceStorageTest.cc
  1591. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1592. Fixed the bug that in Windows environment new blank line is
  1593. inserted when console readout is updated.
  1594. * src/ConsoleStatCalc.cc
  1595. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1596. Throw exception if binding listening port is failed. Removed
  1597. RequestGroupMan::getInitialCommand(). Use
  1598. fillRequestGroupFromReserver() instead. Delete commands for
  1599. RequestGroup which has errors when it is being added.
  1600. * src/BtSetup.cc
  1601. * src/DownloadEngine.cc
  1602. * src/DownloadEngine.h
  1603. * src/DownloadEngineFactory.cc
  1604. * src/MultiUrlRequestInfo.cc
  1605. * src/RequestGroupMan.cc
  1606. * src/RequestGroupMan.h
  1607. * test/RequestGroupManTest.cc
  1608. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1609. Fixed the bug that when downloading more than one torrent,
  1610. listening port is not reported properly to tracker for 2nd or
  1611. later torrents.
  1612. * src/BtSetup.cc
  1613. * src/PeerListenCommand.cc
  1614. * src/PeerListenCommand.h
  1615. * src/RequestGroup.cc
  1616. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1617. Bump up version number to 1.6.3
  1618. * configure.ac
  1619. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1620. Removed Util.cc from POTFILES.in
  1621. * po/POTFILES.in
  1622. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1623. Updated man page for previous change.
  1624. * doc/aria2c.1.txt
  1625. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1626. If user name is embedded but password is missing in URI, first
  1627. resolve password using .netrc. If password is found in .netrc,
  1628. then use it as password. If not, use the password specified in
  1629. --ftp-passwd.
  1630. * src/AuthConfigFactory.cc
  1631. * src/Request.cc
  1632. * src/Request.h
  1633. * test/AuthConfigFactoryTest.cc
  1634. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1635. Fixed typo
  1636. * doc/aria2c.1.txt
  1637. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1638. Fixed typo
  1639. * src/usage_text.h
  1640. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1641. Added missing bitfield.cc
  1642. * src/bitfield.cc
  1643. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1644. Renamed Util.{cc,h} as util.{cc,h}
  1645. * src/Util.cc
  1646. * src/Util.h
  1647. * src/util.cc
  1648. * src/util.h
  1649. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1650. Moved static functions in Util class to namespace util.
  1651. * src
  1652. * test
  1653. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1654. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  1655. Moved generateRandomKey to bittorrent_helper.cc.
  1656. * src/DHTBucket.cc
  1657. * src/DHTGetPeersMessage.cc
  1658. * src/DHTGetPeersReplyMessage.cc
  1659. * src/DHTMessage.cc
  1660. * src/DHTNode.cc
  1661. * src/DHTTokenTracker.cc
  1662. * src/DHTUtil.cc: Removed.
  1663. * src/DHTUtil.h: Removed.
  1664. * src/Makefile.am
  1665. * src/Util.cc
  1666. * src/Util.h
  1667. * src/bitfield.h
  1668. * src/bittorrent_helper.cc
  1669. * src/bittorrent_helper.h
  1670. * test/ARC4Test.cc
  1671. * test/BNodeTest.cc
  1672. * test/DHTAnnouncePeerMessageTest.cc
  1673. * test/DHTAnnouncePeerReplyMessageTest.cc
  1674. * test/DHTFindNodeMessageTest.cc
  1675. * test/DHTFindNodeReplyMessageTest.cc
  1676. * test/DHTGetPeersMessageTest.cc
  1677. * test/DHTGetPeersReplyMessageTest.cc
  1678. * test/DHTPingMessageTest.cc
  1679. * test/DHTPingReplyMessageTest.cc
  1680. * test/DHTTokenTrackerTest.cc
  1681. * test/DHTUtilTest.cc: Removed.
  1682. * test/Makefile.am
  1683. * test/UtilTest.cc
  1684. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1685. Removed the call to trim() because trim() is called for each
  1686. element in split().
  1687. * src/CookieParser.cc
  1688. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1689. Replaced Util::slice() with split()
  1690. * src/AbstractCommand.cc
  1691. * src/CookieParser.cc
  1692. * src/File.cc
  1693. * src/HttpHeaderProcessor.cc
  1694. * src/HttpRequest.cc
  1695. * src/Metalink2RequestGroup.cc
  1696. * src/MetalinkParserController.cc
  1697. * src/Netrc.cc
  1698. * src/NsCookieParser.cc
  1699. * src/ParameterizedStringParser.cc
  1700. * src/ServerStatMan.cc
  1701. * src/UriListParser.cc
  1702. * src/Util.cc
  1703. * src/Util.h
  1704. * src/bittorrent_helper.cc
  1705. * test/UtilTest.cc
  1706. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1707. Use request->getDir() instead of "/" for embedded user/pass in
  1708. URI.
  1709. * src/AuthConfigFactory.cc
  1710. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1711. Fixed wrong insertion point for BasicCred.
  1712. * src/AuthConfigFactory.cc
  1713. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1714. Allowed non-regular file in LocalFilePathOptionHandler
  1715. * src/OptionHandlerImpl.h
  1716. * src/message.h
  1717. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1718. Fixed the bug that Netrc::parse() cannot recognize comment line.
  1719. * src/Netrc.cc
  1720. * src/Util.h
  1721. * test/NetrcTest.cc
  1722. * test/sample.netrc
  1723. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1724. Fixed typo
  1725. * src/BtDependency.cc
  1726. * src/BtRejectMessage.cc
  1727. * src/FtpConnection.cc
  1728. * src/HttpHeaderProcessor.h
  1729. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1730. Fixed lintian report in man page
  1731. * doc/aria2c.1.txt
  1732. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1733. Release 1.6.2
  1734. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1735. Updated Ukrainian translation. Thanks to all translators.
  1736. * po/uk.po
  1737. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1738. Updated translation template
  1739. * po
  1740. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1741. Bump up version number to 1.6.2
  1742. * configure.ac
  1743. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1744. Updated licence message in -v output.
  1745. * src/version_usage.cc
  1746. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1747. Replaced aria2 with aria2c in help message.
  1748. * src/version_usage.cc
  1749. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1750. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  1751. * src/version_usage.cc
  1752. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1753. Quoted localedir
  1754. * src/Makefile.am
  1755. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1756. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  1757. utime. Check header for utime.h.
  1758. * configure.ac
  1759. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1760. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  1761. * configure.ac
  1762. * src/daemon.cc
  1763. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1764. Don't set localedir manually. Leave it to autoconf.
  1765. * configure.ac
  1766. * src/Makefile.am
  1767. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1768. Added --install to ACLOCAL_AMFLAGS.
  1769. Removed m4 from SUBDIRS.
  1770. Updated automake 1.11 and autoconf 2.64.
  1771. Replaced some obsolute macros with new one.
  1772. * Makefile.am
  1773. * configure.ac
  1774. * m4/aria2_arg.m4
  1775. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1776. Removed Makefile.am in m4 directory.
  1777. * configure.ac
  1778. * m4/ChangeLog
  1779. * m4/Makefile.am
  1780. * m4/Makefile.in
  1781. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1782. Removed unused m4 macros.
  1783. * m4/intldir.m4
  1784. * m4/inttypes.m4
  1785. * m4/isc-posix.m4
  1786. * m4/libgnutls-extra.m4
  1787. * m4/ulonglong.m4
  1788. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1789. Fixed the bug that causes segmentation fault if
  1790. req->getCurrentUrl() contains printf formatting characters such as
  1791. %d. The statement that causes this bug is useless and removed.
  1792. * src/AbstractCommand.cc
  1793. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1794. * Release 1.6.1
  1795. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1796. Updated Simplified Chinese translation. Thanks to translators.
  1797. * po/zh_CN.po
  1798. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1799. Updated translation template
  1800. * po
  1801. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1802. Bump up version number to 1.6.1
  1803. * configure.ac
  1804. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1805. Changed interval from 120 to 60 for dropping inactive peer.
  1806. * src/DefaultBtInteractive.cc
  1807. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1808. Updated man page for --user-agent and --peer-id-prefix option.
  1809. * doc/aria2c.1.txt
  1810. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1811. Code clean up
  1812. * src/BtPostDownloadHandler.cc
  1813. * src/ContentTypeRequestGroupCriteria.cc
  1814. * src/ContentTypeRequestGroupCriteria.h
  1815. * src/DownloadHandlerConstants.cc
  1816. * src/DownloadHandlerConstants.h
  1817. * src/DownloadHandlerFactory.cc
  1818. * src/MetalinkPostDownloadHandler.cc
  1819. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1820. Don't save control file when aria2 exists while checking piece
  1821. hash(behavior of -V option). If control file doesn't exist when
  1822. aria2 launched, the completed length in saved control file will be
  1823. 0 byte and this confuses user. disableSaveControlFile() is called
  1824. in RequestGroup::processCheckIntegrityEntry().
  1825. enableSaveControlFile() will be called after hash checking is
  1826. done. See CheckIntegrityCommand.
  1827. * src/CheckIntegrityCommand.cc
  1828. * src/RequestGroup.cc
  1829. * src/RequestGroup.h
  1830. * src/RequestGroupMan.cc
  1831. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1832. Included version number in Peer ID and client version. Peer ID
  1833. now starts with "aria2/VERSION-", where VERSION is
  1834. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  1835. * src/DefaultBtInteractive.cc
  1836. * src/OptionHandlerFactory.cc
  1837. * src/bittorrent_helper.cc
  1838. * src/bittorrent_helper.h
  1839. * src/main.cc
  1840. * src/usage_text.h
  1841. * test/BittorrentHelperTest.cc
  1842. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1843. Fixed memory leak.
  1844. * src/DownloadCommand.cc
  1845. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1846. Removed server, port, user and passwd key from options before
  1847. XMLRPC::Client.call since they are not options of aria2.
  1848. * doc/xmlrpc/aria2mon
  1849. * doc/xmlrpc/aria2rpc
  1850. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1851. Included version number in user-agent string.
  1852. * src/OptionHandlerFactory.cc
  1853. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1854. Fixed the bug that the option values changed by XML-RPC
  1855. method(changeOption and changeGlobalOption) are overwritten to the
  1856. previous value by the next these request which doesn't contain
  1857. that option value. Supporse max-download-limit is initially 0. You
  1858. changed this value to 100K by changeOption. Then you issue
  1859. changeOption request to change max-upload-limit to 50K. This
  1860. second request doesn't contain xml-download-limit, so it is back
  1861. to initial value, 0. Another improvement is that exception is
  1862. thrown when changeOption and changeGlobalOption request contains
  1863. option name which doesn't allowed in each request.
  1864. * src/DownloadEngine.h
  1865. * src/XmlRpcMethod.cc
  1866. * src/XmlRpcMethod.h
  1867. * src/XmlRpcMethodImpl.cc
  1868. * src/download_helper.cc
  1869. * src/download_helper.h
  1870. * test/XmlRpcMethodTest.cc
  1871. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1872. Added missing MetalinkParserStateImpl.{cc,h}
  1873. * src/MetalinkParserStateImpl.cc
  1874. * src/MetalinkParserStateImpl.h
  1875. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1876. Put all MetalinkParserState subclasses into
  1877. MetalinkParserStateImpl.cc. Use stack to track element structure.
  1878. * src/FileMetalinkParserState.cc: Removed
  1879. * src/FileMetalinkParserState.h: Removed
  1880. * src/FilesMetalinkParserState.cc: Removed
  1881. * src/FilesMetalinkParserState.h: Removed
  1882. * src/FinMetalinkParserState.cc: Removed
  1883. * src/FinMetalinkParserState.h: Removed
  1884. * src/HashMetalinkParserState.cc: Removed
  1885. * src/HashMetalinkParserState.h: Removed
  1886. * src/InitialMetalinkParserState.cc: Removed
  1887. * src/InitialMetalinkParserState.h: Removed
  1888. * src/LanguageMetalinkParserState.cc: Removed
  1889. * src/LanguageMetalinkParserState.h: Removed
  1890. * src/Makefile.am
  1891. * src/MetalinkMetalinkParserState.cc: Removed
  1892. * src/MetalinkMetalinkParserState.h: Removed
  1893. * src/MetalinkParserState.h
  1894. * src/MetalinkParserStateMachine.cc
  1895. * src/MetalinkParserStateMachine.h
  1896. * src/OSMetalinkParserState.cc: Removed
  1897. * src/OSMetalinkParserState.h: Removed
  1898. * src/PieceHashMetalinkParserState.cc: Removed
  1899. * src/PieceHashMetalinkParserState.h: Removed
  1900. * src/PiecesMetalinkParserState.cc: Removed
  1901. * src/PiecesMetalinkParserState.h: Removed
  1902. * src/ResourcesMetalinkParserState.cc: Removed
  1903. * src/ResourcesMetalinkParserState.h: Removed
  1904. * src/SignatureMetalinkParserState.cc: Removed
  1905. * src/SignatureMetalinkParserState.h: Removed
  1906. * src/SizeMetalinkParserState.cc: Removed
  1907. * src/SizeMetalinkParserState.h: Removed
  1908. * src/SkipTagMetalinkParserState.cc: Removed
  1909. * src/SkipTagMetalinkParserState.h: Removed
  1910. * src/URLMetalinkParserState.cc: Removed
  1911. * src/URLMetalinkParserState.h: Removed
  1912. * src/VerificationMetalinkParserState.cc: Removed
  1913. * src/VerificationMetalinkParserState.h: Removed
  1914. * src/VersionMetalinkParserState.cc: Removed
  1915. * src/VersionMetalinkParserState.h: Removed
  1916. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1917. Move all functions in PeerMessageUtil to bittorrent_helper.
  1918. * src/BtBitfieldMessage.cc
  1919. * src/BtBitfieldMessageValidator.h
  1920. * src/BtExtendedMessage.cc
  1921. * src/BtHandshakeMessage.cc
  1922. * src/BtHandshakeMessageValidator.h
  1923. * src/BtPieceMessage.cc
  1924. * src/BtPieceMessageValidator.h
  1925. * src/BtPortMessage.cc
  1926. * src/DHTFindNodeReplyMessage.cc
  1927. * src/DHTGetPeersReplyMessage.cc
  1928. * src/DHTMessageFactoryImpl.cc
  1929. * src/DHTRoutingTableDeserializer.cc
  1930. * src/DHTRoutingTableSerializer.cc
  1931. * src/DHTTokenTracker.cc
  1932. * src/DefaultBtMessageFactory.cc
  1933. * src/IndexBtMessage.cc
  1934. * src/IndexBtMessage.h
  1935. * src/IndexBtMessageValidator.h
  1936. * src/Makefile.am
  1937. * src/PeerMessageUtil.cc: Removed.
  1938. * src/PeerMessageUtil.h: Removed.
  1939. * src/RangeBtMessage.cc
  1940. * src/RangeBtMessage.h
  1941. * src/RangeBtMessageValidator.h
  1942. * src/UTPexExtensionMessage.cc
  1943. * src/ZeroBtMessage.cc
  1944. * src/ZeroBtMessage.h
  1945. * src/bittorrent_helper.cc
  1946. * src/bittorrent_helper.h
  1947. * test/BittorrentHelperTest.cc
  1948. * test/BtAllowedFastMessageTest.cc
  1949. * test/BtBitfieldMessageTest.cc
  1950. * test/BtCancelMessageTest.cc
  1951. * test/BtChokeMessageTest.cc
  1952. * test/BtExtendedMessageTest.cc
  1953. * test/BtHandshakeMessageTest.cc
  1954. * test/BtHaveAllMessageTest.cc
  1955. * test/BtHaveMessageTest.cc
  1956. * test/BtHaveNoneMessageTest.cc
  1957. * test/BtInterestedMessageTest.cc
  1958. * test/BtNotInterestedMessageTest.cc
  1959. * test/BtPieceMessageTest.cc
  1960. * test/BtPortMessageTest.cc
  1961. * test/BtRejectMessageTest.cc
  1962. * test/BtRequestMessageTest.cc
  1963. * test/BtSuggestPieceMessageTest.cc
  1964. * test/BtUnchokeMessageTest.cc
  1965. * test/DHTFindNodeReplyMessageTest.cc
  1966. * test/DHTGetPeersReplyMessageTest.cc
  1967. * test/DHTMessageFactoryImplTest.cc
  1968. * test/DHTRoutingTableDeserializerTest.cc
  1969. * test/DHTRoutingTableSerializerTest.cc
  1970. * test/DefaultBtMessageFactoryTest.cc
  1971. * test/DefaultExtensionMessageFactoryTest.cc
  1972. * test/Makefile.am
  1973. * test/PeerListProcessorTest.cc
  1974. * test/PeerMessageUtilTest.cc: Removed.
  1975. * test/UTPexExtensionMessageTest.cc
  1976. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1977. Limit the size of values list when sending get_peers reply.
  1978. * src/DHTGetPeersReplyMessage.cc
  1979. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1980. Updated banner
  1981. * doc/xmlrpc/aria2rpc
  1982. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1983. Added missing help message for remove command.
  1984. * doc/xmlrpc/aria2rpc
  1985. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1986. Generated configure and config.h.in
  1987. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  1988. Add check for fork(), which is missing on MinGW
  1989. * src/daemon.cc
  1990. * configure.ac
  1991. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1992. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  1993. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  1994. Util::httpGMT().
  1995. * src/Util.cc
  1996. * src/Util.h
  1997. * test/UtilTest.cc
  1998. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1999. * Release 1.6.0
  2000. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2001. Fixed a path to xmlrpc/README.txt
  2002. * doc/Makefile.am
  2003. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2004. Added XML-RPC in -v Configuration output.
  2005. * src/FeatureConfig.cc
  2006. * src/FeatureConfig.h
  2007. * test/FeatureConfigTest.cc
  2008. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2009. Updated Bulgarian, Russian, Slovak and Japanese
  2010. translations. Thanks to all translators.
  2011. * po/bg.po
  2012. * po/ja.po
  2013. * po/ru.po
  2014. * po/sk.po
  2015. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2016. Removed --retry-wait option from aria2rpc
  2017. * doc/xmlrpc/aria2rpc
  2018. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2019. Removed --retry-wait option from man page.
  2020. * doc/aria2c.1.txt
  2021. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2022. Removed --retry-wait option since the current architecture doesn't
  2023. allow sleep for particular URI.
  2024. * src/AbstractCommand.cc
  2025. * src/OptionHandlerFactory.cc
  2026. * src/download_helper.cc
  2027. * src/prefs.cc
  2028. * src/prefs.h
  2029. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2030. Removed Retry-After header support. Since the current architecture
  2031. doesn't allow sleep for particular URI.
  2032. * src/HttpSkipResponseCommand.cc
  2033. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2034. Updated the help message for --daemon option.
  2035. * doc/aria2c.1.txt
  2036. * src/usage_text.h
  2037. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2038. Added our own daemon() function for systems which desn't have
  2039. daemon(3).
  2040. * configure.ac
  2041. * src/Makefile.am
  2042. * src/daemon.cc
  2043. * src/daemon.h
  2044. * src/option_processing.cc
  2045. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2046. Simplified File::getCurrentDir()
  2047. * src/File.cc
  2048. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2049. Use exit() instead of _exit
  2050. * src/RequestGroupMan.cc
  2051. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2052. Replaced "CATEGORY" with "TAGS".
  2053. * src/usage_text.h
  2054. * doc/aria2c.1.txt
  2055. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2056. Updated the help message for --help option.
  2057. * src/usage_text.h
  2058. * doc/aria2c.1.txt
  2059. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2060. Updated man page for added help tags.
  2061. * doc/aria2c.1.txt
  2062. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2063. Added help category #file. Added #file tag to the options related
  2064. to downloaded file.
  2065. * src/OptionHandlerFactory.cc
  2066. * src/help_tags.h
  2067. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2068. Added help categories: #cookie and #hook. Added #https tag to
  2069. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  2070. * src/OptionHandlerFactory.cc
  2071. * src/help_tags.h
  2072. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2073. Made MSG_NOT_FILE translatable.
  2074. * src/message.h
  2075. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2076. Updated man page for --help option.
  2077. * doc/aria2c.1.txt
  2078. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2079. Updated doc.
  2080. * src/XmlRpcMethod.h
  2081. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2082. Help category now starts with "#" to distinguish a category from
  2083. keyword search. For example, "http" categroy is now "#http". You
  2084. can type "--help=#http" to get explanation of options related to
  2085. http. If '#' is omitted, then the argument is treated as a keyword
  2086. and aria2 searches options whose name includes the keyword and
  2087. print matched ones. For example, "--help=http" will show options
  2088. whose name includes "http".
  2089. * src/OptionHandlerFactory.cc
  2090. * src/help_tags.h
  2091. * src/usage_text.h
  2092. * src/version_usage.cc
  2093. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2094. Documented missing experimental tag and newly added xml-rpc tag in
  2095. man page.
  2096. * doc/aria2c.1.txt
  2097. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2098. Added xml-rpc help tag. Tagged xml-rpc related options with
  2099. xml-rpc tag.
  2100. * src/OptionHandlerFactory.cc
  2101. * src/help_tags.h
  2102. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2103. Updated message when a path is not a file. Updated common message
  2104. for wrong option.
  2105. * src/OptionHandlerException.cc
  2106. * src/message.h
  2107. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2108. Use File::isFile() instead of File::exists(). Updated message when
  2109. a path is not a file.
  2110. * src/OptionHandlerImpl.cc
  2111. * src/message.h
  2112. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2113. Fixed the bug that server performence profile is not updated when
  2114. aria2c was terminated by emergency shutdown.
  2115. * src/TrackerWatcherCommand.cc
  2116. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2117. Use LocalFilePathOptionHandler for -T and -M option.
  2118. Updated message of MSG_FILE_NOT_EXIST.
  2119. * src/OptionHandlerFactory.cc
  2120. * src/message.h
  2121. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2122. Added LocalFilePathOptionHandler which check whether the specified
  2123. file path does exist or not.
  2124. * src/OptionHandlerImpl.cc
  2125. * src/message.h
  2126. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2127. Updated wiki page URI.
  2128. * README
  2129. * doc/aria2c.1.txt
  2130. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2131. Added README.txt for xmlrpc directory.
  2132. * doc/Makefile.am
  2133. * doc/xmlrpc/README.txt
  2134. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2135. Bump up version number to 1.6.0.
  2136. * configure.ac
  2137. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2138. Added XML-RPC client scripts written in ruby.
  2139. * doc/Makefile.am
  2140. * doc/xmlrpc/aria2mon
  2141. * doc/xmlrpc/aria2rpc
  2142. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2143. Added support for IPv6 literal address in URI. Now aria2 can
  2144. handle URI such as http://[::1]/
  2145. * src/HttpRequest.cc
  2146. * src/HttpRequest.h
  2147. * src/Request.cc
  2148. * src/Request.h
  2149. * test/HttpRequestTest.cc
  2150. * test/OptionHandlerTest.cc
  2151. * test/RequestTest.cc
  2152. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2153. Fixed the bug that HTTP request header for XML-RPC request is not
  2154. parsed properly.
  2155. * src/HttpHeader.cc
  2156. * src/HttpHeaderProcessor.cc
  2157. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2158. Fixed the bug that XML-RPC authorization might be done before HTTP
  2159. request header is fully received.
  2160. * src/HttpServerCommand.cc
  2161. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2162. Documented --xml-rpc-listen-all option in man page.
  2163. * doc/aria2c.1.txt
  2164. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2165. Added --xml-rpc-listen-all option. If true is given to this
  2166. option, aria2 listens incoming XML-RPC requests on all network
  2167. interfaces. If false is given, listens only on local loopback
  2168. interface. The default value is false.
  2169. * src/HttpListenCommand.cc
  2170. * src/OptionHandlerFactory.cc
  2171. * src/SocketCore.cc
  2172. * src/SocketCore.h
  2173. * src/prefs.cc
  2174. * src/prefs.h
  2175. * src/usage_text.h
  2176. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2177. * Release 1.5.2
  2178. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2179. Updated Ukrainian and Russian translations. Thanks to all
  2180. translators.
  2181. * po/ru.po
  2182. * po/uk.po
  2183. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2184. Bump up version number to 1.5.2
  2185. * configure.ac
  2186. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2187. Get comment, comment.utf-8, created by and creation date from
  2188. .torrent file and print them in -S output.
  2189. * src/bittorrent_helper.cc
  2190. * src/bittorrent_helper.h
  2191. * test/BittorrentHelperTest.cc
  2192. * test/test.torrent
  2193. * test/utf8.torrent
  2194. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2195. Show exact file size along in -S option output.
  2196. * src/Util.h
  2197. * src/bittorrent_helper.cc
  2198. * test/UtilTest.cc
  2199. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2200. Avoided unnecessary memory allocation in
  2201. BitfieldMan::getCompletedLength().
  2202. * src/BitfieldMan.cc
  2203. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2204. Fixed the bug that download fails if
  2205. SocketCore::establishConnection() throws exception and aria2
  2206. doesn't try another address.
  2207. * src/AbstractCommand.cc
  2208. * src/InitiateConnectionCommand.cc
  2209. * src/message.h
  2210. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2211. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  2212. detected properly.
  2213. * m4/sqlite3.m4
  2214. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2215. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  2216. because it causes compile error if PARAMS macro is defined.
  2217. * src/XmlRpcElements.cc
  2218. * src/XmlRpcElements.h
  2219. * src/XmlRpcRequestParserStateImpl.cc
  2220. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2221. * Release 1.5.1
  2222. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2223. Bump up version number to 1.5.1
  2224. * configure.ac
  2225. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2226. Fixed compile error without BitTorrent support
  2227. * src/DefaultBtProgressInfoFile.cc
  2228. * src/DownloadEngine.cc
  2229. * src/DownloadEngine.h
  2230. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2231. Added missing '=' in Download Results
  2232. * src/RequestGroupMan.cc
  2233. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2234. Fixed compiler warning
  2235. * src/DefaultBtProgressInfoFile.cc
  2236. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2237. Fixed compiler warning on 32bit systems.
  2238. * src/DownloadCommand.cc
  2239. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2240. Call flush from ServerStatMan::save()
  2241. * src/ServerStatMan.cc
  2242. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2243. Check stream status after file is opened.
  2244. * src/CookieStorage.cc
  2245. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2246. Rewritten Signature::save()
  2247. * src/Signature.cc
  2248. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2249. Rewritten RequestGroupMan::saveServerStat()
  2250. * src/RequestGroupMan.cc
  2251. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2252. Rewritten stream error handling
  2253. * src/DHTAutoSaveCommand.cc
  2254. * src/DHTRoutingTableDeserializer.cc
  2255. * src/DHTRoutingTableSerializer.cc
  2256. * src/DHTSetup.cc
  2257. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2258. Check stream status after file is opened.
  2259. * src/DefaultBtProgressInfoFile.cc
  2260. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2261. Rewritten stream error handling
  2262. * src/DefaultBtProgressInfoFile.cc
  2263. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2264. Make sure that stream is closed before renaming file. Unit test
  2265. fails on mingw32 in the previous implementation.
  2266. * src/CookieStorage.cc
  2267. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2268. Fixed the unit test error without sqlite3
  2269. * test/CookieStorageTest.cc
  2270. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2271. Fixed the undefined reference error
  2272. * test/HttpResponseTest.cc
  2273. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2274. * Release 1.5.0
  2275. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2276. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  2277. Ukrainian translations. Thanks to all translators.
  2278. * po/ru.po
  2279. * po/it.po
  2280. * po/da.po
  2281. * po/bg.po
  2282. * po/ja.po
  2283. * po/uk.po
  2284. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2285. Added missing src/Logger.cc
  2286. * src/Logger.cc
  2287. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2288. Rewritten Logger to avoiding constly virtual call.
  2289. * src/LogFactory.cc
  2290. * src/LogFactory.h
  2291. * src/Logger.h
  2292. * src/Makefile.am
  2293. * src/Makefile.in
  2294. * src/NullLogger.h: Removed.
  2295. * src/SimpleLogger.cc
  2296. * src/SimpleLogger.h
  2297. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2298. Updated doc
  2299. * src/main.cc
  2300. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2301. Updated debug log message
  2302. * src/AbstractCommand.cc
  2303. * src/message.h
  2304. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2305. Avoid to create zombie process when commands specified in
  2306. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  2307. X and NetBSD.
  2308. * src/main.cc
  2309. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2310. Fixed typo
  2311. * src/usage_text.h
  2312. * doc/aria2c.1.txt
  2313. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2314. Documented 'errorCode' of tellStatus in man page.
  2315. * doc/aria2c.1.txt
  2316. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2317. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  2318. This key is only available for stopped/completed downloads and its
  2319. value is the error code defined in EXIT STATUS in man page.
  2320. * src/XmlRpcMethodImpl.cc
  2321. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2322. Fixed the bug that session download length is not updated when
  2323. PeerStat is not fastest one.
  2324. * src/SegmentMan.cc
  2325. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2326. Updated doc.
  2327. * doc/aria2c.1.txt
  2328. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2329. Updated doc.
  2330. * src/AbstractCommand.cc
  2331. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2332. Handle the case when DownloadContext has no FileEntry.
  2333. * src/XmlRpcMethodImpl.cc
  2334. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2335. Handle the situation where struct option.name is char *.
  2336. * configure.ac
  2337. * src/OptionParser.cc
  2338. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2339. Code cleanup
  2340. * src/AbstractCommand.cc
  2341. * src/DownloadCommand.cc
  2342. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2343. Use option of each download to create AuthConfig instead of global
  2344. option.
  2345. * src/AuthConfigFactory.cc
  2346. * src/AuthConfigFactory.h
  2347. * src/FtpNegotiationCommand.cc
  2348. * src/HttpRequest.cc
  2349. * src/HttpRequest.h
  2350. * src/HttpRequestCommand.cc
  2351. * src/HttpSkipResponseCommand.cc
  2352. * src/MultiUrlRequestInfo.cc
  2353. * test/AuthConfigFactoryTest.cc
  2354. * test/FtpConnectionTest.cc
  2355. * test/HttpRequestTest.cc
  2356. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2357. Don't call prepareForRetry(1) if all segments are ignored in
  2358. SegmentMan.
  2359. * src/AbstractCommand.cc
  2360. * src/BitfieldMan.cc
  2361. * src/BitfieldMan.h
  2362. * src/SegmentMan.cc
  2363. * src/SegmentMan.h
  2364. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2365. Removed FileEntry::getAssociatedUris()
  2366. * src/FileEntry.h
  2367. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2368. Updated doc: TODO1.5 -> TODO
  2369. * src/FileEntry.cc
  2370. * src/HttpResponseCommand.cc
  2371. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2372. Added assertion fileEntries.size() == 1 if BitTorrent is not
  2373. involved.
  2374. * src/RequestGroup.cc
  2375. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2376. Eliminated duplicated filterBitfield initialization code.
  2377. * src/BitfieldMan.cc
  2378. * src/BitfieldMan.h
  2379. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2380. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  2381. relatively naive approach, though). For DownloadFailureException,
  2382. we handle the case when req is null properly.
  2383. * src/AbstractCommand.cc
  2384. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2385. Added function returning suffix of control file to
  2386. DefaultBtProgressInfoFile.
  2387. * src/DefaultBtProgressInfoFile.cc
  2388. * src/DefaultBtProgressInfoFile.h
  2389. * src/RequestGroup.cc
  2390. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2391. Documented getVersion in man page.
  2392. * doc/aria2c.1.txt
  2393. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2394. Documented type of offset and num for tellWaiting xml-rpc method.
  2395. * doc/aria2c.1.txt
  2396. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2397. Implemented getVersion xml-rpc method. This method returns struct
  2398. which has 2 key-value pairs: "version" key is associated to the
  2399. version of aria2, such as "1.5.0". "enabledFeatures" key is
  2400. associated to the list of enabled features, such as "Async DNS",
  2401. "BitTorrent".
  2402. * src/FeatureConfig.h
  2403. * src/XmlRpcMethodFactory.cc
  2404. * src/XmlRpcMethodImpl.cc
  2405. * src/XmlRpcMethodImpl.h
  2406. * test/XmlRpcMethodTest.cc
  2407. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2408. Removed TLS1.1 protocol support when aria2 is built with gnutls
  2409. for compatibility issue.
  2410. * src/SocketCore.cc
  2411. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2412. Fixed compile error with openSSL
  2413. * src/bittorrent_helper.cc
  2414. * src/messageDigest.h
  2415. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2416. Removed bad code: setting certificate type priority to key
  2417. exchange priority.
  2418. * src/SocketCore.cc
  2419. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2420. Disconnect seeder if client is also in seed state.
  2421. * src/BtBitfieldMessage.cc
  2422. * src/BtHaveAllMessage.cc
  2423. * src/BtHaveMessage.cc
  2424. * src/message.h
  2425. * test/BtBitfieldMessageTest.cc
  2426. * test/BtHaveAllMessageTest.cc
  2427. * test/BtHaveMessageTest.cc
  2428. * test/MockPieceStorage.h
  2429. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2430. Keep CreateRequestCommand in queue when no segment is available so
  2431. that they can pick up pieces which slow BitTorrent peers are
  2432. downloading.
  2433. * src/AbstractCommand.cc
  2434. * src/CreateRequestCommand.cc
  2435. * src/CreateRequestCommand.h
  2436. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2437. --bt-stop-timeout now only checks download speed.
  2438. * src/BtStopDownloadCommand.cc
  2439. * src/BtStopDownloadCommand.h
  2440. * src/BtSetup.cc
  2441. * src/usage_text.h
  2442. * doc/aria2c.1.txt
  2443. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2444. Fixed compile error regarding BUFSIZE.
  2445. * src/DownloadCommand.cc
  2446. * src/DownloadCommand.h
  2447. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2448. Documented tellWaiting xml-rpc method in man page.
  2449. * doc/aria2c.1.txt
  2450. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2451. Bump up version number to 1.5.0
  2452. * configure.ac
  2453. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2454. Removed resolved TODO1.5
  2455. * src/AbstractCommand.cc
  2456. * src/DownloadCommand.cc
  2457. * src/RequestGroup.cc
  2458. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2459. Release pooled and in-flight Request objectsand URIResult objects
  2460. in FileEntry after download completed.
  2461. * src/DownloadContext.cc
  2462. * src/DownloadContext.h
  2463. * src/FileEntry.cc
  2464. * src/FileEntry.h
  2465. * src/RequestGroup.cc
  2466. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2467. Set manual and source attribute in aria2c.1.txt
  2468. * doc/aria2c.1.txt
  2469. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2470. Documented that the default value of --use-head is 'false' in man
  2471. page.
  2472. * doc/aria2c.1.txt
  2473. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2474. Added bt-stop-timeout option to -i list.
  2475. * doc/aria2c.1.txt
  2476. * src/download_helper.cc
  2477. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2478. Fixed typo
  2479. * doc/aria2c.1.txt
  2480. * src/usage_text.h
  2481. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2482. Removed peer-id-prefix option from -i list.
  2483. * doc/aria2c.1.txt
  2484. * src/download_helper.cc
  2485. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2486. Fixed typo
  2487. * doc/aria2c.1.txt
  2488. * src/usage_text.h
  2489. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2490. Documented --bt-stop-timeout option in man page.
  2491. * doc/aria2c.1.txt
  2492. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2493. Updated README regarding multi-file torrent web-seeding.
  2494. * doc/README.txt
  2495. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2496. Updated man page regarding multi-file torrent web-seeding.
  2497. * doc/aria2c.1.txt
  2498. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2499. Updated doc
  2500. * src/version_usage.cc
  2501. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2502. Winsock select() doesn't work if no socket is in FD_SET. To
  2503. overcome this problem, a dummy socket is added to FD_SET and it is
  2504. given to select().
  2505. * src/SelectEventPoll.cc
  2506. * src/SelectEventPoll.h
  2507. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2508. Disabled --use-head option by default because --use-head=true
  2509. causes problems on some web sites.
  2510. * src/OptionHandlerFactory.cc
  2511. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2512. Print URL List in -S option for torrent.
  2513. * src/bittorrent_helper.cc
  2514. * src/bittorrent_helper.h
  2515. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2516. Allocate buffer in ctor of DownloadCommand.
  2517. * src/DownloadCommand.cc
  2518. * src/DownloadCommand.h
  2519. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2520. Removed DiskAdaptor::onDownloadComplete()
  2521. * src/DirectDiskAdaptor.cc
  2522. * src/DirectDiskAdaptor.h
  2523. * src/DiskAdaptor.h
  2524. * src/MultiDiskAdaptor.cc
  2525. * src/MultiDiskAdaptor.h
  2526. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2527. Committed missing BtStopDownloadCommand.{cc,h}
  2528. * src/BtStopDownloadCommand.cc
  2529. * src/BtStopDownloadCommand.h
  2530. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2531. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  2532. download if the download speed is 0 and the number of seeder is 0
  2533. in consecutive SEC seconds. By default, this function is disabled.
  2534. * src/BtSetup.cc
  2535. * src/Makefile.am
  2536. * src/OptionHandlerFactory.cc
  2537. * src/prefs.cc
  2538. * src/prefs.h
  2539. * src/usage_text.h
  2540. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2541. Removed the call to DiskAdaptor::onDownloadComplete() from
  2542. BtCheckIntegrityEntry and DefaultPieceStorage.
  2543. * src/BtCheckIntegrityEntry.cc
  2544. * src/DefaultPieceStorage.cc
  2545. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2546. Commented out throw statements when number of piece is 0 to
  2547. download 0 length torrent.
  2548. * src/bittorrent_helper.cc
  2549. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2550. Call RequestGroup::createNextCommandWithAdj() from
  2551. BtFileAllocationEntry if at least one FileEntry has URI. The
  2552. static function hasAssociatedUri in RequestGroup.cc is renamed as
  2553. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  2554. * src/BtFileAllocationEntry.cc
  2555. * src/FileEntry.h
  2556. * src/RequestGroup.cc
  2557. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2558. Generate peer ID after SimpleRandomizer is initialized.
  2559. * src/main.cc
  2560. * src/option_processing.cc
  2561. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2562. Removed unused method argument.
  2563. * src/CreateRequestCommand.cc
  2564. * src/RequestGroup.cc
  2565. * src/RequestGroup.h
  2566. * src/RequestGroupMan.cc
  2567. * src/TrackerWatcherCommand.cc
  2568. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2569. Made URI reusing function work.
  2570. * src/CreateRequestCommand.cc
  2571. * src/FileEntry.cc
  2572. * src/FileEntry.h
  2573. * test/FileEntryTest.cc
  2574. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2575. Add formerly fastest PeerStat's sessionDownloadLength to new
  2576. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  2577. bytes in a session.
  2578. * src/PeerStat.cc
  2579. * src/SegmentMan.cc
  2580. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2581. If pipelining is enabled, we can always pool socket.
  2582. * src/HttpDownloadCommand.cc
  2583. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2584. In a single file download, file size becomes known just after
  2585. downloading, set total length to FileEntry object when download
  2586. completed.
  2587. * src/DownloadCommand.cc
  2588. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2589. Use std::vector::reserve() for fileEntries and pieceHashes in
  2590. bittorrent_helper
  2591. * src/bittorrent_helper.cc
  2592. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2593. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  2594. Removed hidden option PREF_RESET_URI.
  2595. * src/AbstractCommand.cc
  2596. * src/OptionHandlerFactory.cc
  2597. * src/prefs.cc
  2598. * src/prefs.h
  2599. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2600. Removed unused variable/function.
  2601. * src/PeerStat.h
  2602. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2603. Show first URL in Download Results if file path is not available.
  2604. * src/FileEntry.h
  2605. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2606. Throw exception if file path doesn't exist in FTP URL.
  2607. * src/InitiateConnectionCommandFactory.cc
  2608. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2609. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  2610. * src/BitfieldMan.cc
  2611. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2612. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  2613. of PeerStat in SegmentMan. peerStats is used for calculating
  2614. download speed. Therefore all active PeerStats should be in
  2615. there. Another one is _fastestPeerStats and it only contains
  2616. fastest PeerStat for each hostname/protocol pair. They are used
  2617. for updating ServerStat.
  2618. * src/DownloadCommand.cc
  2619. * src/Request.h
  2620. * src/RequestGroupMan.cc
  2621. * src/SegmentMan.cc
  2622. * src/SegmentMan.h
  2623. * test/SegmentManTest.cc
  2624. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2625. Try all available addresses returned by DNS until it gets
  2626. connected in HTTP(S)/FTP download
  2627. * src/AbstractCommand.cc
  2628. * src/AbstractCommand.h
  2629. * src/AbstractProxyRequestCommand.cc
  2630. * src/AbstractProxyRequestCommand.h
  2631. * src/DNSCache.h
  2632. * src/DownloadEngine.cc
  2633. * src/DownloadEngine.h
  2634. * src/FtpInitiateConnectionCommand.cc
  2635. * src/FtpInitiateConnectionCommand.h
  2636. * src/FtpNegotiationCommand.cc
  2637. * src/FtpNegotiationCommand.h
  2638. * src/HttpInitiateConnectionCommand.cc
  2639. * src/HttpInitiateConnectionCommand.h
  2640. * src/HttpRequestCommand.cc
  2641. * src/HttpRequestCommand.h
  2642. * src/InitiateConnectionCommand.cc
  2643. * src/InitiateConnectionCommand.h
  2644. * test/DNSCacheTest.cc
  2645. * test/Makefile.am
  2646. * test/SimpleDNSCacheTest.cc
  2647. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2648. Updated doc
  2649. * src/download_helper.cc
  2650. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2651. Refactored fieldMan ctor.
  2652. * src/BitfieldMan.cc
  2653. * src/BitfieldMan.h
  2654. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2655. Don't print "No files to download." message if -S is given.
  2656. * src/main.cc
  2657. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2658. Set referer and method to newly created Request object.
  2659. * src/CreateRequestCommand.cc
  2660. * src/FileEntry.cc
  2661. * src/FileEntry.h
  2662. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2663. Removed ctor of AbstractCommand which doesn't take FileEntry.
  2664. * src/AbstractCommand.cc
  2665. * src/AbstractCommand.h
  2666. * src/CreateRequestCommand.cc
  2667. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2668. Get proxy download working
  2669. * src/AbstractProxyRequestCommand.cc
  2670. * src/AbstractProxyRequestCommand.h
  2671. * src/AbstractProxyResponseCommand.cc
  2672. * src/AbstractProxyResponseCommand.h
  2673. * src/FtpInitiateConnectionCommand.cc
  2674. * src/FtpTunnelRequestCommand.cc
  2675. * src/FtpTunnelRequestCommand.h
  2676. * src/FtpTunnelResponseCommand.cc
  2677. * src/FtpTunnelResponseCommand.h
  2678. * src/HttpInitiateConnectionCommand.cc
  2679. * src/HttpProxyRequestCommand.cc
  2680. * src/HttpProxyRequestCommand.h
  2681. * src/HttpProxyResponseCommand.cc
  2682. * src/HttpProxyResponseCommand.h
  2683. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2684. Use SegmentMan::getSegment(cuid) for single file download.
  2685. * src/AbstractCommand.cc
  2686. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2687. Fixed bufSize calculation
  2688. * src/DownloadCommand.cc
  2689. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2690. Don't append "/" if base URI ends with "/".
  2691. * src/bittorrent_helper.cc
  2692. * test/url-list-multiFile.torrent
  2693. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2694. HTTP pipelining is now working. Fixed Segmention fault in
  2695. BitfieldMan's copy ctor.
  2696. * src/AbstractCommand.cc
  2697. * src/BitfieldMan.cc
  2698. * src/BitfieldMan.h
  2699. * src/DownloadCommand.cc
  2700. * src/HttpDownloadCommand.cc
  2701. * src/HttpRequest.cc
  2702. * src/SegmentMan.cc
  2703. * src/SegmentMan.h
  2704. * test/BitfieldManTest.cc
  2705. * test/SegmentManTest.cc
  2706. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2707. Removed ServerHost. Same functionality is implemented using
  2708. FileEntry's in-flight Request objects.
  2709. * src/AbstractCommand.cc
  2710. * src/BtDependency.cc
  2711. * src/CreateRequestCommand.cc
  2712. * src/FileEntry.cc
  2713. * src/FileEntry.h
  2714. * src/FtpNegotiationCommand.cc
  2715. * src/HttpResponseCommand.cc
  2716. * src/Makefile.am
  2717. * src/Metalink2RequestGroup.cc
  2718. * src/RequestGroup.cc
  2719. * src/RequestGroup.h
  2720. * src/ServerHost.cc: Removed
  2721. * src/ServerHost.h: Removed
  2722. * test/BtDependencyTest.cc
  2723. * test/FileEntryTest.cc
  2724. * test/RequestGroupTest.cc
  2725. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2726. Rewritten PeerStat handling. In the previous implementation,
  2727. faster command tries to find slower command. In this new
  2728. implementation, slower command tries to find faster command.
  2729. PeerStat is now created in each HTTP/FTP request to get download
  2730. rate correctly. If the download range is small, the download rate
  2731. tends to small and this will occur at the later stage of download.
  2732. * src/AbstractCommand.cc
  2733. * src/DownloadCommand.cc
  2734. * src/FileEntry.cc
  2735. * src/FileEntry.h
  2736. * src/Request.cc
  2737. * src/Request.h
  2738. * src/RequestGroup.h
  2739. * src/RequestGroupMan.cc
  2740. * src/SegmentMan.cc
  2741. * src/SegmentMan.h
  2742. * test/SegmentManTest.cc
  2743. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2744. Removed _uris from RequestGroup. All functions that refer to _uris
  2745. were moved to FileEntry. Exit status code are now defined in
  2746. DownloadResultCode.h.
  2747. * src/AbstractCommand.cc
  2748. * src/AdaptiveURISelector.cc
  2749. * src/AdaptiveURISelector.h
  2750. * src/AutoSaveCommand.cc
  2751. * src/BtPostDownloadHandler.cc
  2752. * src/CheckIntegrityDispatcherCommand.cc
  2753. * src/CookieStorage.cc
  2754. * src/DHTAutoSaveCommand.cc
  2755. * src/DHTBucketRefreshCommand.cc
  2756. * src/DHTEntryPointNameResolveCommand.cc
  2757. * src/DHTInteractionCommand.cc
  2758. * src/DHTPeerAnnounceCommand.cc
  2759. * src/DHTTokenUpdateCommand.cc
  2760. * src/DlAbortEx.h
  2761. * src/DlRetryEx.h
  2762. * src/DownloadCommand.cc
  2763. * src/DownloadContext.h
  2764. * src/DownloadFailureException.h
  2765. * src/DownloadResult.h
  2766. * src/DownloadResultCode.h
  2767. * src/FeedbackURISelector.cc
  2768. * src/FeedbackURISelector.h
  2769. * src/FileEntry.cc
  2770. * src/FileEntry.h
  2771. * src/FtpNegotiationCommand.cc
  2772. * src/HttpListenCommand.cc
  2773. * src/HttpResponseCommand.cc
  2774. * src/HttpServerResponseCommand.cc
  2775. * src/HttpSkipResponseCommand.cc
  2776. * src/InOrderURISelector.cc
  2777. * src/InOrderURISelector.h
  2778. * src/Makefile.am
  2779. * src/Makefile.in
  2780. * src/Metalink2RequestGroup.cc
  2781. * src/MultiUrlRequestInfo.cc
  2782. * src/MultiUrlRequestInfo.h
  2783. * src/OptionHandlerFactory.cc
  2784. * src/PeerListenCommand.cc
  2785. * src/RecoverableException.h
  2786. * src/RequestGroup.cc
  2787. * src/RequestGroup.h
  2788. * src/RequestGroupMan.cc
  2789. * src/RequestGroupMan.h
  2790. * src/TimedHaltCommand.cc
  2791. * src/TrackerWatcherCommand.cc
  2792. * src/URIResult.cc
  2793. * src/URIResult.h
  2794. * src/URISelector.h
  2795. * src/XmlRpcMethodImpl.cc
  2796. * src/bittorrent_helper.cc
  2797. * src/bittorrent_helper.h
  2798. * src/download_helper.cc
  2799. * src/main.cc
  2800. * src/option_processing.cc
  2801. * test/BtDependencyTest.cc
  2802. * test/BtPostDownloadHandlerTest.cc
  2803. * test/CookieStorageTest.cc
  2804. * test/DefaultBtMessageDispatcherTest.cc
  2805. * test/DownloadHandlerFactoryTest.cc
  2806. * test/DownloadHelperTest.cc
  2807. * test/FeedbackURISelectorTest.cc
  2808. * test/FileEntryTest.cc
  2809. * test/InOrderURISelectorTest.cc
  2810. * test/Metalink2RequestGroupTest.cc
  2811. * test/MetalinkPostDownloadHandlerTest.cc
  2812. * test/RequestGroupManTest.cc
  2813. * test/RequestGroupTest.cc
  2814. * test/XmlRpcMethodTest.cc
  2815. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2816. Removed MockBtContext.h
  2817. * test/Makefile.am
  2818. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2819. Removed _currentRequest from StreamCheckIntegrityEntry and
  2820. StreamFileAllocationEntry.
  2821. * src/AbstractCommand.cc
  2822. * src/HttpResponseCommand.cc
  2823. * src/RequestGroup.cc
  2824. * src/StreamCheckIntegrityEntry.cc
  2825. * src/StreamCheckIntegrityEntry.h
  2826. * src/StreamFileAllocationEntry.cc
  2827. * src/StreamFileAllocationEntry.h
  2828. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2829. Rewritten DownloadContext and removed SingleFileDownloadContext
  2830. and BtContext and its derived classes. BitTorrent specific
  2831. attributes are now set by DownloadContext::setAttribute() with key
  2832. bittorrent::BITTORRENT.
  2833. * src/AbstractBtMessage.cc
  2834. * src/AbstractBtMessage.h
  2835. * src/AbstractCommand.cc
  2836. * src/AbstractCommand.h
  2837. * src/AbstractProxyRequestCommand.cc
  2838. * src/AbstractProxyResponseCommand.cc
  2839. * src/ActivePeerConnectionCommand.cc
  2840. * src/ActivePeerConnectionCommand.h
  2841. * src/AnnounceList.cc
  2842. * src/BtCheckIntegrityEntry.cc
  2843. * src/BtConstants.h
  2844. * src/BtContext.h: Removed
  2845. * src/BtDependency.cc
  2846. * src/BtExtendedMessage.cc
  2847. * src/BtPieceMessage.cc
  2848. * src/BtPieceMessage.h
  2849. * src/BtPostDownloadHandler.cc
  2850. * src/BtRegistry.cc
  2851. * src/BtRegistry.h
  2852. * src/BtSetup.cc
  2853. * src/CheckIntegrityCommand.cc
  2854. * src/CheckIntegrityEntry.cc
  2855. * src/ChecksumCheckIntegrityEntry.cc
  2856. * src/ConsoleStatCalc.cc
  2857. * src/ContentTypeRequestGroupCriteria.cc
  2858. * src/DHTGetPeersCommand.cc
  2859. * src/DHTGetPeersCommand.h
  2860. * src/DHTPeerLookupTask.cc
  2861. * src/DHTPeerLookupTask.h
  2862. * src/DHTTaskFactory.h
  2863. * src/DHTTaskFactoryImpl.cc
  2864. * src/DHTTaskFactoryImpl.h
  2865. * src/DefaultBtAnnounce.cc
  2866. * src/DefaultBtAnnounce.h
  2867. * src/DefaultBtContext.cc: Removed
  2868. * src/DefaultBtContext.h: Removed
  2869. * src/DefaultBtInteractive.cc
  2870. * src/DefaultBtInteractive.h
  2871. * src/DefaultBtMessageDispatcher.cc
  2872. * src/DefaultBtMessageDispatcher.h
  2873. * src/DefaultBtMessageFactory.cc
  2874. * src/DefaultBtMessageFactory.h
  2875. * src/DefaultBtMessageReceiver.cc
  2876. * src/DefaultBtMessageReceiver.h
  2877. * src/DefaultBtProgressInfoFile.cc
  2878. * src/DefaultBtRequestFactory.cc
  2879. * src/DefaultBtRequestFactory.h
  2880. * src/DefaultExtensionMessageFactory.cc
  2881. * src/DefaultExtensionMessageFactory.h
  2882. * src/DefaultPeerStorage.cc
  2883. * src/DefaultPeerStorage.h
  2884. * src/DefaultPieceStorage.cc
  2885. * src/DefaultSegmentManFactory.cc
  2886. * src/DiskAdaptor.cc
  2887. * src/DiskAdaptor.h
  2888. * src/DownloadContext.cc
  2889. * src/DownloadContext.h
  2890. * src/DownloadEngine.cc
  2891. * src/DownloadEngineFactory.cc
  2892. * src/DownloadHandler.cc
  2893. * src/DownloadResult.h
  2894. * src/FileAllocationCommand.cc
  2895. * src/FileAllocationDispatcherCommand.cc
  2896. * src/FileAllocationEntry.cc
  2897. * src/FileEntry.h
  2898. * src/FillRequestGroupCommand.cc
  2899. * src/FtpDownloadCommand.cc
  2900. * src/FtpFinishDownloadCommand.cc
  2901. * src/FtpInitiateConnectionCommand.cc
  2902. * src/FtpNegotiationCommand.cc
  2903. * src/FtpTunnelRequestCommand.cc
  2904. * src/FtpTunnelResponseCommand.cc
  2905. * src/HandshakeExtensionMessage.cc
  2906. * src/HandshakeExtensionMessage.h
  2907. * src/HaveEraseCommand.cc
  2908. * src/HttpDownloadCommand.cc
  2909. * src/HttpInitiateConnectionCommand.cc
  2910. * src/HttpProxyRequestCommand.cc
  2911. * src/HttpProxyResponseCommand.cc
  2912. * src/HttpRequest.cc
  2913. * src/HttpRequest.h
  2914. * src/HttpRequestCommand.cc
  2915. * src/HttpResponseCommand.cc
  2916. * src/HttpServerBodyCommand.cc
  2917. * src/HttpServerCommand.cc
  2918. * src/HttpSkipResponseCommand.cc
  2919. * src/InitiateConnectionCommandFactory.cc
  2920. * src/InitiatorMSEHandshakeCommand.cc
  2921. * src/InitiatorMSEHandshakeCommand.h
  2922. * src/IteratableChecksumValidator.cc
  2923. * src/IteratableChecksumValidator.h
  2924. * src/IteratableChunkChecksumValidator.cc
  2925. * src/MSEHandshake.cc
  2926. * src/MSEHandshake.h
  2927. * src/Makefile.am
  2928. * src/Makefile.in
  2929. * src/Metalink2RequestGroup.cc
  2930. * src/MetalinkPostDownloadHandler.cc
  2931. * src/MultiDiskAdaptor.cc
  2932. * src/MultiDiskAdaptor.h
  2933. * src/MultiFileAllocationIterator.cc
  2934. * src/MultiUrlRequestInfo.cc
  2935. * src/PeerChokeCommand.cc
  2936. * src/PeerChokeCommand.h
  2937. * src/PeerInitiateConnectionCommand.cc
  2938. * src/PeerInitiateConnectionCommand.h
  2939. * src/PeerInteractionCommand.cc
  2940. * src/PeerInteractionCommand.h
  2941. * src/PeerReceiveHandshakeCommand.cc
  2942. * src/PieceHashCheckIntegrityEntry.cc
  2943. * src/RealtimeCommand.cc
  2944. * src/ReceiverMSEHandshakeCommand.cc
  2945. * src/RequestGroup.cc
  2946. * src/RequestGroup.h
  2947. * src/RequestGroupEntry.cc
  2948. * src/RequestGroupMan.cc
  2949. * src/SeedCheckCommand.cc
  2950. * src/SeedCheckCommand.h
  2951. * src/SegmentMan.cc
  2952. * src/ShareRatioSeedCriteria.h
  2953. * src/SingleFileDownloadContext.cc: Removed
  2954. * src/SingleFileDownloadContext.h: Removed
  2955. * src/SleepCommand.cc
  2956. * src/StreamCheckIntegrityEntry.cc
  2957. * src/TrackerWatcherCommand.cc
  2958. * src/TrackerWatcherCommand.h
  2959. * src/UnknownLengthPieceStorage.cc
  2960. * src/Util.cc
  2961. * src/Util.h
  2962. * src/XmlRpcMethodImpl.cc
  2963. * src/bittorrent_helper.cc
  2964. * src/bittorrent_helper.h
  2965. * src/download_helper.cc
  2966. * src/main.cc
  2967. * src/option_processing.cc
  2968. * test/BitfieldManTest.cc
  2969. * test/BittorrentHelperTest.cc
  2970. * test/BtCancelMessageTest.cc
  2971. * test/BtChokeMessageTest.cc
  2972. * test/BtDependencyTest.cc
  2973. * test/BtPieceMessageTest.cc
  2974. * test/BtPostDownloadHandlerTest.cc
  2975. * test/BtRegistryTest.cc
  2976. * test/BtRejectMessageTest.cc
  2977. * test/BtRequestMessageTest.cc
  2978. * test/DHTPeerAnnounceStorageTest.cc
  2979. * test/DefaultBtAnnounceTest.cc
  2980. * test/DefaultBtContextTest.cc: Removed
  2981. * test/DefaultBtMessageDispatcherTest.cc
  2982. * test/DefaultBtMessageFactoryTest.cc
  2983. * test/DefaultBtProgressInfoFileTest.cc
  2984. * test/DefaultBtRequestFactoryTest.cc
  2985. * test/DefaultExtensionMessageFactoryTest.cc
  2986. * test/DefaultPeerStorageTest.cc
  2987. * test/DefaultPieceStorageTest.cc
  2988. * test/DirectDiskAdaptorTest.cc
  2989. * test/DownloadContextTest.cc
  2990. * test/DownloadHandlerFactoryTest.cc
  2991. * test/DownloadHelperTest.cc
  2992. * test/HandshakeExtensionMessageTest.cc
  2993. * test/HttpRequestTest.cc
  2994. * test/HttpResponseTest.cc
  2995. * test/IteratableChecksumValidatorTest.cc
  2996. * test/IteratableChunkChecksumValidatorTest.cc
  2997. * test/MSEHandshakeTest.cc
  2998. * test/Makefile.am
  2999. * test/Makefile.in
  3000. * test/Metalink2RequestGroupTest.cc
  3001. * test/MetalinkPostDownloadHandlerTest.cc
  3002. * test/MockBtContext.h: Removed
  3003. * test/MockDHTTaskFactory.h
  3004. * test/MockDownloadContext.h: Removed
  3005. * test/MockPieceStorage.h
  3006. * test/MultiDiskAdaptorTest.cc
  3007. * test/MultiFileAllocationIteratorTest.cc
  3008. * test/RequestGroupManTest.cc
  3009. * test/RequestGroupTest.cc
  3010. * test/SegmentManTest.cc
  3011. * test/ShareRatioSeedCriteriaTest.cc
  3012. * test/SingleFileDownloadContextTest.cc: Removed
  3013. * test/UtilTest.cc
  3014. * test/XmlRpcMethodTest.cc
  3015. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3016. Added experimental support of WEB-Seeding for multi-file torrent.
  3017. Due to fundamental changes in file handling in HTTP/FTP code, many
  3018. functions are not working: PeerStat, ServerHost, proxy..etc
  3019. * src/AbstractCommand.cc
  3020. * src/AbstractCommand.h
  3021. * src/BitfieldMan.cc
  3022. * src/BitfieldMan.h
  3023. * src/CreateRequestCommand.cc
  3024. * src/CreateRequestCommand.h
  3025. * src/DefaultPieceStorage.cc
  3026. * src/DefaultPieceStorage.h
  3027. * src/DownloadCommand.cc
  3028. * src/DownloadCommand.h
  3029. * src/DownloadContext.cc
  3030. * src/DownloadContext.h
  3031. * src/FileEntry.cc
  3032. * src/FileEntry.h
  3033. * src/FtpDownloadCommand.cc
  3034. * src/FtpDownloadCommand.h
  3035. * src/FtpFinishDownloadCommand.cc
  3036. * src/FtpFinishDownloadCommand.h
  3037. * src/FtpInitiateConnectionCommand.cc
  3038. * src/FtpInitiateConnectionCommand.h
  3039. * src/FtpNegotiationCommand.cc
  3040. * src/FtpNegotiationCommand.h
  3041. * src/FtpTunnelResponseCommand.cc
  3042. * src/HttpDownloadCommand.cc
  3043. * src/HttpDownloadCommand.h
  3044. * src/HttpInitiateConnectionCommand.cc
  3045. * src/HttpInitiateConnectionCommand.h
  3046. * src/HttpProxyResponseCommand.cc
  3047. * src/HttpRequest.cc
  3048. * src/HttpRequest.h
  3049. * src/HttpRequestCommand.cc
  3050. * src/HttpRequestCommand.h
  3051. * src/HttpResponseCommand.cc
  3052. * src/HttpResponseCommand.h
  3053. * src/HttpSkipResponseCommand.cc
  3054. * src/HttpSkipResponseCommand.h
  3055. * src/InitiateConnectionCommand.cc
  3056. * src/InitiateConnectionCommand.h
  3057. * src/InitiateConnectionCommandFactory.cc
  3058. * src/InitiateConnectionCommandFactory.h
  3059. * src/Makefile.am
  3060. * src/PieceStorage.h
  3061. * src/RequestGroup.cc
  3062. * src/RequestGroup.h
  3063. * src/RequestGroupMan.cc
  3064. * src/SegmentMan.cc
  3065. * src/SegmentMan.h
  3066. * src/SingleFileDownloadContext.h
  3067. * src/StreamFileAllocationEntry.cc
  3068. * src/TrackerWatcherCommand.cc
  3069. * src/UnknownLengthPieceStorage.cc
  3070. * src/UnknownLengthPieceStorage.h
  3071. * src/array_fun.h
  3072. * src/bitfield.h
  3073. * src/download_helper.cc
  3074. * test/DownloadContextTest.cc
  3075. * test/Makefile.am
  3076. * test/MockDownloadContext.h
  3077. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3078. Added tellWaiting XML-RPC method.
  3079. * src/SingleFileDownloadContext.cc
  3080. * src/XmlRpcMethodFactory.cc
  3081. * src/XmlRpcMethodImpl.cc
  3082. * src/XmlRpcMethodImpl.h
  3083. * test/XmlRpcMethodTest.cc
  3084. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3085. Updated CookieStorageTest
  3086. * test/CookieStorageTest.cc
  3087. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3088. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  3089. handle excepion inside these functions.
  3090. * src/LibgnutlsTLSContext.cc
  3091. * src/LibgnutlsTLSContext.h
  3092. * src/LibsslTLSContext.cc
  3093. * src/LibsslTLSContext.h
  3094. * src/MultiUrlRequestInfo.cc
  3095. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3096. Added comment
  3097. * src/RequestGroup.cc
  3098. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3099. In CookieStorage::load() and saveNsFormat(), handle exception
  3100. inside the functions. When saving Cookies, first write temporary
  3101. file and after successful writes, then renames it to final
  3102. destination.
  3103. * src/CookieStorage.cc
  3104. * src/CookieStorage.h
  3105. * src/MultiUrlRequestInfo.cc
  3106. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3107. The default value of --dir option is the absolute path to the
  3108. current directory. If getcwd() is failed, then it is ".", which is
  3109. the same value with old implementation. This change is necessary
  3110. because after daemon() call, the current working directory is
  3111. changed to /.
  3112. * src/File.cc
  3113. * src/File.h
  3114. * src/OptionHandlerFactory.cc
  3115. * src/option_processing.cc
  3116. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3117. Call daemon() with arguments(0,0), which means daemon() changes
  3118. current working directory to / and redirects stdin, stdout and
  3119. stderr to /dev/null.
  3120. * src/option_processing.cc
  3121. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3122. Small performance optimizations.
  3123. * src/RequestGroupMan.cc
  3124. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3125. Added _xmlRpc member variable to RequestGroupMan to reduce the
  3126. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  3127. * src/RequestGroupMan.cc
  3128. * src/RequestGroupMan.h
  3129. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3130. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  3131. setNoWiat(true) if newly created command calls
  3132. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  3133. * src/HttpListenCommand.cc
  3134. * src/HttpServerBodyCommand.cc
  3135. * src/HttpServerCommand.cc
  3136. * src/HttpServerResponseCommand.cc
  3137. * src/InitiateConnectionCommand.cc
  3138. * src/RequestGroup.cc
  3139. * src/StreamFileAllocationEntry.cc
  3140. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3141. Removed include vector
  3142. * src/BtRegistry.h
  3143. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3144. Rewritten BtRegistry
  3145. * src/BtRegistry.cc
  3146. * src/BtRegistry.h
  3147. * src/BtSetup.cc
  3148. * src/ConsoleStatCalc.cc
  3149. * src/PeerInteractionCommand.cc
  3150. * src/PeerReceiveHandshakeCommand.cc
  3151. * src/ReceiverMSEHandshakeCommand.cc
  3152. * src/RequestGroup.cc
  3153. * src/XmlRpcMethodImpl.cc
  3154. * test/BtRegistryTest.cc
  3155. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3156. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  3157. * src/DefaultBtProgressInfoFile.cc
  3158. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3159. Throw an exception if position is less than 0.
  3160. * src/XmlRpcMethodImpl.cc
  3161. * test/XmlRpcMethodTest.cc
  3162. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3163. Use writeFilePath() in ConsoleStatCalc.cc
  3164. * src/ConsoleStatCalc.cc
  3165. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3166. Receive the return value as const reference from
  3167. DownloadContext::getFileEntries().
  3168. * src/DefaultPieceStorage.cc
  3169. * src/RequestGroupMan.cc
  3170. * src/XmlRpcMethodImpl.cc
  3171. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3172. DownloadContext now has _fileEntries so that
  3173. DownloadContext::getFileEntries() can returns its const reference.
  3174. * src/DefaultBtContext.cc
  3175. * src/DefaultBtContext.h
  3176. * src/DownloadContext.cc
  3177. * src/DownloadContext.h
  3178. * src/SingleFileDownloadContext.cc
  3179. * src/SingleFileDownloadContext.h
  3180. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3181. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  3182. writeFilePath() function template from RequestGroupMan.cc to
  3183. FileEntry.h
  3184. * src/FileEntry.h
  3185. * src/RequestGroupMan.cc
  3186. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3187. Documented 'position' parameter is starting from 0 in man page.
  3188. * doc/aria2c.1.txt
  3189. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3190. Updated doc.
  3191. * src/MSEHandshake.cc
  3192. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3193. Removed _acceptFeatures and its accessor functions from
  3194. RequestGroup since they are not used practically.
  3195. * src/HttpRequestCommand.cc
  3196. * src/RequestGroup.cc
  3197. * src/RequestGroup.h
  3198. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3199. Removed member _maxTries from RequestGroup class to avoid
  3200. duplicate option value. Those classes who refer this variable
  3201. should use option value of PREF_MAX_TRIES directly.
  3202. * src/AbstractCommand.cc
  3203. * src/RequestGroup.cc
  3204. * src/RequestGroup.h
  3205. * src/TrackerWatcherCommand.cc
  3206. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3207. * Release 1.4.1
  3208. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3209. Fixed compiler warnings on netbsd
  3210. * src/DHTConnectionImpl.cc
  3211. * src/PeerListenCommand.cc
  3212. * src/PeerSessionResource.cc
  3213. * src/SegmentMan.cc
  3214. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3215. Updated Ukrainian translation. Thanks to all translators.
  3216. * po/uk.po
  3217. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3218. Bump up version number to 1.4.1.
  3219. * configure.ac
  3220. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3221. Added unit tests for strjoin, strconcat and strappend.
  3222. * test/a2functionalTest.cc
  3223. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3224. Rewritten strconcat and strappend using operator+ instead of
  3225. append().
  3226. * src/a2functional.h
  3227. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3228. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  3229. is enabled.
  3230. * src/Makefile.am
  3231. * test/Makefile.am
  3232. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3233. Added countSeeder() function which counts seeder in the given
  3234. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  3235. * src/ConsoleStatCalc.cc
  3236. * src/Peer.h
  3237. * src/XmlRpcMethodImpl.cc
  3238. * test/PeerTest.cc
  3239. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3240. Documented missing seeder in getPeers xml-rpc method.
  3241. Documented uploadLength and numSeeders.
  3242. * doc/aria2c.1.txt
  3243. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3244. Added uploadLength and numSeeders to the response of tellStatus
  3245. xml-rpc method. Assert that PeerStorage instance is not null
  3246. instead of checking if statement. It should be non-null in this
  3247. context.
  3248. * src/XmlRpcMethodImpl.cc
  3249. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3250. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  3251. * src/XmlRpcResponse.cc
  3252. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3253. Avoid intermediate object during string concatenation.
  3254. * src/HttpRequest.cc
  3255. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3256. Added strjoin function template. Use it in pathJoin()
  3257. * src/Util.h
  3258. * src/a2functional.h
  3259. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3260. Avoid intermediate object during string concatenation. Replaced
  3261. post-increment unary operator with pre-increment one in for loop.
  3262. * src/AdaptiveURISelector.cc
  3263. * src/AnnounceList.cc
  3264. * src/AuthConfig.h
  3265. * src/BtBitfieldMessage.cc
  3266. * src/BtExtendedMessage.cc
  3267. * src/BtHandshakeMessage.cc
  3268. * src/BtPieceMessage.cc
  3269. * src/BtPortMessage.cc
  3270. * src/Cookie.cc
  3271. * src/DHTAnnouncePeerMessage.cc
  3272. * src/DHTAutoSaveCommand.cc
  3273. * src/DHTGetPeersReplyMessage.cc
  3274. * src/DHTNode.cc
  3275. * src/DHTQueryMessage.cc
  3276. * src/DHTResponseMessage.cc
  3277. * src/DHTUnknownMessage.cc
  3278. * src/DefaultBtAnnounce.cc
  3279. * src/DefaultBtContext.cc
  3280. * src/DefaultBtInteractive.cc
  3281. * src/DefaultBtProgressInfoFile.cc
  3282. * src/DefaultPeerStorage.cc
  3283. * src/DownloadEngine.cc
  3284. * src/FeatureConfig.cc
  3285. * src/File.cc
  3286. * src/FtpConnection.cc
  3287. * src/FtpNegotiationCommand.cc
  3288. * src/HandshakeExtensionMessage.cc
  3289. * src/HttpConnection.cc
  3290. * src/HttpRequest.cc
  3291. * src/HttpResponseCommand.cc
  3292. * src/HttpServer.cc
  3293. * src/IndexBtMessage.cc
  3294. * src/Metalink2RequestGroup.cc
  3295. * src/OptionHandlerImpl.h
  3296. * src/PStringBuildVisitor.cc
  3297. * src/Peer.cc
  3298. * src/PeerListenCommand.cc
  3299. * src/Piece.cc
  3300. * src/RangeBtMessage.cc
  3301. * src/Request.cc
  3302. * src/Request.h
  3303. * src/RequestGroup.cc
  3304. * src/RequestGroupMan.cc
  3305. * src/ServerStat.cc
  3306. * src/ServerStatMan.cc
  3307. * src/UTPexExtensionMessage.cc
  3308. * src/Util.cc
  3309. * src/a2functional.h
  3310. * src/download_helper.cc
  3311. * src/messageDigest.cc
  3312. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3313. Unchoke a peer randomly at first and second choke round in seed
  3314. state.
  3315. * src/BtSeederStateChoke.cc
  3316. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  3317. Added (sock_t) to quiet compiler warnings in MinGW
  3318. * src/SocketCore.cc
  3319. * src/SocketCore.h
  3320. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3321. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  3322. * src/EpollEventPoll.h
  3323. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  3324. Added fork() emulation using CreateProcess() in MinGW
  3325. * src/RequestGroupMan.cc
  3326. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3327. * Release 1.4.0
  3328. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3329. Added utf8.torrent to EXTRA_DIST
  3330. * test/Makefile.am
  3331. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3332. Fixed docs of aria2.addMetalink xml-rpc method.
  3333. * doc/aria2c.1.txt
  3334. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3335. Added Slovak translation. Updated Ukrainian and Brazilian
  3336. Portuguese translation. Thanks to all translators.
  3337. * po/sk.po
  3338. * po/uk.po
  3339. * po/pt_BR.po
  3340. * po/LINGUAS
  3341. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3342. Added test case for XmlRpcProcessor to fail to parse malformed
  3343. document.
  3344. * test/XmlRpcRequestProcessorTest.cc
  3345. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3346. Removed *.gmo files in po because they are generated on 'make
  3347. dist'
  3348. * po/*.gmo
  3349. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3350. Documented max-concurrent-downloads of changeGlobalOption method
  3351. in man page.
  3352. * doc/aria2c.1.txt
  3353. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3354. Added max-concurrent-downloads option to changeGlobalOption
  3355. xml-rpc method. Rewritten loop conditional in
  3356. RequestGroupMan::fillRequestGroupFromReserver().
  3357. * src/RequestGroupMan.cc
  3358. * src/RequestGroupMan.h
  3359. * src/XmlRpcMethod.cc
  3360. * src/XmlRpcMethodImpl.cc
  3361. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3362. Documented position parameter in man page.
  3363. * doc/aria2c.1.txt
  3364. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3365. Added 'position' parameter to addUri, addTorrent and addMetalink
  3366. xml-rpc method.
  3367. * src/RequestGroupMan.cc
  3368. * src/RequestGroupMan.h
  3369. * src/XmlRpcMethodImpl.cc
  3370. * test/XmlRpcMethodTest.cc
  3371. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3372. Removed Peer.cc from compile source list when --disable-bittorrent
  3373. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  3374. takes Peer.
  3375. * src/DefaultPieceStorage.cc
  3376. * src/DefaultPieceStorage.h
  3377. * src/Makefile.am
  3378. * src/PieceStorage.h
  3379. * src/UnknownLengthPieceStorage.cc
  3380. * src/UnknownLengthPieceStorage.h
  3381. * test/MockPieceStorage.h
  3382. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3383. Implemented getter methods in header files to give them more
  3384. chance of optimization.
  3385. Return const reference for SharadHandle if possible.
  3386. * src/AbstractAuthResolver.cc
  3387. * src/AbstractAuthResolver.h
  3388. * src/AbstractBtMessage.cc
  3389. * src/AbstractBtMessage.h
  3390. * src/AbstractSingleDiskAdaptor.cc
  3391. * src/AbstractSingleDiskAdaptor.h
  3392. * src/AsyncNameResolver.cc
  3393. * src/AsyncNameResolver.h
  3394. * src/BNode.cc
  3395. * src/BNode.h
  3396. * src/BitfieldMan.cc
  3397. * src/BitfieldMan.h
  3398. * src/BtAbortOutstandingRequestEvent.h
  3399. * src/BtExtendedMessage.cc
  3400. * src/BtExtendedMessage.h
  3401. * src/BtSeederStateChoke.cc
  3402. * src/BtSeederStateChoke.h
  3403. * src/Cookie.cc
  3404. * src/Cookie.h
  3405. * src/DHTBucket.cc
  3406. * src/DHTBucket.h
  3407. * src/DHTConnectionImpl.cc
  3408. * src/DHTConnectionImpl.h
  3409. * src/DHTFindNodeReplyMessage.cc
  3410. * src/DHTFindNodeReplyMessage.h
  3411. * src/DHTGetPeersReplyMessage.cc
  3412. * src/DHTGetPeersReplyMessage.h
  3413. * src/DHTInteractionCommand.cc
  3414. * src/DHTMessage.cc
  3415. * src/DHTMessage.h
  3416. * src/DHTMessageDispatcherImpl.cc
  3417. * src/DHTMessageEntry.cc
  3418. * src/DHTMessageReceiver.cc
  3419. * src/DHTMessageReceiver.h
  3420. * src/DHTMessageTrackerEntry.cc
  3421. * src/DHTMessageTrackerEntry.h
  3422. * src/DHTPeerAnnounceEntry.cc
  3423. * src/DHTPeerAnnounceEntry.h
  3424. * src/DHTPeerLookupTask.cc
  3425. * src/DHTPeerLookupTask.h
  3426. * src/DHTRoutingTableDeserializer.cc
  3427. * src/DHTRoutingTableDeserializer.h
  3428. * src/DefaultBtAnnounce.cc
  3429. * src/DefaultBtAnnounce.h
  3430. * src/DefaultBtMessageDispatcher.cc
  3431. * src/DefaultBtMessageDispatcher.h
  3432. * src/DefaultBtRequestFactory.cc
  3433. * src/DefaultBtRequestFactory.h
  3434. * src/DiskAdaptor.cc
  3435. * src/DiskAdaptor.h
  3436. * src/DownloadContext.cc
  3437. * src/DownloadContext.h
  3438. * src/DownloadEngine.cc
  3439. * src/DownloadEngine.h
  3440. * src/EpollEventPoll.cc
  3441. * src/EpollEventPoll.h
  3442. * src/FtpConnection.cc
  3443. * src/FtpConnection.h
  3444. * src/HttpConnection.cc
  3445. * src/HttpConnection.h
  3446. * src/HttpHeader.cc
  3447. * src/HttpHeader.h
  3448. * src/HttpRequest.cc
  3449. * src/HttpRequest.h
  3450. * src/HttpResponse.cc
  3451. * src/HttpResponse.h
  3452. * src/LibsslTLSContext.cc
  3453. * src/LibsslTLSContext.h
  3454. * src/MSEHandshake.cc
  3455. * src/MSEHandshake.h
  3456. * src/MetalinkEntry.cc
  3457. * src/MetalinkEntry.h
  3458. * src/MetalinkParserController.cc
  3459. * src/MetalinkParserController.h
  3460. * src/MetalinkParserStateMachine.cc
  3461. * src/MetalinkParserStateMachine.h
  3462. * src/MultiDiskAdaptor.cc
  3463. * src/MultiDiskAdaptor.h
  3464. * src/NetrcAuthResolver.cc
  3465. * src/NetrcAuthResolver.h
  3466. * src/Peer.cc
  3467. * src/Peer.h
  3468. * src/PeerSessionResource.cc
  3469. * src/PeerSessionResource.h
  3470. * src/Piece.cc
  3471. * src/Piece.h
  3472. * src/PieceStatMan.cc
  3473. * src/PieceStatMan.h
  3474. * src/Request.cc
  3475. * src/Request.h
  3476. * src/RequestGroup.cc
  3477. * src/RequestGroup.h
  3478. * src/RequestGroupMan.cc
  3479. * src/RequestGroupMan.h
  3480. * src/RequestSlot.cc
  3481. * src/RequestSlot.h
  3482. * src/SegmentMan.cc
  3483. * src/SegmentMan.h
  3484. * src/SelectEventPoll.cc
  3485. * src/SelectEventPoll.h
  3486. * src/ServerStat.cc
  3487. * src/ServerStat.h
  3488. * src/Signature.cc
  3489. * src/Signature.h
  3490. * src/URIResult.cc
  3491. * src/URIResult.h
  3492. * src/UTPexExtensionMessage.cc
  3493. * src/UTPexExtensionMessage.h
  3494. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3495. Fixed compile error without BitTorrent and Metalink support.
  3496. * src/XmlRpcMethod.cc
  3497. * src/XmlRpcMethodFactory.cc
  3498. * src/XmlRpcMethodImpl.cc
  3499. * src/XmlRpcMethodImpl.h
  3500. * test/XmlRpcMethodTest.cc
  3501. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3502. Rewritten the help message for --allow-overwrite option.
  3503. * doc/aria2c.1.txt
  3504. * src/usage_text.h
  3505. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3506. Fixed typo
  3507. * doc/aria2c.1.txt
  3508. * src/usage_text.h
  3509. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3510. Updated README for 1.4.0 release. Use new table syntax of
  3511. asciidoc.
  3512. * README
  3513. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3514. Documented --xml-rpc-max-request-size option in man page.
  3515. * doc/aria2c.1.txt
  3516. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3517. Moved C_* constants from BtContext to DefaultBtContext.
  3518. * src/BtContext.cc: Removed.
  3519. * src/BtContext.h
  3520. * src/DefaultBtContext.cc
  3521. * src/DefaultBtContext.h
  3522. * src/Makefile.am
  3523. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3524. Use name.utf-8 and path.utf-8 key in higher priority than name and
  3525. path key respectively when persing .torrent file.
  3526. * src/BtContext.cc
  3527. * src/BtContext.h
  3528. * src/DefaultBtContext.cc
  3529. * test/DefaultBtContextTest.cc
  3530. * test/utf8.torrent
  3531. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3532. Added --xml-rpc-max-request-size option to limit the size of
  3533. XML-RPC request.
  3534. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3535. Documented XML-RPC API in man page.
  3536. * doc/aria2c.1.txt
  3537. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3538. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  3539. will break strict-aliasing rules
  3540. * src/PeerConnection.cc
  3541. * test/DHTRoutingTableSerializerTest.cc
  3542. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3543. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  3544. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  3545. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  3546. PKG_CHECK_MODULES macro uses latter name.
  3547. * m4/sqlite3.m4
  3548. * src/Makefile.am
  3549. * test/Makefile.am
  3550. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3551. Fixed typo
  3552. * configure.ac
  3553. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3554. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  3555. presence of libgnutls using pkg-config first. If it fails, fall
  3556. back to old macro libgnutls.m4.
  3557. * configure.ac
  3558. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3559. Use s itself instead of !s.bad()
  3560. * src/CookieStorage.cc
  3561. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3562. Documented --on-download-* option and --save-cookies option in man
  3563. page.
  3564. * doc/aria2c.1.txt
  3565. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3566. Set possible values for --load-cookie option to "/path/to/file".
  3567. * src/OptionHandlerFactory.cc
  3568. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3569. Added --save-cookies option.
  3570. * src/Cookie.cc
  3571. * src/Cookie.h
  3572. * src/CookieStorage.cc
  3573. * src/CookieStorage.h
  3574. * src/MultiUrlRequestInfo.cc
  3575. * src/OptionHandlerFactory.cc
  3576. * src/prefs.cc
  3577. * src/prefs.h
  3578. * src/usage_text.h
  3579. * test/CookieStorageTest.cc
  3580. * test/CookieTest.cc
  3581. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3582. Removed tellAll XML-RPC command because its reponse tends to be
  3583. big if stopped/waiting downloads pile up.
  3584. * src/XmlRpcMethodFactory.cc
  3585. * src/XmlRpcMethodImpl.cc
  3586. * src/XmlRpcMethodImpl.h
  3587. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3588. Added the ability to execute command when download starts and
  3589. stops. You can also specify command for particular cases such as
  3590. complete/error download. Added --on-download-start,
  3591. --on-download-stop, --on-download-complete and --on-download-error
  3592. option.
  3593. * src/OptionHandlerFactory.cc
  3594. * src/RequestGroupMan.cc
  3595. * src/prefs.cc
  3596. * src/prefs.h
  3597. * src/usage_text.h
  3598. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3599. Fixed test error
  3600. * test/BencodeTest.cc
  3601. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3602. Added unit tests.
  3603. * test/XmlRpcMethodTest.cc
  3604. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3605. Made exception message more verbose.
  3606. * src/bencode.cc
  3607. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3608. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  3609. space in console readout. Also they are now shown in MiB/s if
  3610. speed > 1024KiB/s.
  3611. * src/ConsoleStatCalc.cc
  3612. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3613. Added SEED to console output, which represents the number of
  3614. seeders currently the client is connecting to.
  3615. * src/ConsoleStatCalc.cc
  3616. * src/ConsoleStatCalc.h
  3617. * src/DownloadEngine.cc
  3618. * src/NullStatCalc.h
  3619. * src/StatCalc.h
  3620. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3621. Added source filename(__FILE__) and line number(__LINE__) to
  3622. exception message.
  3623. * src/AbstractCommand.cc
  3624. * src/AbstractDiskWriter.cc
  3625. * src/AbstractProxyResponseCommand.cc
  3626. * src/BDE.h
  3627. * src/BtAllowedFastMessage.cc
  3628. * src/BtHandshakeMessageValidator.h
  3629. * src/BtHaveAllMessage.cc
  3630. * src/BtHaveNoneMessage.cc
  3631. * src/BtPieceMessage.cc
  3632. * src/BtRejectMessage.cc
  3633. * src/ChunkedDecoder.cc
  3634. * src/CookieStorage.cc
  3635. * src/DHTAnnouncePeerMessage.cc
  3636. * src/DHTEntryPointNameResolveCommand.cc
  3637. * src/DHTMessageFactoryImpl.cc
  3638. * src/DHTMessageTracker.cc
  3639. * src/DHTRoutingTableDeserializer.cc
  3640. * src/DHTRoutingTableSerializer.cc
  3641. * src/DHTSetup.cc
  3642. * src/DHTTokenTracker.cc
  3643. * src/DefaultBtAnnounce.cc
  3644. * src/DefaultBtContext.cc
  3645. * src/DefaultBtInteractive.cc
  3646. * src/DefaultBtMessageFactory.cc
  3647. * src/DefaultBtProgressInfoFile.cc
  3648. * src/DefaultExtensionMessageFactory.cc
  3649. * src/DlAbortEx.h
  3650. * src/DlRetryEx.h
  3651. * src/DownloadCommand.cc
  3652. * src/DownloadEngineFactory.cc
  3653. * src/DownloadFailureException.h
  3654. * src/Exception.cc
  3655. * src/Exception.h
  3656. * src/ExpatMetalinkProcessor.cc
  3657. * src/ExpatXmlRpcRequestProcessor.cc
  3658. * src/FallocFileAllocationIterator.cc
  3659. * src/FatalException.h
  3660. * src/FtpConnection.cc
  3661. * src/FtpFinishDownloadCommand.cc
  3662. * src/FtpInitiateConnectionCommand.cc
  3663. * src/FtpNegotiationCommand.cc
  3664. * src/GZipDecoder.cc
  3665. * src/HandshakeExtensionMessage.cc
  3666. * src/HttpConnection.cc
  3667. * src/HttpHeaderProcessor.cc
  3668. * src/HttpInitiateConnectionCommand.cc
  3669. * src/HttpResponse.cc
  3670. * src/HttpResponseCommand.cc
  3671. * src/HttpServer.cc
  3672. * src/HttpSkipResponseCommand.cc
  3673. * src/InitiateConnectionCommandFactory.cc
  3674. * src/IteratableChunkChecksumValidator.cc
  3675. * src/LibgcryptARC4Context.h
  3676. * src/LibgcryptARC4Decryptor.h
  3677. * src/LibgcryptARC4Encryptor.h
  3678. * src/LibgcryptDHKeyExchange.h
  3679. * src/LibgnutlsTLSContext.cc
  3680. * src/LibsslARC4Context.h
  3681. * src/LibsslARC4Decryptor.h
  3682. * src/LibsslARC4Encryptor.h
  3683. * src/LibsslDHKeyExchange.h
  3684. * src/LibsslTLSContext.cc
  3685. * src/MSEHandshake.cc
  3686. * src/MessageDigestHelper.cc
  3687. * src/MetalinkHelper.cc
  3688. * src/MultiDiskAdaptor.cc
  3689. * src/NameMatchOptionHandler.h
  3690. * src/NameResolver.cc
  3691. * src/Netrc.cc
  3692. * src/NsCookieParser.cc
  3693. * src/OptionHandlerException.cc
  3694. * src/OptionHandlerException.h
  3695. * src/OptionHandlerImpl.h
  3696. * src/OptionParser.cc
  3697. * src/ParameterizedStringParser.cc
  3698. * src/PeerAbstractCommand.cc
  3699. * src/PeerConnection.cc
  3700. * src/PeerMessageUtil.cc
  3701. * src/PeerReceiveHandshakeCommand.cc
  3702. * src/Platform.cc
  3703. * src/ReceiverMSEHandshakeCommand.cc
  3704. * src/RecoverableException.h
  3705. * src/RequestGroup.cc
  3706. * src/SimpleLogger.cc
  3707. * src/SocketCore.cc
  3708. * src/Sqlite3MozCookieParser.cc
  3709. * src/UTPexExtensionMessage.cc
  3710. * src/Util.cc
  3711. * src/XML2SAXMetalinkProcessor.cc
  3712. * src/Xml2XmlRpcRequestProcessor.cc
  3713. * src/XmlRpcMethodImpl.cc
  3714. * src/bencode.cc
  3715. * src/download_helper.cc
  3716. * src/messageDigest.h
  3717. * test/ExceptionTest.cc
  3718. * test/TestUtil.cc
  3719. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3720. Bump up version number to 1.4.0
  3721. * configure.ac
  3722. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3723. Added 2files.metalink to EXTRA_DIST
  3724. * test/Makefile.am
  3725. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3726. Added missing 2files.metalink
  3727. * test/2files.metalink
  3728. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3729. Show "[MEMORY]" prefix before filename in download summary if it
  3730. is downloaded into memory.
  3731. * src/DownloadResult.h
  3732. * src/RequestGroup.cc
  3733. * src/RequestGroupMan.cc
  3734. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3735. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  3736. * src/ExpatXmlRpcRequestProcessor.cc
  3737. * src/Xml2XmlRpcRequestProcessor.cc
  3738. * src/message.h
  3739. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3740. Defined const BDEs to avoid duplicate instantiation.
  3741. Defined MSG_GID_NOT_PROVIDED.
  3742. * src/XmlRpcMethodImpl.cc
  3743. * src/message.h
  3744. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3745. Code cleanup
  3746. * src/Xml2XmlRpcRequestProcessor.cc
  3747. * src/Xml2XmlRpcRequestProcessor.h
  3748. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3749. Defined ENABLE_XML_RPC
  3750. * configure.ac
  3751. * configure
  3752. * config.h.in
  3753. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3754. Added ExpatXmlRpcRequestProcessor
  3755. * src/ExpatXmlRpcRequestProcessor.cc
  3756. * src/ExpatXmlRpcRequestProcessor.h
  3757. * src/Makefile.am
  3758. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3759. Added tests for addTorrent and addMetalink command.
  3760. * test/TestUtil.cc
  3761. * test/TestUtil.h
  3762. * test/XmlRpcMethodTest.cc
  3763. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3764. Corrected the description of --file-allocation option.
  3765. * doc/aria2c.1.txt
  3766. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3767. Added tellAll command.
  3768. * src/XmlRpcMethodFactory.cc
  3769. * src/XmlRpcMethodImpl.cc
  3770. * src/XmlRpcMethodImpl.h
  3771. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3772. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  3773. * src/XmlRpcMethodImpl.cc
  3774. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3775. Added changeGlobalOption command. Currently,
  3776. max-overall-download-limit and max-overall-upload-limit option are
  3777. available.
  3778. * src/RequestGroupMan.h
  3779. * src/XmlRpcMethod.cc
  3780. * src/XmlRpcMethod.h
  3781. * src/XmlRpcMethodFactory.cc
  3782. * src/XmlRpcMethodImpl.cc
  3783. * src/XmlRpcMethodImpl.h
  3784. * test/XmlRpcMethodTest.cc
  3785. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3786. Added changeOption command. Currently, max-download-limit,
  3787. max-upload-limit option are available in this command.
  3788. * src/RequestGroup.h
  3789. * src/XmlRpcMethod.cc
  3790. * src/XmlRpcMethod.h
  3791. * src/XmlRpcMethodFactory.cc
  3792. * src/XmlRpcMethodImpl.cc
  3793. * src/XmlRpcMethodImpl.h
  3794. * test/XmlRpcMethodTest.cc
  3795. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3796. Added purgeDownloadResult command.
  3797. * src/RequestGroupMan.cc
  3798. * src/RequestGroupMan.h
  3799. * src/XmlRpcMethodFactory.cc
  3800. * src/XmlRpcMethodImpl.cc
  3801. * src/XmlRpcMethodImpl.h
  3802. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3803. Refactored.
  3804. * src/XmlRpcMethod.cc
  3805. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3806. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  3807. XmlRpcResponse.
  3808. * src/HttpServerBodyCommand.cc
  3809. * src/Makefile.am
  3810. * src/XmlRpcMethod.cc
  3811. * src/XmlRpcMethod.h
  3812. * src/XmlRpcMethodImpl.cc
  3813. * src/XmlRpcResponse.cc
  3814. * src/XmlRpcResponse.h
  3815. * test/XmlRpcMethodTest.cc
  3816. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3817. In XML-RPC option struct, header and index-out option can take
  3818. array as value.
  3819. * src/XmlRpcMethod.cc
  3820. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3821. Removed unused option member from PeerConnection.
  3822. * src/InitiatorMSEHandshakeCommand.cc
  3823. * src/PeerConnection.cc
  3824. * src/PeerConnection.h
  3825. * src/PeerInteractionCommand.cc
  3826. * src/PeerReceiveHandshakeCommand.cc
  3827. * src/ReceiverMSEHandshakeCommand.cc
  3828. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3829. Added "seeder" key to getPeers response.
  3830. * src/XmlRpcMethodImpl.cc
  3831. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3832. Added addMetalink XML-RPC command.
  3833. * src/XmlRpcMethodFactory.cc
  3834. * src/XmlRpcMethodImpl.cc
  3835. * src/XmlRpcMethodImpl.h
  3836. * src/download_helper.cc
  3837. * src/download_helper.h
  3838. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3839. Fixed the bug that POU peers are never choked in seeding.
  3840. * src/BtSeederStateChoke.cc
  3841. * src/BtSeederStateChoke.h
  3842. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3843. Added web-seeding URI handling in addTorrent command.
  3844. * src/XmlRpcMethodImpl.cc
  3845. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3846. Added "length" key to getFiles response.
  3847. * src/XmlRpcMethodImpl.cc
  3848. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3849. Moved --no-netrc option from ftp option section to http/ftp option
  3850. section.
  3851. * doc/aria2c.1.txt
  3852. * src/OptionHandlerFactory.cc
  3853. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3854. Removed garbage "\" character before '
  3855. * doc/aria2c.1.txt
  3856. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3857. Removed garbage "\" character before http.
  3858. * doc/aria2c.1.txt
  3859. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3860. Documented additional options that can be specified in -i list.
  3861. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  3862. and --xml-rpc-passwd. Removed --enable-http-server and
  3863. --http-server-listen-port.
  3864. * doc/aria2c.1.txt
  3865. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3866. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  3867. * src/DefaultPeerStorage.cc
  3868. * src/DefaultPeerStorage.h
  3869. * src/PeerStorage.h
  3870. * src/XmlRpcMethodImpl.cc
  3871. * test/MockPeerStorage.h
  3872. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3873. Put a call to Socket::isReadable() in try block.
  3874. * src/HttpServerBodyCommand.cc
  3875. * src/HttpServerCommand.cc
  3876. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3877. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  3878. exception , so it is now in try block.
  3879. * src/HttpServerResponseCommand.cc
  3880. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3881. Added "amChoking" and "peerChoking" key in getPeers response.
  3882. * src/XmlRpcMethodImpl.cc
  3883. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3884. Added test case for zero-length filter.
  3885. * test/BitfieldManTest.cc
  3886. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3887. getFiles command now returns file data for finished/stopped
  3888. downloads.
  3889. * src/XmlRpcMethodImpl.cc
  3890. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3891. DownloadResult now has the list of FileEntry. The download
  3892. summary displays the path of first selected file and the number of
  3893. remaining files for multi-file torrent.
  3894. * src/DownloadResult.h
  3895. * src/RequestGroup.cc
  3896. * src/RequestGroupMan.cc
  3897. * test/RequestGroupTest.cc
  3898. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3899. Fixed segmentation fault error when no file is selected in
  3900. multi-file torrent.
  3901. * src/BitfieldMan.cc
  3902. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3903. Escaped <,>,& character in XML-RPC response.
  3904. * src/XmlRpcMethod.cc
  3905. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3906. Throw DlAbortEx instead of FatalException during parsing options
  3907. because we don't want for aria2 to quit when bad option is passed
  3908. via XML-RPC.
  3909. * src/OptionHandlerException.cc
  3910. * src/OptionHandlerException.h
  3911. * src/OptionHandlerImpl.h
  3912. * src/OptionParser.cc
  3913. * src/OptionParser.h
  3914. * src/PStringSegment.cc
  3915. * src/ParameterizedStringParser.cc
  3916. * src/download_helper.cc
  3917. * test/ParameterizedStringParserTest.cc
  3918. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3919. Selecting files are now done in
  3920. DefaultBtContext::setFileFileter().
  3921. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  3922. functions are removed because they are no longer used. Creating
  3923. filter in BitfieldMan is done in new funtion
  3924. PieceStorage::setupFileFilter()
  3925. * src/BtContext.cc
  3926. * src/BtContext.h
  3927. * src/DefaultBtContext.cc
  3928. * src/DefaultBtContext.h
  3929. * src/DefaultPieceStorage.cc
  3930. * src/DefaultPieceStorage.h
  3931. * src/DiskAdaptor.cc
  3932. * src/DiskAdaptor.h
  3933. * src/PieceStorage.h
  3934. * src/RequestGroup.cc
  3935. * src/UnknownLengthPieceStorage.h
  3936. * src/XmlRpcMethodImpl.cc
  3937. * test/DefaultBtContextTest.cc
  3938. * test/MockBtContext.h
  3939. * test/MockPieceStorage.h
  3940. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3941. Fixed compile error on Mac OS X
  3942. * src/HttpServer.cc
  3943. * src/XmlRpcMethod.h
  3944. * src/XmlRpcMethodImpl.cc
  3945. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3946. Use std::binary_search instead of std::find
  3947. * src/DefaultPieceStorage.cc
  3948. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3949. Removed unnecessary BDE() call; leave them to implicit conversion.
  3950. * src/XmlRpcMethodImpl.cc
  3951. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3952. Return connections and gid in string
  3953. * src/XmlRpcMethodImpl.cc
  3954. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3955. Renamed addURI as addUri
  3956. * src/XmlRpcMethodFactory.cc
  3957. * src/XmlRpcMethodImpl.cc
  3958. * src/XmlRpcMethodImpl.h
  3959. * test/XmlRpcMethodTest.cc
  3960. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3961. Renamed addTorrentFile as addTorrent
  3962. * src/XmlRpcMethodFactory.cc
  3963. * src/XmlRpcMethodImpl.cc
  3964. * src/XmlRpcMethodImpl.h
  3965. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3966. The information for files, URIs, peers are removed from the
  3967. reponse of TellaActive, TellStatus command because they tend to be
  3968. large. Instead they can be retrieved by the dedicated commands:
  3969. getFiles, getUris and getPeers respectively.
  3970. * src/XmlRpcMethodFactory.cc
  3971. * src/XmlRpcMethodImpl.cc
  3972. * src/XmlRpcMethodImpl.h
  3973. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3974. Removed --max-overall-upload-limit and
  3975. --max-overall-download-limit option from listRequestOptions.
  3976. * src/download_helper.cc
  3977. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3978. Log incoming host in HttpListenCommand.
  3979. * src/HttpListenCommand.cc
  3980. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3981. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  3982. --xml-rpc-passwd option.
  3983. * src/HttpServer.cc
  3984. * src/HttpServer.h
  3985. * src/HttpServerCommand.cc
  3986. * src/OptionHandlerFactory.cc
  3987. * src/prefs.cc
  3988. * src/prefs.h
  3989. * src/usage_text.h
  3990. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3991. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  3992. processing 0 length request.
  3993. * src/HttpServerBodyCommand.cc
  3994. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3995. Removed --enable-http-server and --http-server-listen-port
  3996. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  3997. instead. The original feature for --enable-http-server that
  3998. reports download progress in HTML was officially removed. Persist
  3999. XML-RPC connection if client supports keep-alive.
  4000. * src/DownloadEngineFactory.cc
  4001. * src/HttpServerCommand.cc
  4002. * src/HttpServerResponseCommand.cc
  4003. * src/Makefile.am
  4004. * src/Makefile.in
  4005. * src/OptionHandlerFactory.cc
  4006. * src/RequestGroupMan.cc
  4007. * src/main.cc
  4008. * src/option_processing.cc
  4009. * src/prefs.cc
  4010. * src/prefs.h
  4011. * src/usage_text.h
  4012. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4013. Added "uris" key to the response of tellStatus command. Added
  4014. "connections" key to the response of tellStatus and tellActive
  4015. command.
  4016. * src/XmlRpcMethodImpl.cc
  4017. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4018. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  4019. Added TellStatusXmlRpcMethod. Remove command can now remove
  4020. waiting RequestGroup.
  4021. * src/RequestGroupMan.cc
  4022. * src/RequestGroupMan.h
  4023. * src/XmlRpcMethodFactory.cc
  4024. * src/XmlRpcMethodImpl.cc
  4025. * src/XmlRpcMethodImpl.h
  4026. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4027. Initialized _peerId
  4028. * src/Peer.cc
  4029. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4030. Return fault structure for error. FailXmlRpcMethod is renamed as
  4031. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  4032. in non-torrent download. Return single param value.
  4033. * src/XmlRpcMethod.cc
  4034. * src/XmlRpcMethodFactory.cc
  4035. * src/XmlRpcMethodImpl.cc
  4036. * src/XmlRpcMethodImpl.h
  4037. * test/XmlRpcMethodTest.cc
  4038. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4039. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  4040. command.
  4041. * src/RequestGroup.cc
  4042. * src/RequestGroup.h
  4043. * src/RequestGroupMan.cc
  4044. * src/XmlRpcMethodImpl.cc
  4045. * test/RequestGroupTest.cc
  4046. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4047. Added more options that can be specified in -i list and xml-rpc
  4048. add* command.
  4049. * src/download_helper.h
  4050. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4051. The available options in -i list should be listed in
  4052. listRequestOptions().
  4053. * src/download_helper.cc
  4054. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4055. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  4056. command.
  4057. * src/XmlRpcMethodImpl.cc
  4058. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4059. Now RequestGroup has its own copy of Option object. This will help
  4060. to give custom option for each RequestGroup.
  4061. addTorrentFile command now takes options.
  4062. * src/AbstractCommand.cc
  4063. * src/AbstractCommand.h
  4064. * src/AbstractProxyRequestCommand.cc
  4065. * src/ActivePeerConnectionCommand.cc
  4066. * src/ActivePeerConnectionCommand.h
  4067. * src/AdaptiveURISelector.cc
  4068. * src/BtCheckIntegrityEntry.cc
  4069. * src/BtDependency.cc
  4070. * src/BtDependency.h
  4071. * src/BtFileAllocationEntry.cc
  4072. * src/BtPostDownloadHandler.cc
  4073. * src/CheckIntegrityEntry.cc
  4074. * src/DownloadCommand.cc
  4075. * src/FtpDownloadCommand.cc
  4076. * src/FtpFinishDownloadCommand.cc
  4077. * src/FtpInitiateConnectionCommand.cc
  4078. * src/FtpNegotiationCommand.cc
  4079. * src/HttpInitiateConnectionCommand.cc
  4080. * src/HttpRequestCommand.cc
  4081. * src/HttpResponseCommand.cc
  4082. * src/HttpSkipResponseCommand.cc
  4083. * src/InitiateConnectionCommand.cc
  4084. * src/InitiateConnectionCommandFactory.cc
  4085. * src/InitiatorMSEHandshakeCommand.cc
  4086. * src/InitiatorMSEHandshakeCommand.h
  4087. * src/Metalink2RequestGroup.cc
  4088. * src/Metalink2RequestGroup.h
  4089. * src/MetalinkPostDownloadHandler.cc
  4090. * src/MultiUrlRequestInfo.cc
  4091. * src/MultiUrlRequestInfo.h
  4092. * src/PeerAbstractCommand.cc
  4093. * src/PeerInteractionCommand.cc
  4094. * src/PeerInteractionCommand.h
  4095. * src/PeerReceiveHandshakeCommand.cc
  4096. * src/PeerReceiveHandshakeCommand.h
  4097. * src/RequestGroup.cc
  4098. * src/RequestGroup.h
  4099. * src/TrackerWatcherCommand.cc
  4100. * src/TrackerWatcherCommand.h
  4101. * src/XmlRpcMethod.cc
  4102. * src/XmlRpcMethod.h
  4103. * src/XmlRpcMethodImpl.cc
  4104. * src/download_helper.cc
  4105. * src/download_helper.h
  4106. * src/main.cc
  4107. * test/BtDependencyTest.cc
  4108. * test/BtPostDownloadHandlerTest.cc
  4109. * test/DefaultBtMessageDispatcherTest.cc
  4110. * test/DownloadHandlerFactoryTest.cc
  4111. * test/DownloadHelperTest.cc
  4112. * test/Metalink2RequestGroupTest.cc
  4113. * test/MetalinkPostDownloadHandlerTest.cc
  4114. * test/RequestGroupManTest.cc
  4115. * test/RequestGroupTest.cc
  4116. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4117. Added tellActiveStatus xml-rpc command which reports download
  4118. status of active downloads.
  4119. * src/XmlRpcMethodFactory.cc
  4120. * src/XmlRpcMethodImpl.cc
  4121. * src/XmlRpcMethodImpl.h
  4122. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4123. Added addTorrentFile xml-rpc command which receives uploaded
  4124. torrent file and add download for it.
  4125. * src/RequestGroupMan.cc
  4126. * src/XmlRpcMethodFactory.cc
  4127. * src/XmlRpcMethodImpl.cc
  4128. * src/XmlRpcMethodImpl.h
  4129. * src/download_helper.cc
  4130. * src/download_helper.h
  4131. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4132. Added remove xml-rpc command which removes specified download.
  4133. There is a known issue: the removed unfinished downloads are
  4134. reported ERR when aria2 exits. They should be reported as INPR.
  4135. * src/RequestGroupMan.cc
  4136. * src/RequestGroupMan.h
  4137. * src/XmlRpcMethodFactory.cc
  4138. * src/XmlRpcMethodImpl.cc
  4139. * src/XmlRpcMethodImpl.h
  4140. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4141. If --enable-http-server is enabled, don't stop aria2 when all
  4142. download finished and don't quit when no files to download at
  4143. start up.
  4144. * src/RequestGroupMan.cc
  4145. * src/main.cc
  4146. * src/option_processing.cc
  4147. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4148. Added missing AM_CONDITIONAL
  4149. * configure.ac
  4150. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4151. Added xml-rpc functionality. Currently only addURI commad is
  4152. supported. To enable xml-rpc, run aria2 with
  4153. --enable-http-server. This option name is temporal and will be
  4154. changed. The feature that reports download progress in html format
  4155. is temporarily disabled.
  4156. * src/HttpServer.cc
  4157. * src/HttpServer.h
  4158. * src/HttpServerBodyCommand.cc
  4159. * src/HttpServerBodyCommand.h
  4160. * src/HttpServerCommand.cc
  4161. * src/HttpServerResponseCommand.cc
  4162. * src/Makefile.am
  4163. * src/OptionParser.cc
  4164. * src/OptionParser.h
  4165. * src/RequestGroupMan.cc
  4166. * src/RequestGroupMan.h
  4167. * src/XmlRpcMethod.cc
  4168. * src/XmlRpcMethod.h
  4169. * src/XmlRpcMethodFactory.cc
  4170. * src/XmlRpcMethodFactory.h
  4171. * src/XmlRpcMethodImpl.cc
  4172. * src/XmlRpcMethodImpl.h
  4173. * src/download_helper.cc
  4174. * src/download_helper.h
  4175. * test/Makefile.am
  4176. * test/XmlRpcMethodTest.cc
  4177. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4178. Added xml-rpc request parser. The supported value types are:
  4179. i4/int, string, double, struct, array, base64. Currently only
  4180. libxml2 version is provided.
  4181. * src/Xml2XmlRpcRequestProcessor.cc
  4182. * src/Xml2XmlRpcRequestProcessor.h
  4183. * src/XmlRpcElements.cc
  4184. * src/XmlRpcElements.h
  4185. * src/XmlRpcRequest.h
  4186. * src/XmlRpcRequestParserController.cc
  4187. * src/XmlRpcRequestParserController.h
  4188. * src/XmlRpcRequestParserState.h
  4189. * src/XmlRpcRequestParserStateImpl.cc
  4190. * src/XmlRpcRequestParserStateImpl.h
  4191. * src/XmlRpcRequestParserStateMachine.cc
  4192. * src/XmlRpcRequestParserStateMachine.h
  4193. * src/XmlRpcRequestProcessor.h
  4194. * test/XmlRpcRequestParserControllerTest.cc
  4195. * test/XmlRpcRequestProcessorTest.cc
  4196. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4197. * Release 1.3.3
  4198. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4199. Fixed compile error since r1202.
  4200. * src/ExpatMetalinkProcessor.cc
  4201. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4202. Updated Ukrainian, Russian and Simplified Chinese
  4203. translations. Thanks to all translators.
  4204. * po/ru.po
  4205. * po/uk.po
  4206. * po/zh_CN.po
  4207. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4208. Pass reference of Option object instead of pointer.
  4209. * src/download_helper.cc
  4210. * src/download_helper.h
  4211. * src/main.cc
  4212. * test/DownloadHelperTest.cc
  4213. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4214. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  4215. from option directly. Instead, get them from RequestGroup.
  4216. * src/ActivePeerConnectionCommand.cc
  4217. * src/ActivePeerConnectionCommand.h
  4218. * src/PeerReceiveHandshakeCommand.cc
  4219. * src/RequestGroup.h
  4220. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4221. Removed unused uploadLimitCheck and uploadLimit from
  4222. PeerAbstractCommand. Removed unused maxDownloadLimit from
  4223. PeerInteractionCommand.
  4224. * src/PeerAbstractCommand.cc
  4225. * src/PeerAbstractCommand.h
  4226. * src/PeerInteractionCommand.cc
  4227. * src/PeerInteractionCommand.h
  4228. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4229. Fixed broken file renaming feature since r1202.
  4230. * src/FtpNegotiationCommand.cc
  4231. * src/FtpNegotiationCommand.h
  4232. * src/HttpResponseCommand.cc
  4233. * src/RequestGroup.cc
  4234. * src/RequestGroup.h
  4235. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4236. Removed unused debug log
  4237. * src/SocketCore.cc
  4238. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4239. Generated configure and Makefile.in using autoconf 2.63 and
  4240. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  4241. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  4242. * configure.ac
  4243. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4244. Moved piece statistics stuff to new PieceStatMan class.
  4245. Refactored PieceSelector interface.
  4246. * src/DefaultPieceStorage.cc
  4247. * src/DefaultPieceStorage.h
  4248. * src/LongestSequencePieceSelector.cc
  4249. * src/LongestSequencePieceSelector.h
  4250. * src/Makefile.am
  4251. * src/PieceSelector.h
  4252. * src/PieceStatMan.cc
  4253. * src/PieceStatMan.h
  4254. * src/RarestPieceSelector.cc
  4255. * src/RarestPieceSelector.h
  4256. * src/RequestGroup.cc
  4257. * test/DefaultPieceStorageTest.cc
  4258. * test/InOrderPieceSelector.h
  4259. * test/Makefile.am
  4260. * test/PieceStatManTest.cc
  4261. * test/RarestPieceSelectorTest.cc
  4262. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4263. Added static member _protocolFamily to SocketCore. By default,
  4264. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  4265. address. Sometime SocketCore::bind() and
  4266. SocketCore::establishConnection() use difference protocl family
  4267. and latter cannot connect to former. To avoid this situation, we
  4268. limit protocol family to AF_INET for unit tests.
  4269. * src/SocketCore.cc
  4270. * src/SocketCore.h
  4271. * test/AllTest.cc
  4272. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4273. Avoid std::bad_alloc for negative bencode string length.
  4274. * src/bencode.cc
  4275. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4276. Supported segmented downloading with chunked transfer encoding and
  4277. content-length.
  4278. * src/DownloadCommand.cc
  4279. * src/HttpResponseCommand.cc
  4280. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4281. Bump up version number to 1.3.3
  4282. * configure.ac
  4283. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4284. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  4285. from 4096 to 65536 (for insanely large ftp login banners)
  4286. * src/FtpConnection.h
  4287. * test/FtpConnectionTest.cc
  4288. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4289. In DefaultBtContext::getActualBasePath(), return first
  4290. FileEntry::getPath() for single file torrent.
  4291. * src/DefaultBtContext.cc
  4292. * test/DefaultBtContextTest.cc
  4293. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4294. Removed directIOAllowed() from BinaryStream, DiskWriter,
  4295. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  4296. Removed _directIOAllowed member from DiskWriter.
  4297. * src/AbstractDiskWriter.cc
  4298. * src/AbstractDiskWriter.h
  4299. * src/AbstractSingleDiskAdaptor.cc
  4300. * src/AbstractSingleDiskAdaptor.h
  4301. * src/BinaryStream.h
  4302. * src/ByteArrayDiskWriter.h
  4303. * src/DefaultPieceStorage.cc
  4304. * src/DiskWriter.h
  4305. * src/MultiDiskAdaptor.cc
  4306. * src/MultiDiskAdaptor.h
  4307. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4308. Now the constructor of AbstractDiskWriter takes filename as an
  4309. argument and filename argument is removed from openFile(),
  4310. initAndOpenFile(), openExistingFile() interface. storeDir member
  4311. and its accessor functions are removed from DiskAdaptor because it
  4312. is not used anymore. size() member function of DefaultDiskWriter,
  4313. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  4314. opening file.
  4315. * src/AbstractDiskWriter.cc
  4316. * src/AbstractDiskWriter.h
  4317. * src/AbstractSingleDiskAdaptor.cc
  4318. * src/AbstractSingleDiskAdaptor.h
  4319. * src/ByteArrayDiskWriter.cc
  4320. * src/ByteArrayDiskWriter.h
  4321. * src/ByteArrayDiskWriterFactory.cc
  4322. * src/ByteArrayDiskWriterFactory.h
  4323. * src/DefaultDiskWriter.cc
  4324. * src/DefaultDiskWriter.h
  4325. * src/DefaultDiskWriterFactory.cc
  4326. * src/DefaultDiskWriterFactory.h
  4327. * src/DefaultPieceStorage.cc
  4328. * src/DirectDiskAdaptor.cc
  4329. * src/DirectDiskAdaptor.h
  4330. * src/DiskAdaptor.h
  4331. * src/DiskWriter.h
  4332. * src/DiskWriterFactory.h
  4333. * src/MessageDigestHelper.cc
  4334. * src/MultiDiskAdaptor.cc
  4335. * src/RequestGroup.cc
  4336. * src/UnknownLengthPieceStorage.cc
  4337. * src/Util.cc
  4338. * test/DefaultDiskWriterTest.cc
  4339. * test/DirectDiskAdaptorTest.cc
  4340. * test/FallocFileAllocationIteratorTest.cc
  4341. * test/MessageDigestHelperTest.cc
  4342. * test/MetalinkProcessorTest.cc
  4343. * test/MultiDiskAdaptorTest.cc
  4344. * test/MultiFileAllocationIteratorTest.cc
  4345. * test/SingleFileAllocationIteratorTest.cc
  4346. * test/UtilTest.cc
  4347. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4348. Fixed the bug that aria2 aborts when --select-file is used. This
  4349. bug was introduced in r1199.
  4350. * src/MultiDiskAdaptor.cc
  4351. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4352. Code cleanup
  4353. * test/MockPieceStorage.cc
  4354. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4355. Fixed the bug that read-only file with wrong file size will cause
  4356. error because it cannot be truncated to the correct size. Now if
  4357. file size is different than the expected one, re-open file in
  4358. writable mode.
  4359. * src/AbstractSingleDiskAdaptor.cc
  4360. * src/AbstractSingleDiskAdaptor.h
  4361. * src/BtCheckIntegrityEntry.cc
  4362. * src/DiskAdaptor.h
  4363. * src/MultiDiskAdaptor.h
  4364. * src/RequestGroup.cc
  4365. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4366. Fixed the bug that with --check-integrity option aria2 reports
  4367. downloaded file size is 0 even if some parts of file is correctly
  4368. downloaded. This bug is reproducible for the download that a file
  4369. includes last piece is missing. This bug doesn't reveal for
  4370. single-torrent with file allocation on.
  4371. * src/IteratableChecksumValidator.cc
  4372. * test/IteratableChecksumValidatorTest.cc
  4373. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4374. Avoid circular reference between RequestGroup and AdaptiveURISelector
  4375. * src/RequestGroupMan.cc
  4376. * src/AdaptiveURISelector.cc
  4377. * src/AdaptiveURISelector.h
  4378. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4379. * Release 1.3.2
  4380. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4381. Updated README
  4382. * README
  4383. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4384. Updated Ukrainian translations. Thanks to Alexander10.
  4385. * po/uk.po
  4386. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4387. Code cleanup
  4388. * src/MetalinkParserStateMachine.cc
  4389. * src/MetalinkParserStateMachine.h
  4390. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4391. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  4392. and expat simultaneously, MetalinkProcessor is now not base class
  4393. and it is directly implemented in XML2SAXMetalinkProcessor and
  4394. ExpatMetalinkProcessor.
  4395. * src/ExpatMetalinkProcessor.cc
  4396. * src/ExpatMetalinkProcessor.h
  4397. * src/Makefile.am
  4398. * src/MetalinkHelper.cc
  4399. * src/MetalinkProcessor.h
  4400. * src/MetalinkProcessorFactory.cc: Removed.
  4401. * src/MetalinkProcessorFactory.h: Removed
  4402. * src/XML2SAXMetalinkProcessor.cc
  4403. * src/XML2SAXMetalinkProcessor.h
  4404. * test/MetalinkProcessorTest.cc
  4405. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4406. Bump up version number to 1.3.2
  4407. * configure.ac
  4408. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4409. Added missing file.
  4410. * test/Makefile.am
  4411. * test/url-list-singleFileEndsWithSlash.torrent
  4412. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4413. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  4414. request.
  4415. * src/AnnounceList.cc
  4416. * src/AnnounceList.h
  4417. * src/BDE.cc: Added
  4418. * src/BDE.h: Added
  4419. * src/DHTAbstractMessage.cc
  4420. * src/DHTAbstractMessage.h
  4421. * src/DHTAnnouncePeerMessage.cc
  4422. * src/DHTAnnouncePeerMessage.h
  4423. * src/DHTAnnouncePeerReplyMessage.cc
  4424. * src/DHTAnnouncePeerReplyMessage.h
  4425. * src/DHTFindNodeMessage.cc
  4426. * src/DHTFindNodeMessage.h
  4427. * src/DHTFindNodeReplyMessage.cc
  4428. * src/DHTFindNodeReplyMessage.h
  4429. * src/DHTGetPeersMessage.cc
  4430. * src/DHTGetPeersMessage.h
  4431. * src/DHTGetPeersReplyMessage.cc
  4432. * src/DHTGetPeersReplyMessage.h
  4433. * src/DHTMessageFactory.h
  4434. * src/DHTMessageFactoryImpl.cc
  4435. * src/DHTMessageFactoryImpl.h
  4436. * src/DHTMessageReceiver.cc
  4437. * src/DHTMessageTracker.cc
  4438. * src/DHTMessageTracker.h
  4439. * src/DHTPingMessage.cc
  4440. * src/DHTPingMessage.h
  4441. * src/DHTPingReplyMessage.cc
  4442. * src/DHTPingReplyMessage.h
  4443. * src/DHTQueryMessage.cc
  4444. * src/DHTQueryMessage.h
  4445. * src/DHTResponseMessage.cc
  4446. * src/DHTResponseMessage.h
  4447. * src/DefaultBtAnnounce.cc
  4448. * src/DefaultBtContext.cc
  4449. * src/DefaultBtContext.h
  4450. * src/HandshakeExtensionMessage.cc
  4451. * src/Makefile.am
  4452. * src/PeerListProcessor.h
  4453. * src/UTPexExtensionMessage.cc
  4454. * src/bencode.cc
  4455. * src/bencode.h
  4456. * test/AnnounceListTest.cc
  4457. * test/BDETest.cc: Added
  4458. * test/BencodeTest.cc
  4459. * test/DHTAnnouncePeerMessageTest.cc
  4460. * test/DHTAnnouncePeerReplyMessageTest.cc
  4461. * test/DHTFindNodeMessageTest.cc
  4462. * test/DHTFindNodeReplyMessageTest.cc
  4463. * test/DHTGetPeersMessageTest.cc
  4464. * test/DHTGetPeersReplyMessageTest.cc
  4465. * test/DHTMessageFactoryImplTest.cc
  4466. * test/DHTMessageTrackerTest.cc
  4467. * test/DHTPingMessageTest.cc
  4468. * test/DHTPingReplyMessageTest.cc
  4469. * test/Makefile.am
  4470. * test/MockDHTMessageFactory.h
  4471. * test/PeerListProcessorTest.cc
  4472. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4473. Use url-list (web-seeding) only for single-file torrent. This is
  4474. basically the same behavior with Metalink file with torrent and
  4475. URIs.
  4476. * src/RequestGroup.cc
  4477. * src/DefaultBtContext.cc
  4478. * test/DefaultBtContextTest.cc
  4479. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4480. Rewritten expr
  4481. * src/array_fun.h
  4482. * test/array_funTest.cc
  4483. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4484. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  4485. * src/DefaultBtMessageDispatcher.cc
  4486. * src/a2algo.h
  4487. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4488. Removed ExtendedMessagingAware. Instead of using inheritance,
  4489. added ExtensionMessageRegistry and it is passed to
  4490. DefaultExtensionMessageFactory.
  4491. * src/DefaultBtInteractive.cc
  4492. * src/DefaultBtInteractive.h
  4493. * src/DefaultExtensionMessageFactory.cc
  4494. * src/DefaultExtensionMessageFactory.h
  4495. * src/ExtendedMessagingAware.h: Removed.
  4496. * src/ExtensionMessageFactory.h
  4497. * src/ExtensionMessageRegistry.h: Added.
  4498. * src/Makefile.am
  4499. * src/PeerInteractionCommand.cc
  4500. * test/DefaultExtensionMessageFactoryTest.cc
  4501. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4502. Fixed typo in log messages
  4503. * src/MSEHandshake.cc
  4504. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4505. Fixed the bug that prevents torrent download from finishing. The
  4506. bug doesn't reveal for all torrents. The torrents affected this
  4507. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  4508. of pieces.
  4509. * src/bitfield.h
  4510. * test/bitfieldTest.cc
  4511. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4512. Code cleanup
  4513. * src/PeerListProcessor.h
  4514. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4515. Removed RequestGroupAware
  4516. * src/AbstractCommand.cc
  4517. * src/AbstractCommand.h
  4518. * src/ActivePeerConnectionCommand.cc
  4519. * src/ActivePeerConnectionCommand.h
  4520. * src/DHTGetPeersCommand.cc
  4521. * src/DHTGetPeersCommand.h
  4522. * src/InitiatorMSEHandshakeCommand.cc
  4523. * src/InitiatorMSEHandshakeCommand.h
  4524. * src/Makefile.am
  4525. * src/PeerInitiateConnectionCommand.cc
  4526. * src/PeerInitiateConnectionCommand.h
  4527. * src/PeerInteractionCommand.cc
  4528. * src/PeerInteractionCommand.h
  4529. * src/RealtimeCommand.cc
  4530. * src/RealtimeCommand.h
  4531. * src/RequestGroupAware.cc: Removed
  4532. * src/RequestGroupAware.h: Removed
  4533. * src/SeedCheckCommand.cc
  4534. * src/SeedCheckCommand.h
  4535. * src/SleepCommand.cc
  4536. * src/TrackerWatcherCommand.cc
  4537. * src/TrackerWatcherCommand.h
  4538. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4539. Rewritten PeerListProcessor
  4540. * src/PeerListProcessor.h
  4541. * src/CompactPeerListProcessor.h: Removed
  4542. * src/CompactPeerListProcessor.cc: Removed
  4543. * src/DelegatingPeerListProcessor.cc: Removed.
  4544. * src/DefaultBtAnnounce.cc
  4545. * src/Makefile.am
  4546. * src/UTPexExtensionMessage.cc
  4547. * src/DefaultPeerListProcessor.h: Removed.
  4548. * src/DefaultPeerListProcessor.cc: Removed.
  4549. * src/DelegatingPeerListProcessor.h: Removed.
  4550. * test/Makefile.am
  4551. * test/PeerListProcessorTest.cc
  4552. * test/DefaultPeerListProcessorTest.cc: Removed.
  4553. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4554. Rewritten RequestGroupMan::calculateStat()
  4555. * src/RequestGroupMan.cc
  4556. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4557. Removed unnecessary virtual destructor for Request class.
  4558. * src/Request.cc
  4559. * src/Request.h
  4560. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4561. Avoid dynamic_pointer_cast.
  4562. * src/DHTGetPeersCommand.cc
  4563. * src/DHTGetPeersCommand.h
  4564. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4565. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  4566. BtEvent.
  4567. * src/AbstractBtEventListener.h: Removed.
  4568. * src/AbstractBtMessage.cc
  4569. * src/AbstractBtMessage.h
  4570. * src/BtAbortOutstandingRequestEvent.h
  4571. * src/BtCancelSendingPieceEvent.h
  4572. * src/BtChokedEvent.h: Removed.
  4573. * src/BtChokingEvent.h
  4574. * src/BtEvent.h: Removed
  4575. * src/BtEventListener.h: Removed.
  4576. * src/BtMessage.h
  4577. * src/BtPieceMessage.cc
  4578. * src/BtPieceMessage.h
  4579. * src/BtRequestMessage.cc
  4580. * src/BtRequestMessage.h
  4581. * src/DefaultBtMessageDispatcher.cc
  4582. * src/Makefile.am
  4583. * src/a2functional.h
  4584. * test/BtPieceMessageTest.cc
  4585. * test/BtRequestMessageTest.cc
  4586. * test/DefaultBtMessageDispatcherTest.cc
  4587. * test/MockBtMessage.h
  4588. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4589. Code cleanup
  4590. * src/RequestGroupMan.cc
  4591. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4592. Code cleanup
  4593. * src/DownloadCommand.cc
  4594. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4595. Fixed segmentation fault when GZipDecoder::decode() returns 0
  4596. byte.
  4597. * src/DownloadCommand.cc
  4598. * src/bitfield.h
  4599. * test/bitfieldTest.cc
  4600. Fixed the bug that causes infinite loop if broken web server
  4601. returns chunked response without last "0" chunk-size marker and
  4602. closes connection.
  4603. * src/DownloadCommand.cc
  4604. Instantiate properly configured HttpDownloadCommand for
  4605. non-resumable downlaods.
  4606. * src/HttpResponseCommand.cc
  4607. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4608. Rewritten array operation functions.
  4609. * src/BitfieldMan.cc
  4610. * src/array_fun.h
  4611. * test/array_funTest.cc
  4612. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4613. Removed unused variable 'query'
  4614. * src/Request.cc
  4615. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4616. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  4617. accidentally set to false in r1162.
  4618. * configure.ac
  4619. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4620. Code cleanup
  4621. * src/BNode.cc
  4622. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4623. Increase prefixLength for the bucket which doesn't own local node
  4624. ID when splitting bucket.
  4625. * src/DHTBucket.cc
  4626. * test/DHTBucketTest.cc
  4627. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4628. * Release 1.3.1
  4629. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4630. Bump up version number to 1.3.1
  4631. * configure.ac
  4632. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4633. Removed unused variable checkPoint. Also removed include directive
  4634. for TimeA2.h.
  4635. * src/SeedCheckCommand.h
  4636. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4637. Fixed the bug that upload limit exceeds the value specified in
  4638. --seed-ratio option depending on the timing of the execution of
  4639. SeedCheckCommand.
  4640. * src/SeedCheckCommand.cc
  4641. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4642. Fixed the bug that removed peer's session upload/download length
  4643. are counted twice in _cachedTransferStat before it is
  4644. re-calculated. This affected the calculation of shara ratio,
  4645. resulting aria2 wrongly determines that specified share ratio is
  4646. reached. Also fixed the typo in calculateStatFor function name.
  4647. * src/BtSetup.cc
  4648. * src/DefaultPeerStorage.cc
  4649. * src/ShareRatioSeedCriteria.h
  4650. * test/ShareRatioSeedCriteriaTest.cc
  4651. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4652. * Release 1.3.0
  4653. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4654. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  4655. Nynorsk translations. Thanks to all translators.
  4656. * po/es.po
  4657. * po/ja.po
  4658. * po/nn.po
  4659. * po/ru.po
  4660. * po/uk.po
  4661. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4662. Rewritten isInRange()
  4663. * src/DHTBucket.cc
  4664. * test/DHTBucketTest.cc
  4665. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4666. Fixed typo
  4667. * doc/aria2c.1.txt
  4668. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4669. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  4670. malloc/realloc is not used.
  4671. * src/configure.ac
  4672. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4673. BitfieldMan::getMissingIndexes family functions now takes unsigned
  4674. char* bitfield instead of stl container for efficiency.
  4675. PieceSelector::select now takes this
  4676. bitfield. RarestPieceSelector::select now also performs
  4677. efficiently for this change. bitfield namespace is introduced and
  4678. it has several helper functions to handle basic bitfield
  4679. operations such as test, count set bits, etc.
  4680. * src/BitfieldMan.cc
  4681. * src/BitfieldMan.h
  4682. * src/DefaultBtRequestFactory.cc
  4683. * src/DefaultPieceStorage.cc
  4684. * src/DefaultPieceStorage.h
  4685. * src/LongestSequencePieceSelector.cc
  4686. * src/LongestSequencePieceSelector.h
  4687. * src/Makefile.am
  4688. * src/Piece.cc
  4689. * src/Piece.h
  4690. * src/PieceSelector.h
  4691. * src/RarestPieceSelector.cc
  4692. * src/RarestPieceSelector.h
  4693. * src/Util.cc
  4694. * src/Util.h
  4695. * src/bitfield.h
  4696. * test/BitfieldManTest.cc
  4697. * test/LongestSequencePieceSelectorTest.cc
  4698. * test/Makefile.am
  4699. * test/RarestPieceSelectorTest.cc
  4700. * test/UtilTest.cc
  4701. * test/bitfieldTest.cc
  4702. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4703. Made accepted socket non-block.
  4704. * src/FtpNegotiationCommand.cc
  4705. * src/HttpListenCommand.cc
  4706. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4707. Guarded #ifdef HAVE_POSIX_FALLOCATE
  4708. * src/AbstractSingleDiskAdaptor.cc
  4709. * src/DefaultPieceStorage.cc
  4710. * src/DiskAdaptor.h
  4711. * src/DiskAdaptor.h
  4712. * src/MultiFileAllocationIterator.cc
  4713. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4714. Run
  4715. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  4716. in every 1 sec. The timeout of RequestSlot is 60s by default and
  4717. it doesn't need to be called every time when
  4718. DefaultBtInteractive::doInteractionProcessing() is called.
  4719. * src/DefaultBtInteractive.cc
  4720. * src/DefaultBtInteractive.h
  4721. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4722. Documented 'falloc' in man page.
  4723. * doc/aria2c.1.txt
  4724. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4725. Updated doc
  4726. * src/usage_text.h
  4727. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4728. Added 'falloc' parameter for --file-allocation option. 'falloc'
  4729. allocation mode uses posix_fallocate() system call to allocate
  4730. file on disk. If you are using newer file systems such as ext4
  4731. (with extents support), btrfs or xfs, 'falloc' is your best
  4732. choice. It allocates large(few GiB) files almost instantly. Don't
  4733. use 'falloc' with legacy file systems such as ext3 because it
  4734. takes almost same time as 'prealloc' and it blocks aria2 entirely
  4735. until allocation finishes. 'falloc' may not be available if your
  4736. system doesn't have posix_fallocate() system call.
  4737. * configure.ac
  4738. * src/AbstractDiskWriter.cc
  4739. * src/AbstractDiskWriter.h
  4740. * src/AbstractSingleDiskAdaptor.cc
  4741. * src/BinaryStream.h
  4742. * src/BtCheckIntegrityEntry.cc
  4743. * src/ByteArrayDiskWriter.h
  4744. * src/CheckIntegrityEntry.cc
  4745. * src/CheckIntegrityEntry.h
  4746. * src/DefaultPieceStorage.cc
  4747. * src/DiskAdaptor.cc
  4748. * src/DiskAdaptor.h
  4749. * src/DiskWriter.h
  4750. * src/FallocFileAllocationIterator.cc
  4751. * src/FallocFileAllocationIterator.h
  4752. * src/FileAllocationEntry.cc
  4753. * src/FileAllocationEntry.h
  4754. * src/Makefile.am
  4755. * src/MultiFileAllocationIterator.cc
  4756. * src/MultiFileAllocationIterator.h
  4757. * src/OptionHandlerFactory.cc
  4758. * src/RequestGroup.cc
  4759. * src/StreamCheckIntegrityEntry.cc
  4760. * src/prefs.cc
  4761. * src/prefs.h
  4762. * src/usage_text.h
  4763. * test/FallocFileAllocationIteratorTest.cc
  4764. * test/Makefile.am
  4765. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4766. Removed duplicate enableDirectIO() call.
  4767. * src/MultiFileAllocationIterator.cc
  4768. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4769. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  4770. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  4771. cost of std::rotate().
  4772. * src/RarestPieceSelector.cc
  4773. * src/RarestPieceSelector.h
  4774. * test/RarestPieceSelectorTest.cc
  4775. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4776. Updated usage doc for --bt-tracker-interval option.
  4777. * src/usage_text.h
  4778. * doc/aria2c.1.txt
  4779. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4780. Documented --bt-tracker-interval option in man page.
  4781. * doc/aria2c.1.txt
  4782. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4783. Added an option to specify the interval between tracker requests.
  4784. If non-zero value is specified, aria2 uses it and ignores the
  4785. interval value in the response of tracker. If zero is specified,
  4786. aria2 determines the inteval value based on the tarcker response
  4787. and download progress.
  4788. * src/DefaultBtAnnounce.cc
  4789. * src/DefaultBtAnnounce.h
  4790. * src/OptionHandlerFactory.cc
  4791. * src/RequestGroup.cc
  4792. * src/prefs.cc
  4793. * src/prefs.h
  4794. * src/usage_text.h
  4795. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4796. Added operator+=, operator-=, operator-
  4797. * src/TransferStat.cc
  4798. * src/TransferStat.h
  4799. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4800. Refactored RarestPieceSelector to reduce CPU load, especially for
  4801. addPieceStats.
  4802. * src/RarestPieceSelector.cc
  4803. * src/RarestPieceSelector.h
  4804. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4805. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  4806. getAllMissingBlockIndexes to reduce a call to
  4807. array_function_base::operator[].
  4808. * src/BitfieldMan.cc
  4809. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4810. Cached TransferStat/download speed to avoid to sum them up in each
  4811. call.
  4812. * src/DefaultPeerStorage.cc
  4813. * src/DefaultPeerStorage.h
  4814. * src/SegmentMan.cc
  4815. * src/SegmentMan.h
  4816. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4817. Typedefed cuid_t as int32_t in Command.h
  4818. * src/CUIDCounter.h
  4819. * src/Command.cc
  4820. * src/Command.h
  4821. * src/DownloadEngine.cc
  4822. * src/DownloadEngine.h
  4823. * src/PeerStat.h
  4824. * src/SegmentMan.cc
  4825. * src/SegmentMan.h
  4826. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4827. Reduced the number of calls to PeerStorage::calculateStat() and
  4828. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  4829. transfer rate.
  4830. * src/DefaultBtInteractive.cc
  4831. * src/DefaultBtMessageDispatcher.cc
  4832. * src/DefaultPeerStorage.cc
  4833. * src/DefaultPeerStorage.h
  4834. * src/DownloadCommand.cc
  4835. * src/DownloadEngine.cc
  4836. * src/PeerStorage.h
  4837. * src/SegmentMan.cc
  4838. * src/SegmentMan.h
  4839. * test/MockPeerStorage.h
  4840. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4841. Prepended _dir+"/" after joining path elements in torrent file.
  4842. * src/DefaultBtContext.cc
  4843. * test/DefaultBtContextTest.cc
  4844. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4845. Added missing IndexBtMessageValidator.h
  4846. * src/Makefile.am
  4847. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4848. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  4849. Chinese translations. Thank you for contributing our project.
  4850. * po/id.po
  4851. * po/it.po
  4852. * po/ru.po
  4853. * po/uk.po
  4854. * po/zh_CN.po
  4855. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4856. Updated README
  4857. * README
  4858. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4859. Bump up version number to 1.3.0
  4860. * configure.ac
  4861. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4862. Updated doc
  4863. * src/DefaultBtContext.h
  4864. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4865. Slice/joinPath for name of single torrent.
  4866. * src/DefaultBtContext.cc
  4867. * test/DefaultBtContextTest.cc
  4868. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4869. Updated man page: Documented --dry-run and --index-out
  4870. options. Changed the default value of --uri-selector and
  4871. --http-auth-challenge options. Removed --direct-file-mapping
  4872. option. Added example for --index-out
  4873. * doc/aria2c.1.txt
  4874. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4875. Updated TEXT_DRY_RUN
  4876. * src/usage_text.h
  4877. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4878. Changed the default value of --uri-selector option from 'inorder'
  4879. to 'feedback'
  4880. * src/OptionHandlerFactory.cc
  4881. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4882. Included current URI in exception message.
  4883. * src/AbstractCommand.cc
  4884. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4885. Renamed ServerStatURISelector as FeedbackURISelector.
  4886. * src/FeedbackURISelector.cc
  4887. * src/FeedbackURISelector.h
  4888. * src/Makefile.am
  4889. * src/RequestGroupMan.cc
  4890. * src/ServerStatURISelector.cc
  4891. * src/ServerStatURISelector.h
  4892. * test/FeedbackURISelectorTest.cc
  4893. * test/Makefile.am
  4894. * test/ServerStatURISelectorTest.cc
  4895. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4896. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  4897. all URIs are tested and their timeout is not reached.
  4898. * src/AdaptiveURISelector.cc
  4899. * src/AdaptiveURISelector.h
  4900. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4901. Changed the default value of --http-auth-challenge option to false.
  4902. * src/OptionHandlerFactory.cc
  4903. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4904. Reuse URIs when all unused URIs run out.
  4905. * src/OptionHandlerFactory.cc
  4906. * src/RequestGroup.cc
  4907. * src/prefs.cc
  4908. * src/prefs.h
  4909. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4910. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  4911. and BtRejectMessage are derived from RangeBtMessage class.
  4912. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  4913. derived from IndexBtMessage class. BtChokeMessage,
  4914. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  4915. BtNotInterestedMessage and BtUnchokeMessage are derived from
  4916. ZeroBtMessage class.
  4917. * src/AbstractBtMessage.cc
  4918. * src/AbstractBtMessage.h
  4919. * src/BtAllowedFastMessage.cc
  4920. * src/BtAllowedFastMessage.h
  4921. * src/BtAllowedFastMessageValidator.h: Removed
  4922. * src/BtBitfieldMessage.cc
  4923. * src/BtBitfieldMessage.h
  4924. * src/BtCancelMessage.cc
  4925. * src/BtCancelMessage.h
  4926. * src/BtCancelMessageValidator.h: Removed
  4927. * src/BtChokeMessage.cc
  4928. * src/BtChokeMessage.h
  4929. * src/BtExtendedMessage.cc
  4930. * src/BtExtendedMessage.h
  4931. * src/BtHandshakeMessage.cc
  4932. * src/BtHandshakeMessage.h
  4933. * src/BtHaveAllMessage.cc
  4934. * src/BtHaveAllMessage.h
  4935. * src/BtHaveMessage.cc
  4936. * src/BtHaveMessage.h
  4937. * src/BtHaveMessageValidator.h: Removed
  4938. * src/BtHaveNoneMessage.cc
  4939. * src/BtHaveNoneMessage.h
  4940. * src/BtInterestedMessage.cc
  4941. * src/BtInterestedMessage.h
  4942. * src/BtKeepAliveMessage.cc
  4943. * src/BtKeepAliveMessage.h
  4944. * src/BtNotInterestedMessage.cc
  4945. * src/BtNotInterestedMessage.h
  4946. * src/BtPieceMessage.cc
  4947. * src/BtPieceMessage.h
  4948. * src/BtPortMessage.cc
  4949. * src/BtPortMessage.h
  4950. * src/BtRejectMessage.cc
  4951. * src/BtRejectMessage.h
  4952. * src/BtRejectMessageValidator.h: Removed
  4953. * src/BtRequestMessage.cc
  4954. * src/BtRequestMessage.h
  4955. * src/BtRequestMessageValidator.h: Removed
  4956. * src/BtSuggestPieceMessage.cc
  4957. * src/BtSuggestPieceMessage.h
  4958. * src/BtSuggestPieceMessageValidator.h: Removed
  4959. * src/BtUnchokeMessage.cc
  4960. * src/BtUnchokeMessage.h
  4961. * src/DefaultBtMessageFactory.cc
  4962. * src/IndexBtMessage.cc
  4963. * src/IndexBtMessage.h
  4964. * src/IndexBtMessageValidator.h
  4965. * src/Makefile.am
  4966. * src/PeerMessageUtil.cc
  4967. * src/PeerMessageUtil.h
  4968. * src/RangeBtMessage.cc
  4969. * src/RangeBtMessage.h
  4970. * src/RangeBtMessageValidator.h
  4971. * src/SimpleBtMessage.cc
  4972. * src/SimpleBtMessage.h
  4973. * src/ZeroBtMessage.cc
  4974. * src/ZeroBtMessage.h
  4975. * test/BtRequestMessageTest.cc
  4976. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4977. Reverted usage_text.h to r1093 to avoid to lose translated
  4978. messages.
  4979. * src/usage_text.h
  4980. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4981. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  4982. declared as non-const previously is now const and defined in class
  4983. definition.
  4984. * src/AbstractBtMessage.cc
  4985. * src/AbstractBtMessage.h
  4986. * src/BtAllowedFastMessage.cc
  4987. * src/BtAllowedFastMessage.h
  4988. * src/BtBitfieldMessage.h
  4989. * src/BtCancelMessage.cc
  4990. * src/BtCancelMessage.h
  4991. * src/BtChokeMessage.cc
  4992. * src/BtChokeMessage.h
  4993. * src/BtExtendedMessage.cc
  4994. * src/BtExtendedMessage.h
  4995. * src/BtHandshakeMessage.cc
  4996. * src/BtHandshakeMessage.h
  4997. * src/BtHaveAllMessage.cc
  4998. * src/BtHaveAllMessage.h
  4999. * src/BtHaveMessage.cc
  5000. * src/BtHaveMessage.h
  5001. * src/BtHaveNoneMessage.cc
  5002. * src/BtHaveNoneMessage.h
  5003. * src/BtInterestedMessage.cc
  5004. * src/BtInterestedMessage.h
  5005. * src/BtKeepAliveMessage.cc
  5006. * src/BtKeepAliveMessage.h
  5007. * src/BtMessage.h
  5008. * src/BtNotInterestedMessage.cc
  5009. * src/BtNotInterestedMessage.h
  5010. * src/BtPieceMessage.h
  5011. * src/BtPortMessage.cc
  5012. * src/BtPortMessage.h
  5013. * src/BtRejectMessage.cc
  5014. * src/BtRejectMessage.h
  5015. * src/BtRequestMessage.cc
  5016. * src/BtRequestMessage.h
  5017. * src/BtSuggestPieceMessage.cc
  5018. * src/BtSuggestPieceMessage.h
  5019. * src/BtUnchokeMessage.cc
  5020. * src/BtUnchokeMessage.h
  5021. * src/SimpleBtMessage.cc
  5022. * src/SimpleBtMessage.h
  5023. * test/MockBtMessage.h
  5024. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5025. Use FileEntry::exists()
  5026. * src/MultiDiskAdaptor.cc
  5027. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5028. Added exists()
  5029. * src/FileEntry.cc
  5030. * src/FileEntry.h
  5031. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5032. Added missing prefix dir.
  5033. * src/download_helper.cc
  5034. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5035. Removed --direct-file-mapping option and CopyDiskAdaptor.
  5036. * src/CopyDiskAdaptor.cc: Removed
  5037. * src/CopyDiskAdaptor.h: Removed
  5038. * src/DefaultPieceStorage.cc
  5039. * src/Makefile.am
  5040. * src/OptionHandlerFactory.cc
  5041. * src/prefs.cc
  5042. * src/prefs.h
  5043. * src/usage_text.h
  5044. * test/CopyDiskAdaptorTest.cc: Removed
  5045. * test/Makefile.am
  5046. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5047. Rewritten isSameFileBeingDownloaded()
  5048. * src/RequestGroupMan.cc
  5049. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5050. Removed getName() from DownloadContext. getName() is declared in
  5051. BtContext.
  5052. * src/BtContext.h
  5053. * src/DownloadContext.h
  5054. * src/SingleFileDownloadContext.cc
  5055. * src/SingleFileDownloadContext.h
  5056. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  5057. in AbstractSingleDiskAdaptor.
  5058. * src/AbstractSingleDiskAdaptor.h
  5059. * src/DiskAdaptor.h
  5060. * src/MultiDiskAdaptor.h
  5061. * src/RequestGroup.cc
  5062. Removed setTopDir() and getTopDir() and getTopDirPath() from
  5063. MultiDiskAdaptor.
  5064. * src/DefaultPieceStorage.cc
  5065. * src/MultiDiskAdaptor.cc
  5066. * src/MultiDiskAdaptor.h
  5067. * test/MultiDiskAdaptorTest.cc
  5068. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5069. FileEntry::getPath() contains store(top level) directory to
  5070. simplify path handling operation. In the previous implementation,
  5071. store directory is concatenated to FileEntry::getPath() in
  5072. DownloadContext.
  5073. * src/BtDependency.cc
  5074. * src/BtPostDownloadHandler.cc
  5075. * src/CopyDiskAdaptor.cc
  5076. * src/DefaultBtContext.cc
  5077. * src/DirectDiskAdaptor.cc
  5078. * src/FileEntry.cc
  5079. * src/FileEntry.h
  5080. * src/FtpNegotiationCommand.cc
  5081. * src/HttpResponse.cc
  5082. * src/HttpResponseCommand.cc
  5083. * src/Metalink2RequestGroup.cc
  5084. * src/MultiDiskAdaptor.cc
  5085. * src/MultiDiskAdaptor.h
  5086. * src/MultiFileAllocationIterator.cc
  5087. * src/RequestGroup.cc
  5088. * src/SingleFileDownloadContext.cc
  5089. * src/SingleFileDownloadContext.h
  5090. * src/download_helper.cc
  5091. * test/BtDependencyTest.cc
  5092. * test/CopyDiskAdaptorTest.cc
  5093. * test/DefaultBtContextTest.cc
  5094. * test/DefaultBtProgressInfoFileTest.cc
  5095. * test/DirectDiskAdaptorTest.cc
  5096. * test/DownloadHelperTest.cc
  5097. * test/FileEntryTest.cc
  5098. * test/MultiDiskAdaptorTest.cc
  5099. * test/MultiFileAllocationIteratorTest.cc
  5100. * test/RequestGroupTest.cc
  5101. * test/SingleFileDownloadContextTest.cc
  5102. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5103. Fixed compiler warning
  5104. * src/download_helper.cc
  5105. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5106. Throw exception if same infohash torrent is now downloading.
  5107. * src/RequestGroup.cc
  5108. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5109. Added --dry-run option. In this mode, aria2 just checks whether
  5110. the remote file is available and doesn't download data. This
  5111. option has effect on HTTP/FTP downloads and BitTorrent downloads
  5112. are canceled in this mode.
  5113. * src/FtpNegotiationCommand.cc
  5114. * src/HttpResponseCommand.cc
  5115. * src/HttpResponseCommand.h
  5116. * src/OptionHandlerFactory.cc
  5117. * src/RequestGroup.cc
  5118. * src/RequestGroupMan.cc
  5119. * src/prefs.cc
  5120. * src/prefs.h
  5121. * src/usage_text.h
  5122. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5123. Fixed compiler waring
  5124. * test/UriListParserTest.cc
  5125. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5126. Parse options in -i list using OptionParser.
  5127. * src/UriListParser.cc
  5128. * src/UriListParser.h
  5129. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5130. Don't reset URI in retry to avoid additional round trips because
  5131. of redirects.
  5132. * src/AbstractCommand.cc
  5133. * src/OptionHandlerFactory.cc
  5134. * src/prefs.cc
  5135. * src/prefs.h
  5136. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5137. Declared hide() in OptionHandler.
  5138. * src/NameMatchOptionHandler.h
  5139. * src/OptionHandler.h
  5140. * src/OptionHandlerImpl.h
  5141. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5142. Updated doc
  5143. * src/Peer.h
  5144. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5145. Added log message in setStatusInternal()
  5146. * src/ServerStat.cc
  5147. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5148. Call ServerStat::setError() in AbstractCommand::onAbort() to
  5149. effectively exclude failed server.
  5150. * src/AbstractCommand.cc
  5151. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5152. Added --index-out option to specify each file path for torrent.
  5153. Here index shown in --show-files option is used to specify which
  5154. file path should be altered. For example, to change the file path
  5155. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  5156. option multiple times: --index-out=1=aria2.tar.bz2
  5157. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  5158. available. This option can be specified in -i list.
  5159. * src/DefaultBtContext.cc
  5160. * src/DefaultBtContext.h
  5161. * src/MultiDiskAdaptor.cc
  5162. * src/MultiDiskAdaptor.h
  5163. * src/MultiFileAllocationIterator.cc
  5164. * src/OptionHandlerFactory.cc
  5165. * src/OptionHandlerImpl.h
  5166. * src/Util.cc
  5167. * src/Util.h
  5168. * src/download_helper.cc
  5169. * src/prefs.cc
  5170. * src/prefs.h
  5171. * src/usage_text.h
  5172. * test/DefaultBtContextTest.cc
  5173. * test/MultiDiskAdaptorTest.cc
  5174. * test/MultiFileAllocationIteratorTest.cc
  5175. * test/UtilTest.cc
  5176. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5177. Use Util::pathJoin()
  5178. * src/MetalinkParserController.cc
  5179. * test/test.xml
  5180. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5181. Use Util::pathJoin()
  5182. * src/DefaultBtContext.cc
  5183. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5184. Added Util::pathJoin()
  5185. * src/Util.h
  5186. * test/UtilTest.cc
  5187. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5188. Applied basename function to remove directory element in
  5189. content-disposition value.
  5190. Return empty string if content-disposition value is ".." or ".".
  5191. * src/Util.cc
  5192. * test/UtilTest.cc
  5193. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5194. Added --max-overall-download-limit in man page.
  5195. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  5196. * doc/aria2c.1.txt
  5197. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5198. Added --max-overall-download-limit option. Now --max-upload-limit
  5199. option is not ignored when --max-overall-upload-limit option has
  5200. non-zero value. aria2 checks download(upload) speed in the order:
  5201. first checks overall speed limit and if it is not exceeded, then
  5202. checks speed limit per download. Thus you can specify both
  5203. value. For example, set --max-overall-download-limit=1M and
  5204. --max-download-limit=500K to prevent from one download from eating
  5205. all overall speed limit.
  5206. * src/DefaultBtInteractive.cc
  5207. * src/DefaultBtInteractive.h
  5208. * src/DefaultBtMessageDispatcher.cc
  5209. * src/DefaultBtMessageDispatcher.h
  5210. * src/DownloadCommand.cc
  5211. * src/DownloadCommand.h
  5212. * src/FtpNegotiationCommand.cc
  5213. * src/HttpResponseCommand.cc
  5214. * src/OptionHandlerFactory.cc
  5215. * src/PeerInteractionCommand.cc
  5216. * src/RequestGroup.cc
  5217. * src/RequestGroup.h
  5218. * src/RequestGroupMan.cc
  5219. * src/RequestGroupMan.h
  5220. * src/prefs.cc
  5221. * src/prefs.h
  5222. * src/usage_text.h
  5223. * test/DefaultBtMessageDispatcherTest.cc
  5224. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5225. Documented select-file option in Input File section.
  5226. Documented --http-auth-challenge option.
  5227. * doc/aria2c.1.txt
  5228. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5229. Now select-file can be specified in the uri list(-i list).
  5230. * src/BtContext.cc
  5231. * src/BtContext.h
  5232. * src/RequestGroup.cc
  5233. * src/Sequence.h
  5234. * src/download_helper.cc
  5235. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5236. Made the upper value of --max-concurrent-downloads options unlimited.
  5237. * src/OptionHandlerFactory.cc
  5238. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5239. Fixed the bug that disk writer is not created even if it shares
  5240. same piece with the preceding file if the length of previous file
  5241. is 0.
  5242. * src/MultiDiskAdaptor.cc
  5243. * test/MultiDiskAdaptorTest.cc
  5244. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5245. In BitTorrent, Open files in read-only mode for hash check. After
  5246. that, re-open file in read/write mode only when the download is
  5247. not finished.
  5248. * src/AbstractDiskWriter.cc
  5249. * src/AbstractDiskWriter.h
  5250. * src/AbstractSingleDiskAdaptor.cc
  5251. * src/AbstractSingleDiskAdaptor.h
  5252. * src/BtCheckIntegrityEntry.cc
  5253. * src/DiskAdaptor.h
  5254. * src/DiskWriter.h
  5255. * src/MultiDiskAdaptor.cc
  5256. * src/MultiDiskAdaptor.h
  5257. * src/RequestGroup.cc
  5258. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5259. Added --http-auth-challenge option. If it is set to true(by
  5260. default), aria2 sends HTTP authorization header only when it is
  5261. requested by the server. If false is set, then authorization
  5262. header is always sent to the server. This is useful for servers
  5263. that don't respond 401 code when authentication is required.
  5264. There is an exception: if username and password are embedded in
  5265. URI, authorization header is always sent to the server regardless
  5266. of this option.
  5267. * src/AuthConfigFactory.cc
  5268. * src/HttpSkipResponseCommand.cc
  5269. * src/OptionHandlerFactory.cc
  5270. * src/prefs.cc
  5271. * src/prefs.h
  5272. * src/usage_text.h
  5273. * test/AuthConfigFactoryTest.cc
  5274. * test/HttpRequestTest.cc
  5275. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5276. * Release 1.2.0
  5277. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5278. Updated Spanish, Ukrainian, Russian and Japanese translations.
  5279. Thanks to all translators.
  5280. * po/es.po
  5281. * po/ja.po
  5282. * po/ru.po
  5283. * po/uk.po
  5284. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5285. Call deleteSocketForReadCheck() before socket is closed.
  5286. * src/HttpListenCommand.cc
  5287. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5288. Defined virtual destructor for BObject.
  5289. * src/bencode.h
  5290. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5291. Rewritten BDE to make it efficient.
  5292. * src/bencode.cc
  5293. * src/bencode.h
  5294. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5295. Removed function throw list.
  5296. * src/bencode.cc
  5297. * src/bencode.h
  5298. * test/BencodeTest.cc
  5299. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5300. Enclosed all URLs in double quotes in command-line examples.
  5301. * doc/aria2c.1.txt
  5302. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5303. Updated reference/see also section.
  5304. * README
  5305. * doc/aria2c.1.txt
  5306. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5307. Reorganized man page based on man man-pages.
  5308. * doc/aria2c.1.txt
  5309. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5310. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  5311. because same documents are available in man page. Added
  5312. References section.
  5313. * README
  5314. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5315. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  5316. PERFORMANCE PROFILE section.
  5317. * doc/aria2c.1.txt
  5318. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5319. Rewritten the section for configuration file.
  5320. * README
  5321. * doc/aria2c.1.txt
  5322. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5323. Fixed the segmentation fault during execution of choking algorithm
  5324. in leecher state because of broken compare operator
  5325. implementation.
  5326. * src/BtLeecherStateChoke.cc
  5327. * src/BtLeecherStateChoke.h
  5328. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5329. Open file in binary mode.
  5330. * src/CookieStorage.cc
  5331. * src/DHTSetup.cc
  5332. * src/DHTUtil.cc
  5333. * src/Netrc.cc
  5334. * src/NsCookieParser.cc
  5335. * src/ProtocolDetector.cc
  5336. * src/RequestGroupMan.cc
  5337. * src/Signature.cc
  5338. * src/bencode.cc
  5339. * src/download_helper.cc
  5340. * src/option_processing.cc
  5341. * test/CookieParserTest.cc
  5342. * test/DefaultBtProgressInfoFileTest.cc
  5343. * test/FileTest.cc
  5344. * test/GZipDecoderTest.cc
  5345. * test/RequestGroupManTest.cc
  5346. * test/SignatureTest.cc
  5347. * test/SingleFileAllocationIteratorTest.cc
  5348. * test/UriListParserTest.cc
  5349. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5350. Removed operator[] because it is ambiguous with built-in []
  5351. operator.
  5352. * src/array_fun.h
  5353. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5354. Fixed compile error
  5355. * src/OptionParser.cc
  5356. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5357. Added missing call to arrayWrapperConst
  5358. * test/array_funTest.cc
  5359. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5360. Use array_wrapper instead of array_ptr.
  5361. * src/DHTRoutingTableDeserializer.cc
  5362. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5363. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  5364. * src/array_fun.h
  5365. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5366. Added array_wrapper template.
  5367. * src/array_fun.h
  5368. * test/array_funTest.cc
  5369. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5370. Use operator T* of array_ptr.
  5371. * src/OptionParser.cc
  5372. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5373. Use localhost instead of 127.0.0.1
  5374. * test/FtpConnectionTest.cc
  5375. * test/MSEHandshakeTest.cc
  5376. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5377. Added operator T*
  5378. * src/array_fun.h
  5379. * test/array_funTest.cc
  5380. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5381. Use dynamically allocated char array to detect memory access
  5382. violation.
  5383. * src/DHTRoutingTableDeserializer.cc
  5384. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5385. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  5386. defined.
  5387. * src/PeerMessageUtil.cc
  5388. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5389. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  5390. * configure.ac
  5391. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5392. Added a check to see struct sockaddr_in has sin_len member.
  5393. * configure.ac
  5394. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5395. Fixed buffer overrun.
  5396. * src/DHTRoutingTableDeserializer.cc
  5397. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5398. Added LL for long long int constant.
  5399. * test/FtpConnectionTest.cc
  5400. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5401. Casted to unsigned int to suppress compiler warning on netbsd.
  5402. * src/BtRuntime.h
  5403. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5404. Assign the value of tv.tv_sec to time_t timesec instead of giving
  5405. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  5406. type time_t.
  5407. * src/SimpleLogger.cc
  5408. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5409. Added test for FtpConnection::receiveSizeResponse().
  5410. * test/FtpConnectionTest.cc
  5411. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5412. Fix epoll error on the old kernel 2.6.8 or ealier.
  5413. * src/EpollEventPoll.cc
  5414. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5415. Use Util::parseLLInt instead of sscanf for portability. The
  5416. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  5417. * src/FtpConnection.cc
  5418. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5419. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  5420. block. It should not filter anything.
  5421. * src/BitfieldMan.cc
  5422. * src/ConsoleStatCalc.cc
  5423. * test/BitfieldManTest.cc
  5424. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5425. Fixed the bug that the boolean options that don't take arguments
  5426. don't work.
  5427. * src/OptionHandlerImpl.h
  5428. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5429. Fixed broken selected file BitTorrent download.
  5430. * src/MultiDiskAdaptor.cc
  5431. * test/MultiDiskAdaptorTest.cc
  5432. * test/MultiFileAllocationIteratorTest.cc
  5433. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5434. Fixed #define guard for EpollEventPoll
  5435. * src/EpollEventPoll.h
  5436. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5437. Wait 2 seconds. 1 second is sometimes not enough.
  5438. * test/TimeSeedCriteriaTest.cc
  5439. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5440. Use localhost instead of 127.0.0.1.
  5441. * test/DHTConnectionImplTest.cc
  5442. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5443. Suppressed compiler warning.
  5444. * src/AdaptiveURISelector.cc
  5445. * src/DefaultPieceStorage.cc
  5446. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5447. Defined virtual destructor.
  5448. * src/MetalinkParserState.h
  5449. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5450. Give NULL for second argument of getaddrinfo instead of "0".
  5451. * src/NameResolver.cc
  5452. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5453. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  5454. included strptime doesn't parse data for this format.
  5455. * src/FtpConnection.cc
  5456. * test/FtpConnectionTest.cc
  5457. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5458. Removed tests giving -1 for unsigned argument.
  5459. * test/SingleFileDownloadContextTest.cc
  5460. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5461. Don't use sha256 in tests because it might not be supported by the
  5462. SSL library.
  5463. * test/MetalinkProcessorTest.cc
  5464. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5465. Removed tests giving -1 for unsigned argument.
  5466. * test/AlphaNumberDecoratorTest
  5467. * test/BitfieldManTest.cc
  5468. * test/DefaultBtContextTest.cc
  5469. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5470. Fixed compile error without libcares when epoll is available.
  5471. * src/EpollEventPoll.cc
  5472. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5473. Included fstream instead of iostream.
  5474. * test/SignatureTest.cc
  5475. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5476. Removed #include <algorithm>
  5477. * test/RequestGroupTest.cc
  5478. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5479. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  5480. using RequestGroup::extractURIResult().
  5481. * src/AdaptiveURISelector.cc
  5482. * src/RequestGroup.cc
  5483. * src/RequestGroup.h
  5484. * test/RequestGroupTest.cc
  5485. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5486. Added tests for array_ptr.
  5487. * test/array_funTest.cc
  5488. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5489. Don't send ip parameter to a tracker if ip parameter is empty
  5490. string.
  5491. * src/DefaultBtAnnounce.cc
  5492. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5493. Adjusted line feed.
  5494. * src/version_usage.cc
  5495. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5496. Print tags, possible values when OptionHandlerException is caught.
  5497. * src/option_processing.cc
  5498. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5499. Changed the message for FatalException.
  5500. * src/OptionParser.cc
  5501. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5502. Documented --bt-external-ip option in man page. Updated man pages
  5503. for --proxy-method option.
  5504. * doc/aria2c.1.txt
  5505. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5506. Use GET method for FTP via HTTP proxy.
  5507. * src/FtpInitiateConnectionCommand.cc
  5508. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5509. Changed the default value of --proxy-method option from 'tunnel'
  5510. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  5511. option.
  5512. * src/AbstractCommand.cc
  5513. * src/AbstractCommand.h
  5514. * src/FtpInitiateConnectionCommand.cc
  5515. * src/HttpDownloadCommand.cc
  5516. * src/HttpInitiateConnectionCommand.cc
  5517. * src/HttpInitiateConnectionCommand.h
  5518. * src/OptionHandlerFactory.cc
  5519. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5520. Initialized _logger
  5521. * src/SelectEventPoll.cc
  5522. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5523. Defined a copy constructor for the same type.
  5524. * src/SharedHandle.h
  5525. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5526. Added OptionParser::parseArg() which internally uses getopt_long
  5527. to parse command-line options. All command-line options are now
  5528. configured by OptionHandler. No manual editing of struct option*
  5529. is required any more.
  5530. * src/NameMatchOptionHandler.h
  5531. * src/OptionHandler.h
  5532. * src/OptionHandlerFactory.cc
  5533. * src/OptionHandlerImpl.h
  5534. * src/OptionParser.cc
  5535. * src/OptionParser.h
  5536. * src/array_fun.h
  5537. * src/main.cc
  5538. * src/option_processing.cc
  5539. * test/OptionHandlerTest.cc
  5540. * test/OptionParserTest.cc
  5541. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5542. Fixed configure error with --disable-epoll
  5543. * configure.ac
  5544. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5545. Fixed compile error when HAVE_EPOLL is not defined.
  5546. Fixed linker error on bigendian systems.
  5547. * src/SocketCore.cc
  5548. * src/SocketCore.h
  5549. * test/DefaultBtProgressInfoFileTest.cc
  5550. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5551. Added --bt-external-ip option. You can specify the external IP
  5552. address to report to a BitTorrent tracker. Although this function
  5553. is named 'external', it can accept any kind of IP addresses.
  5554. * src/DefaultBtAnnounce.cc
  5555. * src/OptionHandlerFactory.cc
  5556. * src/option_processing.cc
  5557. * src/prefs.cc
  5558. * src/prefs.h
  5559. * src/usage_text.h
  5560. * test/DefaultBtAnnounceTest.cc
  5561. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5562. Extracted the algorithm to find the longest incremental sequence
  5563. as max_sequence template.
  5564. * src/LongestSequencePieceSelector.cc
  5565. * src/a2algo.h
  5566. * test/Makefile.am
  5567. * test/a2algoTest.cc
  5568. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5569. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  5570. * src/usage_text.h
  5571. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5572. Updated doc for --uri-selector, --http-server-listen-port and
  5573. --enable-http-server option. Documented --event-poll option.
  5574. * doc/aria2c.1.txt
  5575. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5576. Updated doc for --enable-http-server.
  5577. * src/usage_text.h
  5578. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5579. Documented --http-server-listen-port and --enable-http-server in
  5580. man page.
  5581. * doc/aria2c.1.txt
  5582. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5583. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  5584. translations. Thanks to all translators.
  5585. * po/es.po
  5586. * po/id.po
  5587. * po/it.po
  5588. * po/ru.po
  5589. * po/uk.po
  5590. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5591. Bump up version number to 1.2.0
  5592. * configure.ac
  5593. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5594. BtContext::getAnnounceTiers() now returns const reference.
  5595. * src/BtContext.h
  5596. * src/DefaultBtContext.cc
  5597. * src/DefaultBtContext.h
  5598. * test/MockBtContext.h
  5599. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5600. Change the number of retries for tracker request based on the
  5601. number of available tracker in a torrent file.
  5602. * src/TrackerWatcherCommand.cc
  5603. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5604. Added _maxTries property to RequestGroup and assign the option
  5605. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  5606. RequestGroup::getMaxTries() instead of
  5607. Option::getAsInt(PREF_MAX_TRIES).
  5608. * src/AbstractCommand.cc
  5609. * src/RequestGroup.cc
  5610. * src/RequestGroup.h
  5611. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5612. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  5613. Mandriva. I modified the patch: make RequestGroup have the
  5614. timeout value and AdaptiveURISelector directly modifies that
  5615. value.
  5616. * src/AbstractCommand.cc
  5617. * src/AdaptiveURISelector.cc
  5618. * src/AdaptiveURISelector.h
  5619. * src/FtpNegotiationCommand.cc
  5620. * src/RequestGroup.cc
  5621. * src/RequestGroup.h
  5622. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5623. Fixed compiler warning
  5624. * test/IteratableChecksumValidatorTest.cc
  5625. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5626. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  5627. integrated downloads. This PieceSelector subclass finds the
  5628. longest continuous sequence in the available missing pieces and
  5629. selects the last index of such sequence. This makes HTTP/FTP
  5630. connections less interrupted by the pieces obtained by BitTorrent
  5631. peers.
  5632. * src/DefaultPieceStorage.cc
  5633. * src/DefaultPieceStorage.h
  5634. * src/LongestSequencePieceSelector.cc
  5635. * src/LongestSequencePieceSelector.h
  5636. * src/Makefile.am
  5637. * src/PieceSelector.h
  5638. * src/RarestPieceSelector.h
  5639. * src/RequestGroup.cc
  5640. * test/BtDependencyTest.cc
  5641. * test/DefaultPieceStorageTest.cc
  5642. * test/IteratableChecksumValidatorTest.cc
  5643. * test/LongestSequencePieceSelectorTest.cc
  5644. * test/Makefile.am
  5645. * test/SegmentManTest.cc
  5646. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5647. Fixed the bug that the average speed is wrong in
  5648. http/ftp/BitTorrent integrated download. Only the download bytes
  5649. in BitTorrent were considered.
  5650. * src/RequestGroup.cc
  5651. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5652. Choose port for BitTorrent/DHT randomly from the specified range.
  5653. * src/DHTConnectionImpl.cc
  5654. * src/PeerListenCommand.cc
  5655. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5656. Send HTTP Authorization header only if it is requested by the
  5657. server(response 401). There are some exceptions. The authorization
  5658. header for proxy is always sent if it is available without request
  5659. by the server. If username/password is specified in the URI, it
  5660. is immediately sent to the server without request by the server.
  5661. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  5662. SharedHandle<AuthConfig>().
  5663. NetrcAuthResolver::resolveAuthConfig() returns
  5664. SharedHandle<AuthConfig>() if no AuthConfig is available.
  5665. * src/AbstractAuthResolver.cc
  5666. * src/AbstractProxyRequestCommand.cc
  5667. * src/AuthConfigFactory.cc
  5668. * src/AuthConfigFactory.h
  5669. * src/HttpConnection.cc
  5670. * src/HttpRequest.cc
  5671. * src/HttpRequest.h
  5672. * src/HttpResponse.cc
  5673. * src/HttpResponseCommand.cc
  5674. * src/HttpSkipResponseCommand.cc
  5675. * test/AuthConfigFactoryTest.cc
  5676. * test/HttpRequestTest.cc
  5677. * test/HttpResponseTest.cc
  5678. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5679. Remove leading "--" from help keyword and a substring after "="
  5680. from help keyword, so that one can query options by '-h--max-' or
  5681. '-hmax-peers=10'.
  5682. * src/option_processing.cc
  5683. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5684. Rewritten PStringVisitor and its implementation.
  5685. * src/PStringBuildVisitor.cc
  5686. * src/PStringBuildVisitor.h
  5687. * src/PStringDatum.h
  5688. * src/PStringNumLoop.h
  5689. * src/PStringSegment.cc
  5690. * src/PStringSegment.h
  5691. * src/PStringSelect.h
  5692. * src/PStringVisitor.h
  5693. * src/download_helper.cc
  5694. * test/PStringBuildVisitorTest.cc
  5695. * test/ParameterizedStringParserTest.cc
  5696. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5697. Persist connection between the built-in HTTP server and a client
  5698. if a client supports keep-alive. Fixed the bug that aria2 exits
  5699. when the HTTP server receives EOF from a client.
  5700. * src/HttpServer.cc
  5701. * src/HttpServer.h
  5702. * src/HttpServerCommand.cc
  5703. * src/HttpServerCommand.h
  5704. * src/HttpServerResponseCommand.cc
  5705. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5706. Added experimental built-in HTTP server. Currently, when a client
  5707. accesses to the server, it responds with the current download
  5708. progress. By default, it is disabled. To enable the server, give
  5709. --enable-http-server option. To change the default port number
  5710. for the server to listen to, use --http-server-listen-port option.
  5711. The response HTML is very simple and refreshes it self each 1
  5712. second. Because of this refresh, you see flicker in normal web
  5713. browser such as Firefox. I recommend to use console-based browser
  5714. such as elinks, w3m. To connect to the server, run 'elinks
  5715. http://localhost:6800/' while running aria2. Please replace port
  5716. number '6800'(which is default) with your preference.
  5717. * src/DownloadEngineFactory.cc
  5718. * src/HttpHeader.cc
  5719. * src/HttpHeader.h
  5720. * src/HttpHeaderProcessor.cc
  5721. * src/HttpHeaderProcessor.h
  5722. * src/HttpListenCommand.cc
  5723. * src/HttpListenCommand.h
  5724. * src/HttpServer.cc
  5725. * src/HttpServer.h
  5726. * src/HttpServerCommand.cc
  5727. * src/HttpServerCommand.h
  5728. * src/HttpServerResponseCommand.cc
  5729. * src/HttpServerResponseCommand.h
  5730. * src/Makefile.am
  5731. * src/OptionHandlerFactory.cc
  5732. * src/Util.cc
  5733. * src/Util.h
  5734. * src/help_tags.h
  5735. * src/option_processing.cc
  5736. * src/prefs.cc
  5737. * src/prefs.h
  5738. * src/usage_text.h
  5739. * test/HttpHeaderProcessorTest.cc
  5740. * test/UtilTest.cc
  5741. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5742. Removed.
  5743. * src/CheckIntegrityMan.cc
  5744. * src/FileAllocationMan.cc
  5745. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5746. Made (piece) hash check sequential for each RequestGroup because
  5747. simultaneous hash check is slower than sequential execution.
  5748. * src/CheckIntegrityCommand.cc
  5749. * src/CheckIntegrityDispatcherCommand.cc
  5750. * src/CheckIntegrityDispatcherCommand.h
  5751. * src/CheckIntegrityMan.h
  5752. * src/ConsoleStatCalc.cc
  5753. * src/DownloadCommand.cc
  5754. * src/DownloadEngine.cc
  5755. * src/DownloadEngine.h
  5756. * src/DownloadEngineFactory.cc
  5757. * src/Makefile.am
  5758. * src/Makefile.in
  5759. * src/RequestGroup.cc
  5760. * src/StatCalc.h
  5761. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5762. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  5763. SequentialDispatcherCommand.
  5764. * src/FileAllocationDispatcherCommand.cc
  5765. * src/SequentialDispatcherCommand.h
  5766. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5767. Rewritten FileAllocationDispatcherCommand using brand new
  5768. SequentialDispatcherCommand.
  5769. * src/DownloadEngineFactory.cc
  5770. * src/FileAllocationCommand.cc
  5771. * src/FileAllocationDispatcherCommand.cc
  5772. * src/FileAllocationDispatcherCommand.h
  5773. * src/Makefile.am
  5774. * src/SequentialDispatcherCommand.h
  5775. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5776. Replaced FileAllocationMan with
  5777. SequentialPicker<FileAllocationEntry>.
  5778. * src/BtCheckIntegrityEntry.cc
  5779. * src/ConsoleStatCalc.cc
  5780. * src/DownloadEngine.cc
  5781. * src/DownloadEngine.h
  5782. * src/DownloadEngineFactory.cc
  5783. * src/FileAllocationCommand.cc
  5784. * src/FileAllocationDispatcherCommand.cc
  5785. * src/FileAllocationMan.h
  5786. * src/Makefile.am
  5787. * src/SequentialPicker.h
  5788. * src/StatCalc.h
  5789. * src/StreamCheckIntegrityEntry.cc
  5790. * test/Makefile.am
  5791. * test/SequentialPickerTest.cc
  5792. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5793. Added doc for adaptive URI selector.
  5794. * doc/aria2c.1.txt
  5795. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5796. Added doc for adaptive URI selector.
  5797. * src/usage_text.h
  5798. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5799. Added doc for --bt-max-peers option.
  5800. * doc/aria2c.1.txt
  5801. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5802. Added doc for --bt-hash-check-seed option.
  5803. * doc/aria2c.1.txt
  5804. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5805. Documented exit codes.
  5806. * doc/aria2c.1.txt
  5807. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5808. Added --bt-max-peers option to specify the maximum number of peers
  5809. per torrent. 0 means unlimited number of peers.
  5810. * src/ActivePeerConnectionCommand.cc
  5811. * src/BtRuntime.h
  5812. * src/DefaultPeerStorage.cc
  5813. * src/DefaultPeerStorage.h
  5814. * src/OptionHandlerFactory.cc
  5815. * src/RequestGroup.cc
  5816. * src/option_processing.cc
  5817. * src/prefs.cc
  5818. * src/prefs.h
  5819. * src/usage_text.h
  5820. * test/DefaultPeerStorageTest.cc
  5821. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5822. Added --bt-hash-check-seed option. If true is given to this
  5823. option, after hash check using --check-integrity option and file
  5824. is complete, continue to seed file. If you want to check file and
  5825. download it only when it is damaged or incomplete, set this option
  5826. to false. This option has effect only on BitTorrent download.
  5827. The default value is true(This is the same behavior with the
  5828. previous release).
  5829. * src/BtCheckIntegrityEntry.cc
  5830. * src/OptionHandlerFactory.cc
  5831. * src/option_processing.cc
  5832. * src/prefs.cc
  5833. * src/prefs.h
  5834. * src/usage_text.h
  5835. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5836. Updated copyright year.
  5837. * src/version_usage.cc
  5838. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5839. Rewritten the usage text for --bt-request-peer-speed-limit option.
  5840. * doc/aria2c.1.txt
  5841. * src/usage_text.h
  5842. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5843. Made the max value of split option unlimited.
  5844. * doc/aria2c.1.txt
  5845. * src/OptionHandlerFactory.cc
  5846. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5847. Fixed compile warning/error.
  5848. * src/DownloadResult.h
  5849. * src/HttpDownloadCommand.cc
  5850. * src/ServerStat.cc
  5851. * test/RequestGroupTest.cc
  5852. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5853. Added --event-poll option to select the method for polling events.
  5854. The available methods are "select" and "epoll". "epoll" is
  5855. available on Linux only. The earlier release has the compile
  5856. option to choose from these methods.
  5857. * configure.ac
  5858. * src/RequestGroupMan.cc
  5859. * src/OptionHandlerFactory.cc
  5860. * src/EpollEventPoll.h
  5861. * src/StreamFileAllocationEntry.cc
  5862. * src/a2io.h
  5863. * src/SelectEventPoll.h
  5864. * src/option_processing.cc
  5865. * src/prefs.h
  5866. * src/EpollEventPoll.cc
  5867. * src/EventPoll.h
  5868. * src/SocketCore.h
  5869. * src/Makefile.am
  5870. * src/main.cc
  5871. * src/DownloadEngine.h
  5872. * src/SelectEventPoll.cc
  5873. * src/DownloadEngine.cc
  5874. * src/SocketCore.cc
  5875. * src/DownloadEngineFactory.cc
  5876. * src/Makefile.in
  5877. * src/prefs.cc
  5878. * src/usage_text.h
  5879. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5880. Included RecoverableException.h from main.cc
  5881. * src/main.cc
  5882. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5883. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  5884. now returns last error encountered in the HTTP/FTP downloads as a
  5885. exit status value. If all downloads finished successfully, aria2
  5886. returns 0. The error code is defined in src/DownloadResult.h.
  5887. The error occurred in the download currently in progress is not
  5888. reported as a last error. If no error has encountered but there
  5889. are in progress or waiting downloads, aria2 returns 7.
  5890. * src/AbstractCommand.cc
  5891. * src/DlAbortEx.h
  5892. * src/DlRetryEx.h
  5893. * src/DownloadCommand.cc
  5894. * src/DownloadFailureException.h
  5895. * src/DownloadResult.h
  5896. * src/FtpNegotiationCommand.cc
  5897. * src/HttpSkipResponseCommand.cc
  5898. * src/Makefile.am
  5899. * src/MultiUrlRequestInfo.cc
  5900. * src/MultiUrlRequestInfo.h
  5901. * src/RecoverableException.h
  5902. * src/RequestGroup.cc
  5903. * src/RequestGroup.h
  5904. * src/RequestGroupMan.cc
  5905. * src/RequestGroupMan.h
  5906. * src/URIResult.cc
  5907. * src/URIResult.h
  5908. * src/main.cc
  5909. * src/option_processing.cc
  5910. * test/RequestGroupTest.cc
  5911. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5912. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  5913. patch adds AdaptiveURISelector, which selects one of the bests
  5914. mirrors for first and reserved connections. For supplementary
  5915. ones, it returns mirrors which has not been tested yet, and if
  5916. each of them already tested, returns mirrors which has to be
  5917. tested again. Otherwise, it doesn't return anymore mirrors.
  5918. * src/AdaptiveURISelector.cc
  5919. * src/AdaptiveURISelector.h
  5920. * src/FtpNegotiationCommand.cc
  5921. * src/HttpResponseCommand.cc
  5922. * src/Makefile.am
  5923. * src/Makefile.in
  5924. * src/OptionHandlerFactory.cc
  5925. * src/RequestGroup.cc
  5926. * src/RequestGroup.h
  5927. * src/RequestGroupMan.cc
  5928. * src/ServerStat.cc
  5929. * src/ServerStat.h
  5930. * src/ServerStatMan.cc
  5931. * src/SpeedCalc.cc
  5932. * src/URISelector.h
  5933. * src/prefs.cc
  5934. * src/prefs.h
  5935. * test/RequestGroupManTest.cc
  5936. * test/ServerStatManTest.cc
  5937. * test/ServerStatTest.cc
  5938. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5939. Fixed unit test error.
  5940. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  5941. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5942. * Release 1.1.2
  5943. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5944. Updated Russian translation. Thanks to the translators.
  5945. * po/ru.po
  5946. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5947. Added the description of --use-head option to man page.
  5948. * doc/aria2c.1.txt
  5949. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5950. Bump up version number to 1.1.2
  5951. * configure.ac
  5952. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5953. Added --use-head option to toggle whether HEAD method should be
  5954. used in the first HTTP request. By default aria2 uses HEAD method
  5955. as the first request. When the server doesn't recognize HEAD, then
  5956. give aria2 --use-head=false to force aria2 to use GET method
  5957. instead.
  5958. * src/OptionHandlerFactory.cc
  5959. * src/RequestGroupMan.cc
  5960. * src/option_processing.cc
  5961. * src/prefs.cc
  5962. * src/prefs.h
  5963. * src/usage_text.h
  5964. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5965. Fixed the bug that BitTorrent download doesn't finish when REJECT
  5966. message is received before CHOKE message. The old implementation
  5967. doen't clear the use-bit of the piece when recieved REJECT
  5968. message.
  5969. * src/DefaultBtMessageDispatcher.cc
  5970. * test/DefaultBtMessageDispatcherTest.cc
  5971. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5972. * Release 1.1.1
  5973. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5974. Bump up version number to 1.1.1.
  5975. * configure.ac
  5976. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5977. Fixed the bug that --summary-interval=0 doesn't work. The summary
  5978. is printed repeatedly.
  5979. * src/ConsoleStatCalc.cc
  5980. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5981. * Release 1.1.0
  5982. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5983. Added ifdef clause for conditional compilation.
  5984. * src/main.cc
  5985. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5986. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  5987. translations. Thanks to all translators.
  5988. * po/ja.po
  5989. * po/ru.po
  5990. * po/uk.po
  5991. * po/zh_CN.po
  5992. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5993. Added the preceding ">>> " before the message "Printing the
  5994. contents of file..." to make the output more readable.
  5995. * src/main.cc
  5996. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5997. Added try-catch block in the loop in showFiles() to continue the
  5998. operation even if the exception occurred in one file.
  5999. * src/main.cc (showFiles)
  6000. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6001. Made messages in showFiles() translatable.
  6002. * po/aria2.pot
  6003. * src/main.cc
  6004. * src/message.h
  6005. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6006. Print the contents of Torrent/Metalink files are printed without
  6007. -T/-M options.
  6008. * src/main.cc
  6009. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6010. Escaped '--' with '\--'
  6011. * README
  6012. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6013. Updated "How to build" section in README. Mentioned about
  6014. --with-ca-bundle compile option.
  6015. * README
  6016. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6017. Bump up version number to 1.1.0.
  6018. * configure.ac
  6019. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6020. Added a note for --dht-listen-port option.
  6021. * doc/aria2c.1.txt
  6022. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6023. Update doc for --realtime-chunk-checksum option.
  6024. * doc/aria2c.1.txt
  6025. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6026. Update doc for --realtime-chunk-checksum option.
  6027. * src/usage_text.h
  6028. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6029. Updated French, Japanese, Russian and Ukrainian translations.
  6030. Thanks to all translators.
  6031. * po/fr.po
  6032. * po/ja.po
  6033. * po/ru.po
  6034. * po/uk.po
  6035. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6036. Renamed aria2c.pot to aria2.pot
  6037. * po/aria2.pot
  6038. * po/aria2c.pot: Removed.
  6039. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6040. Removed MetaEntry.h
  6041. * src/Makefile.am
  6042. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6043. Rename file by appending digits if a local file exists and its
  6044. file size is larger than that of remote file with --continue
  6045. option. The old implementation just throws exception in such case.
  6046. * src/RequestGroup.cc
  6047. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6048. Fixed the bug that download progress summary is not printed in the
  6049. interval specified by the option.
  6050. * src/ConsoleStatCalc.cc
  6051. * src/ConsoleStatCalc.h
  6052. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6053. Fixed compiler warning
  6054. * src/Cookie.cc
  6055. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6056. Fixed the cookie implementation based on RFC2965.
  6057. Now if a value in domain field is not started with dot, then
  6058. prepend dot. That means a cookie with domain=sf.net is sent to
  6059. wiki.sf.net.
  6060. * src/Cookie.cc
  6061. * test/CookieParserTest.cc
  6062. * test/CookieStorageTest.cc
  6063. * test/CookieTest.cc
  6064. * test/NsCookieParserTest.cc
  6065. * test/Sqlite3MozCookieParserTest.cc
  6066. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6067. Fixed the bug that causes corrupted downloads if HTTP pipelining
  6068. is enabled and the server doesn't support keep-alive.
  6069. * src/AbstractCommand.cc
  6070. * src/DownloadCommand.cc
  6071. * src/HttpDownloadCommand.cc
  6072. * src/HttpDownloadCommand.h
  6073. * src/HttpResponseCommand.cc
  6074. * src/Request.cc
  6075. * src/Request.h
  6076. * test/RequestTest.cc
  6077. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6078. Removed Dictionary/List/Data and its related classes.
  6079. * src/BencodeVisitor.cc: Removed.
  6080. * src/BencodeVisitor.h: Removed.
  6081. * src/Data.cc: Removed.
  6082. * src/Data.h: Removed.
  6083. * src/Dictionary.cc: Removed.
  6084. * src/Dictionary.h: Removed.
  6085. * src/List.cc: Removed.
  6086. * src/List.h: Removed.
  6087. * src/Makefile.am
  6088. * src/MetaEntry.h: Removed.
  6089. * src/MetaEntryVisitor.h: Removed.
  6090. * src/MetaFileUtil.cc: Removed.
  6091. * src/MetaFileUtil.h: Removed.
  6092. * test/BencodeVisitorTest.cc: Removed.
  6093. * test/DataTest.cc: Removed.
  6094. * test/DictionaryTest.cc: Removed.
  6095. * test/ListTest.cc: Removed.
  6096. * test/Makefile.am
  6097. * test/MetaFileUtilTest.cc: Removed.
  6098. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6099. Removed include of MetaEntry.h
  6100. * test/DHTMessageTrackerEntryTest.cc
  6101. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6102. Use BDE instead of Dictionary/List/Data.
  6103. * src/AnnounceList.cc
  6104. * src/AnnounceList.h
  6105. * test/AnnounceListTest.cc
  6106. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6107. Use BDE instead of Dictionary/List/Data.
  6108. * src/DHTAbstractMessage.cc
  6109. * src/DHTAbstractMessage.h
  6110. * src/DHTAnnouncePeerMessage.cc
  6111. * src/DHTAnnouncePeerMessage.h
  6112. * src/DHTAnnouncePeerReplyMessage.cc
  6113. * src/DHTAnnouncePeerReplyMessage.h
  6114. * src/DHTFindNodeMessage.cc
  6115. * src/DHTFindNodeMessage.h
  6116. * src/DHTFindNodeReplyMessage.cc
  6117. * src/DHTFindNodeReplyMessage.h
  6118. * src/DHTGetPeersMessage.cc
  6119. * src/DHTGetPeersMessage.h
  6120. * src/DHTGetPeersReplyMessage.cc
  6121. * src/DHTGetPeersReplyMessage.h
  6122. * src/DHTMessageFactory.h
  6123. * src/DHTMessageFactoryImpl.cc
  6124. * src/DHTMessageFactoryImpl.h
  6125. * src/DHTMessageReceiver.cc
  6126. * src/DHTMessageTracker.cc
  6127. * src/DHTMessageTracker.h
  6128. * src/DHTPingMessage.cc
  6129. * src/DHTPingMessage.h
  6130. * src/DHTPingReplyMessage.cc
  6131. * src/DHTPingReplyMessage.h
  6132. * src/DHTQueryMessage.cc
  6133. * src/DHTQueryMessage.h
  6134. * src/DHTResponseMessage.cc
  6135. * src/DHTResponseMessage.h
  6136. * test/DHTAnnouncePeerMessageTest.cc
  6137. * test/DHTAnnouncePeerReplyMessageTest.cc
  6138. * test/DHTFindNodeMessageTest.cc
  6139. * test/DHTFindNodeReplyMessageTest.cc
  6140. * test/DHTGetPeersMessageTest.cc
  6141. * test/DHTGetPeersReplyMessageTest.cc
  6142. * test/DHTMessageFactoryImplTest.cc
  6143. * test/DHTMessageTrackerTest.cc
  6144. * test/DHTPingMessageTest.cc
  6145. * test/DHTPingReplyMessageTest.cc
  6146. * test/MockDHTMessageFactory.h
  6147. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6148. Added tests the case where length < 0 is specified.
  6149. * test/BencodeTest.cc
  6150. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6151. Fixed memory leak in decoderawstring()
  6152. * src/bencode.cc
  6153. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6154. Added missing #ifdef guard. Added uc() function for String and
  6155. removeKey() for Dict.
  6156. * src/bencode.cc
  6157. * src/bencode.h
  6158. * test/BencodeTest.cc
  6159. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6160. Use BDE instead of Dictionary/List/Data.
  6161. * src/HandshakeExtensionMessage.cc
  6162. * src/HandshakeExtensionMessage.h
  6163. * test/HandshakeExtensionMessageTest.cc
  6164. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6165. Added --max-overall-upload-limit option. This option limits the
  6166. overall upload speed. Stated in help message that the existing
  6167. --max-upload-limit option limits the upload speed per each
  6168. torrent. Man page is also updated.
  6169. * doc/aria2c.1.txt
  6170. * src/DefaultBtMessageDispatcher.cc
  6171. * src/DefaultBtMessageDispatcher.h
  6172. * src/OptionHandlerFactory.cc
  6173. * src/PeerInteractionCommand.cc
  6174. * src/option_processing.cc
  6175. * src/prefs.cc
  6176. * src/prefs.h
  6177. * src/usage_text.h
  6178. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6179. Use BDE instead of Dictionary/List/Data classes.
  6180. * src/CompactPeerListProcessor.cc
  6181. * src/CompactPeerListProcessor.h
  6182. * src/DefaultBtAnnounce.cc
  6183. * src/DefaultBtContext.cc
  6184. * src/DefaultBtContext.h
  6185. * src/DefaultPeerListProcessor.cc
  6186. * src/DefaultPeerListProcessor.h
  6187. * src/DelegatingPeerListProcessor.cc
  6188. * src/DelegatingPeerListProcessor.h
  6189. * src/PeerListProcessor.h
  6190. * src/UTPexExtensionMessage.cc
  6191. * src/Util.h
  6192. * src/message.h
  6193. * test/DefaultBtContextTest.cc
  6194. * test/DefaultPeerListProcessorTest.cc
  6195. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6196. Added bencode helper functions and BDE class.
  6197. They will replace MetaFileUtil and Dictionary/List/Data classes.
  6198. * src/Makefile.am
  6199. * src/bencode.cc
  6200. * src/bencode.h
  6201. * test/BencodeTest.cc
  6202. * test/Makefile.am
  6203. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6204. Fixed the bug that bad URI is sent to the tracker when the announe
  6205. URI in torrent file includes query.
  6206. * src/DefaultBtAnnounce.cc
  6207. * test/DefaultBtAnnounceTest.cc
  6208. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6209. Added Option::blank().
  6210. Use !Option::blank(name) instead of Option::defined(name) for
  6211. the options that take filename.
  6212. * src/MultiUrlRequestInfo.cc
  6213. * src/Option.cc
  6214. * src/Option.h
  6215. * src/main.cc
  6216. * src/option_processing.cc
  6217. * test/OptionTest.cc
  6218. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6219. Documented the default value of --check-certificate option in man
  6220. page.
  6221. * doc/aria2c.1.txt
  6222. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6223. Enabled --check-certificate by default. Added compile
  6224. time(configure) option --with-ca-bundle to specify CA bundle.
  6225. Warn if --check-certificate=true and --ca-certificate is not
  6226. specified or loading CA certificate is failed.
  6227. * configure.ac
  6228. * src/MultiUrlRequestInfo.cc
  6229. * src/OptionHandlerFactory.cc
  6230. * src/message.h
  6231. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6232. Mentioned https tag in help option.
  6233. * doc/aria2c.1.txt
  6234. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6235. Added `https' tag to help option category. Added https tag to
  6236. --ca-certificate, --certificate, --check-certificate and
  6237. --private-key option.
  6238. * src/OptionHandlerFactory.cc
  6239. * src/help_tags.h
  6240. * src/option_processing.cc
  6241. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6242. Changed the package name from `aria2c' to `aria2' in order to fix
  6243. the packaging issue in Debian and Fedora. The name of the
  6244. executable is not changed.
  6245. * configure.ac
  6246. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6247. Fixed typos
  6248. * src/usage_text.h
  6249. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6250. Fixed typos and updated doc.
  6251. * README
  6252. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6253. Fixed typos
  6254. * doc/aria2c.1.txt
  6255. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6256. Fixed typos
  6257. * src/usage_text.h
  6258. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6259. Print a message when no files to download.
  6260. * src/download_helper.cc
  6261. * src/main.cc
  6262. * src/message.h
  6263. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6264. RFC3986 complied Percent-Encoding(urlencode).
  6265. Use uppercase hexadecimal digits for encoded text instead of lowercase
  6266. ones.
  6267. * src/Request.cc
  6268. * src/Util.cc
  6269. * src/Util.h
  6270. * test/BtHandshakeMessageTest.cc
  6271. * test/DefaultBtAnnounceTest.cc
  6272. * test/DefaultBtContextTest.cc
  6273. * test/RequestTest.cc
  6274. * test/UtilTest.cc
  6275. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6276. Fixed the bug that prevents aria2 from downloading 0-length files
  6277. via HTTP/FTP.
  6278. * src/DefaultBtContext.cc
  6279. * src/DefaultBtContext.h
  6280. * src/DownloadContext.h
  6281. * src/FtpNegotiationCommand.cc
  6282. * src/HttpResponseCommand.cc
  6283. * src/HttpResponseCommand.h
  6284. * src/RequestGroup.cc
  6285. * src/SingleFileDownloadContext.cc
  6286. * src/SingleFileDownloadContext.h
  6287. * test/BtPostDownloadHandlerTest.cc
  6288. * test/MetalinkPostDownloadHandlerTest.cc
  6289. * test/MockBtContext.h
  6290. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6291. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  6292. * src/option_processing.cc
  6293. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6294. Applied aria2-1.0.1-mingw.patch.
  6295. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  6296. mingw.
  6297. Collected 4th and 5th argument types for getsockopt and setsockopt.
  6298. * src/SocketCore.cc
  6299. * src/a2netcompat.h
  6300. * test/SocketCoreTest.cc
  6301. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6302. * Release 1.0.1
  6303. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6304. Updated Ukrainian and Norwegian Nynorsk translations.
  6305. Thanks to all translators.
  6306. * po/nn.po
  6307. * po/uk.po
  6308. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6309. Don't show download result when -S option is used.
  6310. * src/main.cc
  6311. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6312. Bump up version number to 1.0.1
  6313. * configure.ac
  6314. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6315. Closed files after the test cases in MultiDiskWriterTest::
  6316. testResetDiskWriterEntries(). This will fix the unit test error
  6317. in mingw32 build.
  6318. * test/MultiDiskWriterTest.cc
  6319. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6320. Use HEAD method to get file size from HTTP server for segmented
  6321. downloading.
  6322. The request to the BitTorrent Tracker always uses GET method because
  6323. the response of the tracker is small and it doesn't need segmented
  6324. download.
  6325. * src/FtpNegotiationCommand.cc
  6326. * src/HttpRequest.cc
  6327. * src/HttpResponseCommand.cc
  6328. * src/HttpSkipResponseCommand.cc
  6329. * src/RequestGroup.cc
  6330. * src/RequestGroup.h
  6331. * src/TrackerWatcherCommand.cc
  6332. * test/HttpRequestTest.cc
  6333. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6334. Fixed the bug that causes floating exception when -T option is used and
  6335. no URIs are given.
  6336. * src/download_helper.cc
  6337. * test/DownloadHelperTest.cc
  6338. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  6339. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  6340. errors in MinGW:
  6341. Closed file after saving server stats (RequestGroupMan.cc)
  6342. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  6343. Ignored case & handled 2-digit years (strptime.c)
  6344. Added missing suseconds_t definition (a2time.h)
  6345. Fixed socket CLOSE() define (SocketCore.cc)
  6346. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  6347. Changed utime() test values from x000 to x00000 as MinGW failed on
  6348. values less than timezone offset from Unix epoch
  6349. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  6350. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  6351. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  6352. handle negative dates (CookieParserTest.cc)
  6353. * src/a2time.h
  6354. * src/FtpConnection.cc
  6355. * src/RequestGroupMan.cc
  6356. * src/SocketCore.cc
  6357. * src/strptime.c
  6358. * test/CookieParserTest.cc
  6359. * test/CopyDiskAdaptorTest.cc
  6360. * test/FileTest.cc
  6361. * test/FtpConnectionTest.cc
  6362. * test/MultiDiskAdaptorTest.cc
  6363. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6364. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  6365. * doc/aria2c.1.txt
  6366. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6367. * Release 1.0.0
  6368. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6369. Added '~' to reserved characters.
  6370. * src/Util.cc
  6371. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6372. Do not urlencode Request::url in setUrl() because we want unmodified
  6373. URL using Request::getUrl()
  6374. * src/Request.cc
  6375. * src/Request.h
  6376. * test/RequestTest.cc
  6377. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6378. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  6379. Thanks to all translators.
  6380. * po/bg.po
  6381. * po/fr.po
  6382. * po/ja.po
  6383. * po/ru.po
  6384. * po/uk.po
  6385. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6386. Bump up version number to 1.0.0
  6387. * configure.ac
  6388. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6389. Added nosqlite3 build to build_test.sh.
  6390. Renamed noxml as expat.
  6391. * build_test.sh
  6392. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6393. Updated INPUT FILE section.
  6394. * doc/aria2c.1.txt
  6395. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6396. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  6397. on big endian systems because test .aria2 files are made for little
  6398. endian systems.
  6399. * test/DefaultBtProgressInfoFileTest.cc
  6400. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6401. Dropped ares support.
  6402. * README
  6403. * configure.ac
  6404. * m4/libares.m4: Removed.
  6405. * src/AsyncNameResolver.cc
  6406. * src/Makefile.am
  6407. * test/Makefile.am
  6408. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6409. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  6410. Removed const qualifier from DiskWriter::size().
  6411. * src/AbstractDiskWriter.cc
  6412. * src/AbstractDiskWriter.h
  6413. * src/ByteArrayDiskWriter.cc
  6414. * src/ByteArrayDiskWriter.h
  6415. * src/DiskWriter.h
  6416. * test/ByteArrayDiskWriterTest.cc
  6417. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6418. Fixed the bug that causes segmentation fault/bus error during executing
  6419. choking algorithm while seeding. This is caused by improper
  6420. implementation of compare function which returns inconsistent results
  6421. depending on the timing of last unchoke.
  6422. * src/BtSeederStateChoke.cc
  6423. * src/BtSeederStateChoke.h
  6424. * src/DefaultPeerStorage.cc
  6425. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6426. Removed TODO
  6427. * TODO
  6428. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6429. Added a section that explains how to pass argument to options that
  6430. takes optional arguments with its short form.
  6431. * doc/aria2c.1.txt
  6432. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6433. Added -u for the short form of --max-upload-limit option.
  6434. * doc/aria2c.1.txt
  6435. * src/option_processing.cc
  6436. * src/usage_text.h
  6437. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6438. Added -V for the short form of --check-integrity option.
  6439. Now the argument of --check-integrity option is optional:
  6440. if it is omitted, it is evaluated as true.
  6441. * doc/aria2c.1.txt
  6442. * src/option_processing.cc
  6443. * src/usage_text.h
  6444. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6445. Made the default value of --ftp-pasv option set to true and it can take
  6446. true/false values.
  6447. * src/OptionHandlerFactory.cc
  6448. * src/option_processing.cc
  6449. * src/usage_text.h
  6450. * doc/aria2c.1.txt
  6451. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6452. Given custom random number generator to std::random_shuffle.
  6453. * src/AnnounceList.cc
  6454. * src/BtLeecherStateChoke.cc
  6455. * src/BtSeederStateChoke.cc
  6456. * src/DefaultBtRequestFactory.cc
  6457. * src/MetalinkEntry.cc
  6458. * src/RarestPieceSelector.cc
  6459. * src/SimpleRandomizer.cc
  6460. * src/SimpleRandomizer.h
  6461. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6462. Now the default value of --enable-direct-io is true.
  6463. * src/OptionHandlerFactory.cc
  6464. * doc/aria2c.1.txt
  6465. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6466. Erase peer before executing onReturningPeer and onErasingPeer
  6467. because choking algorithm called from onReturningPeer doesn't
  6468. like erasing peer in the active peer list.
  6469. * src/DefaultPeerStorage.cc
  6470. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6471. Instead of creating special filename in createDownloadResult() if
  6472. inMemoryDownload() is true, now it is done in getFilePath().
  6473. * src/RequestGroup.cc
  6474. * test/RequestGroupTest.cc
  6475. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6476. Print "[MEMORY]" and filename if a file is not saved in disk and just
  6477. processed in memory. This is the fix for previous comment out.
  6478. * src/MemoryBufferPreDownloadHandler.cc
  6479. * src/RequestGroup.cc
  6480. * src/RequestGroup.h
  6481. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6482. Commented out the code which sets virtual directory path "[MEMORY]"
  6483. propagate directory to store to following RequestGroup.
  6484. * src/MemoryBufferPreDownloadHandler.cc
  6485. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6486. Bump up version number to 1.0.0b
  6487. * configure.ac
  6488. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6489. Added input_uris.txt to EXTRA_DIST
  6490. * test/Makefile.am
  6491. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6492. Removed PeerObject.h from Makefile.am
  6493. * src/Makefile.am
  6494. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6495. Avoid slow seeding
  6496. * src/PeerInteractionCommand.cc
  6497. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6498. Updated usage for -i option.
  6499. * src/usage_text.h (TEXT_INPUT_FILE)
  6500. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6501. Added INPUT FILE section to man page.
  6502. Escaped fake URLs.
  6503. * doc/aria2c.1.txt
  6504. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6505. Fixed wrong note position for -o option.
  6506. * doc/aria2c.1.txt
  6507. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6508. Fixed compile error without SSL/XML library.
  6509. * src/DefaultBtProgressInfoFile.cc
  6510. * src/DefaultBtProgressInfoFile.h
  6511. * src/FileMetalinkParserState.cc
  6512. * src/RequestGroup.h
  6513. * src/SocketCore.cc
  6514. * src/SocketCore.h
  6515. * src/VerificationMetalinkParserState.cc
  6516. * src/download_helper.h
  6517. * src/main.cc
  6518. * test/DefaultBtProgressInfoFileTest.cc
  6519. * test/DownloadHelperTest.cc
  6520. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6521. Rewritten URI handling functions. They are now provided as a testable
  6522. functions.
  6523. * src/Makefile.am
  6524. * src/RequestGroup.cc
  6525. * src/RequestGroup.h
  6526. * src/download_helper.cc
  6527. * src/download_helper.h
  6528. * src/main.cc
  6529. * test/DownloadHelperTest.cc
  6530. * test/Makefile.am
  6531. * test/input_uris.txt
  6532. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6533. Quickly terminate commands when ctrl-c is pressed.
  6534. * src/DownloadEngine.cc
  6535. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6536. Quickly terminate idle commands when download finished.
  6537. * src/AbstractCommand.cc
  6538. * src/DownloadCommand.cc
  6539. * src/DownloadEngine.cc
  6540. * src/DownloadEngine.h
  6541. * src/SleepCommand.cc
  6542. * src/SleepCommand.h
  6543. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6544. Added the ability to specify output filename and directory in input
  6545. file.
  6546. Additional parameters are added in the following line of URIs
  6547. with proceeding white space(s), 1 parameter in 1 line.
  6548. The parameter names are the same with the command-line option name
  6549. without proceeding "--". Not all the options are available here:
  6550. at the moment, 'dir' and 'out' options are avialable.
  6551. Please note that out option has no effect against Metalink or BitTorrent
  6552. downloads.
  6553. Example input file:
  6554. http://host/foo-1.1.tar.bz2
  6555. out=foo.tar.bz2
  6556. dir=/tmp/downloads
  6557. http://host/thundermonkey-2.0.tar.bz2
  6558. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  6559. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  6560. thundermonkey-2.0.tar.bz2 is saved as
  6561. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  6562. * src/BtPostDownloadHandler.cc
  6563. * src/Metalink2RequestGroup.cc
  6564. * src/Metalink2RequestGroup.h
  6565. * src/MetalinkPostDownloadHandler.cc
  6566. * src/UriListParser.cc
  6567. * src/UriListParser.h
  6568. * src/main.cc
  6569. * test/Metalink2RequestGroupTest.cc
  6570. * test/UriListParserTest.cc
  6571. * test/filelist1.txt
  6572. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6573. Fixed error when SSL library is not found.
  6574. * configure.ac
  6575. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6576. Cross referenced among -s, -C and -j options.
  6577. Updated usage of -C and -s options.
  6578. * src/usage_text.h
  6579. * doc/aria2c.1.txt
  6580. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6581. Fixed bad cast in 32bit platforms.
  6582. * test/DefaultPieceStorageTest.cc
  6583. (DefaultPieceStorageTest::testGetCompletedLength)
  6584. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6585. Fixed unit test fails on 32bit platforms.
  6586. * test/CookieParserTest.cc
  6587. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6588. Show an average download speed in Download results.
  6589. * src/BtFileAllocationEntry.cc
  6590. * src/DefaultPieceStorage.cc
  6591. * src/DownloadContext.cc
  6592. * src/DownloadContext.h
  6593. * src/DownloadResult.h
  6594. * src/RequestGroup.cc
  6595. * src/RequestGroupMan.cc
  6596. * src/StreamFileAllocationEntry.cc
  6597. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6598. Fixed the bug that metalink file is not processed if Content-Type
  6599. field has a paramter.
  6600. * src/HttpResponse.cc
  6601. * src/HttpResponse.h
  6602. * test/HttpResponseTest.cc
  6603. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6604. Removed unused code.
  6605. * src/DefaultBtAnnounce.cc
  6606. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6607. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  6608. the value larger than DefaultPieceStorage::getTotalLength() when
  6609. in flight pieces are involved.
  6610. * src/DefaultPieceStorage.cc
  6611. * test/DefaultPieceStorageTest.cc
  6612. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6613. Bump up version number to 1.0.0a.
  6614. * configure.ac
  6615. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6616. Updated configure.ac
  6617. * configure.ac
  6618. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6619. Added usege for proxy.
  6620. * doc/aria2c.1.txt
  6621. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6622. Added usage for --ca-certificate, --certificate, --private-key and
  6623. --check-certificate options.
  6624. * doc/aria2c.1.txt
  6625. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6626. Updated man page
  6627. * doc/aria2c.1.txt
  6628. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6629. Added --no-proxy option. It receives comman separated hostname or
  6630. domains to which proxy should not be used.
  6631. aria2 honors the environment variable no_proxy to override no-proxy
  6632. value in configuration file. The user can override the environment
  6633. variable no_proxy with --no-proxy command-line option.
  6634. * src/AbstractCommand.cc
  6635. * src/OptionHandlerFactory.cc
  6636. * src/option_processing.cc
  6637. * src/prefs.cc
  6638. * src/prefs.h
  6639. * src/usage_text.h
  6640. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6641. Added the ability to verify peer in SSL/TLS using given CA certificates.
  6642. The CA certificates are specified in --ca-certificate option.
  6643. By default, the verification is disabled. Use --check-certificate
  6644. option to enable it.
  6645. * src/HttpRequestCommand.cc
  6646. * src/LibgnutlsTLSContext.cc
  6647. * src/LibgnutlsTLSContext.h
  6648. * src/LibsslTLSContext.cc
  6649. * src/LibsslTLSContext.h
  6650. * src/MultiUrlRequestInfo.cc
  6651. * src/OptionHandlerFactory.cc
  6652. * src/SocketCore.cc
  6653. * src/SocketCore.h
  6654. * src/a2functional.h
  6655. * src/message.h
  6656. * src/option_processing.cc
  6657. * src/prefs.cc
  6658. * src/prefs.h
  6659. * src/usage_text.h
  6660. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6661. Added client certificate authentication for SSL/TLS.
  6662. Currently a private key must be decrypted for use with aria2.
  6663. If a user accidentally gives encrypted file to aria2 then following
  6664. thing happens:
  6665. If encrypted private key is given to aria2, it behaves differently
  6666. depending on the ssl library it uses. If aria2 built with openssl then
  6667. openssl prompts the user for password. If aria2 build with gnutls then
  6668. aria2 exists with error at start up.
  6669. * src/DownloadEngineFactory.cc
  6670. * src/MultiUrlRequestInfo.cc
  6671. * src/OptionHandlerFactory.cc
  6672. * src/option_processing.cc
  6673. * src/prefs.cc
  6674. * src/prefs.h
  6675. * src/usage_text.h
  6676. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6677. Introduced TLSContext that holds TLS related data that can be shared
  6678. with multiple SSL connections.
  6679. * src/DownloadEngineFactory.cc
  6680. * src/LibgnutlsTLSContext.cc
  6681. * src/LibgnutlsTLSContext.h
  6682. * src/LibsslTLSContext.cc
  6683. * src/LibsslTLSContext.h
  6684. * src/Makefile.am
  6685. * src/SocketCore.cc
  6686. * src/SocketCore.h
  6687. * src/TLSContext.h
  6688. * src/message.h
  6689. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6690. Fixed the bug that the DiskWriter of the first FileEntry whose
  6691. `needsFileAllocation' property is false is not created
  6692. even if it shares a piece with next FileEntry which `requested' property
  6693. is true.
  6694. Fixed the bug that zero-length file is not created if pre file
  6695. allocation is not done.
  6696. * src/MultiDiskAdaptor.cc
  6697. * src/MultiDiskAdaptor.h
  6698. * test/MultiDiskAdaptorTest.cc
  6699. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6700. Added the ability to pool proxy connection.
  6701. The conneciton in FTP with proxy-method=GET is not pooled.
  6702. Proxy-Connection header will not be sent when sending CONNECT method.
  6703. * src/DownloadEngine.cc
  6704. * src/DownloadEngine.h
  6705. * src/FtpFinishDownloadCommand.cc
  6706. * src/FtpInitiateConnectionCommand.cc
  6707. * src/FtpNegotiationCommand.cc
  6708. * src/HttpDownloadCommand.cc
  6709. * src/HttpInitiateConnectionCommand.cc
  6710. * src/HttpRequest.cc
  6711. * src/HttpRequest.h
  6712. * src/HttpResponse.cc
  6713. * src/HttpSkipResponseCommand.cc
  6714. * test/HttpRequestTest.cc
  6715. * test/HttpResponseTest.cc
  6716. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6717. Handle date before epoch.
  6718. To create *bad* Time object, call Time::null().
  6719. * src/CookieParser.cc
  6720. * src/FtpConnection.cc
  6721. * src/FtpConnection.h
  6722. * src/FtpNegotiationCommand.cc
  6723. * src/RequestGroup.cc
  6724. * src/TimeA2.cc
  6725. * src/TimeA2.h
  6726. * test/CookieParserTest.cc
  6727. * test/FtpConnectionTest.cc
  6728. * test/TimeTest.cc
  6729. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6730. Added support for following envrionment variables: http_proxy,
  6731. https_proxy, ftp_proxy and all_proxy.
  6732. Each variable is equivalent to the aria2 option whose name is the
  6733. variable name with '_' replaced with '-'.
  6734. They overrides options specified in aria2.conf file.
  6735. The envrionment variables can be overrode using command-line option.
  6736. * src/option_processing.cc
  6737. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6738. Renamed --http-proxy-method as --proxy-method.
  6739. * src/AbstractCommand.cc
  6740. * src/FtpInitiateConnectionCommand.cc
  6741. * src/HttpInitiateConnectionCommand.cc
  6742. * src/OptionHandlerFactory.cc
  6743. * src/option_processing.cc
  6744. * src/prefs.cc
  6745. * src/prefs.h
  6746. * src/usage_text.h
  6747. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6748. Deprecated --http-proxy-user and --http-proxy-passwd options.
  6749. Added --https-proxy, --ftp-proxy and --all-proxy options.
  6750. Above 3 options and --http-proxy option can handle proxy in URL format
  6751. like: http://user:passwd@host:port.
  6752. If a proxy requires user/password, they must be specified in a URL.
  6753. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  6754. instead.
  6755. * src/AbstractCommand.cc
  6756. * src/AbstractCommand.h
  6757. * src/AbstractProxyRequestCommand.cc
  6758. * src/AbstractProxyRequestCommand.h
  6759. * src/AuthConfigFactory.cc
  6760. * src/AuthConfigFactory.h
  6761. * src/FtpFinishDownloadCommand.cc
  6762. * src/FtpInitiateConnectionCommand.cc
  6763. * src/FtpInitiateConnectionCommand.h
  6764. * src/FtpNegotiationCommand.cc
  6765. * src/FtpTunnelRequestCommand.cc
  6766. * src/FtpTunnelRequestCommand.h
  6767. * src/HttpDownloadCommand.cc
  6768. * src/HttpInitiateConnectionCommand.cc
  6769. * src/HttpInitiateConnectionCommand.h
  6770. * src/HttpProxyRequestCommand.cc
  6771. * src/HttpProxyRequestCommand.h
  6772. * src/HttpRequest.cc
  6773. * src/HttpRequest.h
  6774. * src/HttpRequestCommand.cc
  6775. * src/HttpRequestCommand.h
  6776. * src/HttpSkipResponseCommand.cc
  6777. * src/InitiateConnectionCommand.cc
  6778. * src/InitiateConnectionCommand.h
  6779. * src/OptionHandlerFactory.cc
  6780. * src/OptionHandlerImpl.h
  6781. * src/Request.cc
  6782. * src/option_processing.cc
  6783. * src/prefs.cc
  6784. * src/prefs.h
  6785. * src/usage_text.h
  6786. * test/AuthConfigFactoryTest.cc
  6787. * test/HttpRequestTest.cc
  6788. * test/OptionHandlerTest.cc
  6789. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6790. Execute choking algorithm when unchoked and interested peer is
  6791. disconected.
  6792. * src/DefaultPeerStorage.cc
  6793. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6794. Added testcase for BtNotInterestedMessage from unchoked peer.
  6795. * test/BtNotInterestedMessageTest.cc
  6796. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6797. Execute choking algorithm when BtInterestedMessage arrives from
  6798. unchoked peer.
  6799. * src/BtInterestedMessage.cc
  6800. * src/BtInterestedMessage.h
  6801. * src/DefaultBtMessageFactory.cc
  6802. * test/BtInterestedMessageTest.cc
  6803. * test/MockPeerStorage.h
  6804. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6805. AuthConfigFactory is now part of DownloadEngine.
  6806. * src/AbstractProxyRequestCommand.cc
  6807. * src/AuthConfigFactory.h
  6808. * src/DownloadEngine.cc
  6809. * src/DownloadEngine.h
  6810. * src/FtpConnection.cc
  6811. * src/FtpConnection.h
  6812. * src/FtpNegotiationCommand.cc
  6813. * src/HttpConnection.cc
  6814. * src/HttpRequest.cc
  6815. * src/HttpRequest.h
  6816. * src/HttpRequestCommand.cc
  6817. * src/HttpResponse.cc
  6818. * src/HttpResponseCommand.cc
  6819. * src/HttpSkipResponseCommand.cc
  6820. * src/MultiUrlRequestInfo.cc
  6821. * src/main.cc
  6822. * test/FtpConnectionTest.cc
  6823. * test/HttpRequestTest.cc
  6824. * test/HttpResponseTest.cc
  6825. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6826. Corrected catched exception type.
  6827. * src/ServerStatMan.cc
  6828. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6829. DNSCache is now part of DownloadEngine.
  6830. * src/DNSCache.h
  6831. * src/DownloadEngine.cc
  6832. * src/DownloadEngine.h
  6833. * src/InitiateConnectionCommand.cc
  6834. * src/MultiUrlRequestInfo.cc
  6835. * test/Makefile.am
  6836. * test/Makefile.in
  6837. * test/SimpleDNSCacheTest.cc
  6838. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6839. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  6840. DownloadEngine.
  6841. * src/ActivePeerConnectionCommand.cc
  6842. * src/BtSetup.cc
  6843. * src/CUIDCounter.h
  6844. * src/DHTSetup.cc
  6845. * src/DownloadCommand.cc
  6846. * src/DownloadEngine.cc
  6847. * src/DownloadEngine.h
  6848. * src/DownloadEngineFactory.cc
  6849. * src/FileAllocationDispatcherCommand.cc
  6850. * src/InitiatorMSEHandshakeCommand.cc
  6851. * src/PeerInitiateConnectionCommand.cc
  6852. * src/PeerInteractionCommand.cc
  6853. * src/PeerListenCommand.cc
  6854. * src/RequestGroup.cc
  6855. * src/StreamFileAllocationEntry.cc
  6856. * src/TrackerWatcherCommand.cc
  6857. * src/main.cc
  6858. * test/RequestGroupManTest.cc
  6859. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6860. Implemented commented code in BtSeederStateChoke
  6861. * src/BtSeederStateChoke.cc
  6862. * src/Peer.cc
  6863. * src/Peer.h
  6864. * src/PeerInteractionCommand.cc
  6865. * src/PeerSessionResource.cc
  6866. * src/PeerSessionResource.h
  6867. * test/MockBtMessageDispatcher.h
  6868. * test/PeerSessionResourceTest.cc
  6869. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6870. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  6871. its object.
  6872. * src/AbstractBtMessage.cc
  6873. * src/ActivePeerConnectionCommand.cc
  6874. * src/ActivePeerConnectionCommand.h
  6875. * src/BtContextAwareCommand.cc
  6876. * src/BtContextAwareCommand.h
  6877. * src/BtExtendedMessage.cc
  6878. * src/BtExtendedMessage.h
  6879. * src/BtInterestedMessage.cc
  6880. * src/BtInterestedMessage.h
  6881. * src/BtNotInterestedMessage.cc
  6882. * src/BtNotInterestedMessage.h
  6883. * src/BtRegistry.cc
  6884. * src/BtRegistry.h
  6885. * src/BtSeederStateChoke.cc
  6886. * src/BtSetup.cc
  6887. * src/DHTGetPeersCommand.cc
  6888. * src/DHTGetPeersCommand.h
  6889. * src/DHTPeerAnnounceEntry.cc
  6890. * src/DHTPeerAnnounceEntry.h
  6891. * src/DHTPeerAnnounceStorage.cc
  6892. * src/DHTPeerAnnounceStorage.h
  6893. * src/DHTPeerLookupTask.cc
  6894. * src/DHTPeerLookupTask.h
  6895. * src/DHTSetup.cc
  6896. * src/DHTSetup.h
  6897. * src/DHTTaskFactory.h
  6898. * src/DHTTaskFactoryImpl.cc
  6899. * src/DHTTaskFactoryImpl.h
  6900. * src/DefaultBtAnnounce.cc
  6901. * src/DefaultBtInteractive.cc
  6902. * src/DefaultBtInteractive.h
  6903. * src/DefaultBtMessageDispatcher.cc
  6904. * src/DefaultBtMessageDispatcher.h
  6905. * src/DefaultBtMessageFactory.cc
  6906. * src/DefaultBtMessageFactory.h
  6907. * src/DefaultBtMessageReceiver.cc
  6908. * src/DefaultBtProgressInfoFile.cc
  6909. * src/DefaultBtProgressInfoFile.h
  6910. * src/DefaultBtRequestFactory.cc
  6911. * src/DefaultBtRequestFactory.h
  6912. * src/DefaultExtensionMessageFactory.cc
  6913. * src/DefaultExtensionMessageFactory.h
  6914. * src/DefaultPeerStorage.cc
  6915. * src/DefaultPeerStorage.h
  6916. * src/DownloadEngine.cc
  6917. * src/DownloadEngine.h
  6918. * src/InitiatorMSEHandshakeCommand.cc
  6919. * src/InitiatorMSEHandshakeCommand.h
  6920. * src/MSEHandshake.cc
  6921. * src/MSEHandshake.h
  6922. * src/Makefile.am
  6923. * src/Makefile.in
  6924. * src/PeerChokeCommand.cc
  6925. * src/PeerChokeCommand.h
  6926. * src/PeerInitiateConnectionCommand.cc
  6927. * src/PeerInitiateConnectionCommand.h
  6928. * src/PeerInteractionCommand.cc
  6929. * src/PeerInteractionCommand.h
  6930. * src/PeerObject.h
  6931. * src/PeerReceiveHandshakeCommand.cc
  6932. * src/PeerReceiveHandshakeCommand.h
  6933. * src/ReceiverMSEHandshakeCommand.cc
  6934. * src/RequestGroup.cc
  6935. * src/RequestGroup.h
  6936. * src/RequestGroupMan.cc
  6937. * src/RequestGroupMan.h
  6938. * src/SeedCheckCommand.cc
  6939. * src/SeedCheckCommand.h
  6940. * src/ShareRatioSeedCriteria.h
  6941. * src/SimpleBtMessage.cc
  6942. * src/TrackerWatcherCommand.cc
  6943. * src/TrackerWatcherCommand.h
  6944. * src/UTPexExtensionMessage.cc
  6945. * src/UTPexExtensionMessage.h
  6946. * test/BtCancelMessageTest.cc
  6947. * test/BtChokeMessageTest.cc
  6948. * test/BtExtendedMessageTest.cc
  6949. * test/BtInterestedMessageTest.cc
  6950. * test/BtNotInterestedMessageTest.cc
  6951. * test/BtPieceMessageTest.cc
  6952. * test/BtPortMessageTest.cc
  6953. * test/BtRegistryTest.cc
  6954. * test/BtRejectMessageTest.cc
  6955. * test/BtRequestMessageTest.cc
  6956. * test/DHTPeerAnnounceEntryTest.cc
  6957. * test/DHTPeerAnnounceStorageTest.cc
  6958. * test/DefaultBtMessageDispatcherTest.cc
  6959. * test/DefaultBtMessageFactoryTest.cc
  6960. * test/DefaultBtProgressInfoFileTest.cc
  6961. * test/DefaultBtRequestFactoryTest.cc
  6962. * test/DefaultExtensionMessageFactoryTest.cc
  6963. * test/MSEHandshakeTest.cc
  6964. * test/MockDHTTaskFactory.h
  6965. * test/ShareRatioSeedCriteriaTest.cc
  6966. * test/UTPexExtensionMessageTest.cc
  6967. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6968. Fixed compiler warning.
  6969. * test/UtilTest.cc
  6970. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6971. Treat Cookie object as session cookie if expiry = 0 is given.
  6972. With this change, you can specify session scoped cookies in an external
  6973. file setting expiry value to 0.
  6974. * src/Cookie.cc
  6975. * src/Cookie.h
  6976. * test/CookieParserTest.cc
  6977. * test/CookieStorageTest.cc
  6978. * test/CookieTest.cc
  6979. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6980. Changed signature of DHTMessageFactory::createResponseMessage().
  6981. Removed unused validateIDMatch.
  6982. * src/DHTMessageFactory.h
  6983. * src/DHTMessageFactoryImpl.cc
  6984. * src/DHTMessageFactoryImpl.h
  6985. * src/DHTMessageTracker.cc
  6986. * test/DHTMessageFactoryImplTest.cc
  6987. * test/MockDHTMessageFactory.h
  6988. Dropped DHT message coming from same ID of localhost.
  6989. * src/DHTMessageReceiver.cc
  6990. Rejected adding node whose ID is the same as localhost's.
  6991. * src/DHTRoutingTable.cc
  6992. * test/BtPortMessageTest.cc
  6993. * test/DHTRoutingTableTest.cc
  6994. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6995. Pool connection when redirection occurs with Content-Length = 0.
  6996. * src/HttpSkipResponseCommand.cc
  6997. * src/HttpSkipResponseCommand.h
  6998. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6999. Fixed the bug that causes time out when redirection occurs with
  7000. content-length 0.
  7001. * src/HttpResponseCommand.cc
  7002. * src/HttpSkipResponseCommand.cc
  7003. * src/HttpSkipResponseCommand.h
  7004. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7005. Now each status legends is shown only when it appears in Download
  7006. Result. If Download Result has no item, then status legend will not
  7007. be printed.
  7008. * src/RequestGroupMan.cc
  7009. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7010. Removed duplicate creation of OptionHandlers.
  7011. * src/option_processing.cc
  7012. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7013. Fixed the bug that causes segmentation fault when accessing files which
  7014. don't exist or are not included in --select-file option while
  7015. validating chunk checksum.
  7016. * src/MultiDiskAdaptor.cc
  7017. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7018. Fixed compiler warning.
  7019. * test/UtilTest.cc
  7020. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7021. Included cstdlib. This fixed the compile error with g++-4.3.2.
  7022. * src/IteratableChecksumValidator.cc
  7023. * src/IteratableChunkChecksumValidator.cc
  7024. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7025. * Release 0.16.2
  7026. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7027. Added Serbian translation. Updated Ukrainian translation.
  7028. Thanks to all translators.
  7029. * po/sr.po
  7030. * po/uk.po
  7031. * po/LINGUAS
  7032. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7033. Bump up version number to 0.16.2
  7034. * configure.ac
  7035. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7036. Added length equality test to operator== to drop a piece message
  7037. whose length does not match to the requested one.
  7038. * src/RequestSlot.cc
  7039. * test/DefaultBtMessageDispatcherTest.cc
  7040. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7041. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  7042. recieved.
  7043. In this fix, if a request larger than 16KiB length is received, aria2
  7044. disconnects the peer.
  7045. * src/BtConstants.h
  7046. * src/PeerMessageUtil.cc
  7047. * src/PeerMessageUtil.h
  7048. * test/BtRequestMessageTest.cc
  7049. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7050. * Release 0.16.1
  7051. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7052. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  7053. * doc/aria2c.1.txt
  7054. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7055. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  7056. Updated French, Simplified Chinese and Japanese translations.
  7057. Thanks to all translators.
  7058. en@quot and en@boldquot are also added.
  7059. * po/LINGUAS
  7060. * po/fr.po
  7061. * po/ja.po
  7062. * po/uk.po
  7063. * po/vi.po
  7064. * po/zh_CN.po
  7065. * po/zh_TW.po
  7066. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7067. Bump up version number to 0.16.1.
  7068. * configure.ac
  7069. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7070. Updated README.
  7071. * README
  7072. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7073. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  7074. not to replace '--' with em dash character.
  7075. * doc/aria2c.1.txt
  7076. * doc/makeman
  7077. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7078. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  7079. every SEC seconds.
  7080. * src/DownloadEngineFactory.cc
  7081. * src/OptionHandlerFactory.cc
  7082. * src/option_processing.cc
  7083. * src/usage_text.h
  7084. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7085. Fixed compile warning on linux-amd64
  7086. * src/FtpConnection.cc
  7087. * src/IteratableChunkChecksumValidator.cc
  7088. * src/MultiDiskAdaptor.cc
  7089. Fixed the bug that unit test fails on linux-amd64
  7090. * test/UtilTest.cc
  7091. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7092. Added --dht-file-path option to change the path to dht.dat, which is a
  7093. serialized DHT routing table.
  7094. * src/OptionHandlerFactory.cc
  7095. * src/option_processing.cc
  7096. * src/usage_text.h
  7097. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7098. Fixed possible underflow.
  7099. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  7100. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7101. Fixed the bug that last character in URI is not encoded.
  7102. * src/Request.cc
  7103. * test/RequestTest.cc
  7104. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7105. Fixed the bug that referer header field contains fragment.
  7106. Now Request class removes fragment part of URI and encodes it
  7107. in Request::setUri() and setReferer().
  7108. * src/Request.h
  7109. * src/Request.cc
  7110. * test/RequestTest.cc
  7111. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7112. Added missing m4 macros.
  7113. * m4/cppunit.m4
  7114. * m4/libgcrypt.m4
  7115. * m4/libgnutls-extra.m4
  7116. * m4/libgnutls.m4
  7117. * m4/libxml2.m4
  7118. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7119. Fixed compile error with gcc-4.4(snapshot)
  7120. * src/File.cc
  7121. * src/FtpConnection.cc
  7122. * src/OptionHandlerImpl.h
  7123. * src/Util.cc
  7124. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7125. Removed assert()
  7126. * src/SocketBuffer.cc (SocketBuffer::send)
  7127. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7128. Changed the type of _numNewConnection to unsigned int.
  7129. * src/ActivePeerConnectionCommand.cc
  7130. * src/ActivePeerConnectionCommand.h
  7131. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7132. * Release 0.16.0
  7133. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7134. Updated doc
  7135. * README
  7136. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7137. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  7138. translations. Thanks to all translators.
  7139. * po/bg.po
  7140. * po/de.po
  7141. * po/fr.po
  7142. * po/ja.po
  7143. * po/zh_CN.po
  7144. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7145. Bump up version number to 0.16.0.
  7146. * configure.ac
  7147. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7148. Casted entry->maxConnections to int32_t for std::min<T> with T =
  7149. int32_t.
  7150. Changed the type of count to int32_t.
  7151. * src/Metalink2RequestGroup.cc
  7152. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7153. Added test for Time::elapsed(time_t).
  7154. * test/TimeTest.cc
  7155. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7156. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  7157. Util::difftv() should be used instead.
  7158. * src/TimeA2.cc
  7159. * src/TimeA2.h
  7160. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7161. Made socket for dht connections non-blocking
  7162. * src/DHTAbstractMessage.cc
  7163. * src/DHTAbstractMessage.h
  7164. * src/DHTConnection.h
  7165. * src/DHTConnectionImpl.cc
  7166. * src/DHTConnectionImpl.h
  7167. * src/DHTMessage.h
  7168. * src/DHTMessageDispatcherImpl.cc
  7169. * src/DHTMessageDispatcherImpl.h
  7170. * src/DHTUnknownMessage.cc
  7171. * src/DHTUnknownMessage.h
  7172. * src/SocketCore.cc
  7173. * src/SocketCore.h
  7174. * test/MockDHTMessage.h
  7175. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7176. Changed the type of offset to int.
  7177. * src/ParameterizedStringParser.cc
  7178. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7179. Made getAsInt() return int32_t
  7180. * src/Option.h
  7181. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7182. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  7183. build.
  7184. * configure.ac
  7185. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7186. Use sqlite3_open if sqlite3_open_v2 is not available.
  7187. * src/Sqlite3MozCookieParser.cc
  7188. * src/Sqlite3MozCookieParser.h
  7189. * m4/sqlite3.m4
  7190. * test/Sqlite3MozCookieParserTest.cc
  7191. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7192. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  7193. * src/BtPieceMessage.cc
  7194. * src/DHTPeerAnnounceStorage.cc
  7195. * src/DefaultPieceStorage.cc
  7196. * src/DownloadCommand.cc
  7197. * src/DownloadEngine.cc
  7198. * src/FtpConnection.cc
  7199. * src/PeerConnection.cc
  7200. * src/PeerMessageUtil.cc
  7201. * src/RequestGroup.cc
  7202. * src/RequestGroupMan.cc
  7203. * src/SimpleBtMessage.cc
  7204. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7205. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  7206. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  7207. * src/AbstractDiskWriter.cc
  7208. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7209. Don't set Request::supportsPersistentConnection() in HttpConnection
  7210. since this code is also used in AbstractProxyResponseCommand.
  7211. Moved those code to HttpResponse.
  7212. * src/HttpResponse.cc
  7213. * src/HttpResponse.h
  7214. * src/HttpConnection.cc
  7215. * src/HttpConnection.h
  7216. * src/HttpResponseCommand.cc
  7217. * test/HttpResponseTest.cc
  7218. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7219. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  7220. The configuration is minimum: no torrent, no metalink, so there may be
  7221. other compile error on their code.
  7222. * src/a2netcompat.h
  7223. * src/File.cc
  7224. * src/File.h
  7225. * src/SocketCore.cc
  7226. * src/SocketCore.h
  7227. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7228. Made a socket of incoming peer non-blocking.
  7229. * src/PeerListenCommand.cc
  7230. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7231. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  7232. whole message data is not sent in one send() call.
  7233. * src/BtPieceMessage.cc
  7234. * src/BtPieceMessage.h
  7235. * src/PeerConnection.cc
  7236. * src/PeerConnection.h
  7237. * src/SimpleBtMessage.cc
  7238. * src/SimpleBtMessage.h
  7239. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7240. Fixed the bug that aria2 downloads faster than max-download-limit when
  7241. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  7242. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  7243. , instead of sum of them.
  7244. * src/ActivePeerConnectionCommand.cc
  7245. * src/DefaultBtInteractive.cc
  7246. * src/DownloadCommand.cc
  7247. * src/PeerInteractionCommand.cc
  7248. * src/PeerReceiveHandshakeCommand.cc
  7249. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7250. Fixed the bug that HTTPS download fails.
  7251. * src/AbstractCommand.cc
  7252. * src/AbstractCommand.h
  7253. * src/DownloadCommand.cc
  7254. * src/FtpConnection.cc
  7255. * src/HttpConnection.cc
  7256. * src/HttpRequestCommand.cc
  7257. * src/HttpResponseCommand.cc
  7258. * src/HttpSkipResponseCommand.cc
  7259. * src/MSEHandshake.cc
  7260. * src/PeerConnection.cc
  7261. * src/SocketCore.cc
  7262. * src/SocketCore.h
  7263. Fixed the bug that aria2 doesn't download whole content body and cannot
  7264. reuse connection if chunked transfer encoding and gzip content encoding
  7265. are set.
  7266. * src/DownloadCommand.cc
  7267. * src/HttpSkipResponseCommand.cc
  7268. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7269. Updated man page.
  7270. * doc/aria2c.1.txt
  7271. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7272. When error occurred while aria2 was parsing an .aria2.conf file, print
  7273. the usage of the option that caused error.
  7274. * src/option_processing.cc
  7275. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7276. Fixed compile error on OptionHandlerException
  7277. * src/Makefile.am
  7278. * src/OptionHandlerException.cc
  7279. * src/OptionHandlerException.h
  7280. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7281. Moved message of the error to OptionHandlerException.h
  7282. * src/NameMatchOptionHandler.h
  7283. * src/OptionHandlerException.h
  7284. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7285. When error occurs while aria2 is parsing an command-line option, print
  7286. the usage of the option.
  7287. * src/Makefile.am
  7288. * src/NameMatchOptionHandler.h
  7289. * src/OptionHandlerException.h
  7290. * src/option_processing.cc
  7291. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7292. Reverted previous change.
  7293. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  7294. username is not in URI.
  7295. * src/HttpRequest.cc
  7296. * src/Request.cc
  7297. * test/HttpRequestTest.cc
  7298. * test/RequestTest.cc
  7299. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7300. Now colon is required for username and password in FTP URL, like:
  7301. ftp://username:password@host.
  7302. If colon is not there, aria2 don't parse it as a username. For example,
  7303. aria2 don't retrieve username from ftp://username@host.
  7304. This fix was made in order to login FTP server via non-transparent ftp
  7305. proxy.
  7306. * src/Request.cc
  7307. * test/RequestTest.cc
  7308. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7309. Use netrc for HTTP.
  7310. Now FTP user/password is sent in Authorization header when
  7311. --ftp-via-http-proxy=get is given.
  7312. * src/AuthConfigFactory.cc
  7313. * src/HttpRequest.cc
  7314. * src/HttpRequest.h
  7315. * src/NetrcAuthResolver.cc
  7316. * src/NetrcAuthResolver.h
  7317. * src/OptionHandlerFactory.cc
  7318. * src/option_processing.cc
  7319. * src/prefs.cc
  7320. * src/prefs.h
  7321. * test/AuthConfigFactoryTest.cc
  7322. * test/HttpRequestTest.cc
  7323. * test/NetrcAuthResolverTest.cc
  7324. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7325. Issue PWD command first and get working directory and use it as a prefix
  7326. for CWD command.
  7327. * src/DownloadEngine.cc
  7328. * src/DownloadEngine.h
  7329. * src/FtpConnection.cc
  7330. * src/FtpConnection.h
  7331. * src/FtpFinishDownloadCommand.cc
  7332. * src/FtpInitiateConnectionCommand.cc
  7333. * src/FtpNegotiationCommand.cc
  7334. * src/FtpNegotiationCommand.h
  7335. * test/FtpConnectionTest.cc
  7336. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7337. Removed default user/pass for FTP user/pass, since it should not have
  7338. precedence over netrc configuration by default.
  7339. * src/OptionHandlerFactory.cc
  7340. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7341. Added debug log for socket event.
  7342. * src/AbstractCommand.cc
  7343. * src/PeerAbstractCommand.cc
  7344. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7345. Log microseconds.
  7346. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7347. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7348. Replaced HelpItem.cc with OptionHandler.cc.
  7349. * po/POTFILES.in
  7350. Updated po files with 'make update-po'
  7351. * po/aria2c.pot
  7352. * po/*.po
  7353. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7354. Removed possible values from the text.
  7355. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  7356. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7357. Removed unused preferences:
  7358. PREF_NO_PREALLOCATION
  7359. PREF_STDOUT_LOG
  7360. PREF_TRACKER_MAX_TRIES
  7361. PREF_DIRECT_DOWNLOAD_TIMEOUT
  7362. PREF_MIN_SEGMENT_SIZE
  7363. * src/option_processing.cc
  7364. * src/prefs.cc
  7365. * src/prefs.h
  7366. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7367. Integrated HelpItem into OptionParser to ease the workload for adding
  7368. new options. Removed default value from usage text.
  7369. * src/HelpItem.cc: Removed.
  7370. * src/HelpItem.h: Removed.
  7371. * src/HelpItemFactory.cc: Removed.
  7372. * src/HelpItemFactory.h: Removed.
  7373. * src/Makefile.am
  7374. * src/Makefile.in
  7375. * src/NameMatchOptionHandler.h
  7376. * src/OptionHandler.cc
  7377. * src/OptionHandler.h
  7378. * src/OptionHandlerFactory.cc
  7379. * src/OptionHandlerImpl.h
  7380. * src/OptionParser.cc
  7381. * src/OptionParser.h
  7382. * src/TagContainer.cc: Removed.
  7383. * src/TagContainer.h: Removed.
  7384. * src/TaggedItem.cc: Removed.
  7385. * src/TaggedItem.h: Removed.
  7386. * src/main.cc
  7387. * src/option_processing.cc
  7388. * src/usage_text.h
  7389. * src/version_usage.cc
  7390. * test/HelpItemTest.cc: Removed.
  7391. * test/Makefile.am
  7392. * test/Makefile.in
  7393. * test/OptionHandlerTest.cc
  7394. * test/OptionParserTest.cc
  7395. * test/TagContainerTest.cc: Removed.
  7396. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7397. Moved `TransferStat stat = ...' to inside the `if' clause.
  7398. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  7399. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7400. Fixed the bug that a block in a piece is requested when same block is
  7401. already requested to the same peer in end game mode.
  7402. * src/BtRequestFactory.h
  7403. * src/DefaultBtInteractive.cc
  7404. * src/DefaultBtRequestFactory.cc
  7405. * src/DefaultBtRequestFactory.h
  7406. * src/DefaultPieceStorage.cc
  7407. * src/DefaultPieceStorage.h
  7408. * src/PieceStorage.h
  7409. * src/UnknownLengthPieceStorage.cc
  7410. * src/UnknownLengthPieceStorage.h
  7411. * test/DefaultBtRequestFactoryTest.cc
  7412. * test/DefaultPieceStorageTest.cc
  7413. * test/MockBtRequestFactory.h
  7414. * test/MockPieceStorage.h
  7415. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7416. Removed _uploadLength and _downloadLength from PeerSessionResource
  7417. and use PeerStat::_sessionUploadLength and
  7418. PeerStat::_sessionDownloadLength.
  7419. * src/PeerSessionResource.cc
  7420. * src/PeerSessionResource.h
  7421. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7422. Fixed the bug that prefixLength of split bucket which doesn't include
  7423. local node ID is incremented.
  7424. * src/DHTBucket.cc
  7425. * src/DHTBucket.h
  7426. * test/DHTBucketTest.cc
  7427. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7428. Added cookies.sqlite to EXTRA_DIST
  7429. * test/Makefile.am
  7430. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7431. Added Turkish translation. Updated French, German, Russian and
  7432. Simplified Chinese translations. Thanks to all translators.
  7433. * po/LINGUAS
  7434. * po/de.po
  7435. * po/fr.po
  7436. * po/ru.po
  7437. * po/tr.po
  7438. * po/zh_CN.po
  7439. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7440. Added deliminating text to the beginning of the log so that one can find
  7441. where the log starts easily.
  7442. * src/main.cc
  7443. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7444. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  7445. to fix compile error when async DNS is not enabled by configuration.
  7446. * src/AbstractCommand.cc
  7447. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7448. If establishing conneciton to a server is failed, then mark error on
  7449. its ServerStat.
  7450. Added the cause of error to log when error event occurred.
  7451. Moved message string to message.h for translation.
  7452. * src/AbstractCommand.cc
  7453. * src/AbstractCommand.h
  7454. * src/FtpNegotiationCommand.cc
  7455. * src/HttpRequestCommand.cc
  7456. * src/PeerAbstractCommand.cc
  7457. * src/message.h
  7458. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7459. Added the function to get error message from socket.
  7460. * src/SocketCore.cc
  7461. * src/SocketCore.h
  7462. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7463. Added convenient method RequestGroupMan::getOrCreateServerStat()
  7464. * src/RequestGroupMan.cc
  7465. * src/RequestGroupMan.h
  7466. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7467. If error event is received in epoll, then abort download immediately.
  7468. * src/AbstractCommand.cc
  7469. * src/Command.cc
  7470. * src/Command.h
  7471. * src/DownloadEngine.cc
  7472. * src/PeerAbstractCommand.cc
  7473. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7474. Added usage message for --uri-selector, --server-stat-of,
  7475. --server-stat-in, --server-stat-timeout options.
  7476. * src/HelpItemFactory.cc
  7477. * src/usage_text.h
  7478. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7479. Added upper limit of FTP response buffer. The current implementation
  7480. uses 4096bytes as a limit.
  7481. * src/FtpConnection.cc
  7482. * src/FtpConnection.h
  7483. * test/FtpConnectionTest.cc
  7484. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7485. Use non-blocking socket for TCP communication to avoid possible
  7486. blocking due to buffer full.
  7487. * src/AbstractProxyRequestCommand.cc
  7488. * src/FtpConnection.cc
  7489. * src/FtpConnection.h
  7490. * src/FtpNegotiationCommand.cc
  7491. * src/FtpNegotiationCommand.h
  7492. * src/HttpConnection.cc
  7493. * src/HttpConnection.h
  7494. * src/HttpRequestCommand.cc
  7495. * src/InitiatorMSEHandshakeCommand.cc
  7496. * src/InitiatorMSEHandshakeCommand.h
  7497. * src/MSEHandshake.cc
  7498. * src/MSEHandshake.h
  7499. * src/Makefile.am
  7500. * src/PeerConnection.cc
  7501. * src/PeerConnection.h
  7502. * src/PeerInteractionCommand.cc
  7503. * src/PeerListenCommand.cc
  7504. * src/ReceiverMSEHandshakeCommand.cc
  7505. * src/ReceiverMSEHandshakeCommand.h
  7506. * src/SocketBuffer.cc
  7507. * src/SocketBuffer.h
  7508. * src/SocketCore.cc
  7509. * src/SocketCore.h
  7510. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7511. Call setStatusRealtime() in constructor.
  7512. * src/RealtimeCommand.cc
  7513. * src/RealtimeCommand.h
  7514. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7515. Call Download::setNoWait(true) to execute newly created command without
  7516. a pause.
  7517. * src/AbstractCommand.cc
  7518. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7519. Added --max-file-not-found=NUM option. If aria2 receives `file not
  7520. found' error from HTTP/FTP server NUM times without getting single
  7521. bytes of data, then force the download to fail.
  7522. Basically aria2 tris all URIs available. So if long list of URIs are
  7523. specified in Metalink, then aria2 will take a long time to fail
  7524. eventually if all URIs are outdated. This option eases this situation
  7525. to limit the number of servers to try.
  7526. * src/FtpNegotiationCommand.cc
  7527. * src/HelpItemFactory.cc
  7528. * src/HttpResponseCommand.cc
  7529. * src/OptionHandlerFactory.cc
  7530. * src/PeerStat.h
  7531. * src/RequestGroup.cc
  7532. * src/RequestGroup.h
  7533. * src/SegmentMan.cc
  7534. * src/SegmentMan.h
  7535. * src/option_processing.cc
  7536. * src/prefs.cc
  7537. * src/prefs.h
  7538. * src/usage_text.h
  7539. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7540. Fixed the bug that bulkReceiveResponse() reads all received data as a
  7541. response even if more than one response is in it.
  7542. * src/FtpConnection.cc
  7543. * src/FtpConnection.h
  7544. * test/FtpConnectionTest.cc
  7545. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7546. Merged from stable-0.15
  7547. * m4/libcares.m4
  7548. Use pkg-config
  7549. * m4/sqlite3.m4
  7550. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7551. Removed unnecessary if statement.
  7552. * src/DefaultPieceStorage.cc (initPieceStorage)
  7553. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7554. Added --connect-timeout option to specify connect timeout in seconds.
  7555. This option is in effect for HTTP/FTP/proxy server. The timeout for
  7556. connecting to BitTorrent peer is not controlled by this option.
  7557. * src/AbstractProxyRequestCommand.cc
  7558. * src/FtpNegotiationCommand.cc
  7559. * src/HelpItemFactory.cc
  7560. * src/HttpRequestCommand.cc
  7561. * src/OptionHandlerFactory.cc
  7562. * src/option_processing.cc
  7563. * src/prefs.cc
  7564. * src/prefs.h
  7565. * src/usage_text.h
  7566. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7567. Added help message for -R option.
  7568. * src/HelpItemFactory.cc
  7569. * src/usage_text.h
  7570. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7571. Added the message that the time is in local time zone.
  7572. * src/RequestGroup.cc
  7573. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7574. Implemented the ability to get timestamp from remote FTP server using
  7575. MDTM command described in RFC3659.
  7576. * src/FtpConnection.cc
  7577. * src/FtpConnection.h
  7578. * src/FtpNegotiationCommand.cc
  7579. * src/FtpNegotiationCommand.h
  7580. * test/FtpConnectionTest.cc
  7581. * test/Makefile.am
  7582. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7583. Implemented the ability to get timestamp from remote HTTP server and
  7584. apply it to local file. To enable this feature, --remote-time option
  7585. is added. No usage text has been written yet.
  7586. If several servers returns difference timestamp, then aria2 uses latest
  7587. one.
  7588. * src/CopyDiskAdaptor.cc
  7589. * src/CopyDiskAdaptor.h
  7590. * src/DirectDiskAdaptor.cc
  7591. * src/DirectDiskAdaptor.h
  7592. * src/DiskAdaptor.h
  7593. * src/File.cc
  7594. * src/File.h
  7595. * src/HttpHeader.cc
  7596. * src/HttpHeader.h
  7597. * src/HttpResponse.cc
  7598. * src/HttpResponse.h
  7599. * src/HttpResponseCommand.cc
  7600. * src/HttpResponseCommand.h
  7601. * src/MultiDiskAdaptor.cc
  7602. * src/MultiDiskAdaptor.h
  7603. * src/OptionHandlerFactory.cc
  7604. * src/RequestGroup.cc
  7605. * src/RequestGroup.h
  7606. * src/RequestGroupMan.cc
  7607. * src/option_processing.cc
  7608. * src/prefs.cc
  7609. * src/prefs.h
  7610. * test/CopyDiskAdaptorTest.cc
  7611. * test/FileTest.cc
  7612. * test/Makefile.am
  7613. * test/Makefile.in
  7614. * test/MultiDiskAdaptorTest.cc
  7615. * test/TestUtil.cc
  7616. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7617. Fixed the bug that DiskWriterEntry is not created when its
  7618. FileEntry.isRequested() is false and it doesn't share a piece with
  7619. other FileEntries that are requested. This bug causes segmentation fault
  7620. in the end.
  7621. * src/MultiDiskAdaptor.cc
  7622. * src/MultiDiskAdaptor.h
  7623. * src/MultiFileAllocationIterator.cc
  7624. * test/MultiDiskAdaptorTest.cc
  7625. * test/MultiFileAllocationIteratorTest.cc
  7626. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7627. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  7628. called if the number of file entries are greater than max open files.
  7629. * src/AbstractSingleDiskAdaptor.cc
  7630. * src/AbstractSingleDiskAdaptor.h
  7631. * src/DiskAdaptor.h
  7632. * src/MultiDiskAdaptor.cc
  7633. * src/MultiDiskAdaptor.h
  7634. * test/MultiDiskAdaptorTest.cc
  7635. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7636. Added a constuctor that receives struct timeval.
  7637. Added operator<.
  7638. * src/TimeA2.cc
  7639. * src/TimeA2.h
  7640. * test/TimeTest.cc
  7641. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7642. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  7643. * src/CookieParser.cc
  7644. * test/CookieParserTest.cc
  7645. * test/HttpResponseTest.cc
  7646. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7647. Implmented the functions to parse date.
  7648. * src/TimeA2.cc
  7649. * src/TimeA2.h
  7650. * test/TimeTest.cc
  7651. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7652. Added "Firefox3 Cookie" feature to FeatureConfig
  7653. * src/FeatureConfig.cc
  7654. * src/FeatureConfig.h
  7655. * test/FeatureConfigTest.cc
  7656. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7657. Bump up version number to 0.16.0b
  7658. * configure.ac
  7659. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7660. Use pkg-config if is is available.
  7661. * m4/openssl.m4
  7662. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7663. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  7664. * src/BtAnnounce.h
  7665. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7666. If an error occurred with a URI, remove identical URI from remaining
  7667. URI list because it is likely that same error occurred in the end and it
  7668. is waste of time.
  7669. * src/AbstractCommand.cc
  7670. * src/RequestGroup.cc
  7671. * src/RequestGroup.h
  7672. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7673. Removed wrong comment.
  7674. * src/DefaultPeerStorage.cc
  7675. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7676. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  7677. Added return value of getpid() to argument of srand() to achieve more
  7678. randomized value.
  7679. * src/SimpleRandomizer.cc
  7680. * src/SimpleRandomizer.h
  7681. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7682. Contact tracker frequently when the number of connections are 0 and
  7683. download is not finished yet.
  7684. * src/ActivePeerConnectionCommand.cc
  7685. * src/BtAnnounce.h
  7686. * src/DefaultBtAnnounce.cc
  7687. * src/DefaultBtAnnounce.h
  7688. * test/MockBtAnnounce.h
  7689. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7690. Moved threshold values to UTPexExtensionMessage.
  7691. * src/DefaultBtInteractive.cc
  7692. * src/Peer.cc
  7693. * src/Peer.h
  7694. * src/UTPexExtensionMessage.cc
  7695. * src/UTPexExtensionMessage.h
  7696. * test/UTPexExtensionMessageTest.cc
  7697. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7698. Added _incoming member to Peer class and made it true if the peer
  7699. initiated connection. Don't add those peer to UTPex message.
  7700. If extended handshake is received, assign _incoming to false.
  7701. * src/DefaultBtInteractive.cc
  7702. * src/HandshakeExtensionMessage.cc
  7703. * src/Peer.cc
  7704. * src/Peer.h
  7705. * src/PeerListenCommand.cc
  7706. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7707. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  7708. Encoding Decoder. Removed size threshold for turning off on the fly
  7709. inflation because resulting file may or may not be inflated depending
  7710. on the file size and I think it is not expected by users.
  7711. This change fixes segmentation fault when Metalink file contains gzipped
  7712. file and its filesize is provided.
  7713. * src/HttpResponseCommand.cc
  7714. * src/HttpResponseCommand.h
  7715. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7716. Made Cookie immutable.
  7717. * src/Cookie.cc
  7718. * src/Cookie.h
  7719. * src/CookieParser.cc
  7720. * src/CookieParser.h
  7721. * src/CookieStorage.cc
  7722. * test/CookieParserTest.cc
  7723. * test/CookieStorageTest.cc
  7724. * test/NsCookieParserTest.cc
  7725. * test/Sqlite3MozCookieParserTest.cc
  7726. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7727. Removed CookieBox, CookieBoxFactory.
  7728. * src/CookieBox.cc
  7729. * src/CookieBox.h
  7730. * src/CookieBoxFactory.cc
  7731. * src/CookieBoxFactory.h
  7732. * src/Makefile.am
  7733. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7734. Use CookieStorage class instead of CookieBox class.
  7735. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  7736. * src/AbstractProxyRequestCommand.cc
  7737. * src/CookieStorage.cc
  7738. * src/DownloadEngine.cc
  7739. * src/DownloadEngine.h
  7740. * src/HttpConnection.cc
  7741. * src/HttpConnection.h
  7742. * src/HttpRequest.cc
  7743. * src/HttpRequest.h
  7744. * src/HttpRequestCommand.cc
  7745. * src/HttpResponse.cc
  7746. * src/HttpResponseCommand.cc
  7747. * src/HttpSkipResponseCommand.cc
  7748. * src/Makefile.am
  7749. * src/MultiUrlRequestInfo.cc
  7750. * src/Request.cc
  7751. * src/Request.h
  7752. * src/main.cc
  7753. * test/AllTest.cc
  7754. * test/CookieStorageTest.cc
  7755. * test/CookieTest.cc
  7756. * test/HttpRequestTest.cc
  7757. * test/HttpResponseTest.cc
  7758. * test/Makefile.am
  7759. * test/NsCookieParserTest.cc
  7760. * test/Sqlite3MozCookieParserTest.cc
  7761. * test/nscookietest.txt
  7762. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7763. Updated
  7764. * test/Cookies.sqlite
  7765. * test/nscookietest.txt
  7766. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7767. Added tests for CookieStorage::load()
  7768. * test/CookieStorageTest.cc
  7769. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7770. Added CookieStorage class which is based on RFC2109 and manages cookies
  7771. more strictly than CookieBox and CookieBoxFactory class.
  7772. * src/CookieStorage.cc
  7773. * src/CookieStorage.h
  7774. * src/Cookie.cc
  7775. * src/Cookie.h
  7776. * test/CookieStorageTest.cc
  7777. * test/CookieTest.cc
  7778. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7779. Fixed the bug that commands are created more than the number of pieces.
  7780. * src/RequestGroup.cc
  7781. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7782. Fixed infinite loop bug in FTP when SIZE command failed.
  7783. * src/FtpNegotiationCommand.cc
  7784. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7785. Removed DirectDiskAdaptorTest.h
  7786. * test/Makefile.am
  7787. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7788. Fixed chunk checksum validation cannot detect trailing garbage data.
  7789. BUG#2074141
  7790. * src/AbstractSingleDiskAdaptor.cc
  7791. * src/AbstractSingleDiskAdaptor.h
  7792. * src/CheckIntegrityEntry.cc
  7793. * src/CheckIntegrityEntry.h
  7794. * src/DiskAdaptor.h
  7795. * src/MultiDiskAdaptor.cc
  7796. * src/MultiDiskAdaptor.h
  7797. * src/RequestGroup.cc
  7798. * test/DirectDiskAdaptorTest.cc
  7799. * test/MultiDiskAdaptorTest.cc
  7800. * test/TestUtil.cc
  7801. * test/TestUtil.h
  7802. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7803. Bump up version number of dht.dat file to 3. In version 3 format, time
  7804. is stored in 64bit, network byte order.
  7805. New build can load old format(version 2) but it saves the file in new
  7806. format. It means once you used new build, your dht.dat becomes
  7807. incompatible with older build.
  7808. * src/DHTRoutingTableDeserializer.cc
  7809. * src/DHTRoutingTableSerializer.cc
  7810. * test/DHTRoutingTableSerializerTest.cc
  7811. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7812. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  7813. * test/Makefile.am
  7814. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7815. Bump up version number of .aria2 control file to 0001.
  7816. New aria2 can still load version 0000 file but it saves the file in
  7817. version 0001 format. It means that new aria2 can resume download
  7818. started by old aria2 but the opposite is not true.
  7819. * src/DefaultBtProgressInfoFile.cc
  7820. * src/DefaultBtProgressInfoFile.h
  7821. * test/DefaultBtProgressInfoFileTest.cc
  7822. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7823. Added ntoh64 and hton64 as inline functions.
  7824. * src/Util.cc
  7825. * test/UtilTest.cc
  7826. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7827. Added sqlite3 depenency and Firefox3 cookie support.
  7828. * README
  7829. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7830. State that firefox3 cookie is supported explicitly in the usage.
  7831. * src/usage_text.h
  7832. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7833. Externalized message.
  7834. * src/RequestGroupMan.cc
  7835. * src/message.h
  7836. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7837. Save temporary file first and rename to the destination on success.
  7838. Added test cases.
  7839. * src/RequestGroupMan.cc
  7840. * test/RequestGroupManTest.cc
  7841. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7842. Fixed the bug that the number of connected peer is exceeding the limit
  7843. (55 by default) in seeding mode.
  7844. Multiplied 0.8 to _maxUploadSpeedLimit.
  7845. * src/ActivePeerConnectionCommand.cc
  7846. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7847. Clear table item.
  7848. * src/Dictionary.cc
  7849. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7850. Fixed error handling of lseek.
  7851. * src/AbstractDiskWriter.cc
  7852. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7853. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  7854. style cookie file.
  7855. * src/usage_text.h
  7856. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7857. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  7858. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  7859. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  7860. * src/Util.cc
  7861. * src/Util.h
  7862. * src/CookieParser.cc
  7863. * test/UtilTest.cc
  7864. * test/CookieParserTest.cc
  7865. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7866. Separate the implementation to load old mozilla format of cookie to
  7867. NsCookieParser class.
  7868. * src/CookieBoxFactory.cc
  7869. * src/CookieBoxFactory.h
  7870. * src/NsCookieParser.cc
  7871. * src/NsCookieParser.h
  7872. * test/NsCookieParserTest.cc
  7873. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7874. Made parse() const
  7875. * src/Sqlite3MozCookieParser.cc
  7876. * src/Sqlite3MozCookieParser.h
  7877. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7878. Added firefox3 cookie support based on the patch submitted by
  7879. tizianomueller.
  7880. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  7881. this functionality.
  7882. * configure.ac
  7883. * m4/sqlite3.m4
  7884. * src/CookieBoxFactory.cc
  7885. * src/CookieBoxFactory.h
  7886. * src/Makefile.am
  7887. * src/Makefile.in
  7888. * src/Sqlite3MozCookieParser.cc
  7889. * src/Sqlite3MozCookieParser.h
  7890. * src/main.cc
  7891. * test/CookieBoxFactoryTest.cc
  7892. * test/Makefile.am
  7893. * test/Makefile.in
  7894. * test/Sqlite3MozCookieParserTest.cc
  7895. * test/badcookies.sqlite
  7896. * test/cookies.sqlite
  7897. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7898. Added Danish and Greek translations.
  7899. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  7900. Great thanks to all translators.
  7901. * po/LINGUAS
  7902. * po/el.po
  7903. * po/da.po
  7904. * po/es.po
  7905. * po/ca.po
  7906. * po/nn.po
  7907. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7908. Fixed man page: --follow-bittorrent should be --follow-torrent
  7909. * doc/aria2c.1.txt
  7910. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7911. Fixed: numCommand is less than the value specified in -C option.
  7912. * src/RequestGroup.cc
  7913. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7914. Fixed occasional assertion failure in PieceSegment.
  7915. Calling PieceStorage::getMissingPiece(size_t) was missing after
  7916. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  7917. creation of duplicate segments and one of the segment was finished then
  7918. assertion failure was caused.
  7919. * src/SegmentMan.cc
  7920. * test/SegmentManTest.cc
  7921. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7922. Added options to load/save the server's performance/status to a file
  7923. and the timeout to drop their data.
  7924. --server-stat-of=FILE specifies the file to which performance data
  7925. is saved.
  7926. --server-stat-if=FILE specifies the file to read previously saved
  7927. by --server-stat-of option. Might be used with --uri-selector=feedback.
  7928. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  7929. TIMEOUT is specified in seconds and the default value is 24hours.
  7930. * src/MultiUrlRequestInfo.cc
  7931. * src/OptionHandlerFactory.cc
  7932. * src/RequestGroupMan.cc
  7933. * src/RequestGroupMan.h
  7934. * src/ServerStatMan.cc
  7935. * src/ServerStatMan.h
  7936. * src/option_processing.cc
  7937. * src/prefs.cc
  7938. * src/prefs.h
  7939. * test/ServerStatManTest.cc
  7940. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7941. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  7942. * src/ServerStatMan.cc
  7943. * src/ServerStatMan.h
  7944. * test/ServerStatManTest.cc
  7945. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7946. Implemented ServerStatMan::load(...) function and its test case.
  7947. * src/ServerStat.cc
  7948. * src/ServerStat.h
  7949. * src/ServerStatMan.cc
  7950. * test/ServerStatManTest.cc
  7951. * test/ServerStatTest.cc
  7952. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7953. Use time_t instead of int32_t. Use int64_t where milli second is
  7954. expected.
  7955. * src/TimeA2.cc
  7956. * src/TimeA2.h
  7957. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7958. Implemented ServerStatMan::save(...) function and its test case.
  7959. * src/ServerStat.cc
  7960. * src/ServerStat.h
  7961. * src/ServerStatMan.cc
  7962. * src/ServerStatMan.h
  7963. * test/ServerStatManTest.cc
  7964. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7965. Now aria2 uses name attribute in Metalink as local filename in
  7966. BitTorrent downloads. BUG#2033999
  7967. * src/BtContext.h
  7968. * src/BtDependency.cc
  7969. * src/DefaultBtContext.cc
  7970. * src/DefaultBtContext.h
  7971. * src/SingleFileDownloadContext.cc
  7972. * src/SingleFileDownloadContext.h
  7973. * test/BtDependencyTest.cc
  7974. * test/DefaultBtContextTest.cc
  7975. * test/MockBtContext.h
  7976. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7977. Added AC_C_BIGENDIAN
  7978. * src/configure.ac
  7979. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7980. Limited numCommand less than or equal to the number of piece.
  7981. * src/RequestGroup.cc
  7982. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7983. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  7984. directive.
  7985. * test/DefaultPieceStorageTest.cc
  7986. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7987. Fixed memory leak in test code
  7988. * test/AnnounceListTest.cc
  7989. * test/DefaultPeerListProcessorTest.cc
  7990. * test/DefaultPeerStorageTest.cc
  7991. * test/MetaFileUtilTest.cc
  7992. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7993. Fixed wrong argument passing to BitfieldMan::isBitSet()
  7994. * src/DefaultPieceStorage.cc
  7995. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7996. Initialized _directIOAllowed
  7997. * src/MultiDiskAdaptor.cc
  7998. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7999. Fixed memory leak
  8000. * src/GZipDecoder.cc
  8001. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8002. Fixed memory leak
  8003. * src/MetalinkParserStateMachine.cc
  8004. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8005. Fixed memory leak
  8006. * src/Dictionary.cc
  8007. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8008. Fixed memory leak
  8009. * src/IteratableChunkChecksumValidator.h
  8010. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8011. Fixed unmatched malloc/free.
  8012. * src/IteratableChunkChecksumValidator.cc
  8013. * src/IteratableChecksumValidator.cc
  8014. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8015. Removed max chunk size check. This change fixes BUG#2040169
  8016. * src/ChunkedDecoder.cc
  8017. * src/ChunkedDecoder.h
  8018. * test/ChunkedDecoderTest.cc
  8019. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8020. Implemented download speed based URI selection algorithm.
  8021. Introduced new option --uri-selector.
  8022. If --uri-selector=feedback is given, aria2 uses download speed observed
  8023. in the previous downloads and chooses fastest server in the URI list.
  8024. Currently at most 10 URIs are considered to introduce randomeness for
  8025. finding better servers. The speed is average download speed in the
  8026. downloads.
  8027. On the other hand, if --uri-selector=inorder is given, which is default,
  8028. URI is tried in order in URI list.
  8029. The usage text for the new option has not been written yet.
  8030. * src/AbstractCommand.cc
  8031. * src/DownloadCommand.cc
  8032. * src/DownloadEngine.cc
  8033. * src/DownloadEngineFactory.cc
  8034. * src/InOrderURISelector.cc
  8035. * src/InOrderURISelector.h
  8036. * src/OptionHandlerFactory.cc
  8037. * src/PeerStat.h
  8038. * src/RequestGroup.cc
  8039. * src/RequestGroup.h
  8040. * src/RequestGroupMan.cc
  8041. * src/RequestGroupMan.h
  8042. * src/SegmentMan.cc
  8043. * src/SegmentMan.h
  8044. * src/ServerStat.cc
  8045. * src/ServerStat.h
  8046. * src/ServerStatMan.cc
  8047. * src/ServerStatMan.h
  8048. * src/ServerStatURISelector.cc
  8049. * src/ServerStatURISelector.h
  8050. * src/URISelector.h
  8051. * src/option_processing.cc
  8052. * src/prefs.cc
  8053. * src/prefs.h
  8054. * test/InOrderURISelectorTest.cc
  8055. * test/RequestGroupManTest.cc
  8056. * test/ServerStatManTest.cc
  8057. * test/ServerStatURISelectorTest.cc
  8058. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8059. * Release 0.15.1+2
  8060. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8061. Bump up version number to 0.15.1+2
  8062. * configure.ac
  8063. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8064. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  8065. * m4/aria2_arg.m4
  8066. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8067. * Release 0.15.1+1
  8068. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8069. Bump up version number to 0.15.1+1
  8070. * configure.ac
  8071. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8072. Fixed the bug that causes segmentaion fault when resuming download
  8073. using metalink without size tag. Reproducible only using HTTP URI.
  8074. * src/HttpResponseCommand.cc
  8075. * src/FtpNegotiationCommand.cc
  8076. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8077. * Release 0.15.1
  8078. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8079. Updated Bulgarian and French translations, thanks to all translators.
  8080. * po/bg.po
  8081. * po/fr.po
  8082. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8083. Bump up version number to 0.15.1
  8084. * configure.ac
  8085. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8086. Avoid repeated call of gettimeofday() when calculating speed.
  8087. * src/SpeedCalc.cc
  8088. * src/SpeedCalc.h
  8089. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8090. Removed writable check when socket's send buffer is full in BitTorrent
  8091. downloads to lower CPU usage.
  8092. * src/PeerInteractionCommand.cc
  8093. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8094. Fixed broken gzip inflation.
  8095. Turn off segmented downloading if gzip content is smaller than or equal
  8096. to 1MiB and inflate the data on the fly, because HTTP response header
  8097. doesn't contain the length of inflated file we can't determin where
  8098. the chunk of data should be written.
  8099. On the other hand, if gzip content is larger than 1MB, then turn off
  8100. on the fly inflation, because some servers returns "content-type: gzip"
  8101. for *.tgz, *.gz files.
  8102. * src/DownloadCommand.cc
  8103. * src/HttpResponseCommand.cc
  8104. * src/HttpResponseCommand.h
  8105. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8106. Applied tizianomueller's patch to fix compile error.
  8107. * test/BitfieldManTest.cc
  8108. * test/BtRequestMessageTest.cc
  8109. * test/DefaultBtContextTest.cc
  8110. * test/DefaultDiskWriterTest.cc
  8111. * test/DefaultPieceStorageTest.cc
  8112. * test/HttpHeaderProcessorTest.cc
  8113. * test/HttpResponseTest.cc
  8114. * test/Metalink2RequestGroupTest.cc
  8115. * test/MetalinkParserControllerTest.cc
  8116. * test/MetalinkProcessorTest.cc
  8117. * test/PeerSessionResourceTest.cc
  8118. * test/UtilTest.cc
  8119. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8120. * Release 0.15.0
  8121. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8122. Reordered src files in POTFILES.in so that usage text appears first.
  8123. * po/POTFILES.in
  8124. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8125. Bump up version number to 0.15.0
  8126. * configure.ac
  8127. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8128. Added Bulgarian translation.
  8129. Updated Catalan, Spanish, French and Japanese translations.
  8130. Thanks to all translators.
  8131. * po/LINGUAS
  8132. * po/bg.po
  8133. * po/ca.po
  8134. * po/es.po
  8135. * po/fr.po
  8136. * po/ja.po
  8137. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8138. Updated feature list. Added libz for dependency section.
  8139. Added a description about unit testing using CppUnit.
  8140. * README
  8141. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8142. Added a test for libz. Quoted where it is necessary.
  8143. * build_test.sh
  8144. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8145. Added GZip to `Enabled Features' list.
  8146. * src/FeatureConfig.cc
  8147. * src/FeatureConfig.h
  8148. * test/FeatureConfigTest.cc
  8149. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8150. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  8151. the transfer has not yet started.
  8152. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  8153. * src/SegmentMan.cc
  8154. * src/SegmentMan.h
  8155. * test/SegmentManTest.cc
  8156. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8157. Cache last calculated average download/upload speed.
  8158. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  8159. cached value.
  8160. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  8161. * src/PeerStat.h
  8162. * src/SpeedCalc.cc
  8163. * src/SpeedCalc.h
  8164. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8165. Call parseUrl directly.
  8166. * src/Request.cc (resetUrl)
  8167. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8168. Supported absolute/relative path in Location header field.
  8169. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  8170. * src/HttpHeader.cc
  8171. * src/HttpHeader.h
  8172. * src/HttpResponse.cc
  8173. * src/HttpSkipResponseCommand.cc
  8174. * src/Request.cc
  8175. * test/HttpHeaderTest.cc
  8176. * test/HttpResponseTest.cc
  8177. * test/RequestTest.cc
  8178. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8179. Changed help text for --load-cookie option.
  8180. * doc/aria2c.1.txt
  8181. * src/usage_text.h
  8182. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8183. Regenerated test/Makefile.in to remove stale ChangeLog.
  8184. * test/Makefile.in
  8185. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8186. Updated po files.
  8187. * po/aria2c.pot
  8188. * po/*.po
  8189. * po/*.gmo
  8190. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8191. Bump up version number to 0.15.0b
  8192. * configure.ac
  8193. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8194. Externalize messages.
  8195. * src/RequestGroupMan.cc
  8196. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  8197. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8198. Use File::exists() instead of File::isFile() to allow non-regular file
  8199. such as block special files.
  8200. * src/AbstractDiskWriter.cc
  8201. * src/MultiDiskWriter.cc
  8202. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8203. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  8204. * src/gai_strerror.h
  8205. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8206. Fixed compile error. Thanks gknauf for the patch.
  8207. * src/asctime_r.c
  8208. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8209. Included asctime_r.h from a2time.h.
  8210. * src/a2time.h
  8211. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8212. Added a message "aria2 doesn't verify signature" to log message when
  8213. signature file is saved.
  8214. * src/RequestGroupMan.cc
  8215. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8216. Added the ability to save signature when download is completed if
  8217. signature is available. The filename of signature file is the path to
  8218. download file followed by ".sig". If it already exists, then signature
  8219. will not be saved.
  8220. * src/RequestGroupMan.cc
  8221. * src/Signature.cc
  8222. * test/SignatureTest.cc
  8223. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8224. Updated the descriptions for --bt-seed-unverified.
  8225. * doc/aria2c.1
  8226. * doc/aria2c.1.html
  8227. * doc/aria2c.1.txt
  8228. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8229. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  8230. that this is not going to verify files using piece hashes.
  8231. * src/HelpItemFactory.cc
  8232. * src/OptionHandlerFactory.cc
  8233. * src/RequestGroup.cc
  8234. * src/option_processing.cc
  8235. * src/prefs.cc
  8236. * src/prefs.h
  8237. * src/usage_text.h
  8238. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8239. Added the ability to retrieve signature from Metalink file.
  8240. A retrieved signature is stored in Signature class and it is held by
  8241. DownloadContext class. Note that aria2 doesn't verify signature.
  8242. * src/DownloadContext.cc
  8243. * src/DownloadContext.h
  8244. * src/Makefile.am
  8245. * src/Makefile.in
  8246. * src/Metalink2RequestGroup.cc
  8247. * src/MetalinkEntry.cc
  8248. * src/MetalinkEntry.h
  8249. * src/MetalinkParserController.cc
  8250. * src/MetalinkParserController.h
  8251. * src/MetalinkParserStateMachine.cc
  8252. * src/MetalinkParserStateMachine.h
  8253. * src/Signature.cc
  8254. * src/Signature.h
  8255. * src/SignatureMetalinkParserState.cc
  8256. * src/SignatureMetalinkParserState.h
  8257. * src/VerificationMetalinkParserState.cc
  8258. * src/VerificationMetalinkParserState.h
  8259. * test/Metalink2RequestGroupTest.cc
  8260. * test/MetalinkParserControllerTest.cc
  8261. * test/MetalinkProcessorTest.cc
  8262. * test/test.xml
  8263. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8264. Close DiskAdaptor after renaming file.
  8265. * src/RequestGroup.cc
  8266. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8267. Corrected indentation
  8268. * src/DefaultBtProgressInfoFile.cc
  8269. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8270. Moved the calls of std::ios::exceptions() inside of try-catch block
  8271. because if an error occurred in constructor of std::fstream, then
  8272. exception is thrown immediately when std::ios::exceptions() is called
  8273. which results unhandled exception and aria2c aborts.
  8274. * src/DefaultBtProgressInfoFile.cc
  8275. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8276. Added the test for the previous change in DefaultBtContext.cc
  8277. * test/DefaultBtContextTest.cc
  8278. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8279. Fixed the bug that causes infinite loop when the number of pieces are
  8280. fewer than allowed fast set size which is 10 by default.
  8281. * src/DefaultBtContext.cc
  8282. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8283. Updated the descriptions for -j, -s. Added --bt-seed.
  8284. * doc/aria2c.1
  8285. * doc/aria2c.1.html
  8286. * doc/aria2c.1.txt
  8287. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8288. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  8289. aria2 seeds previously downloaded files without validating piece hashs.
  8290. * src/HelpItemFactory.cc
  8291. * src/OptionHandlerFactory.cc
  8292. * src/RequestGroup.cc
  8293. * src/option_processing.cc
  8294. * src/prefs.cc
  8295. * src/prefs.h
  8296. * src/usage_text.h
  8297. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8298. Updated DESCRIPTION of man page.
  8299. * doc/aria2c.1
  8300. * doc/aria2c.1.html
  8301. * doc/aria2c.1.txt
  8302. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8303. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  8304. Don't define `struct addrinfo' when __sun is defined.
  8305. * src/getaddrinfo.h
  8306. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8307. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  8308. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  8309. second argument is of type `struct _stati64'. Otherwise it is defined as
  8310. `struct stat'.
  8311. * src/AbstractDiskWriter.cc
  8312. * src/File.cc
  8313. * src/File.h
  8314. * src/a2io.h
  8315. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8316. Fixed the compile error in hurd-i386
  8317. See the original bug report:
  8318. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  8319. * src/a2io.h
  8320. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8321. Code cleanup.
  8322. * src/PeerAbstractCommand.cc
  8323. * src/PeerAbstractCommand.h
  8324. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8325. Removed TransferEncoding.
  8326. * src/DownloadCommand.cc
  8327. * src/DownloadCommand.h
  8328. * src/HttpResponseCommand.cc
  8329. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8330. Updated po files.
  8331. * po/aria2c.pot
  8332. * po/*.po
  8333. * po/*.gmo
  8334. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8335. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  8336. * src/A2STR.cc
  8337. * src/A2STR.h
  8338. * src/ChunkedDecoder.cc
  8339. * src/ChunkedDecoder.h
  8340. * src/ChunkedEncoding.cc: Removed
  8341. * src/ChunkedEncoding.h: Removed
  8342. * src/DownloadCommand.cc
  8343. * src/DownloadCommand.h
  8344. * src/HttpDownloadCommand.cc
  8345. * src/HttpResponse.cc
  8346. * src/HttpResponse.h
  8347. * src/HttpResponseCommand.cc
  8348. * src/HttpSkipResponseCommand.cc
  8349. * src/HttpSkipResponseCommand.h
  8350. * src/Makefile.am
  8351. * src/TransferEncoding.h: Removed
  8352. * test/ChunkedDecoderTest.cc
  8353. * test/ChunkedEncodingTest.cc: Removed
  8354. * test/HttpResponseTest.cc
  8355. * test/Makefile.am
  8356. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8357. Use append instead of insert.
  8358. * src/GZipDecoder.cc
  8359. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8360. Updated doc
  8361. * src/Decoder.h
  8362. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8363. Updated usage text for -s option.
  8364. * src/usage_text.h
  8365. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8366. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  8367. * src/Request.cc
  8368. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8369. Cleaned up configure.ac.
  8370. * configure.ac
  8371. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8372. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  8373. AC_ARG_ENABLE.
  8374. * configure.ac
  8375. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8376. Added gzip, deflate decoding support in HTTP using libz. If compiled
  8377. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  8378. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  8379. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  8380. fly and writes decoded data to a local disk.
  8381. * README
  8382. * README.html
  8383. * configure.ac
  8384. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  8385. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  8386. * m4/libz.m4
  8387. * src/Decoder.h
  8388. * src/DownloadCommand.cc
  8389. * src/DownloadCommand.h
  8390. * src/Exception.h
  8391. * src/GZipDecoder.cc
  8392. * src/GZipDecoder.h
  8393. * src/HttpHeader.cc
  8394. * src/HttpHeader.h
  8395. * src/HttpRequest.cc
  8396. * src/HttpRequest.h
  8397. * src/HttpResponse.cc
  8398. * src/HttpResponse.h
  8399. * src/HttpResponseCommand.cc
  8400. * src/Makefile.am
  8401. * test/GZipDecoderTest.cc
  8402. * test/HttpRequestTest.cc
  8403. * test/HttpResponseTest.cc
  8404. * test/Makefile.am
  8405. * test/Makefile.in
  8406. * test/gzip_decode_test.gz
  8407. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8408. Clarified usage of -j option.
  8409. * src/usage_text.h
  8410. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8411. Disabled getting size from the response of RETR.
  8412. If SIZE command failed, then disable resuming and segmented downloading.
  8413. * src/FtpConnection.cc
  8414. * src/FtpConnection.h
  8415. * src/FtpNegotiationCommand.cc
  8416. * src/FtpNegotiationCommand.h
  8417. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8418. Use digits to find first byte of file size, which makes the intention
  8419. of the code clearer.
  8420. * src/FtpConnection.cc
  8421. Don't call validateTotalLength() when size is 0.
  8422. * src/FtpNegotiationCommand.cc
  8423. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8424. Updated po files.
  8425. * po/aria2c.pot
  8426. * po/*.gmo
  8427. * po/*.po
  8428. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8429. Clarified usage text for --split option.
  8430. * src/usage_text.h
  8431. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8432. Bump up version number to 0.15.0dev. "dev" means "development"
  8433. version, which means I started the development of the next release!
  8434. * src/configure.ac
  8435. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8436. If FTP server returns negative response with REST raw command and
  8437. requested range is not 0, throw exception. If requested range is 0,
  8438. continue download a file from 0 byte.
  8439. * src/FtpNegotiationCommand.cc
  8440. * src/FtpNegotiationCommand.h
  8441. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8442. Supported FTP server which don't recognize SIZE raw command.
  8443. If SIZE raw command is failed, aria2 will try to get file size
  8444. from the response of RETR raw command. If both attempts are failed,
  8445. then resuming and segmented downloading are disabled.
  8446. * src/FtpConnection.cc
  8447. * src/FtpConnection.h
  8448. * src/FtpNegotiationCommand.cc
  8449. * src/FtpNegotiationCommand.h
  8450. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8451. * Release 0.14.0+1
  8452. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8453. Bump up version number to 0.14.0+1
  8454. * src/configure.ac
  8455. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8456. Fixed the code that refers static member variable from non-static
  8457. context.
  8458. * src/DefaultPeerStorage.cc
  8459. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8460. * Release 0.14.0
  8461. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8462. Added build test script
  8463. * build_test.sh
  8464. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8465. Updated ja.po
  8466. * src/ja.po
  8467. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8468. Bump up version number to 0.14.0
  8469. * src/configure.ac
  8470. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8471. Updated ja.po and fr.po. Great thanks for french translators and
  8472. Sebastien WILLEMIJNS.
  8473. * po/fr.po
  8474. * po/ja.po
  8475. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8476. Added configure option to enable/disable epoll support.
  8477. * configure.ac
  8478. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8479. Updated man page.
  8480. * doc/aria2c.1.txt
  8481. * doc/aria2c.1
  8482. * doc/aria2c.1.html
  8483. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8484. Added missing default value '5' to the usage of --split option.
  8485. * src/HelpItemFactory.cc
  8486. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8487. Filled up pieces based on the number of missing blocks, rather than
  8488. simplay the number of piece * block length.
  8489. * src/BtRequestFactory.h
  8490. * src/DefaultBtInteractive.cc
  8491. * src/DefaultBtInteractive.h
  8492. * src/DefaultBtRequestFactory.cc
  8493. * src/DefaultBtRequestFactory.h
  8494. * src/Piece.cc
  8495. * src/Piece.h
  8496. * test/BitfieldManTest.cc
  8497. * test/DefaultBtRequestFactoryTest.cc
  8498. * test/MockBtRequestFactory.h
  8499. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8500. Made _epEvents a member variable.
  8501. * src/DownloadEngine.cc
  8502. * src/DownloadEngine.h
  8503. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8504. Cancel download if http redirect is bounded more than 20 times.
  8505. * src/AbstractCommand.cc
  8506. * src/HttpSkipResponseCommand.cc
  8507. * src/Request.cc
  8508. * src/Request.h
  8509. * test/RequestTest.cc
  8510. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8511. Fixed unhandled exception(removed keyword `new').
  8512. * src/SocketCore.cc (initEPOLL)
  8513. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8514. Removed visit(const MetaEntry*)
  8515. * src/MetaEntryVisitor.h:
  8516. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  8517. and made them virtual.
  8518. * src/BencodeVisitor.h
  8519. * src/BencodeVisitor.cc
  8520. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8521. Updated po files.
  8522. * po/aria2c.pot
  8523. * po/*.po
  8524. * po/*.gmo
  8525. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8526. Moved the call setWriteCheckSocket inside the previous clause to reduce
  8527. the number of socket to watch out.
  8528. * src/PeerInteractionCommand.cc
  8529. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8530. When there is not enough space in disk when writing a chunk of data,
  8531. aria2 now prints the message to the console to warn user and aborts
  8532. its download. Not all downloads are canceled because some downloads
  8533. may use another disk or partition. BUG#1640332
  8534. * src/AbstractDiskWriter.cc
  8535. * src/PeerAbstractCommand.cc
  8536. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  8537. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  8538. setHaltRequested(true) to cancel download.
  8539. * src/PeerInteractionCommand.h
  8540. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8541. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  8542. socket from int to sock_t as sockets are unsigned in Windows.
  8543. For AsyncNameResolver, DownloadEngine, I did additional modification
  8544. for the portion of the code changed according to epoll support.
  8545. I defined sock_t in a2netcompat.h to use sock_t without including
  8546. SocketCore.h.
  8547. * src/AsyncNameResolver.cc
  8548. * src/AsyncNameResolver.h
  8549. * src/DownloadEngine.cc
  8550. * src/DownloadEngine.h
  8551. * src/SocketCore.cc
  8552. * src/SocketCore.h
  8553. * src/a2netcompat.h
  8554. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8555. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  8556. changes in the patch were applied.
  8557. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  8558. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  8559. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  8560. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8561. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  8562. a2io.h and common.h were modified.
  8563. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  8564. MinGW.
  8565. * src/common.h: Changed off_t to 64 bit in MinGW.
  8566. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8567. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8568. only a2netcompat.h is modified.
  8569. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  8570. directives.
  8571. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8572. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8573. only gai_strerror.h is modified.
  8574. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  8575. winsock errors in MinGW.
  8576. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8577. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  8578. follow sources are applied.
  8579. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  8580. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  8581. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  8582. I included locale.h from Platform.cc.
  8583. * src/main.cc: Moved common setup/teardown code to Platform class.
  8584. * test/AllTest.cc: Use Platform class.
  8585. Set locale to C in AllTest.cc to prevent the messages to be localized.
  8586. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8587. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  8588. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  8589. * test/HttpRequestTest.cc: Casted to off_t where it should.
  8590. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8591. Applied Ross's aria2-0.13.2+1-mingw.patch and
  8592. aria2-0.13.2+1-mingw-2.patch.
  8593. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  8594. systems which don't have termious.h. I moved the directive inside of
  8595. if(isTTY) { ... clause so that line is wiped out without termious.h.
  8596. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  8597. anyway.
  8598. * src/asctime_r.h
  8599. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  8600. I added 2nd argument to the prototype declaration.
  8601. * src/StringFormat.cc: Get rid of vasprintf.
  8602. * src/getaddrinfo.h: Fixed constants.
  8603. * configure.ac: Added the check for asctime_r function.
  8604. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  8605. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8606. Added writable test for Socket when the sending message is in progress.
  8607. Usually the sending message is piece message. Without wriable check,
  8608. upload latency is dropped to more than 1sec.
  8609. * src/PeerInteractionCommand.cc
  8610. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8611. Create only requested files and files which shares a piece with
  8612. requested file in multi-torrent downloads. Directory structures are
  8613. also created in the same rule.
  8614. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  8615. DiskWriterEntry as in the previous implementation.
  8616. * src/MultiDiskWriter.cc
  8617. * src/MultiFileAllocationIterator.cc
  8618. * src/MultiFileAllocationIterator.h
  8619. * test/MultiFileAllocationIteratorTest.cc
  8620. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8621. Commented out -lprofiler
  8622. * src/Makefile.am
  8623. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8624. Bump up version number to 0.14.0b.
  8625. * src/configure.ac
  8626. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8627. Actively establish connection to peers in seeding, when peer cache
  8628. is not full and max upload speed limit is not reached.
  8629. * src/ActivePeerConnectionCommand.cc
  8630. * src/ActivePeerConnectionCommand.h
  8631. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8632. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  8633. to make room more fleshy, recently found peers.
  8634. Peer::_badConditionStartTime is not used anymore. Consider to remove
  8635. it.
  8636. * src/DefaultPeerStorage.cc
  8637. * test/DefaultPeerStorageTest.cc
  8638. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8639. Returns cached data only when the previous receiveHandshake() is called
  8640. with peek = true.
  8641. * src/PeerConnection.cc (receiveHandshake)
  8642. * src/PeerConnection.h (receiveHandshake)
  8643. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8644. Changed default value of -s option from 1 to 5.
  8645. Also max value of -s option is changed from 5 to 16.
  8646. * src/HelpItemFactory.cc
  8647. * src/OptionHandlerFactory.cc
  8648. * src/option_processing.cc
  8649. * src/usage_text.h
  8650. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8651. Changed -s options behavior. Now it means the number of connections
  8652. made simultaneously in each http/ftp download.
  8653. If 1 URL is specified, the behavior is the same with old implementation.
  8654. If -s N is given and more than N URLs are specified, first N URLs are
  8655. used and remaining URLs are used for backup. If less than N URLs are
  8656. specified, some of URLs are used more than once so that totally N
  8657. connections are made simultaneously.
  8658. * src/main.cc
  8659. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8660. Included missing iosfwd or ostream header.
  8661. * src/RequestGroupMan.cc
  8662. * src/TaggedItem.cc
  8663. * src/TaggedItem.h
  8664. * src/Util.cc
  8665. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8666. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  8667. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  8668. * src/HttpConnection.cc: Included missing sstream.
  8669. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8670. Added --bt-max-open-files option.
  8671. * src/DefaultPieceStorage.cc
  8672. * src/HelpItemFactory.cc
  8673. * src/MultiDiskAdaptor.cc
  8674. * src/MultiDiskAdaptor.h
  8675. * src/OptionHandlerFactory.cc
  8676. * src/option_processing.cc
  8677. * src/prefs.cc
  8678. * src/prefs.h
  8679. * src/usage_text.h
  8680. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8681. Fixed the bug that aria2 aborts when a path to a directory is given
  8682. in command-line.
  8683. * src/ProtocolDetector.cc
  8684. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8685. Limited the number files opened in each BitTorrent download. The default
  8686. value is 100. The option to change this value will be added.
  8687. * src/MultiDiskAdaptor.cc
  8688. * src/MultiDiskAdaptor.h
  8689. * src/MultiFileAllocationIterator.cc
  8690. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8691. Fixed the bug that HTTP downloads don't start with old libraries.
  8692. * src/HttpHeaderProcessor.cc
  8693. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8694. Use empty() instead of size() > 0.
  8695. * src/HttpConnection.cc
  8696. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8697. Drop connection if the incoming peer ID is the same with localhost's
  8698. one. The previous implementation drops connection when incoming peer's
  8699. IP address is the same with localhost's one.
  8700. * src/PeerListenCommand.cc
  8701. * src/DefaultBtInteractive.cc
  8702. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8703. Returns cached data without checking whether socket is readable
  8704. if the cache is available.
  8705. * src/PeerConnection.cc (receiveHandshake)
  8706. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8707. Included stdint.h
  8708. * src/common.h
  8709. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8710. Removed duplicate HAVE_GETTIMEOFDAY
  8711. * src/Makefile.am
  8712. * src/Makefile.in
  8713. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8714. Use interval as a minInterval when minInterval is not supplied.
  8715. * src/DefaultBtAnnounce.cc
  8716. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8717. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  8718. attempt is failed, then 2nd attempt get kicked out more quickly.
  8719. And it is now static const member of DefaultBtAnnounce.
  8720. * src/DefaultBtAnnounce.h
  8721. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8722. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  8723. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  8724. * src/ActivePeerConnectionCommand.cc
  8725. * src/BtConstants.h
  8726. * src/BtRuntime.h
  8727. * src/DHTGetPeersCommand.cc
  8728. * src/DefaultBtAnnounce.cc
  8729. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  8730. BtRuntime::MAX_PEERS.
  8731. * src/DefaultPeerStorage.h
  8732. * src/InitiatorMSEHandshakeCommand.cc
  8733. * src/PeerInitiateConnectionCommand.cc
  8734. * src/PeerInteractionCommand.cc
  8735. * src/PeerReceiveHandshakeCommand.cc
  8736. * src/TrackerWatcherCommand.cc
  8737. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8738. Always Connect to _numNewConnection
  8739. * src/ActivePeerConnectionCommand.cc
  8740. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8741. Made `begin' unsigned int.
  8742. * src/GrowSegment.h
  8743. * src/Piece.cc
  8744. * src/Piece.h
  8745. * src/PiecedSegment.cc
  8746. * src/PiecedSegment.h
  8747. * src/Segment.h
  8748. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8749. Calculate piece hash when data is arrived if the data is arrived in
  8750. order. This removes additional read operation for hash calculation.
  8751. If the data is arrived in out of order, the hash is calucated when the
  8752. piece is completed. This is the same behavior as the old implementation.
  8753. * src/BtPieceMessage.cc
  8754. * src/DefaultBtProgressInfoFile.cc
  8755. * src/DefaultPieceStorage.cc
  8756. * src/DownloadCommand.cc
  8757. * src/DownloadCommand.h
  8758. * src/DownloadEngine.cc
  8759. * src/GrowSegment.cc
  8760. * src/GrowSegment.h
  8761. * src/Piece.cc
  8762. * src/Piece.h
  8763. * src/PiecedSegment.cc
  8764. * src/PiecedSegment.h
  8765. * src/Segment.h
  8766. * test/PieceTest.cc
  8767. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8768. Try to keep the ordering of outgoing piece message.
  8769. * src/DefaultBtMessageDispatcher.cc
  8770. (DefaultBtMessageDispatcher::sendMessages)
  8771. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8772. Fixed busy loop when error/hup epoll events occur.
  8773. * src/AbstractCommand.cc
  8774. * src/PeerAbstractCommand.cc
  8775. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8776. Added --bt-request-peer-speed-limit option, which was a constant
  8777. SLOW_SPEED_THRESHOLD.
  8778. * src/ActivePeerConnectionCommand.cc
  8779. * src/ActivePeerConnectionCommand.h
  8780. * src/BtConstants.h
  8781. * src/HelpItemFactory.cc
  8782. * src/OptionHandlerFactory.cc
  8783. * src/PeerReceiveHandshakeCommand.cc
  8784. * src/option_processing.cc
  8785. * src/prefs.cc
  8786. * src/prefs.h
  8787. * src/usage_text.h
  8788. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8789. Removed repeated call of getTopDirPath(). Instead, call it once and
  8790. cache the result.
  8791. * src/MultiDiskAdaptor.cc
  8792. * src/MultiDiskAdaptor.h
  8793. (mkdir, openFile, initAndOpenFile, openExistingFile)
  8794. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8795. Fixed compile error on debian etch.
  8796. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  8797. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  8798. it is undefined.
  8799. * src/Util.cc (ULLONG_MAX)
  8800. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8801. Added epoll support. Use epoll if it is available. If not, use select.
  8802. When async dns is enabled in compile time, epoll support is enabled
  8803. only when aria2 is built with c-ares. This condition statement is
  8804. defined in a2io.h.
  8805. Currently aria2 supports both c-ares and ares, but ares is maintained
  8806. for quite a while and debian already has c-ares package, ares support
  8807. will be dropped in the future version.
  8808. * configure.ac
  8809. * src/AbstractCommand.cc
  8810. * src/AsyncNameResolver.cc
  8811. * src/AsyncNameResolver.h
  8812. * src/Command.cc
  8813. * src/Command.h
  8814. * src/DownloadEngine.cc
  8815. * src/DownloadEngine.h
  8816. * src/PeerAbstractCommand.cc
  8817. * src/SocketCore.cc
  8818. * src/SocketCore.h
  8819. * src/a2io.h
  8820. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8821. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  8822. directive.
  8823. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8824. Do not do write operation to /dev/null file.
  8825. * src/LogFactory.cc
  8826. * src/SimpleLogger.cc
  8827. Replaced vasprintf with vsnprintf
  8828. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  8829. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8830. * src/BtRequestMessage.cc
  8831. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  8832. for segmentation fault caused by previous commit.
  8833. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8834. Reduced the usage of gettimeofday().
  8835. * src/DefaultBtMessageDispatcher.cc
  8836. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  8837. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  8838. * src/RequestSlot.cc
  8839. * src/RequestSlot.h
  8840. (RequestSlot::isTimeout)
  8841. Made RequestSlot have a reference to Piece object to avoid find
  8842. Piece repeatedly.
  8843. * src/DefaultBtMessageDispatcher.cc
  8844. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  8845. * src/RequestSlot.cc
  8846. * src/RequestSlot.h
  8847. (RequestSlot::getPiece)
  8848. * test/DefaultBtMessageDispatcherTest.cc
  8849. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8850. * src/TimeA2.cc
  8851. * src/TimeA2.h
  8852. (Time::difference): New function.
  8853. (Time::elapsed): Done optimization.
  8854. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8855. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  8856. directive.
  8857. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8858. * src/option_processing.cc: Added missing `defined' keyword to #if
  8859. directive.
  8860. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8861. Bump up version number to 0.13.2+1
  8862. * src/configure.ac
  8863. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8864. Refactored broken outstanding piece handling.
  8865. * src/DefaultPieceStorage.cc
  8866. * src/DefaultPieceStorage.h
  8867. * src/Piece.cc
  8868. * src/Piece.h
  8869. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8870. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  8871. name collision of static variable and predefined macro.
  8872. * src/BtContext.cc
  8873. * src/BtContext.h
  8874. * src/CookieBoxFactory.cc
  8875. * src/CookieBoxFactory.h
  8876. * src/CookieParser.cc
  8877. * src/CookieParser.h
  8878. * src/DefaultBtContext.cc
  8879. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8880. * src/RequestGroup.cc
  8881. (RequestGroup::createInitialCommand): Use empty() instead of size().
  8882. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8883. * Release 0.13.2
  8884. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8885. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  8886. * po/fr.po
  8887. * po/ja.po
  8888. * po/aria2c.pot
  8889. * po/*.po
  8890. * po/*.gmo
  8891. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8892. Bump up version number to 0.13.2
  8893. * src/configure.ac
  8894. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8895. Refactord.
  8896. * src/RequestGroupMan.cc
  8897. (removeStoppedGroup)
  8898. (fillRequestGroupFromReserver)
  8899. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8900. Fixed compile error on Ubuntu.
  8901. * src/BtPieceMessage.cc
  8902. * src/MessageDigestHelper.cc
  8903. * src/Util.cc
  8904. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8905. Fixed compile error when configured with --disable-bittorrent
  8906. * test/DownloadHandlerFactoryTest.cc
  8907. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8908. Done make update-po
  8909. * po/aria2c.pot
  8910. * po/*.po
  8911. * po/*.gmo
  8912. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8913. Bump up version number to 0.13.2rc.
  8914. * src/configure.ac
  8915. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8916. Made option name bold. Updated SYNOPSIS to make it more readable.
  8917. * doc/aria2c.1.txt
  8918. * doc/aria2c.1
  8919. * doc/aria2c.1.html
  8920. * src/version_usage.cc
  8921. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8922. Refactored. Use std::string instead of size and char*.
  8923. * Data.cc
  8924. * Data.h
  8925. * test/Data.cc
  8926. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8927. Added trimSelf(). Rewritten trim() to use trimSelf().
  8928. * Util.cc
  8929. * Util.h
  8930. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8931. * src/ChunkChecksum.h (getChecksum): Return const reference.
  8932. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8933. Fixed compile error when configured with --disable-metalink.
  8934. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  8935. * test/FeatureConfigTest.cc
  8936. * test/DownloadHandlerFactoryTest.cc
  8937. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8938. Fixed compile error when configured with --without-gnutls
  8939. --without-openssl
  8940. * src/main.cc
  8941. * test/DefaultBtProgressInfoFileTest.cc
  8942. * test/SegmentManTest.cc
  8943. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8944. Fixed compile error with OpenSSL.
  8945. * src/IteratableChunkChecksumValidator.cc
  8946. * src/LibsslDHKeyExchange.h
  8947. * src/MessageDigestHelper.cc
  8948. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8949. Revert the default value of --max-concurrent-downloads to 5.
  8950. Revert the default value of --metalink-servers to 5.
  8951. Man pages was also updated.
  8952. * src/option_processing.cc
  8953. * doc/aria2c.1.txt
  8954. * doc/aria2c.1.html
  8955. * doc/aria2c.1
  8956. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8957. Returns const reference:
  8958. DownloadContext::getPieceHash, DownloadContext::getName,
  8959. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  8960. BtContext::getInfoHashAsString,
  8961. * src/BtContext.h
  8962. * src/DefaultBtContext.cc
  8963. * src/DefaultBtContext.h
  8964. * src/DownloadContext.h
  8965. * src/SingleFileDownloadContext.h
  8966. * test/MockBtContext.h
  8967. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8968. * src/RequestGroup.h (getDir): Removed.
  8969. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8970. Returns const reference. The internal urlencode function was optimized
  8971. a little bit.
  8972. * src/Request.cc
  8973. * src/Request.h
  8974. * src/HttpRequest.cc
  8975. * src/HttpRequest.h
  8976. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8977. Defined option name and possible values as std::string to reduce
  8978. temporary string object creation in runtime.
  8979. * src/HelpItemFactory.cc
  8980. * src/LogFactory.cc
  8981. * src/Option.cc
  8982. * src/OptionHandlerFactory.cc
  8983. * src/option_processing.cc
  8984. * src/prefs.cc
  8985. * src/prefs.h
  8986. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8987. Return const reference.
  8988. * src/DownloadHandlerConstants.cc
  8989. * src/DownloadHandlerConstants.h
  8990. (getMetalinkExtensions)
  8991. (getMetalinkContentTypes)
  8992. (getBtExtensions)
  8993. (getBtContentTypes)
  8994. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8995. * src/HttpHeader.cc (get): Rewritten.
  8996. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8997. Make HttpHeader::getFirst(...) return const reference.
  8998. * src/HttpHeader.cc
  8999. * src/HttpHeader.h
  9000. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9001. Use Option::getAsBool(...) instead of Option::get(...) and compare
  9002. it with V_TRUE.
  9003. * src/DefaultPieceStorage.cc
  9004. * src/DownloadCommand.cc
  9005. * src/FtpNegotiationCommand.cc
  9006. * src/HttpRequest.cc
  9007. * src/InitiateConnectionCommand.cc
  9008. * src/RequestGroup.cc
  9009. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9010. Made Option::get(...) return const reference of std::string.
  9011. * src/Option.cc
  9012. * src/Option.h
  9013. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9014. Replaced std:copy with insert.
  9015. * src/DefaultBtMessageDispatcher.cc
  9016. * src/DefaultPieceStorage.cc
  9017. * src/DownloadEngineFactory.cc
  9018. * src/RequestGroup.cc
  9019. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9020. Included SocketCore.h to fix compiler warning.
  9021. * src/InitiateConnectionCommand.cc
  9022. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9023. Put piece selection strategy algorithm to RarestPieceSelector class,
  9024. Added a switch to choose whether randomized selection so that unit
  9025. tests emit same results in, possibly, win32.
  9026. * src/DefaultPieceStorage.cc
  9027. * src/DefaultPieceStorage.h
  9028. * src/RarestPieceSelector.cc
  9029. * src/RarestPieceSelector.h
  9030. * test/DefaultPieceStorageTest.cc
  9031. * test/RarestPieceSelectorTest.cc
  9032. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9033. Don't pool connection if HTTP proxy is enabled.
  9034. * src/FtpFinishDownloadCommand.cc
  9035. * src/FtpNegotiationCommand.cc
  9036. * src/HttpSkipResponseCommand.cc
  9037. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9038. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  9039. * src/AbstractCommand.cc
  9040. * src/AbstractCommand.h
  9041. * src/ActivePeerConnectionCommand.cc
  9042. * src/FtpInitiateConnectionCommand.cc
  9043. * src/HttpInitiateConnectionCommand.cc
  9044. * src/InitiateConnectionCommandFactory.cc
  9045. * src/PeerAbstractCommand.cc
  9046. * src/PeerAbstractCommand.h
  9047. * src/PeerInitiateConnectionCommand.cc
  9048. * src/TrackerWatcherCommand.cc
  9049. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9050. Sort RequestSlot in ascending order and manipulate them using
  9051. lower_bound.
  9052. * src/DefaultBtMessageDispatcher.cc
  9053. * src/DefaultBtMessageDispatcher.h
  9054. (getMessageQueue): Added const qualifier.
  9055. (getRequestSlots): Added const qualifier.
  9056. (sendMessages): Use empty() instead of size().
  9057. (doCancelSendingPieceAction): Use HandleEvent object.
  9058. (doAbortOutstandingRequestAction): Rewritten.
  9059. (doChokedAction): Rewritten.
  9060. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  9061. (isOutstandingRequest): Rewritten.
  9062. (getOutstandingRequest): Rewritten.
  9063. (removeOutstandingRequest): Rewritten.
  9064. (addOutstandingRequest): Rewritten.
  9065. * src/RequestSlot.cc
  9066. * src/RequestSlot.h
  9067. (operator=): Rewritten.
  9068. (operator!=): New function.
  9069. (operator<): New function.
  9070. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9071. * src/DefaultBtRequestFactory.cc
  9072. (doChokedAction): Rewritten.
  9073. (removeCompletedPiece): Rewritten.
  9074. (removeTargetPiece): Rewritten.
  9075. (createRequestMessages): Added the debug log.
  9076. (createRequestMessagesOnEndGame: Added the debug log.
  9077. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9078. Added the debug log message.
  9079. * src/BtPieceMessage.cc (doReceivedAction)
  9080. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9081. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  9082. used lower_bound to process them rather than linear search.
  9083. * src/DHTPeerAnnounceStorage.cc
  9084. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9085. Call subtractPieceStats from ~PeerInteractionCommand only when the
  9086. peer has at least one completed piece.
  9087. * src/Peer.cc
  9088. * src/Peer.h
  9089. * src/PeerInteractionCommand.cc
  9090. * src/PeerSessionResource.cc
  9091. * src/PeerSessionResource.h
  9092. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9093. Removed unnecessary sorting
  9094. * src/DefaultPieceStorage (DefaultPieceStorage)
  9095. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9096. Rewritten the portion of the code that mangaes allowed fast indexes.
  9097. * src/PeerSessionResource.cc
  9098. * src/PeerSessionResource.h
  9099. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9100. Removed the invalid string including '\r' from ru.po and
  9101. did make update-po.
  9102. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9103. Added --log-level and --summary-interval to man page.
  9104. * doc/aria2c.1.txt
  9105. * doc/aria2c.1.html
  9106. * doc/aria2c.1
  9107. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9108. Added --log-level option to specify log level. Log messages under
  9109. the specified level are not output. Default value is `debug'.
  9110. * src/HelpItemFactory.cc
  9111. * src/LogFactory.cc
  9112. * src/LogFactory.h
  9113. * src/Logger.h
  9114. * src/OptionHandlerFactory.cc
  9115. * src/SimpleLogger.cc
  9116. * src/SimpleLogger.h
  9117. * src/main.cc
  9118. * src/option_processing.cc
  9119. * src/prefs.h
  9120. * src/usage_text.h
  9121. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9122. Print download progress summary of all parallel downloads in specified
  9123. interval, default 60 secs. While aria2 could download several files
  9124. in parallel (see -j option), it displayed just first download progress,
  9125. and the other downloads are hidden from the users. This new feature
  9126. prints all downloads currently in-progress to the console so that you
  9127. can check the status of all downloads. The interval can be adjusted
  9128. by --summary-interval option.
  9129. The progress readout is now cut so that all fits in the one line of
  9130. console.
  9131. * src/ConsoleStatCalc.cc
  9132. * src/ConsoleStatCalc.h
  9133. * src/HelpItemFactory.cc
  9134. * src/OptionHandlerFactory.cc
  9135. * src/RequestGroupMan.cc
  9136. * src/RequestGroupMan.h
  9137. * src/main.cc
  9138. * src/option_processing.cc
  9139. * src/prefs.h
  9140. * src/usage_text.h
  9141. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9142. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  9143. * src/DownloadEngine.cc (DownloadEngine)
  9144. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9145. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  9146. defined.
  9147. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  9148. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9149. Use erase+lower_bound+insert instead of sort.
  9150. * src/DefaultPieceStorage.cc (addPieceStats)
  9151. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9152. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  9153. * src/A2STR.cc
  9154. * src/A2STR.h
  9155. * src/OptionParser.cc (parse)
  9156. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9157. Defined fake filename `[tracker.announce]' as static const std::string.
  9158. * src/TrackerWatcherCommand.cc (createRequestGroup)
  9159. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9160. Defined default filename `index.html' as static const std::string
  9161. * src/SingleFileDownloadContext.cc
  9162. * src/SingleFileDownloadContext.h
  9163. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9164. Defined "[MEMORY]" as static const std::string.
  9165. * src/MemoryBufferPreDownloadHandler.cc (execute)
  9166. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9167. Defined control file's version number as static const std::string.
  9168. * src/DefaultBtProgressInfoFile.cc
  9169. * src/DefaultBtProgressInfoFile.h
  9170. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9171. Use Request::METHOD_GET
  9172. * src/RequestGroup.cc (createNextCommandWithAdj)
  9173. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9174. Defined "OK", "ERR", "INPR" as static const std::string
  9175. * src/RequestGroupMan.cc (showDownloadResults)
  9176. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9177. Defined default client used in extended handshake as static const
  9178. std::string
  9179. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  9180. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9181. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  9182. * src/HttpConnection.cc (eraseConfidentialInfo)
  9183. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9184. Defined default ftp user and password as static const std::string
  9185. * src/AuthConfigFactory.cc
  9186. * src/AuthConfigFactory.h
  9187. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9188. Defined strings used in netrc as static const std::string
  9189. * src/Netrc.cc
  9190. * src/Netrc.h
  9191. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9192. Defined HTTP status as static const std::string
  9193. * src/AbstractProxyResponseCommand.cc
  9194. * src/HttpHeader.cc
  9195. * src/HttpHeader.h
  9196. * src/HttpResponse.cc
  9197. * src/HttpResponseCommand.cc
  9198. * src/HttpSkipResponseCommand.cc
  9199. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9200. Defined "\r\n", "A", "I" as static const std::string
  9201. * src/A2STR.cc
  9202. * src/A2STR.h
  9203. * src/FtpConnection.cc
  9204. * src/FtpConnection.h
  9205. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9206. Added COLON_C(".") and used it in Request::parseUrl()
  9207. * src/A2STR.cc
  9208. * src/A2STR.h
  9209. * src/Request.cc (parseUrl)
  9210. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9211. Changed the type of padName from `const std::string&' to `const char*'.
  9212. * src/MSEHandshake.cc (verifyPadLength)
  9213. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9214. Defined "sha1" as static const std::string.
  9215. * src/MetalinkParserController.cc
  9216. * src/MetalinkParserController.h
  9217. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9218. Defined message digest algorithm name as static const std::string
  9219. * src/DHTTokenTracker.cc
  9220. * src/DHTUtil.cc
  9221. * src/DefaultBtContext.cc
  9222. * src/MSEHandshake.cc
  9223. * src/MessageDigestHelper.cc
  9224. * src/Peer.cc
  9225. * src/messageDigest.cc
  9226. * src/messageDigest.h
  9227. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9228. Made string literals used in SAX parser static const std::string.
  9229. * src/FileMetalinkParserState.cc
  9230. * src/FileMetalinkParserState.h
  9231. * src/FilesMetalinkParserState.cc
  9232. * src/FilesMetalinkParserState.h
  9233. * src/InitialMetalinkParserState.cc
  9234. * src/InitialMetalinkParserState.h
  9235. * src/MetalinkMetalinkParserState.cc
  9236. * src/MetalinkMetalinkParserState.h
  9237. * src/PiecesMetalinkParserState.cc
  9238. * src/PiecesMetalinkParserState.h
  9239. * src/ResourcesMetalinkParserState.cc
  9240. * src/ResourcesMetalinkParserState.h
  9241. * src/VerificationMetalinkParserState.cc
  9242. * src/VerificationMetalinkParserState.h
  9243. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9244. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  9245. * src/A2STR.cc
  9246. * src/A2STR.h
  9247. * src/File.cc
  9248. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9249. Defined static const std::string IP("ip"), PORT("port") and use them
  9250. instead of string literals.
  9251. * src/DefaultPeerListProcessor.cc
  9252. * src/DefaultPeerListProcessor.h
  9253. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9254. Made string literals for torrent file processing static const
  9255. std::string.
  9256. * src/BtContext.cc
  9257. * src/BtContext.h
  9258. * src/DefaultBtContext.cc
  9259. * src/DefaultBtContext.h
  9260. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9261. Made string literal for tracker response static const std::string
  9262. * src/BtAnnounce.cc
  9263. * src/BtAnnounce.h
  9264. * src/DefaultBtAnnounce.cc
  9265. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9266. Use DHTMessage::T instead of "t".
  9267. * src/DHTMessageTracker.cc (messageArrived)
  9268. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9269. Made keyName static const. Made trimmed charset static const
  9270. std::string.
  9271. * src/Util.cc (getContentDispositionFilename)
  9272. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9273. Made USER_AGENT const. Made "/" static const std::string.
  9274. * src/A2STR.cc
  9275. * src/A2STR.h
  9276. * src/HttpRequest.cc
  9277. * src/HttpRequest.h
  9278. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9279. Made string listeral to static const std::string:
  9280. "Content-Range", "Content-Length"
  9281. * src/HttpHeader.cc
  9282. * src/HttpHeader.h
  9283. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9284. Made string listeral to static const std::string.
  9285. * src/HttpConnection.cc
  9286. * src/HttpHeader.cc
  9287. * src/HttpHeader.h
  9288. * src/HttpResponse.cc
  9289. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9290. Made string listeral to static const std::string.
  9291. * src/A2STR.cc
  9292. * src/A2STR.h
  9293. * src/SimpleLogger.cc
  9294. * src/SimpleLogger.h
  9295. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9296. Made string literal to static const std::string.
  9297. Rewritten CookieParser::setField.
  9298. * src/A2STR.cc
  9299. * src/A2STR.h
  9300. * src/CookieBoxFactory.cc
  9301. * src/CookieBoxFactory.h
  9302. * src/CookieParser.cc
  9303. * src/CookieParser.h
  9304. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9305. Made string literal to static const std::string
  9306. * src/DHTAbstractMessage.cc
  9307. * src/DHTAnnouncePeerMessage.cc
  9308. * src/DHTAnnouncePeerMessage.h
  9309. * src/DHTAnnouncePeerReplyMessage.cc
  9310. * src/DHTAnnouncePeerReplyMessage.h
  9311. * src/DHTFindNodeMessage.cc
  9312. * src/DHTFindNodeMessage.h
  9313. * src/DHTFindNodeReplyMessage.cc
  9314. * src/DHTFindNodeReplyMessage.h
  9315. * src/DHTGetPeersMessage.cc
  9316. * src/DHTGetPeersMessage.h
  9317. * src/DHTGetPeersReplyMessage.cc
  9318. * src/DHTGetPeersReplyMessage.h
  9319. * src/DHTMessage.cc
  9320. * src/DHTMessage.h
  9321. * src/DHTMessageFactoryImpl.cc
  9322. * src/DHTMessageReceiver.cc
  9323. * src/DHTPingMessage.cc
  9324. * src/DHTPingMessage.h
  9325. * src/DHTPingReplyMessage.cc
  9326. * src/DHTPingReplyMessage.h
  9327. * src/DHTQueryMessage.cc
  9328. * src/DHTQueryMessage.h
  9329. * src/DHTResponseMessage.cc
  9330. * src/DHTResponseMessage.h
  9331. * src/DHTUnknownMessage.cc
  9332. * src/DHTUnknownMessage.h
  9333. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9334. Made string literal to static const std::string
  9335. * src/BtChokeMessage.cc (toString)
  9336. * src/BtHaveAllMessage.cc (toString)
  9337. * src/BtHaveNoneMessage.cc (toString)
  9338. * src/BtInterestedMessage.cc (toString)
  9339. * src/BtNotInterestedMessage.cc (toString)
  9340. * src/BtUnchokeMessage.cc (toString)
  9341. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9342. Replaced "" with static const variable A2STR::NIL.
  9343. Replaced string comparison against "" with std::string::empty().
  9344. Added PROTO_* to Request class and use them as a protocol string
  9345. constant.
  9346. Made "started", "stopped", "completed" static const variable in
  9347. AnnounceList class.
  9348. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9349. Updated translations. Great thanks to translators.
  9350. * po/ca.po
  9351. * po/de.po
  9352. * po/fr.po
  9353. * po/it.po
  9354. * po/ja.po
  9355. * po/ru.po
  9356. * po/zh_CN.po
  9357. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9358. Updated man page; categorized options and fixed typo.
  9359. * doc/aria2c.1.txt
  9360. * doc/aria2c.1.html
  9361. * doc/aria2c.1
  9362. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9363. Removed const ref
  9364. * src/MetalinkEntry.cc (AddProtocolPreference)
  9365. * src/RequestGroup.cc (FindServerHostByHostname)
  9366. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9367. Rewritten Accept-Features handling.
  9368. * src/HttpRequestCommand.cc (createHttpRequest)
  9369. * src/a2functional.h
  9370. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9371. Changed method signature:
  9372. DHTAbstractNodeLookupTask::toEntries
  9373. * src/DHTAbstractNodeLookupTask.cc
  9374. * src/DHTAbstractNodeLookupTask.h
  9375. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9376. Changed method signature:
  9377. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  9378. * src/BtContext.h
  9379. * src/DefaultBtContext.cc
  9380. * src/DefaultBtContext.h
  9381. * src/DefaultBtInteractive.cc
  9382. * test/DefaultBtContextTest.cc
  9383. * test/MockBtContext.h
  9384. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9385. Changed method signature:
  9386. MultiFileAllocationIterator::makeDiskWriterEntries
  9387. * src/MultiFileAllocationIterator.cc
  9388. * src/MultiFileAllocationIterator.h
  9389. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9390. Changed method sinature:
  9391. MetalinkEntry::toFileEntry,
  9392. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  9393. Metalinker::queryEntry
  9394. * src/Metalink2RequestGroup.cc
  9395. * src/MetalinkEntry.cc
  9396. * src/MetalinkEntry.h
  9397. * src/MetalinkHelper.cc
  9398. * src/MetalinkHelper.h
  9399. * src/Metalinker.cc
  9400. * src/Metalinker.h
  9401. * src/main.cc
  9402. * test/MetalinkHelperTest.cc
  9403. * test/MetalinkerTest.cc
  9404. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9405. Changed method sinature:
  9406. RequestGroup::getURIs
  9407. * src/RequestGroup.cc
  9408. * src/RequestGroup.h
  9409. * test/Metalink2RequestGroupTest.cc
  9410. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9411. Changed method signature:
  9412. PeerListProcessor::extractPeer
  9413. * src/CompactPeerListProcessor.cc
  9414. * src/CompactPeerListProcessor.h
  9415. * src/DefaultBtAnnounce.cc
  9416. * src/DefaultPeerListProcessor.cc
  9417. * src/DefaultPeerListProcessor.h
  9418. * src/DelegatingPeerListProcessor.cc
  9419. * src/DelegatingPeerListProcessor.h
  9420. * src/PeerListProcessor.h
  9421. * src/UTPexExtensionMessage.cc
  9422. * test/DefaultPeerListProcessorTest.cc
  9423. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9424. Changed method signature:
  9425. BtRequestFactory::createRequestMessages,
  9426. BtRequestFactory::createRequestMessagesOnEndGame
  9427. * src/BtRequestFactory.h
  9428. * src/DefaultBtInteractive.cc
  9429. * src/DefaultBtRequestFactory.cc
  9430. * src/DefaultBtRequestFactory.h
  9431. * test/DefaultBtRequestFactoryTest.cc
  9432. * test/MockBtRequestFactory.h
  9433. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9434. Changed method signature:
  9435. PieceStorage::getInFlightPieces
  9436. * src/DefaultBtProgressInfoFile.cc
  9437. * src/DefaultPieceStorage.cc
  9438. * src/DefaultPieceStorage.h
  9439. * src/PieceStorage.h
  9440. * src/UnknownLengthPieceStorage.cc
  9441. * src/UnknownLengthPieceStorage.h
  9442. * test/DefaultBtProgressInfoFileTest.cc
  9443. * test/MockPieceStorage.h
  9444. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9445. Changed method signature:
  9446. PostDownloadHandler::getNextRequestGroups
  9447. Metalink2RequestGroup::generate
  9448. RequestGroup::postDownloadProcessing
  9449. * src/BtPostDownloadHandler.cc
  9450. * src/BtPostDownloadHandler.h
  9451. * src/Metalink2RequestGroup.cc
  9452. * src/Metalink2RequestGroup.h
  9453. * src/MetalinkPostDownloadHandler.cc
  9454. * src/MetalinkPostDownloadHandler.h
  9455. * src/PostDownloadHandler.h
  9456. * src/RequestGroup.cc
  9457. * src/RequestGroup.h
  9458. * src/RequestGroupMan.cc
  9459. * src/main.cc
  9460. * test/BtPostDownloadHandlerTest.cc
  9461. * test/Metalink2RequestGroupTest.cc
  9462. * test/MetalinkPostDownloadHandlerTest.cc
  9463. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9464. Rewritten AccRequestGroup
  9465. * src/main.cc
  9466. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9467. Rewritten.
  9468. * src/TaggedItem.cc (toTagString)
  9469. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9470. Rewritten Accept-Features handling.
  9471. * src/HttpRequestCommand.cc (createHttpRequest)
  9472. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9473. Rewritten accept types handling.
  9474. * HttpRequest.cc (createRequest)
  9475. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9476. Rewritten
  9477. * src/FeatureConfig.cc (featureSummary)
  9478. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9479. Changed method signature:
  9480. PeerStorage::getActivePeers
  9481. * src/DHTPeerAnnounceEntry.cc
  9482. * src/DefaultPeerStorage.cc
  9483. * src/DefaultPeerStorage.h
  9484. * src/PeerStorage.h
  9485. * test/DefaultPeerStorageTest.cc
  9486. * test/MockPeerStorage.h
  9487. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9488. Changed method signature:
  9489. DHTPeerAnnounceStorage::getPeers,
  9490. DHTPeerAnnounceEntry::getPeers
  9491. * src/DHTGetPeersMessage.cc
  9492. * src/DHTPeerAnnounceEntry.cc
  9493. * src/DHTPeerAnnounceEntry.h
  9494. * src/DHTPeerAnnounceStorage.cc
  9495. * src/DHTPeerAnnounceStorage.h
  9496. * test/DHTAnnouncePeerMessageTest.cc
  9497. * test/DHTPeerAnnounceEntryTest.cc
  9498. * test/DHTPeerAnnounceStorageTest.cc
  9499. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9500. Changed method signature:
  9501. NameResolver::resolve
  9502. * src/DHTEntryPointNameResolveCommand.cc
  9503. * src/InitiateConnectionCommand.cc
  9504. * src/NameResolver.cc
  9505. * src/NameResolver.h
  9506. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9507. Changed method signature:
  9508. PieceStorage::getAdvertisedPieceIndexes
  9509. * src/DefaultBtInteractive.cc
  9510. * src/DefaultPieceStorage.cc
  9511. * src/DefaultPieceStorage.h
  9512. * src/PieceStorage.h
  9513. * src/UnknownLengthPieceStorage.h
  9514. * test/MockPieceStorage.h
  9515. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9516. Changed method signature:
  9517. SegmentMan::getInFlightSegment
  9518. * src/AbstractCommand.cc
  9519. * src/SegmentMan.cc
  9520. * src/SegmentMan.h
  9521. * test/SegmentManTest.cc
  9522. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9523. Changed method signature:
  9524. DHTAbstractNodeLookupTask::getNodesFromMessage
  9525. * src/DHTAbstractNodeLookupTask.cc
  9526. * src/DHTAbstractNodeLookupTask.h
  9527. * src/DHTNodeLookupTask.cc
  9528. * src/DHTNodeLookupTask.h
  9529. * src/DHTPeerLookupTask.cc
  9530. * src/DHTPeerLookupTask.h
  9531. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9532. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  9533. * src/AbstractCommand.cc
  9534. * src/BtCheckIntegrityEntry.cc
  9535. * src/BtCheckIntegrityEntry.h
  9536. * src/BtFileAllocationEntry.cc
  9537. * src/BtFileAllocationEntry.h
  9538. * src/BtSetup.cc
  9539. * src/BtSetup.h
  9540. * src/CheckIntegrityCommand.cc
  9541. * src/CheckIntegrityEntry.h
  9542. * src/ChecksumCheckIntegrityEntry.cc
  9543. * src/ChecksumCheckIntegrityEntry.h
  9544. * src/DHTSetup.cc
  9545. * src/DHTSetup.h
  9546. * src/DownloadEngine.cc
  9547. * src/FileAllocationCommand.cc
  9548. * src/FileAllocationEntry.h
  9549. * src/RequestGroup.cc
  9550. * src/RequestGroup.h
  9551. * src/RequestGroupMan.cc
  9552. * src/RequestGroupMan.h
  9553. * src/StreamCheckIntegrityEntry.cc
  9554. * src/StreamCheckIntegrityEntry.h
  9555. * src/StreamFileAllocationEntry.cc
  9556. * src/StreamFileAllocationEntry.h
  9557. * src/TrackerWatcherCommand.cc
  9558. * src/a2functional.h
  9559. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9560. Changed method signature:
  9561. BNode::findClosestKNodes, BNode:: enumerateBucket,
  9562. DHTBucket::getGoodNodes,
  9563. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  9564. * src/BNode.cc
  9565. * src/BNode.h
  9566. * src/DHTAbstractNodeLookupTask.cc
  9567. * src/DHTAutoSaveCommand.cc
  9568. * src/DHTBucket.cc
  9569. * src/DHTBucket.h
  9570. * src/DHTBucketRefreshTask.cc
  9571. * src/DHTFindNodeMessage.cc
  9572. * src/DHTGetPeersMessage.cc
  9573. * src/DHTRoutingTable.cc
  9574. * src/DHTRoutingTable.h
  9575. * test/BNodeTest.cc
  9576. * test/DHTBucketTest.cc
  9577. * test/DHTRoutingTableTest.cc
  9578. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9579. In piece selection functions, Pass std::deque<...> by reference rather
  9580. than returning it.
  9581. * src/BitfieldMan.cc
  9582. * src/BitfieldMan.h
  9583. * src/DefaultBtRequestFactory.cc
  9584. * src/DefaultPieceStorage.cc
  9585. * src/Piece.cc
  9586. * src/Piece.h
  9587. * test/BitfieldManTest.cc
  9588. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9589. Implemented rarest piece first piece selection strategy.
  9590. * src/AbstractBtMessage.cc
  9591. * src/AbstractBtMessage.h
  9592. * src/BitfieldMan.cc
  9593. * src/BitfieldMan.h
  9594. * src/BtBitfieldMessage.cc
  9595. * src/BtHaveAllMessage.cc
  9596. * src/BtHaveMessage.cc
  9597. * src/DefaultPieceStorage.cc
  9598. * src/DefaultPieceStorage.h
  9599. * src/PeerInteractionCommand.cc
  9600. * src/PieceStorage.h
  9601. * src/UnknownLengthPieceStorage.h
  9602. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9603. Rewritten readData and writeData.
  9604. * src/MultiDiskAdaptor.cc
  9605. * src/MultiDiskAdaptor.h
  9606. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9607. Move \n out of the message "Usage: ...".
  9608. * src/version_usage.cc
  9609. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9610. Bump up version number to 0.13.2b.
  9611. * configure.ac
  9612. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9613. Added const qualifier to argument Exception& e.
  9614. * src/Logger.h
  9615. * src/SimpleLogger.cc
  9616. * src/SimpleLogger.h
  9617. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9618. Pool connection when CWD, SIZE command fails.
  9619. * src/FtpNegotiationCommand.cc
  9620. * src/FtpNegotiationCommand.h
  9621. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9622. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  9623. * src/HttpResponseCommand.cc
  9624. * src/HttpSkipResponseCommand.cc
  9625. * src/HttpSkipResponseCommand.h
  9626. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9627. Pool connection when a server returns 4xx, 5xx responses.
  9628. * src/HttpNullDownloadCommand.cc
  9629. * src/HttpNullDownloadCommand.h
  9630. * src/HttpResponse.cc
  9631. * src/HttpResponse.h
  9632. * src/HttpResponseCommand.cc
  9633. * src/HttpResponseCommand.h
  9634. * test/HttpResponseTest.cc
  9635. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9636. Print usage when no URL is specifed or bad command-line option is
  9637. specified.
  9638. * src/HelpItemFactory.cc
  9639. * src/help_tags.h
  9640. * src/option_processing.cc
  9641. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9642. Removed duplicate log message.
  9643. * src/AbstractCommand.cc (asyncResolveHostname)
  9644. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9645. Updated man page: --async-dns and --ftp-reuse-connection were added.
  9646. Changed -j option's default value from 5 to 1.
  9647. Added new examples using protocol auto detection feature.
  9648. Removed -T, -M usage where it can be omitted.
  9649. * doc/aria2c.1.txt
  9650. * doc/aria2c.1.html
  9651. * doc/aria2c.1.txt
  9652. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9653. Updated command-line usage text, so that it tells users that they
  9654. can specify any number of torrent files and metalink files in
  9655. command-line.
  9656. * src/version_usage.cc
  9657. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9658. Changed the default value of -j option to 1.
  9659. * src/HelpItemFactory.cc
  9660. * src/option_processing.cc
  9661. * src/usage_text.h
  9662. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9663. Added the ability to reuse connection in FTP and it is enabled by
  9664. default. It can be disabled by --ftp-reuse-connection=false option.
  9665. * src/Command.cc
  9666. * src/DownloadCommand.cc
  9667. * src/FtpDownloadCommand.cc
  9668. * src/FtpDownloadCommand.h
  9669. * src/FtpFinishDownloadCommand.cc
  9670. * src/FtpFinishDownloadCommand.h
  9671. * src/FtpInitiateConnectionCommand.cc
  9672. * src/FtpNegotiationCommand.cc
  9673. * src/FtpNegotiationCommand.h
  9674. * src/HelpItemFactory.cc
  9675. * src/Makefile.am
  9676. * src/Makefile.in
  9677. * src/OptionHandlerFactory.cc
  9678. * src/option_processing.cc
  9679. * src/prefs.h
  9680. * src/usage_text.h
  9681. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9682. Call Command::transitStatus() before calling Command::execute(),
  9683. so that the status change made in execute() is not cleared.
  9684. * src/DownloadEngine.cc
  9685. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9686. Removed forward declaration of SocketCore class.
  9687. * src/HttpDownloadCommand.h
  9688. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9689. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  9690. in InitiateConnectionCommandFactory. They should be set only when
  9691. the protocol is HTTP or HTTPS.
  9692. * src/InitiateConnectionCommandFactory.cc
  9693. * src/RequestGroup.cc
  9694. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9695. Fixed infinite loop in checksum checking.
  9696. * src/IteratableChecksumValidator.cc
  9697. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9698. Set _supportsPersistentConnection to true by default.
  9699. * src/Request.cc
  9700. * src/RequestGroup.cc
  9701. * test/HttpRequestTest.cc
  9702. * test/RequestTest.cc
  9703. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9704. Added timeout to socket pool. The default timeout is 15 seconds,
  9705. which is the same value Apache uses.
  9706. * src/DownloadEngine.cc
  9707. * src/DownloadEngine.h
  9708. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9709. Fixed misuse of multimap::find()
  9710. * src/HttpHeader.cc
  9711. * test/HttpHeaderTest.cc
  9712. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9713. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  9714. option.
  9715. The asynchronous DNS is not capable of IPv6 yet.
  9716. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  9717. least for HTTP download.
  9718. * src/AbstractCommand.cc
  9719. * src/AbstractCommand.h
  9720. * src/AsyncNameResolver.cc
  9721. * src/AsyncNameResolver.h
  9722. * src/DHTEntryPointNameResolveCommand.cc
  9723. * src/DHTEntryPointNameResolveCommand.h
  9724. * src/DownloadEngine.cc
  9725. * src/DownloadEngine.h
  9726. * src/FtpInitiateConnectionCommand.cc
  9727. * src/FtpInitiateConnectionCommand.h
  9728. * src/HelpItemFactory.cc
  9729. * src/HttpInitiateConnectionCommand.cc
  9730. * src/HttpInitiateConnectionCommand.h
  9731. * src/InitiateConnectionCommand.cc
  9732. * src/InitiateConnectionCommand.h
  9733. * src/Makefile.am
  9734. * src/Makefile.in
  9735. * src/NameResolver.cc
  9736. * src/NameResolver.h
  9737. * src/OptionHandlerFactory.cc
  9738. * src/SocketCore.cc
  9739. * src/SocketCore.h
  9740. * src/Util.cc
  9741. * src/Util.h
  9742. * src/option_processing.cc
  9743. * src/prefs.h
  9744. * src/usage_text.h
  9745. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9746. Updated man page: --quiet, --header were added.
  9747. --metalink-servers and --enable-http-keep-alive option were updated.
  9748. * doc/aria2c.1
  9749. * doc/aria2c.1.html
  9750. * doc/aria2c.1.txt
  9751. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9752. Enable HTTP keep-alive by default.
  9753. * src/HelpItemFactory.cc
  9754. * src/option_processing.cc
  9755. * src/usage_text.h
  9756. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9757. Disable http keep-alive if the remote server is not HTTP/1.1.
  9758. * src/HttpConnection.cc
  9759. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9760. Receive content body of 302 response so that the connection can be
  9761. reused later when http keep-alive is enabled.
  9762. * src/HttpNullDownloadCommand.cc
  9763. * src/HttpNullDownloadCommand.h
  9764. * src/HttpResponseCommand.cc
  9765. * src/HttpResponseCommand.h
  9766. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9767. const SharedHandle<Request> -> const SharedHandle<Request>&
  9768. * src/FtpDowndloadCommand.cc
  9769. * src/FtpDowndloadCommand.h
  9770. * src/HttpDownloadCommand.cc
  9771. * src/HttpDownloadCommand.h
  9772. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9773. Fixed the bug that the control file(.aria2 file) is not renamed
  9774. according to tryAutoFileRenaming().
  9775. tryAutoFileRenaming() was rewritten so that if both renamed file and
  9776. its control file exist, use them and continue download.
  9777. The old implementation didn't take into account of control file's
  9778. existence, so basically you couldn't continue download of renamed file.
  9779. * src/BtProgressInfoFile.h
  9780. * src/DefaultBtProgressInfoFile.cc
  9781. * src/DefaultBtProgressInfoFile.h
  9782. * src/NullProgressInfoFile.h
  9783. * src/RequestGroup.cc
  9784. * test/DefaultBtProgressInfoFileTest.cc
  9785. * test/MockBtProgressInfoFile.h
  9786. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9787. Change the default value of --metalink-servers option from `5' to `1'.
  9788. * src/HelpItemFactory.cc
  9789. * src/option_processing.cc
  9790. * src/usage_text.h
  9791. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9792. Reimplemented transparent metalink using Accept request header.
  9793. * src/HttpRequest.cc
  9794. * src/HttpRequest.h
  9795. * src/HttpRequestCommand.cc
  9796. * src/Metalink2RequestGroup.cc
  9797. * src/RequestGroup.cc
  9798. * src/RequestGroup.h
  9799. * test/HttpRequestTest.cc
  9800. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9801. Bump up version number to 0.13.2a
  9802. * configure.ac
  9803. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9804. Updated configure.ac using the result of autoscan.
  9805. * configure.ac
  9806. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9807. Fixed compilation error without gcrypt/openssl.
  9808. * src/DownloadCommand.cc
  9809. * src/DownloadCommand.h
  9810. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9811. Reorganized version information so that it can be displayed in a
  9812. standard terminal screen without scrolling.
  9813. Removed http, ftp from Configuration section, because they are always
  9814. enabled.
  9815. * src/FeatureConfig.cc
  9816. * src/FeatureConfig.h
  9817. * src/main.cc
  9818. * src/messageDigest.cc
  9819. * src/messageDigest.h
  9820. * src/version_usage.cc
  9821. * test/FeatureConfigTest.cc
  9822. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9823. Masked user ID in log.
  9824. * src/FtpConnection.cc (sendUser)
  9825. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9826. Removed query part from filename in HTTP download. The query part means
  9827. the substring after "?" in URL. Firefox seems do the same thing.
  9828. A query part is sometimes very long and not suitable to filename,
  9829. so I think it is better to remove it from filename.
  9830. * src/HttpRequest.cc
  9831. * src/HttpRequest.h
  9832. * src/Request.cc
  9833. * src/Request.h
  9834. * test/HttpRequestTest.cc
  9835. * test/RequestTest.cc
  9836. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9837. Rewritten Exception class. Throw exception object, not its pointer and
  9838. catch by reference, so that remove problematic delete operator for
  9839. catched exception.
  9840. * src/Exception.cc
  9841. * src/Exception.h
  9842. * test/ExceptionTest.cc
  9843. * src/*: All files throwing/catching exception.
  9844. * test/*: All files throwing/catching exception.
  9845. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9846. Now auto protocol detection is enabled without -Z option.
  9847. But there is a important difference between with/without -Z optoin.
  9848. For example, if you type:
  9849. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  9850. then, aria2 interprets there are 3 request groups:
  9851. (1) http://host/file, http://mirror/file <-- multi-source download
  9852. (2) file1.torrent
  9853. (3) file2.metalink
  9854. On the other hand, if you invoke above command with -Z option, it is
  9855. interpreted as 4 request groups:
  9856. (1) http://host/file
  9857. (2) file1.torrent
  9858. (3) file2.metalink
  9859. (4) http://mirror/file
  9860. I think usually user don't mix multi-source URLs and torrent files, so
  9861. there is no big problem here.
  9862. * src/main.cc
  9863. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9864. Fixed the bug that causes segmentaion fault when reading XML containing
  9865. unescapsed character like '&'.
  9866. Also a modification was made which avoids adding unnecessary
  9867. characters stack and appending unused string.
  9868. * src/ExpatMetalinkProcessor.cc
  9869. * src/FileMetalinkParserState.h
  9870. * src/FilesMetalinkParserState.h
  9871. * src/FinMetalinkParserState.h
  9872. * src/HashMetalinkParserState.h
  9873. * src/InitialMetalinkParserState.h
  9874. * src/LanguageMetalinkParserState.h
  9875. * src/MetalinkMetalinkParserState.h
  9876. * src/MetalinkParserState.h
  9877. * src/MetalinkParserStateMachine.cc
  9878. * src/MetalinkParserStateMachine.h
  9879. * src/OSMetalinkParserState.h
  9880. * src/PieceHashMetalinkParserState.h
  9881. * src/PiecesMetalinkParserState.h
  9882. * src/ResourcesMetalinkParserState.h
  9883. * src/SizeMetalinkParserState.h
  9884. * src/SkipTagMetalinkParserState.h
  9885. * src/URLMetalinkParserState.h
  9886. * src/VerificationMetalinkParserState.h
  9887. * src/VersionMetalinkParserState.h
  9888. * src/XML2SAXMetalinkProcessor.cc
  9889. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9890. Added StringFormat class, which internally calls vasprintf.
  9891. operator<< is defined for this class, so it can be used with iostream
  9892. classes nicely. SimpleLogger and following functions are rewritten
  9893. using StringFormat class.
  9894. Besides, now Logger class's methods are non-const, many classes
  9895. that has a const Logger* as a member variable are modified to remove
  9896. const qualifier from the variable declaration.
  9897. * src/HelpItemFactory.cc
  9898. * src/Request.cc
  9899. * src/SimpleLogger.cc
  9900. * src/StringFormat.cc
  9901. * src/StringFormat.h
  9902. * src/Util.cc
  9903. * src/option_processing.cc
  9904. * src/version_usage.cc
  9905. * test/StringFormatTest.cc
  9906. * src/*.h: The classes that has const Logger* as a member variable.
  9907. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9908. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  9909. failed. Also fixed memory link when exception is thrown there.
  9910. * src/main.cc (AccRequestGroup)
  9911. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9912. Added build-in "Accept-Features" support. For now only "metalink" is
  9913. used in this header field.
  9914. This "metalink" value is removed from the list when connecting URLs
  9915. fed by metalink file to avoid loop in "transparent" metlaink.
  9916. * src/HttpRequest.cc
  9917. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  9918. header is also held in this variable. Also renamed setUserHeaders as
  9919. addHeader and it was rewritten to add header not just to clear the old
  9920. value.
  9921. * src/HttpRequestCommand.cc
  9922. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  9923. from "Accept-Features" list.
  9924. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  9925. default.
  9926. * src/RequestGroup.h
  9927. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  9928. * src/a2functional.h: Included <string> because Concat class depends on
  9929. it.
  9930. * test/HttpRequestTest.cc
  9931. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9932. Added comment
  9933. * src/RequestGroup.cc (createNextCommand)
  9934. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9935. Capitalized METHOD_GET and METHOD_HEAD
  9936. * src/Request.cc
  9937. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9938. Added getDownloadResults() method
  9939. * src/RequestGroupMan.cc
  9940. * src/RequestGroupMan.h
  9941. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9942. Fixed the bug that aria2 exits when commands is empty() but
  9943. _routineCommands are not.
  9944. * src/DownloadEngine.cc
  9945. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9946. Use the default value pulled from Option object in HelpItemFactory.
  9947. except options whose defualt value is embedded in a usage text.
  9948. * src/HelpItemFactory.cc
  9949. * src/HelpItemFactory.h
  9950. * src/option_processing.cc
  9951. * src/version_usage.cc
  9952. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9953. Added --quiet option to make aria2 quiet (no console output).
  9954. --quiet option is tagged with ADVANCED.
  9955. * src/HelpItemFactory.cc
  9956. * src/LogFactory.cc
  9957. * src/LogFactory.h
  9958. * src/MultiUrlRequestInfo.cc
  9959. * src/MultiUrlRequestInfo.h
  9960. * src/NullStatCalc.h: New class. This class prints nothing.
  9961. * src/OptionHandlerFactory.cc
  9962. * src/main.cc
  9963. * src/option_processing.cc
  9964. * src/prefs.h
  9965. * src/usage_text.h
  9966. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9967. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  9968. * src/HelpItemFactory.cc (createHelpItems):
  9969. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9970. Fixed compilation error in ExpatMetalinkProcessor.cc
  9971. * src/ExpatMetalinkProcessor.cc
  9972. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9973. Reuse socket if the origin server supports HTTP keep-alive and
  9974. --enable-http-keep-alive or --enable-http-pipelining is given.
  9975. The current implementation doesn't reuse the connections established
  9976. against proxy server.
  9977. * src/AbstractCommand.cc
  9978. * src/DownloadEngine.cc
  9979. * src/DownloadEngine.h
  9980. * src/HttpDownloadCommand.cc
  9981. * src/HttpInitiateConnectionCommand.cc
  9982. * src/HttpResponseCommand.cc
  9983. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9984. Rewritten HTTP keep-alive and pipelining routine.
  9985. * src/AbstractCommand.cc
  9986. * src/HttpConnection.cc
  9987. * src/HttpDownloadCommand.cc
  9988. * src/HttpRequest.cc
  9989. * src/HttpRequestCommand.cc
  9990. * src/HttpResponseCommand.cc
  9991. * src/Request.cc
  9992. * src/Request.h
  9993. * src/RequestGroup.cc
  9994. * test/HttpRequestTest.cc
  9995. * test/HttpResponseTest.cc
  9996. * test/RequestTest.cc
  9997. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9998. Added missing setUserHeaders call
  9999. * src/HttpRequestCommand.cc
  10000. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10001. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  10002. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  10003. waste of time because it is more likey false.
  10004. * src/FileAllocationDispatcherCommand.cc (execute)
  10005. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10006. Now HTTP status and version are a member variable of HttpHeader.
  10007. HTTP status is processed as a string, not integer.
  10008. * src/AbstractProxyResponseCommand.cc
  10009. * src/HttpConnection.cc
  10010. * src/HttpHeader.cc
  10011. * src/HttpHeader.h
  10012. * src/HttpHeaderProcessor.cc
  10013. * src/HttpHeaderProcessor.h
  10014. * src/HttpResponse.cc
  10015. * src/HttpResponse.h
  10016. * test/HttpHeaderProcessorTest.cc
  10017. * test/HttpResponseTest.cc
  10018. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10019. Added --header option. You can specify any number of additional HTTP headers
  10020. like:
  10021. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  10022. Unlike other commad-line option, you can use --header option multiple times.
  10023. * src/HelpItemFactory.cc
  10024. * src/HttpRequest.{cc, h}
  10025. * src/HttpRequestCommand.cc
  10026. * src/OptionHandlerFactory.cc
  10027. * src/OptionHandlerImpl.h
  10028. * src/option_processing.cc
  10029. * src/prefs.h
  10030. * src/usage_text.h
  10031. * test/HttpRequestTest.cc (testUserHeaders)
  10032. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10033. Eliminates the time lag between sequential downloads and commands in
  10034. the same RequestGroup.
  10035. In old implementation, aria2 occasionally waits 1 seconds before
  10036. executing next command or RequestGroup.
  10037. This is really a waste of time, and new implementation eliminates
  10038. this unnecessary time lag.
  10039. * src/AbstractCommand.cc
  10040. * src/AutoSaveCommand.cc
  10041. * src/CheckIntegrityCommand.cc
  10042. * src/Command.{cc, h}
  10043. * src/DownloadEngine.{cc, h}
  10044. * src/DownloadEngineFactory.cc
  10045. * src/FileAllocationCommand.cc
  10046. * src/FileAllocationDispatcherCommand.cc
  10047. * src/FillRequestGroupCommand.cc
  10048. * src/FtpInitiateConnectionCommand.cc
  10049. * src/HaveEraseCommand.cc
  10050. * src/HttpInitiateConnectionCommand.cc
  10051. * src/HttpResponseCommand.cc
  10052. * src/RealtimeCommand.cc
  10053. * src/RequestGroup.cc
  10054. * src/RequestGroupMan.cc
  10055. * src/StreamFileAllocationEntry.cc
  10056. * src/TimeBasedCommand.{cc, h}
  10057. * src/TimedHaltCommand.cc
  10058. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10059. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  10060. keyword explicit and SharedHandle's default constructor initializes
  10061. its internal obj to null, old implementation initializes it using
  10062. obj's default constructor.
  10063. To assign null, write SharedHandle<T> x(...); x.reset();
  10064. TODO: test/SharedHandleTest.cc needs more tests.
  10065. * src/SharedHandle.h
  10066. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10067. Fixed type in man page.
  10068. * doc/aria2c.1.txt
  10069. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10070. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  10071. * src/SimpleLogger.{cc, h}
  10072. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10073. Implemented auto protocol detection.
  10074. Now you can do:
  10075. aria2c -Z http://host/file file1.torrent file2.metalink
  10076. (Note: -Z option is required for auto protcol detection.)
  10077. Then aria2c downloads 3 files simultaneously:
  10078. 1. http://host/file
  10079. 2. file1.torrent <-- read local torrent file
  10080. 3. file2.metalink <-- read local Metalink file.
  10081. Same thing goes with -i option. Assume your uris.txt contans:
  10082. http://host/file
  10083. file1.torrent
  10084. file2.metalink
  10085. Then you can do: aria2c -i uris.txt
  10086. (Note: -Z option is not needed if -i option is given.)
  10087. * src/main.cc
  10088. * src/ProtocolDetector.{cc, h}
  10089. * test/ProtocolDetectorTest.cc
  10090. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10091. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  10092. installed
  10093. * src/ARC4Encryptor.h
  10094. * src/ARC4Decryptor.h
  10095. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10096. Renamed argument from 'errno' to 'err', since errno is confused with
  10097. errno defined in errno.h.
  10098. * src/LibgcryptARC4Decryptor.h
  10099. * src/LibgcryptARC4Context.h
  10100. * src/LibgcryptDHKeyExchange.h
  10101. * src/LibgcryptARC4Encryptor.h
  10102. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10103. Rewritten choking algorithm.
  10104. * src/PeerChokeCommand.{cc, h}
  10105. * src/BtInterestedMessage.cc
  10106. * src/PeerSessionResource.{cc, h}
  10107. * src/DefaultPeerStorage.{cc, h}
  10108. * src/BtNotInterestedMessage.cc
  10109. * src/DefaultBtMessageDispatcher.{cc, h}
  10110. * src/BtMessageDispatcher.h
  10111. * src/Peer.{cc, h}
  10112. * src/BtLeecherStateChoke.{cc, h}
  10113. * src/BtSetup.cc
  10114. * src/BtSeederStateChoke.{cc, h}
  10115. * src/PeerStorage.h
  10116. * test/MockPeerStorage.h
  10117. * test/MockBtMessageDispatcher.h
  10118. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10119. Fixed compilation error on x84-64 platform.
  10120. * src/AuthConfig.cc: Included ostream.
  10121. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10122. Rewritten getBasename() and getDirname(), without standard library
  10123. basename(), dirname().
  10124. * src/File.cc
  10125. * test/FileTest.cc
  10126. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10127. Added Simplified Chinese translation. Also updated the following
  10128. translations: Polish, Dutch, German. Great thanks to all translators.
  10129. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10130. Suppress content-range error when 'Content-Range' response header
  10131. doesn't contains bytes-unit specifier 'bytes'
  10132. * src/HttpHeader.cc (getRange)
  10133. * test/HttpHeaderTest.cc
  10134. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10135. Fixed compilation error with g++-4.3
  10136. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10137. Added missing include files for MinGW
  10138. * test/HttpHeaderProcessorTest.cc
  10139. * test/DHTRoutingTableSerializerTest.cc
  10140. * test/DHTRoutingTableDeserializerTest.cc
  10141. * test/UriListParserTest.cc
  10142. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10143. Now download line is printed nicely with no garbage at the end of
  10144. line. I use ioctl to get the columns of terminal.
  10145. If stdout is redirected to another device, instead of carriage return,
  10146. end of line '\n' character is used. This is feature request#1909659
  10147. * src/ConsoleStatCalc.cc (calculateStat)
  10148. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10149. Included a2time.h
  10150. * src/DHTMessageDispatcher.h
  10151. * src/DHTMessageEntry.h
  10152. * src/DHTReplaceNodeTask.h
  10153. * src/DHTMessageTracker.h
  10154. * src/Util.h
  10155. * src/CookieBox.h
  10156. * src/SocketCore.h
  10157. * src/DefaultBtMessageDispatcher.h
  10158. * src/SocketCore.cc
  10159. * src/Util.cc
  10160. * src/DHTPingTask.h
  10161. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10162. Fixed high memory footprint when DHT is enabled.
  10163. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  10164. queued than it is processed and the queue is getting longer. As a
  10165. consequence, momory usage is increased.
  10166. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  10167. replacement cache in DHTBucket which is described in Kademlia paper.
  10168. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  10169. DHTReplaceNodeTask.
  10170. * src/DHTBucket.{h, cc}
  10171. (cacheNode): New function.
  10172. (getCachedNodes): New function.
  10173. (dropNode): Push back cached node to _nodes.
  10174. * test/DHTBucketTest.cc
  10175. (testCacheNode): New test
  10176. (testDropNode): New test
  10177. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10178. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  10179. the unused 4KB memory when ssl is not used.
  10180. * src/SocketCore.cc
  10181. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10182. Added summary log for peer announce storage.
  10183. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  10184. Removed cast
  10185. * src/DefaultPeerStorage.cc (addPeer)
  10186. Log exception message
  10187. * src/DHTMessageTracker.cc (handleTimeout)
  10188. Fixed casting
  10189. * test/HttpRequestTest.cc
  10190. * test/MetalinkProcessorTest.cc
  10191. * test/PieceTest.cc
  10192. * test/MetalinkEntryTest.cc
  10193. * test/SequenceTest.cc
  10194. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10195. * src/ParameterizedStringParser.cc (createLoop):
  10196. Removed unused variable sstep.
  10197. * src/AlphaNumberDecorator.h (decode): Rewritten.
  10198. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10199. * src/Util.{h, cc}
  10200. (parseUInt): New function.
  10201. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  10202. The actual range is uint32_t.
  10203. * test/UtilTest.cc
  10204. * src/ParameterizedStringParser.cc:
  10205. Use Util::parseUInt() for loop variables.
  10206. * test/ParameterizedStringParserTest.cc
  10207. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  10208. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10209. Rewritten the functions for binding port.
  10210. * src/DHTConnectionImpl.{h, cc}
  10211. * src/PeerListenCommand.{h, cc}
  10212. * src/DHTSetup.cc
  10213. * src/BtSetup.cc
  10214. * test/DHTConnectionImplTest.cc
  10215. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10216. type cleanup for allmost all remaining files.
  10217. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10218. Type clarification
  10219. * src/PeerSessionResource.{h, cc}
  10220. * src/DefaultPieceStorage.{h, cc}
  10221. * src/Peer.{h, cc}
  10222. * test/PeerSessionResourceTest.cc
  10223. Use div function
  10224. * src/BtPieceMessage.cc (erasePieceOnDisk)
  10225. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10226. Type clarification
  10227. * src/DefaultPeerStorage.{h, cc}
  10228. * test/DefaultPeerStorageTest.cc
  10229. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10230. Type clarification: size_t for length or size, uint64_t for file
  10231. length, off_t for file offset.
  10232. * src/DefaultBtProgressInfoFile.cc
  10233. * src/DefaultBtContext.{h, cc}
  10234. * src/DefaultBtInteractive.cc
  10235. * src/DownloadCommand.{h, cc}
  10236. * src/IteratableChunkChecksumValidator.{h, cc}
  10237. * src/SegmentMan.{h, cc}
  10238. * src/SingleFileDownloadContext.{h, cc}
  10239. * src/IteratableChecksumValidator.{h, cc}
  10240. * src/BtContext.h
  10241. * src/IteratableValidator.h
  10242. * src/DownloadContext.h
  10243. * test/SingleFileDownloadContextTest.cc
  10244. * test/DefaultBtContextTest.cc
  10245. * test/MockBtContext.h
  10246. * test/Metalink2RequestGroupTest.cc
  10247. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10248. Type clarification: size_t for length or size, uint64_t for file
  10249. length, off_t for file offset.
  10250. * src/PiecedSegment.cc
  10251. * src/GrowSegment.h
  10252. * src/DefaultBtRequestFactory.h
  10253. * src/DefaultBtProgressInfoFile.cc
  10254. * src/UnknownLengthPieceStorage.h
  10255. * src/DefaultPieceStorage.cc
  10256. * src/UnknownLengthPieceStorage.cc
  10257. * src/DefaultBtInteractive.cc
  10258. * src/GrowSegment.cc
  10259. * src/BitfieldMan.h
  10260. * src/DownloadCommand.cc
  10261. * src/BtRequestFactory.h
  10262. * src/PiecedSegment.h
  10263. * src/DefaultPieceStorage.h
  10264. * src/Piece.cc
  10265. * src/DefaultBtRequestFactory.cc
  10266. * src/PieceStorage.h
  10267. * src/Segment.h
  10268. * src/Piece.h
  10269. * src/BitfieldMan.cc
  10270. * src/Util.cc
  10271. * test/DefaultBtProgressInfoFileTest.cc
  10272. * test/DefaultPieceStorageTest.cc
  10273. * test/MockPieceStorage.h
  10274. * test/BtRequestMessageTest.cc
  10275. * test/DefaultBtMessageDispatcherTest.cc
  10276. * test/BitfieldManTest.cc
  10277. * test/GrowSegmentTest.cc
  10278. * test/PieceTest.cc
  10279. * test/SegmentTest.cc
  10280. * test/SegmentManTest.cc
  10281. * test/DefaultBtRequestFactoryTest.cc
  10282. * test/MockBtRequestFactory.h
  10283. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10284. Fixed compilation error with --disable-nls
  10285. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  10286. in gettext.h causes the problem.
  10287. * src/common.h
  10288. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10289. Removed subPiece related functions.
  10290. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  10291. * src/DefaultPieceStorage.{h, cc}
  10292. * test/PieceTest.cc
  10293. * test/DefaultPieceStorageTest.cc
  10294. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10295. Use unsigned char for data store.
  10296. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10297. Bump up version number to 0.13.0+1
  10298. * configure.ac
  10299. * Release 0.13.0+1
  10300. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10301. Changed inactive connection timeout to 120.
  10302. To accept more mulually interested peers, disconnect peer when there
  10303. is no interest between us after certain time passed.
  10304. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  10305. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10306. Fixed the bug that aria2 only uses first dns server in resolv.conf
  10307. when compiled with async DNS support.
  10308. * src/DownloadEngine.cc
  10309. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  10310. value '10' will be a little bit short when some DNS servers are
  10311. offline and several DNS servers are tried. It should be configured
  10312. by command-line option.
  10313. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10314. Merged Ross's mingw patch.
  10315. * src/DHTRoutingTableDeserializer.cc
  10316. * src/DHTRoutingTableSerializer.cc
  10317. * src/Platform.{h, cc}
  10318. * src/timegm.h
  10319. * src/gettimeofday.h
  10320. * src/getaddrinfo.h
  10321. * src/SocketCore.h
  10322. * src/common.h
  10323. * src/inet_aton.h
  10324. * src/DownloadEngine.h
  10325. * src/gai_strerror.h
  10326. * src/a2netcompat.h
  10327. * configure.ac
  10328. * configure
  10329. * aclocal.m4
  10330. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10331. Included missing iostream.
  10332. * test/AllTest.cc
  10333. * test/BtDependencyTest.cc
  10334. * test/BtExtendedMessageTest.cc
  10335. * test/DHTConnectionImplTest.cc
  10336. * test/DHTMessageFactoryImplTest.cc
  10337. * test/DHTMessageTrackerEntryTest.cc
  10338. * test/DHTNodeTest.cc
  10339. * test/DHTRoutingTableSerializerTest.cc
  10340. * test/DefaultBtAnnounceTest.cc
  10341. * test/DefaultBtContextTest.cc
  10342. * test/DefaultBtMessageFactoryTest.cc
  10343. * test/DefaultExtensionMessageFactoryTest.cc
  10344. * test/HandshakeExtensionMessageTest.cc
  10345. * test/HttpResponseTest.cc
  10346. * test/MetalinkProcessorTest.cc
  10347. * test/MultiFileAllocationIteratorTest.cc
  10348. * test/SocketCoreTest.cc
  10349. * test/UTPexExtensionMessageTest.cc
  10350. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10351. Reorganized includes.
  10352. * src/NameResolver.cc
  10353. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10354. Fixed compilation error without ares/c-ares
  10355. * src/NameResolver.h:
  10356. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10357. Added a test for large file.
  10358. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  10359. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10360. Fixed the bug that file size is ignored if size > INT32_MAX
  10361. * src/SizeMetalinkParserState.cc (endElement):
  10362. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10363. Bump up version number to 0.13.0
  10364. * configure.ac
  10365. * Release 0.13.0
  10366. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10367. Updated Makfefile.am to make 'make dist' work.
  10368. Now packaged filename is aria2c-VERSION.tar.bz2.
  10369. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  10370. Added LICENSE.OpenSSL to dist_noinst_DATA.
  10371. Large file support is now configured by configure script.
  10372. * configure.ac
  10373. Removed unsused source files
  10374. * src/
  10375. * test/
  10376. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  10377. Peer.h and BtContext.h respectively.
  10378. * src/Peer.h
  10379. * src/BtContext.h
  10380. Updated translations.
  10381. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  10382. translations. Great thanks to all translators!;)
  10383. * po/*.{po, gmo}
  10384. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10385. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  10386. statically declared sha1 MessageDigestContext.
  10387. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  10388. initialization of short-lived MessageDigestContext.
  10389. * src/MessageDigestHelper.{h, cc}
  10390. * src/main.cc
  10391. Now DownloadCommand has a reference to MessageDigestContext to avoid
  10392. the initialization of MessageDigestContext every time in validating
  10393. chunk checksum.
  10394. * src/DownloadCommand.{h, cc}
  10395. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10396. Add a file descriptor which connected to fast peer(latency<1500) to
  10397. select(). This change reduced CPU load.
  10398. * src/PeerInteractionCommand.cc
  10399. * src/DefaultBtInteractive.{h, cc}
  10400. * src/BtInteractive.h
  10401. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10402. Fixed the previous insufficient fix for possible busy loop.
  10403. * src/MSEHandshake.cc (identifyHandshakeType)
  10404. Removed unused functions.
  10405. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  10406. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10407. Fixed possible busy loop if first 20 bytes are not received for a few
  10408. minutes.
  10409. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  10410. * src/ReceiverMSEHandshakeCommand.cc
  10411. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10412. Fixed compilation error
  10413. * src/ExpatMetalinkProcessor.cc
  10414. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10415. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  10416. * src/DHTBucket.cc
  10417. Removed unnecessary cast.
  10418. * src/HandshakeExtensionMessage.cc
  10419. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10420. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  10421. is missing.
  10422. * src/OptionHandlerFactory.cc
  10423. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10424. Fixed the bug that HAVE message is not sent for a piece they are
  10425. downloaded fom http/ftp server before any BitTorrent handshake is done
  10426. with peers.
  10427. * src/DefaultBtInteractive.cc
  10428. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10429. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  10430. * src/Makefile.am
  10431. * src/Makefile.in
  10432. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10433. Updated README. Added html version of README and man page.
  10434. * README
  10435. * README.html
  10436. * readme2html: Shell script to generate README.html from README using
  10437. asciidoc.
  10438. * doc/aria2c.1.html
  10439. * doc/makeman: Added the line to generate aria2c.1.html
  10440. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10441. Fixed offset calculation.
  10442. * src/LibgcryptDHKeyExchange.h (computeSecret)
  10443. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10444. Rewritten itos and uitos using template. llitos and ullitos are
  10445. replaced with itos and uitos respectively.
  10446. * src/Util.{h, cc}
  10447. * test/UtilTest.cc
  10448. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10449. Fixed the bug that DH key exchange sometimes fails due to bad handling
  10450. of the number of bytes required for storing public key and shared
  10451. secret.
  10452. * src/LibgcryptDHKeyExchange.h
  10453. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  10454. * src/MSEHandshake.cc
  10455. * test/DHKeyExchangeTest.cc
  10456. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10457. Removed since they are not used.
  10458. * src/Xml2MetalinkProcessor.{h, cc}
  10459. * src/Socket.cc
  10460. * src/SegmentSplitter.{h, cc}
  10461. * test/Xml2MetalinkProcessorTest.cc
  10462. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10463. Fixed the bug that prevents aria2 from stopping other than by pressing
  10464. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  10465. option. aria2 doesn't stop even after --seed-time is satisfied and
  10466. continues to output blank lines in the console.
  10467. * src/ReceiverMSEHandshakeCommand.cc
  10468. * src/PeerReceiveHandshakeCommand.cc
  10469. * src/PeerListenCommand.cc
  10470. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10471. Bump up version number to 0.13.0rc
  10472. * configure.ac
  10473. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10474. Updated man page and some usage text.
  10475. * doc/aria2c.1.txt
  10476. * src/usage_text.h
  10477. * po/*.{po, gmo}
  10478. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10479. Updated translations. Added Finnish and Hebrew translations.
  10480. Great thanks to all translators!
  10481. * po/*.{po, gmo}
  10482. * po/LINGUAS
  10483. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10484. Log more detailed information about each message.
  10485. * src/DHTQueryMessage.{h, cc}
  10486. * src/DHTGetPeersMessage.{h, cc}
  10487. * src/DHTFindNodeReplyMessage.{h, cc}
  10488. * src/DHTGetPeersReplyMessage.{h, cc}
  10489. * src/DHTAnnouncePeerMessage.{h, cc}
  10490. * src/DHTResponseMessage.{h, cc}
  10491. * src/DHTFindNodeMessage.{h, cc}
  10492. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10493. Use constants defined in prefs.h
  10494. * src/option_processing.cc
  10495. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10496. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  10497. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10498. Make room for future enchancements for IPv6 addresses.
  10499. Bump up version number of dht.dat file format to 2.
  10500. Not compatible with previous version.
  10501. * src/DHTRoutingTableSerializer.cc
  10502. * src/DHTRoutingTableDeserializer.cc
  10503. * test/DHTRoutingTableSerializerTest.cc
  10504. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10505. Added handling for the return values from
  10506. PeerMessageUtil::createcompact().
  10507. * src/DefaultBtContext.cc (computeFastSet):
  10508. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10509. Fixed abort when peer's ip address is IPv4-mapped address.
  10510. * src/DefaultBtContext.cc (computeFastSet)
  10511. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  10512. cannot handle IPv4-mapped addresses.
  10513. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  10514. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10515. Proper return value handling for OpenSSL functions.
  10516. * src/LibsslDHKeyExchange.h
  10517. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10518. Random bytes generation using libgcrypt and OpenSSL.
  10519. * src/DHTUtil.{h, cc}
  10520. * test/DHTUtilTest.cc
  10521. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10522. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  10523. received.
  10524. * src/DHTMessageReceiver.cc (receiveMessage)
  10525. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10526. Fixed the bug that a return code is always 0. BUG#1897704
  10527. If error occurred during the download or there exist unfinished
  10528. downloads, aria2 returns with code 1.
  10529. * src/RequestGroupMan.{h, cc}
  10530. * src/MultiUrlRequestInfo.{h, cc}
  10531. * src/main.cc
  10532. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10533. IPv6 support for SocketCore class.
  10534. TODO: In SocketCore::establishConnection(), this is insufficient to
  10535. determin the failure of connect() here because the socket is
  10536. non-blocking state. The next addresses should be tried after select().
  10537. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  10538. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  10539. instead which address family independent.
  10540. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  10541. information in a compact peer format which is for IPv4 only.
  10542. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  10543. this is a spec of BitTorrent protocol.
  10544. * src/SocketCore.{h, cc}
  10545. * src/PeerMessageUtil.cc
  10546. * test/SocketCoreTest.cc
  10547. * test/PeerMessageUtilTest.cc
  10548. * test/DHTConnectionImplTest.cc
  10549. Handle IPv4-mapped addresses.
  10550. * src/DHTNode.cc: Now identity is determined by node id.
  10551. * src/DHTMessageTrackerEntry.cc
  10552. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  10553. should handle it.
  10554. * src/DHTRoutingTableDeserializer.cc
  10555. * src/DHTMessageFactoryImpl.cc
  10556. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10557. Change the unit of --stop option from a minute to a second.
  10558. * src/usage_text.h
  10559. * src/DownloadEngineFactory.cc
  10560. * src/OptionHandlerFactory.cc
  10561. * src/message.h
  10562. * src/TimedHaltCommand.cc
  10563. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10564. Make listening socket non-block mode.
  10565. * src/FtpConnection.cc
  10566. * src/FtpNegotiationCommand.{h, cc}
  10567. * src/PeerListenCommand.cc
  10568. Fixed the bug that cause slow ftp negotiation.
  10569. * src/FtpNegotiationCommand.{h, cc}
  10570. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10571. Added basic tag to --enable-dht, --dht-listen-port option.
  10572. * src/HelpItemFactory.cc (createHelpItems)
  10573. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10574. Updated text.
  10575. * src/usage_text.h
  10576. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10577. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  10578. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10579. Determin _threadtholdSpeed in each constructor for
  10580. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  10581. * src/ActivePeerConnectionCommand.{h, cc}
  10582. * src/PeerReceiveHandshakeCommand.{h, cc}
  10583. * src/BtSetup.cc
  10584. * src/BtConstants.h
  10585. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10586. Added --bt-min-crypto-level and --bt-require-crypto options.
  10587. * src/OptionHandlerFactory.cc
  10588. * src/MSEHandshake.cc
  10589. * src/HelpItemFactory.cc
  10590. * src/option_processing.cc
  10591. * src/ReceiverMSEHandshakeCommand.cc
  10592. * src/prefs.h
  10593. * src/DefaultBtAnnounce.cc
  10594. * src/InitiatorMSEHandshakeCommand.cc
  10595. * src/usage_text.h
  10596. * test/MSEHandshakeTest.cc
  10597. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10598. Bump version number to 0.13.0b
  10599. * configure.ac
  10600. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10601. Updated doc.
  10602. * src/MessageDigestHelper.h:
  10603. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10604. Use raw message digest as a token instead of its hexadecimal
  10605. representation.
  10606. * src/DHTTokenTracker.cc (generateToken)
  10607. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10608. Added Message Stream Encryption(MSE) support.
  10609. Currently, aria2 accepts incoming connections with Obfuscation Header
  10610. and legacy BitTorrent Header and establishes connections with
  10611. Obfuscation Header first and if failed then retry with legacy
  10612. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  10613. choose ARC4. The new option to change the default behavior is planned.
  10614. For tracker extension, "supportcrypto=1" is added statically.
  10615. * src/PeerInitiateConnectionCommand.{h, cc}
  10616. * src/PeerConnection.{h, cc}
  10617. * src/HandleRegistry.h
  10618. * src/SocketCore.h
  10619. * src/PeerReceiveHandshakeCommand.{h, cc}
  10620. * src/BtRegistry.{h, cc}
  10621. * src/PeerListenCommand.cc
  10622. * src/InitiatorMSEHandshakeCommand.{h, cc}
  10623. * src/ReceiverMSEHandshakeCommand.{h, cc}
  10624. * src/MSEHandshake.{h, cc}
  10625. * src/ARC4Encryptor.h
  10626. * src/ARC4Decryptor.h
  10627. * src/LibgcryptARC4Encryptor.h
  10628. * src/LibgcryptARC4Decryptor.h
  10629. * src/LibgcryptARC4Context.h
  10630. * src/LibsslARC4Encryptor.h
  10631. * src/LibsslARC4Decryptor.h
  10632. * src/LibsslARC4Context.h
  10633. * src/DHKeyExchange.h
  10634. * src/LibgcryptDHKeyExchange.h
  10635. * src/LibsslDHKeyExchange.h
  10636. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  10637. * test/DefaultBtAnnounceTest.cc
  10638. * test/ARC4Test.cc
  10639. * test/DHKeyExchangeTest.cc
  10640. Removed prepareForRetry() because it is not used.
  10641. * src/PeerAbstractCommand.{h, cc}
  10642. * src/PeerInteractionCommand.{h, cc}
  10643. * src/PeerInitiateConnectionCommand.{h, cc}
  10644. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10645. Added the ability to load nodes from torrent file. These nodes are
  10646. added to the routing table when downloading that torrent.
  10647. * src/BtContext.h
  10648. * src/DefaultBtContext.{h, cc}
  10649. * src/DHTSetup.cc
  10650. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  10651. hostname and port pair, and resolves all of them.
  10652. * src/NameResolver.{h, cc}: Added reset().
  10653. * src/RequestGroup.cc
  10654. * test/DefaultBtContextTest.cc
  10655. * test/MockBtContext.h
  10656. Removed assert() from DefaultBtContext and throw exception instead.
  10657. * src/DefaultBtContext.cc
  10658. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10659. Fixed segmentation fault bug when exiting if dht is disabled.
  10660. * src/RequestGroup.cc
  10661. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10662. Fixed typo in log message and define the message in message.h
  10663. * src/TimedHaltCommand.cc
  10664. * src/message.h
  10665. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10666. Included RecoverableException.h to fix compilation error.
  10667. * test/DHTMessageFactoryImplTest.cc
  10668. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10669. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  10670. * test/DHTPingMessageTest.cc
  10671. * test/DHTGetPeersMessageTest.cc
  10672. * test/DHTFindNodeMessageTest.cc
  10673. * test/DHTAnnouncePeerMessageTest.cc
  10674. * test/MockDHTMessage.h
  10675. * test/MockDHTMessageFactory.h
  10676. * test/MockDHTMessageDispatcher.h: New class.
  10677. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10678. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  10679. virtual.
  10680. * src/DHTMessageDispatcher.h
  10681. * src/DHTMessageDispatcherImpl.{h, cc}
  10682. * src/DHTSetup.cc
  10683. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10684. Adding handling of DHT error message. Just log error message and
  10685. throw exception.
  10686. * src/DHTMessageFactoryImpl.cc
  10687. * test/DHTMessageFactoryImplTest.cc
  10688. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10689. Added handling of dynamic cast failure.
  10690. * src/DHTNodeLookupTask.cc
  10691. * src/DHTPeerLookupTask.cc
  10692. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10693. Added the ability to stop aria2 itself when given time has passed
  10694. from start. Use --stop option to specify time in minutes.
  10695. When 0 is given, this feature is disabled.
  10696. * src/OptionHandlerFactory.cc
  10697. * src/TimeBasedCommand.h: Make _interval protected scope.
  10698. * src/HelpItemFactory.cc
  10699. * src/option_processing.cc
  10700. * src/prefs.h
  10701. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  10702. before calling RequestGroupMan::fillRequestGroupFromReserver().
  10703. Without this modification, the result list shows "ERR" when aria2 is
  10704. stopped by --stop option. It should be "INPR".
  10705. * src/DownloadEngine.{h, cc}
  10706. * src/DownloadEngineFactory.cc
  10707. * src/usage_text.h
  10708. * src/TimedHaltCommand.{h, cc}: New class.
  10709. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10710. Bootstrap through node added by port message.
  10711. Currently bootstrap is executed if the number of buckets in routing
  10712. table is 1.
  10713. * src/BtPortMessage.{h, cc}
  10714. * src/DefaultBtMessageFactory.{h, cc}
  10715. * src/PeerInteractionCommand.cc
  10716. * test/BtPortMessageTest.cc
  10717. * test/MockDHTTask.h
  10718. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10719. Extract the Peer class's member variables, which are only needed after
  10720. PeerInteractionCommand, into PeerSessionResource class.
  10721. This class is instantiated in PeerInteractionCommand class's ctor and
  10722. released in its dtor.
  10723. This will make Peer class lightweight and uses less memory for peers
  10724. which are not connected and wait in the queue.
  10725. * src/PeerChokeCommand.cc
  10726. * src/PeerSessionResource.{h, cc}
  10727. * src/PeerInteractionCommand.cc
  10728. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  10729. * src/DefaultBtInteractive.cc
  10730. * src/BtPieceMessage.cc
  10731. * src/BtInterestedMessage.cc
  10732. * src/BtUnchokeMessage.cc
  10733. * src/DefaultPeerStorage.{h, cc}
  10734. * src/PeerInitiateConnectionCommand.cc
  10735. * src/ActivePeerConnectionCommand.cc
  10736. * src/BtNotInterestedMessage.cc
  10737. * src/DefaultBtMessageDispatcher.cc
  10738. * src/BtChokeMessage.cc
  10739. * src/BtRequestMessage.cc
  10740. * src/Peer.{h, cc}
  10741. * src/BtRegistry.h
  10742. * src/TrackerWatcherCommand.cc
  10743. * src/PeerReceiveHandshakeCommand.cc
  10744. * test/BtExtendedMessageTest.cc
  10745. * test/BtAllowedFastMessageTest.cc
  10746. * test/BtCancelMessageTest.cc
  10747. * test/DefaultPieceStorageTest.cc
  10748. * test/BtBitfieldMessageTest.cc
  10749. * test/BtHaveMessageTest.cc
  10750. * test/BtNotInterestedMessageTest.cc
  10751. * test/BtRequestMessageTest.cc
  10752. * test/PeerSessionResourceTest.cc
  10753. * test/DefaultBtMessageDispatcherTest.cc
  10754. * test/PeerTest.cc
  10755. * test/BtInterestedMessageTest.cc
  10756. * test/BtRejectMessageTest.cc
  10757. * test/BtChokeMessageTest.cc
  10758. * test/DefaultPeerStorageTest.cc
  10759. * test/BtHaveNoneMessageTest.cc
  10760. * test/BtHaveAllMessageTest.cc
  10761. * test/DefaultExtensionMessageFactoryTest.cc
  10762. * test/BtUnchokeMessageTest.cc
  10763. * test/DefaultBtMessageFactoryTest.cc
  10764. * test/HandshakeExtensionMessageTest.cc
  10765. * test/UTPexExtensionMessageTest.cc
  10766. * test/DefaultBtRequestFactoryTest.cc
  10767. * test/BtPieceMessageTest.cc
  10768. Removed typedef PeerStats.
  10769. * src/PeerStat.h
  10770. * src/SegmentMan.cc
  10771. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10772. Added std namespace to copy, remove_copy, back_inserter,
  10773. front_inserter.
  10774. * src/RequestGroupMan.cc
  10775. * src/DefaultPieceStorage.cc
  10776. * src/StreamFileAllocationEntry.cc
  10777. * src/BtFileAllocationEntry.cc
  10778. * src/RequestGroup.cc
  10779. * src/MetalinkEntry.cc
  10780. * src/DelegatingPeerListProcessor.cc
  10781. * src/DefaultBtRequestFactory.cc
  10782. * src/DefaultBtMessageDispatcher.cc
  10783. * src/version_usage.cc: Included <algorithm>
  10784. * src/main.cc
  10785. * src/MetalinkParserController.cc
  10786. * src/DefaultBtContext.cc
  10787. * src/DownloadEngineFactory.cc
  10788. * src/a2algo.h
  10789. Removed.
  10790. * test/StreamUriListParserTest.cc
  10791. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10792. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  10793. ActivePeerConnectionCommand when it is given and
  10794. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  10795. * src/ActivePeerConnectionCommand.{h, cc}
  10796. * src/BtSetup.cc
  10797. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10798. Only add socket to DownloadEngine's select routine when peer or
  10799. localhost is unchoked and interested. This lowers CPU usage a
  10800. little bit.
  10801. * src/PeerInteractionCommand.cc
  10802. * src/PeerAbstractCommand.{h, cc}
  10803. * src/BtInteractive.h
  10804. * src/DefaultBtInteractive.{h, cc}
  10805. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10806. Revert previous change because get_peers message is needed for
  10807. announce_peer anyway.
  10808. * src/DHTGetPeersCommand.cc
  10809. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10810. Request peers thought DHT only when download hasn't finished.
  10811. * src/DHTGetPeersCommand.cc
  10812. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10813. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  10814. * src/DHTBucketRefreshTask.{h, cc}
  10815. * src/DHTSetup.cc
  10816. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10817. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  10818. standard classes.
  10819. Included string.h where mem* function are used.
  10820. Added namespace aria2.
  10821. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10822. Create directory before saving DHT routing table.
  10823. Now ios::failure is now handled properly.
  10824. * src/DHTAutoSaveCommand.cc
  10825. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10826. Removed unnecessary cerr.
  10827. * src/DownloadEngine.cc
  10828. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10829. Catch exception inside DHTMessageReceiver::receiveMessage().
  10830. Log unknown message.
  10831. * src/DHTMessageReceiver.{h, cc}
  10832. * src/DHTMessageFactory.h
  10833. * src/DHTMessageFactoryImpl.{h, cc}
  10834. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  10835. * src/DHTInteractionCommand.cc
  10836. * src/DHTUnknownMessage.{h, cc}
  10837. * test/DHTUnknownMessageTest.cc
  10838. * test/MockDHTMessageFactory.h
  10839. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10840. Commented out ip address comparison because a host can have multiple
  10841. ip addresses and it is hard to predict the hostname is resolved into
  10842. which one.
  10843. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  10844. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10845. * po/Makefile.in: Removed since this is generated by configure.
  10846. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10847. Fixed compiler warning about redefinition of SIZE_MAX.
  10848. Use common.h instead of config.h directly here.
  10849. * src/Platform.{h, cc}
  10850. The check of ENABLE_NLS is made in gettext.h, so it is not required
  10851. here.
  10852. * common.h
  10853. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  10854. Updated gettext related files.
  10855. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  10856. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  10857. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10858. Added DHT functionality, compatible with mainline.
  10859. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  10860. You may need to specify entry point to DHT network using
  10861. --dht-entry-point. DHT uses UDP port to listen incoming message.
  10862. Use --dht-listen-port to specify port number. Make sure that your
  10863. firewall configuration can pass through UDP traffic to the port.
  10864. The routing table is saved in $HOME/.aria2/dht.dat.
  10865. * src/DHT*
  10866. * src/BNode.{h, cc}
  10867. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  10868. particular torrent.
  10869. * src/Data.cc: Rewritten ctor.
  10870. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  10871. --dht-entry-point.
  10872. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  10873. * src/RequestGroup.cc: Initialize DHT functionality. When download
  10874. ends, remove BtContext from DHTPeerAnnounceStorage.
  10875. * src/BtPortMessage.{h, cc}: Rewritten.
  10876. * src/message.h
  10877. * src/OptionHandlerImpl.cc
  10878. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  10879. --dht-entry-point.
  10880. * src/Dictionary.{h, cc} (remove): New function.
  10881. * src/prefs.h
  10882. * src/DefaultBtMessageFactory.h
  10883. * src/BtHandshakeMessage.cc
  10884. * src/ActivePeerConnectionCommand.cc
  10885. * src/SocketCore.{h, cc}: Added datagram socket support.
  10886. * src/DefaultBtMessageFactory.cc
  10887. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  10888. Create DHT commands.
  10889. * src/BtMessageFactory.h
  10890. * src/PeerMessageUtil.{h, cc}
  10891. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10892. Fixed the bug that log file is not written when configuration file doesn't exist.
  10893. This is caused by using Logger class before LogFactory is not configured.
  10894. BUG #1875079
  10895. * src/option_processing.cc
  10896. Warning message "configuration doesn't exist" is only printed when --conf is
  10897. given.
  10898. * src/option_processing.cc
  10899. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10900. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  10901. ShaVisitor is now deprecated and slated to be removed.
  10902. * src/DefaultBtContext.cc
  10903. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10904. Externalize message to message.h
  10905. * src/Platform.cc
  10906. * src/message.h
  10907. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10908. Set default domain and default path to cookie.
  10909. * src/HttpResponse.cc
  10910. * src/CookieBox.{h, cc}
  10911. * src/CookieParser.{h, cc}
  10912. * test/CookieParserTest.cc
  10913. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10914. Added --no-conf and --conf-path command-line option.
  10915. --no-conf option disables loading aria2.conf file.
  10916. --conf-path option changes the configuration file path. The default
  10917. file path is $HOME/.aria2/aria2.conf
  10918. Added a warning message when the configuration file is not found.
  10919. * src/HelpItemFactory.cc
  10920. * src/option_processing.cc
  10921. * src/prefs.h
  10922. * src/usage_text.h
  10923. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10924. Added the message to inform users that other help categories are
  10925. available in -h option.
  10926. * src/version_usage.cc
  10927. * src/TagContainer.{h, cc}
  10928. * test/TagContainerTest.cc
  10929. * src/TaggedItem.{h, cc}
  10930. * test/TaggedItemTest.cc
  10931. * src/HelpItem.h
  10932. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10933. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  10934. from PiecedSegment's ctor.
  10935. Previously Piece::getAllMissingBlockIndexes() is called from
  10936. PiecedSegment() but it is rather expensive since only first element is
  10937. used.
  10938. * src/PiecedSegment.cc
  10939. * src/Piece.{h, cc}
  10940. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10941. Rewritten get*Missing*Index functions. Now no need to allocate memory
  10942. each time these functions are called.
  10943. * src/BitfieldMan.{h, cc}
  10944. * test/BitfieldManTest.cc
  10945. * src/array_fun.h
  10946. * test/array_funTest.cc
  10947. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  10948. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  10949. filtered. Removed unnecessary cast to int32_t.
  10950. * src/BitfieldMan.{h, cc}
  10951. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10952. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  10953. payload length(4bytes) are received. This happens because lenbufLength
  10954. is not updated in this particular case and successive call of
  10955. receiveMessage() overwrites payload length with bytes recieved which
  10956. are payload body.
  10957. * src/PeerConnection.{h, cc}
  10958. * src/message.h
  10959. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10960. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  10961. peer if there are peers that have same ipaddr and port.
  10962. I've experiened segmentation fault and "pure virtual function was
  10963. called" error.
  10964. * src/Peer.h
  10965. * test/PeerTest.cc
  10966. * src/DefaultPeerStorage.cc
  10967. * test/DefaultPeerStorageTest.cc
  10968. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10969. Removed a call to isPowerOf() because it is no longer necessary here
  10970. and a request block is not always power of 2.
  10971. BUG#1866924
  10972. * src/PeerMessageUtil.cc (checkLength)
  10973. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10974. Fixed the bug that always first found Segment is removed from
  10975. usedSegmentEntries. Removed unused functions.
  10976. * src/SegmentMan.{h, cc}
  10977. * test/SegmentManTest.cc
  10978. Fixed the bug that ServerHost is not removed.
  10979. * src/RequestGroup.cc
  10980. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10981. Fixed the bug that SegmentMan::completeSegment() is not called
  10982. even if Segment is complete when --lowest-speed-limit is enabled.
  10983. BUG#1864525
  10984. * src/DownloadCommand.{h, cc}
  10985. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10986. Fixed: hash algorithm 'sha1' is always used.
  10987. * src/DownloadCommand.cc (validatePieceHash)
  10988. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10989. Added --enable-peer-exchange command-line option.
  10990. * src/OptionHandlerFactory.cc
  10991. * src/HelpItemFactory.cc
  10992. * src/option_processing.cc
  10993. * src/usage_text.h
  10994. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10995. Move extension from BtRuntime to ExtensionMessageFactory, because
  10996. extension can be specified per peer, not per torrent.
  10997. * src/DefaultBtInteractive.cc
  10998. * src/BtRuntime.h
  10999. * src/ExtendedMessagingAware.h
  11000. * src/ExtensionMessageFactory.h
  11001. * src/DefaultExtensionMessageFactory.cc
  11002. * test/DefaultExtensionMessageFactoryTest.cc
  11003. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11004. Added categorized option help. Specify category using --help option.
  11005. Also added the ability to search options in forward match.
  11006. * src/HelpItem.{h, cc}
  11007. * test/HelpItemTest.cc
  11008. * src/HelpItemFactory.{h, cc}
  11009. * src/TagContainer.{h, cc}
  11010. * test/TagContainerTest.cc
  11011. * src/option_processing.cc
  11012. * src/prefs.h
  11013. * src/TaggedItem.{h, cc}
  11014. * test/TaggedItemTest.cc
  11015. * src/version_usage.cc
  11016. * src/help_tags.h
  11017. * src/usage_text.h
  11018. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11019. Fixed segmentation fault when bad torrent metainfo is parsed.
  11020. Added dynamic_cast properly to detect the misconfiguration of metainfo
  11021. and then throw exception or skip it.
  11022. * src/DefaultBtContext.{h, cc}
  11023. * test/DefaultBtContextTest.cc
  11024. * src/AnnounceList.cc
  11025. * src/CompactPeerListProcessor.cc
  11026. * src/message.h
  11027. * src/DefaultBtAnnounce.{h, cc}
  11028. * test/DefaultBtAnnounceTest.cc
  11029. * src/BencodeVisitor.cc
  11030. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11031. Added missing "B"(=Byte). So now the message looks like this:
  11032. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  11033. * src/message.h (MSG_SHARE_RATIO_REPORT)
  11034. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11035. Show the seed ratio after torrent downloads.
  11036. For example, after torrent download completed and --seed-time and
  11037. --seed-ratio conditions are fulfilled, following message is printed
  11038. right after "Download complete: .....":
  11039. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  11040. * src/RequestGroupMan.cc
  11041. * src/RequestGroup.{h, cc}
  11042. * src/message.h
  11043. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11044. Remove a defunct control file. A defunct control file means that while
  11045. it exists, but the corresponding download file is missing.
  11046. After its removal, a download restarts from the beginning.
  11047. * src/RequestGroup.cc
  11048. * src/message.h
  11049. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11050. Allocate bitfield in Peer when it is really used. More specifically,
  11051. bitfield in Peer is allocated after the connection is established and
  11052. deallocated when the connection is dropped.
  11053. Since 2 parameters(piece length and total length) was removed from the
  11054. constructor of Peer class, many test classes were modified accordingly.
  11055. See svn log for more detailed information.
  11056. * src/PeerInteractionCommand.cc
  11057. * src/CompactPeerListProcessor.cc
  11058. * src/Peer.cc
  11059. * src/DefaultPeerListProcessor.cc
  11060. * src/PeerListenCommand.cc
  11061. * src/PeerReceiveHandshakeCommand.cc
  11062. Fixed memory leak
  11063. * src/Piece.cc
  11064. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11065. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  11066. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  11067. command-line options.
  11068. * src/option_processing.cc
  11069. * src/ActivePeerConnectionCommand.cc
  11070. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11071. Send have message to peer if it already has the piece.
  11072. * src/BtHaveMessage.{h, cc}
  11073. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11074. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  11075. port.
  11076. * src/DefaultPeerStorage.{h, cc}
  11077. * test/DefaultPeerStorageTest.cc
  11078. * src/HandshakeExtensionMessage.cc
  11079. * test/HandshakeExtensionMessageTest.cc
  11080. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  11081. * src/PeerStorage.h
  11082. * test/MockPeerStorage.h
  11083. * src/PeerListenCommand.cc
  11084. * src/PeerReceiveHandshakeCommand.cc
  11085. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11086. Added --metalink-enable-unique-protocol option.
  11087. * src/Metalink2RequestGroup.cc
  11088. * src/option_processing.cc
  11089. * src/prefs.h
  11090. * src/version_usage.cc
  11091. * doc/aria2c.1.txt
  11092. * doc/aria2c.1
  11093. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11094. Allow a peer in incomingPeer to be added peers.
  11095. * src/DefaultPeerStorage.cc
  11096. * test/DefaultPeerStorageTest.cc
  11097. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11098. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  11099. I could reproduce this bug in following procedure:
  11100. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  11101. 2. Restart aria2.
  11102. 3. You see the download stopped around 99%.
  11103. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11104. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  11105. If timeout is reached, then _nextCommand is unused and it may contains
  11106. segments and they won't be canceled. Actually, timeout is not needed
  11107. here because if the server dropped connection, then retry is made.
  11108. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11109. Added uTorrent compatible Peer Exchange.
  11110. * src/BencodeVisitor.{h, cc}
  11111. * test/BencodeVisitorTest.cc
  11112. * src/BtConstants.h
  11113. * src/BtContext.h: Added 'private' flag.
  11114. * src/BtExtendedMessage.{h, cc}
  11115. * test/BtExtendedMessageTest.cc
  11116. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  11117. reserved field.
  11118. * test/BtHandshakeMessageTest.cc
  11119. * src/BtMessageFactory.h
  11120. * src/BtRegistry.h
  11121. * src/BtRuntime.h: This class holds default extension message IDs for
  11122. aria2. By default, aria2 uses ID 8 for ut_pex.
  11123. * src/DefaultBtContext.cc
  11124. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  11125. When it is true, aria2 enables ut_pex. This value is set by
  11126. PeerInteractionCommand.
  11127. * src/DefaultBtMessageFactory.{h, cc}
  11128. * test/DefaultBtMessageFactoryTest.cc
  11129. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  11130. handling to DefaultBtInteractive class.
  11131. * src/DefaultExtensionMessageFactory.{h, cc}
  11132. * test/DefaultExtensionMessageFactoryTest.cc
  11133. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  11134. the container(peers and incomingPeers. The equality is determined by
  11135. Peer::id).
  11136. * test/DefaultPeerStorageTest.cc
  11137. * src/ExtensionMessage.h
  11138. * test/MockExtensionMessage.h
  11139. * src/ExtensionMessageFactory.h
  11140. * test/MockExtensionMessageFactory.h
  11141. * src/HandshakeExtensionMessage.{h, cc}
  11142. * test/HandshakeExtensionMessageTest.cc
  11143. * src/MetaEntry.h
  11144. * src/Peer.{h, cc}
  11145. * src/PeerInteractionCommand.cc
  11146. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  11147. addIncomingPeer.
  11148. * src/PeerMessageUtil.{h, cc}
  11149. * src/PeerObject.h
  11150. * src/UTPexExtensionMessage.{h, cc}
  11151. * test/UTPexExtensionMessageTest.cc
  11152. * src/message.h
  11153. * src/prefs.h
  11154. Fixed the bug that returns incomplete data when it contains null
  11155. character. A convenient constructor was also added.
  11156. * src/Data.{h, cc}
  11157. Rewritten.
  11158. * src/CompactPeerListProcessor.cc
  11159. Fixed typos.
  11160. * src/message.h
  11161. * src/MetaFileUtil.cc
  11162. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11163. Added "Status Legend" label to the explanation text of 'stat' in
  11164. download result and moved it to the last. BUG#1848214
  11165. * src/RequestGroupMan.cc
  11166. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11167. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  11168. * src/Makefie.am
  11169. * test/Makefile.am
  11170. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11171. Fixed the bug that prevents aria2 from loading cookie file when expire
  11172. value is greater than 2^31-1. BUG#1851066
  11173. * src/CookieBoxFactory.cc
  11174. * test/CookieBoxFactoryTest.cc
  11175. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11176. Fixed possible memory leak when an exception is thrown.
  11177. * src/XML2SAXMetalinkProcessor.cc
  11178. Added Expat support. If both libxml2 and Expat are installed, then
  11179. libxml2 is used by default.
  11180. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  11181. ExpatMetalinkProcessor according to the configuration.
  11182. * src/ExpatMetalinkProcessor.{h, cc}
  11183. * src/main.cc: Removed libxml2 specific header and init/free function.
  11184. * src/MetalinkProcessorFactory.{h, cc}
  11185. * src/MetalinkHelper.cc
  11186. * src/Metalinker.h: Removed unnecessary libxml2 header.
  11187. * src/MetalinkProcessor.h
  11188. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  11189. MetalinkProcessorTest is used instead.
  11190. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  11191. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  11192. MetalinkProcessorFactory::newInstance().
  11193. * m4/libexpat.m4
  11194. * configure.ac: Added configuration options for libexpat.
  11195. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11196. Disabled -s option in metalink download.
  11197. * src/Metalink2RequestGroup.cc
  11198. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11199. If several protocols are available for a mirror in metalink file,
  11200. aria2 now use one of them. --metalink-preferred-protocol option was
  11201. added to specify the preference of protocol.
  11202. * src/AbstractCommand.cc
  11203. * src/OptionHandlerFactory.cc
  11204. * src/ServerHost.{h, cc}
  11205. * src/Metalink2RequestGroup.cc
  11206. * src/RequestGroup.{h, cc}
  11207. * test/RequestGroupTest.cc
  11208. * src/option_processing.cc
  11209. * src/prefs.h
  11210. * src/HttpResponseCommand.cc
  11211. * src/MetalinkResource.{h, cc}
  11212. * src/FtpNegotiationCommand.cc
  11213. * src/MetalinkEntry.{h, cc}
  11214. * src/MetalinkEntryTest.cc
  11215. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11216. Code cleanup and added debug log.
  11217. * src/PeerConnection.cc
  11218. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11219. Compiler error fix: applied the patch by Tiziano Mueller
  11220. * src/RequestGroup.cc
  11221. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11222. Fixed the bug: only first announce URL is tried in AnnounceTier,
  11223. in stopped and completed event.
  11224. * src/AnnounceList.{h, cc}
  11225. * test/AnnounceListTest.cc
  11226. * src/DefaultBtAnnounce.cc
  11227. * test/DefaultBtAnnounceTest.cc
  11228. Sorted URLs.
  11229. * test/Metalink2RequestGroupTest.cc
  11230. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11231. Removed unnecessary string copy. Updated doc and corrected indentation.
  11232. * src/Base64.cc
  11233. Fixed compilation warnings
  11234. * test/DataTest.cc
  11235. * test/HttpRequestTest.cc
  11236. * test/MetaFileUtilTest.cc
  11237. * test/RequestTest.cc
  11238. * Release 0.12.0
  11239. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11240. Updated translations
  11241. * po/{de,fr,ja,nl,ru}.po
  11242. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  11243. translations. Many thanks to translators.
  11244. * po/{ca,es,it,pt_BR,sv}.po
  11245. * po/LINGUAS
  11246. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11247. Added a notice about URL
  11248. * src/version_usage.cc
  11249. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  11250. Fixed the bug#1845750; CTRL+C does not stop torrent.
  11251. aria2 repeatedly sends stopped request when tracker returns error code.
  11252. * src/AnnounceList.cc
  11253. * test/AnnounceListTest.cc
  11254. * src/AnnounceTier.h
  11255. Added a message when ctrl-c is hit.
  11256. Now second ctrl-c is also handled in signal handler.
  11257. * src/RequestGroupMan.{h, cc}
  11258. * src/RequestGroup.{h, cc}
  11259. * src/MultiUrlRequestInfo.cc
  11260. * src/DownloadEngine.cc
  11261. * src/TrackerWatcherCommand.cc
  11262. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11263. Code cleanup
  11264. * src/Base64.cc (encode)
  11265. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11266. Changed Direct/IO enable/disable procesure in file allocation routine.
  11267. * src/SingleFileAllocationIterator.cc
  11268. (SingleFileAllocationIterator):
  11269. Disable directIO if offset is not multiple of 512.
  11270. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  11271. * src/MultiFileAllocationIterator.cc (allocateChunk):
  11272. Enable created SingleFileAllocationIterator's directIO.
  11273. * src/FileAllocationEntry.cc
  11274. (FileAllocationEntry): Enable directIO here.
  11275. (~FileAllocationEntry): Disable directIO here.
  11276. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11277. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  11278. * src/Peer.{h, cc}
  11279. * src/DefaultPieceStorage.cc
  11280. * test/DefaultPieceStorageTest.cc
  11281. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11282. Rewritten direct I/O support routine
  11283. * src/SingleFileAllocationIterator.cc
  11284. * src/MultiDiskAdaptor.{h, cc}
  11285. * src/ByteArrayDiskWriter.h
  11286. * src/AbstractSingleDiskAdaptor.h
  11287. * src/AbstractDiskWriter.cc
  11288. * src/DefaultPieceStorage.cc
  11289. * src/DiskWriter.h
  11290. * src/BinaryStream.h
  11291. * src/IteratableChunkChecksumValidator.cc
  11292. * src/IteratableChecksumValidator.cc
  11293. * src/CheckIntegrityEntry.cc
  11294. * src/FileAllocationEntry.cc
  11295. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11296. Fixed typo
  11297. * src/version_usage.cc
  11298. Updated doc
  11299. * doc/aria2c.1.txt
  11300. * doc/aria2c.1
  11301. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11302. Fixed compile error without message digest support.
  11303. * src/FileMetalinkParserState.cc
  11304. * src/MetalinkParserController.{h, cc}
  11305. * test/XML2SAXMetalinkProcessorTest.cc
  11306. * test/MetalinkParserControllerTest.cc
  11307. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11308. Enable direct I/O support in checksum checking.
  11309. * src/IteratableChunkChecksumValidator.{h, cc}
  11310. * test/IteratableChunkChecksumValidatorTest.cc
  11311. * src/CheckIntegrityEntry.cc
  11312. * src/PieceHashCheckIntegrityEntry.cc
  11313. * src/IteratableChecksumValidator.{h, cc}
  11314. * src/BtCheckIntegrityEntry.cc: Added doc.
  11315. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11316. Added --allow-piece-length-change option.
  11317. * src/DefaultBtProgressInfoFile.cc
  11318. * test/DefaultBtProgressInfoFileTest.cc
  11319. * src/OptionHandlerFactory.cc
  11320. * src/option_processing.cc
  11321. * src/prefs.h
  11322. * src/version_usage.cc
  11323. * doc/aria2c.1.txt
  11324. * doc/aria2c.1
  11325. Fixed: duplicated result entry appears when exception is thrown in
  11326. RequestGroup::createInitiateConnectionCommand().
  11327. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  11328. Add RequestGroup to _requestGroup after RequetGroup::
  11329. createInitiateConnectionCommand() succeeds.
  11330. Externalized message
  11331. * src/XML2SAXMetalinkProcessor.cc
  11332. * src/message.h
  11333. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11334. Forced download abort when received negative response from http/ftp
  11335. server.
  11336. * src/HttpResponseCommand.cc
  11337. * src/FtpNegotiationCommand.cc
  11338. * src/HttpResponse.cc
  11339. * src/FtpConnection.cc
  11340. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11341. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  11342. the predecessor, Xml2MetalinkParser class.
  11343. I tested them against 94KB metalink file with 1234 chunk checksums.
  11344. The new one parsed it in 22msec, while it took 6000msec with old one.
  11345. * src/XML2SAXMetalinkProcessor.{h, cc}
  11346. * test/XML2SAXMetalinkProcessorTest.cc
  11347. * src/MetalinkParserController.{h, cc}
  11348. * test/MetalinkParserControllerTest.cc
  11349. * src/MetalinkParserState.h: Also added 16 subclasses.
  11350. * src/main.cc
  11351. * src/Metalink2RequestGroup.cc
  11352. * src/MetalinkHelper.cc
  11353. * src/MetalinkEntry.cc
  11354. * src/ChunkChecksum.h
  11355. Rewritten Base64 class for better performance.
  11356. * src/Base64.{h, cc}
  11357. * test/Base64Test.cc
  11358. * src/HttpRequest.cc
  11359. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11360. Fixed the bug#1841757: aria2 will connect to server to only get
  11361. file size.
  11362. * src/StreamFileAllocationEntry.cc
  11363. * src/option_processing.cc
  11364. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  11365. downloads.
  11366. * src/FtpNegotiationCommand.cc
  11367. Suppressed wrong message when finding PreDownloadHandler
  11368. * src/RequestGroup.cc
  11369. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11370. Updated usage
  11371. * src/version_usage.cc
  11372. Updated man page
  11373. * doc/aria2c.1.txt
  11374. * doc/aria2c.1
  11375. Updated po files
  11376. * po/aria2c.pot
  11377. * po/*.po
  11378. * po/*.gmo
  11379. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11380. Eliminated g++-4.2 warning
  11381. * src/DownloadHandlerConstants.{h, cc}
  11382. * src/Util.cc
  11383. * test/MetaFileUtilTest.cc
  11384. * test/PStringBuildVisitorTest.cc
  11385. Fixed bug: --check-integrity doesn't work for multi file torrent.
  11386. * src/RequestGroup.cc
  11387. * src/BtCheckIntegrityEntry.cc
  11388. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11389. Fixed a2io.h
  11390. * src/a2io.h
  11391. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11392. Added direct I/O support. The current implementation uses O_DIRECT,
  11393. which is not posix standard and is tested on linux 2.6.21.
  11394. Currently only file allocation uses direct I/O.
  11395. * src/SingleFileAllocationIterator.{h, cc}
  11396. * test/SingleFileAllocationIteratorTest.cc
  11397. * src/MultiFileAllocationIterator.{h, cc}
  11398. * test/MultiFileAllocationIteratorTest.cc
  11399. * src/BinaryStream.h
  11400. * src/DiskWriter.h
  11401. * src/AbstractDiskWriter.{h, cc}
  11402. * src/ByteArrayDiskWriter.h
  11403. * src/DiskAdaptor.h
  11404. * src/AbstractSingleDiskAdaptor.{h, cc}
  11405. * src/MultiDiskAdaptor.{h, cc}
  11406. * src/FileAllocationEntry.cc
  11407. * src/Util.{h, cc}
  11408. * src/OptionHandlerFactory.cc
  11409. * src/prefs.h
  11410. * src/version_usage.cc
  11411. * src/option_processing.cc
  11412. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  11413. handleException.
  11414. * src/MultiFileAllocationIterator.cc
  11415. Added EINTR handling
  11416. * src/SocketCore.cc
  11417. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11418. Updated usage
  11419. * src/version_usage.cc
  11420. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11421. Applied Ross's patch for MinGW port.
  11422. * src/DownloadEngine.h
  11423. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11424. Set Content-Type to SingleFileDownloadContext when http response is
  11425. received.
  11426. * src/HttpResponseCommand.cc
  11427. * src/HttpResponse.{h, cc}
  11428. * test/HttpResponseTest.cc
  11429. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11430. Rewritten to add content-type support.
  11431. * src/DownloadHandler.{h, cc}
  11432. * src/BtPostDownloadHandler.{h, cc}
  11433. * test/BtPostDownloadHandlerTest.cc
  11434. * src/MetalinkPostDownloadHandler.{h, cc}
  11435. * test/MetalinkPostDownloadHandlerTest.cc
  11436. * src/PostDownloadHandler.{h, cc}
  11437. * src/DownloadHandlerConstants.{h, cc}
  11438. * src/RequestGroup.cc
  11439. * src/HttpResponseCommand.cc
  11440. * src/FtpNegotiationCommand.cc
  11441. * src/SingleFileDownloadContext.{h, cc}
  11442. * src/RequestGroup.h
  11443. * src/RequestGroupCriteria.h
  11444. * src/ContentTypeRequestGroupCriteria.h
  11445. Added 'mem' option value for --follow-metalink, --follow-torrent.
  11446. If it is give, metalink/torrent file is not written to the disk, but
  11447. just is kept in memory. Parsing is occurred on memory.
  11448. * src/MetalinkHelper.{h, cc}
  11449. * src/MetalinkProcessor.h
  11450. * src/Xml2MetalinkProcessor.{h, cc}
  11451. * test/Xml2MetalinkProcessorTest.cc
  11452. * src/DownloadHandlerFactory.{h, cc}
  11453. * test/DownloadHandlerFactoryTest.cc
  11454. * src/PreDownloadHandler.{h, cc}
  11455. * src/OptionHandlerFactory.cc
  11456. * src/DefaultBtContext.{h, cc}
  11457. * test/DefaultBtContextTest.cc
  11458. * src/version_usage.cc
  11459. * src/Metalink2RequestGroup.{h, cc}
  11460. * src/RequestGroup.{h, cc}
  11461. * src/a2functional.h
  11462. * test/a2functionalTest.cc
  11463. * src/MemoryBufferPreDownloadHandler.{h, cc}
  11464. * src/OptionHandlerImpl.h
  11465. * src/prefs.h
  11466. * src/Util.{h, cc}
  11467. * test/UtilTest.cc
  11468. Keep DownloadResult rather than RequestGroup after downloads to reduce
  11469. memory usage.
  11470. * src/RequestGroupMan.{h, cc}
  11471. * src/DownloadEngine.cc
  11472. * src/BtDependency.{h, cc}: Changed the type of dependee from
  11473. WeakHandle to SharedHandle because WeakHandle could be null.
  11474. * src/RequestGroup.{h, cc}
  11475. * src/DownloadEngineFactory.cc
  11476. * src/DownloadResult.h
  11477. Set totalLength after download finished
  11478. * src/UnknownLengthPieceStorage.{h, cc}
  11479. Keep torrent file specified in metalink in memory.
  11480. * src/Metalink2RequestGroup.cc
  11481. * src/BtDependency.cc
  11482. * src/TrueRequestGroupCriteria.h
  11483. Fixed the bug: seekg is used where seekp should be used.
  11484. * src/ByteArrayDiskWriter.cc
  11485. * test/ByteArraydiskWriterTest.cc
  11486. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11487. Fixed syntax error
  11488. * test/SequenceTest.cc
  11489. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11490. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11491. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  11492. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11493. * src/RequestGroup.cc (downloadFinishedByFileLength)
  11494. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11495. Added the check to see whether ares_host_callback accepts timeouts
  11496. with c-ares; only c-ares 1.5.0 or newer accepts it.
  11497. * src/NameResolver.{h, cc}
  11498. * m4/libcares.m4
  11499. * configure.ac: Set C++ for language choice.
  11500. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11501. Fixed: compilation fails without c-ares/ares
  11502. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  11503. Generate http/ftp commands only when download is incomplete.
  11504. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  11505. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11506. Corrected typo. Examples are removed since they are available in man
  11507. page.
  11508. * src/version_usage.cc
  11509. Updated man page.
  11510. * doc/aria2c.1
  11511. * doc/aria2c.1.txt
  11512. * doc/makeman: Commented out sed command.
  11513. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11514. Throw DlAbortEx when a remote file is not found.
  11515. * src/HttpResponse.cc
  11516. * src/FtpNegotiationCommand.cc
  11517. * src/message.h
  11518. Overwrite an existing file if --allow-overwrite=true is given.
  11519. * src/RequestGroup.cc
  11520. Removed unused functions
  11521. * src/AbstractCommand.h
  11522. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11523. Removed 'extern' from 'extern typedef ...' in src/*.h
  11524. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11525. Updated usage
  11526. * src/version_usage.cc
  11527. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11528. Trim announce URL
  11529. * src/DefaultBtContext.cc
  11530. * test/ShaVisitorTest.cc
  11531. Trim argument s. Give trimed s to exception constructor.
  11532. * src/Util.cc (parseInt)(parseLLInt)
  11533. * test/UtilTest.cc
  11534. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11535. Set precision back to 1.
  11536. * src/ConsoleStatCalc.cc (calculateStat)
  11537. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11538. Replaced strtol with Util::parseInt
  11539. * src/ChunkedEncoding.cc
  11540. * src/HttpConnection.cc
  11541. * src/CookieBoxFactory.cc
  11542. * src/ParameterizedStringParser.cc
  11543. * src/Util.cc
  11544. * test/UtilTest.cc
  11545. * test/OptionHandlerTest.cc
  11546. * src/Request.cc
  11547. Throw exception when empty string is given. The message for exception
  11548. changed.
  11549. * src/Util.cc (parseInt)(parseLLInt)
  11550. * src/message.h
  11551. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11552. Set precision to 2 because share ratio is rounded into 1.0 if precision
  11553. set to 1.
  11554. * src/ConsoleStatCalc.cc (calculateStat)
  11555. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11556. Preallocate non-requested file which is adjacent forward to requested
  11557. file('requested' files means the files given in --select-file option)
  11558. if they share a same piece.
  11559. This fixes long pause in the file system which doesn't support sparse
  11560. files like FAT32 while downloading.
  11561. * src/MultiFileAllocationIterator.{h, cc}
  11562. * test/MultiFileAllocationIteratorTest.cc
  11563. * src/FileEntry.{h, cc}
  11564. Removed unused _option.
  11565. * src/MultiDiskAdaptor.h
  11566. * test/MultiDiskAdaptorTest.cc
  11567. * src/DefaultPieceStorage.cc
  11568. Set the default value of --seed-ratio to 1.0.
  11569. If 0.0 is given, then seeding continues regardless of share ratio.
  11570. * src/version_usage.cc
  11571. * src/option_processing.cc
  11572. * src/BtSetup.cc
  11573. * doc/aria2c.1.txt
  11574. * doc/aria2c.1
  11575. Fixed: Selective download is not working in BitTorrent
  11576. * src/RequestGroup.cc
  11577. Introduced Sequence class. Use this instead of Util::unfoldRange()
  11578. * src/PieceStorage.h
  11579. * test/MockPieceStorage.h
  11580. * src/UnknownLengthPieceStorage.h
  11581. * src/DefaultPieceStorage.{h, cc}
  11582. * src/Metalink2RequestGroup.cc
  11583. * src/RequestGroup.cc
  11584. * src/Sequence.h
  11585. * test/SequenceTest.cc
  11586. * src/IntSequence.h
  11587. * src/message.h
  11588. * src/Util.{h, cc}
  11589. * test/UtilTest.cc
  11590. Added new function 'parse' to catch exception thrown by subclass's
  11591. parseArg
  11592. * src/OptionHandler.h
  11593. * src/OptionParser.cc
  11594. * src/NameMatchOptionHandler.h
  11595. * src/OptionHandlerImpl.h
  11596. * test/OptionHandlerTest.cc
  11597. Added IntegerRangeOptionHandler. Used for --listen-port and
  11598. --select-file. Now --listen-port accepts range of port.
  11599. * src/OptionHandlerFactory.cc
  11600. * src/version_usage.cc
  11601. * src/OptionHandlerImpl.h
  11602. * src/option_processing.cc
  11603. * src/BtSetup.cc
  11604. * src/PeerListenCommand.{h, cc}
  11605. * doc/aria2c.1.txt
  11606. * doc/aria2c.1
  11607. Implemented operator< for Exception class to provide easy way to print
  11608. exception stack trace.
  11609. * src/Exception.{h, cc}
  11610. * src/main.cc
  11611. * src/option_processing.cc
  11612. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11613. * src/version_usage.cc
  11614. (showVersion): Reworked.
  11615. (showUsage): Added examples.
  11616. Removed Hint for total length and file name.
  11617. * src/Metalink2RequestGroup.cc
  11618. * src/RequestGroup.{h, cc}
  11619. * src/HttpResponseCommand.cc
  11620. * src/FtpNegotiationCommand.cc
  11621. Now --follow-torrent and --follow-metalink option work properly.
  11622. * src/RequestGroup.cc
  11623. Updated man page
  11624. * doc/aria2c.1.txt
  11625. * doc/aria2c.1
  11626. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11627. Removed.
  11628. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  11629. Use Segment::operator==()
  11630. * src/HttpConnection.cc
  11631. * src/Segment.h
  11632. Updated usage
  11633. * src/version_usage.cc
  11634. Added EINTR treatment.
  11635. * src/SocketCore.cc
  11636. * src/AbstractDiskWriter.cc
  11637. Rewritten.
  11638. * src/Util.cc (rangedFileCopy)
  11639. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11640. Fixed typo.
  11641. * src/version_usage.cc
  11642. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11643. Implemented. Now -c option works fine.
  11644. * src/DefaultPieceStorage.cc (markPiecesDone)
  11645. * test/DefaultPieceStorageTest.cc
  11646. Removed.
  11647. * src/SegmentMan.{h, cc}
  11648. (markAllPiecesDone)
  11649. (markPieceDone)
  11650. Synchronized po files with
  11651. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  11652. * src/fr.po
  11653. * src/ru.po
  11654. * src/de.po
  11655. * src/ja.po
  11656. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11657. Added ifdef and some modifications to compile without BitTorrent,
  11658. Metalink, MessageDigest
  11659. support.
  11660. * src/PieceHashCheckIntegrityEntry.cc
  11661. * src/MetalinkEntry.h
  11662. * src/version_usage.cc
  11663. * src/main.cc
  11664. * src/DownloadEngine.{h, cc}
  11665. * src/Metalink2RequestGroup.cc
  11666. * src/Peer.cc
  11667. * src/RequestGroup.cc
  11668. * src/MetalinkHelper.cc
  11669. * test/DefaultPieceStorageTest.cc
  11670. * test/MetalinkPostDownloadHandlerTest.cc
  11671. * test/Metalink2RequestGroupTest.cc
  11672. Hide TOTAL SPD when all downloads complete.
  11673. * src/ConsoleStatCalc.cc
  11674. Log target system information.
  11675. * src/main.cc
  11676. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11677. Now --metalink-location accepts a comma-deliminated list of locations.
  11678. * src/MetalinkEntry.{h, cc}
  11679. * test/MetalinkEntryTest.cc
  11680. * src/version_usage.cc
  11681. * src/Metalink2RequestGroup.cc
  11682. * src/Xml2MetalinkProcessor.cc
  11683. * test/Xml2MetalinkProcessorTest.cc
  11684. * doc/aria2c.1.txt
  11685. * doc/aria2c.1
  11686. * src/Util.cc (toUpper)(toLower): Rewritten.
  11687. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11688. Added the ability to detect duplicate download entry which is about to
  11689. download the same file other RequestGroup is downloading.
  11690. * src/RequestGroup.cc
  11691. * src/HttpResponseCommand.cc
  11692. * src/FtpNegotiationCommand.cc
  11693. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11694. Recalculates download progress when loading a control file,
  11695. if the piece length of DownloadContext is different from the one saved
  11696. in the control file. Currently in-flight pieces are ignored.
  11697. * src/DefaultBtProgressInfoFile.cc
  11698. * test/DefaultBtProgressInfoFileTest.cc
  11699. * src/Util.{h, cc}
  11700. * test/UtilTest.cc
  11701. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11702. Do not rotate tiers in announce-list.
  11703. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  11704. AnnounceList::allTiersFailed() used instead to detect whether all
  11705. tiers are tried and failed.
  11706. * test/DefaultBtAnnounceTest.cc
  11707. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  11708. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  11709. * test/AnnounceListTest.cc
  11710. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  11711. clause. Catch RecoverableException instead of DlRetryEx instead.
  11712. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11713. Implemented checksum validation feature(1 checksum for each file)
  11714. The validation takes place after the download.
  11715. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  11716. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  11717. * src/CheckIntegrityCommand.cc: Changed log message.
  11718. * src/Metalink2RequestGroup.cc: Set checksum to
  11719. SingleFileDownloadContext.
  11720. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  11721. PieceHashCheckIntegrity class.
  11722. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  11723. PieceHashCheckIntegrity class.
  11724. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  11725. * src/IteratableValidator.h: New class.
  11726. * src/message.h
  11727. * src/CheckIntegrityEntry.{h, cc}
  11728. * src/IteratableChunkChecksumValidator.{h, cc}
  11729. * src/SingleFileDownloadContext.h
  11730. * src/DownloadCommand.cc
  11731. --allow-overwrite=true is no longer needed to check file integrity
  11732. before download in BitTorrent download.
  11733. * src/RequestGroup.cc (getInitialCommand)
  11734. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  11735. throws exception.
  11736. * src/RequestGroupMan.cc (getInitialCommands)
  11737. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11738. urlencode the given url inside Request::parseUrl(...)
  11739. * src/Request.{h, cc}
  11740. * src/Util.{h, cc}
  11741. * test/RequestTest.cc
  11742. Removed #!metalink3! notation support because it is deleted from
  11743. the metalink specification.
  11744. * src/Request.{h, cc}
  11745. * test/RequestTest.cc
  11746. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11747. Don't connect server before checking file integrity at startup, if
  11748. filesize and output file path are known.
  11749. * src/AbstractCommand.cc
  11750. * src/StreamFileAllocationEntry.cc
  11751. * src/Metalink2RequestGroup.cc
  11752. * src/RequestGroup.{h, cc}
  11753. * src/HttpResponseCommand.cc
  11754. * src/FtpNegotiationCommand.cc
  11755. Added DownloadFailureException. If it is thrown, RequestGroup should
  11756. halt.
  11757. * src/AbstractCommand.cc
  11758. * src/DownloadFailureException.h
  11759. * src/RequestGroup.cc
  11760. Catch RecoverableException, instead of DlAbortEx.
  11761. * src/RequestGroupMan.cc
  11762. * src/FillRequestGroupCommand.cc
  11763. * src/MetaFileUtil.cc
  11764. * src/IteratableChunkChecksumValidator.cc
  11765. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  11766. getGID())
  11767. * src/CheckIntegrityCommand.cc
  11768. * src/message.h
  11769. Print gid instead of idx.
  11770. * src/RequestGroupMan.cc
  11771. Removed exception throwers declaration.
  11772. * src/DirectDiskAdaptor.{h, cc}
  11773. * src/SocketCore.{h, cc}
  11774. * src/MultiDiskAdaptor.{h, cc}
  11775. * src/HttpConnection.{h, cc}
  11776. * src/HttpResponse.{h, cc}
  11777. * src/DiskAdaptor.{h, cc}
  11778. * src/CopyDiskAdaptor.{h, cc}
  11779. * src/MultiDiskAdaptor.{h, cc}
  11780. * src/HttpHeaderProcessor.{h, cc}
  11781. * src/AbstractSingleDiskAdaptor.{h, cc}
  11782. * src/Util.{h, cc}
  11783. * test/UtilTest.cc
  11784. * src/DefaultDiskWriter.{h, cc}
  11785. * src/FtpConnection.{h, cc}
  11786. * src/AbstractDiskWriter.{h, cc}
  11787. Removed duplicate code.
  11788. * src/StreamCheckIntegrityEntry.cc
  11789. Removed unnecessary include.
  11790. * src/DiskWriter.h
  11791. Included Exception.h
  11792. * src/option_processing.cc
  11793. Included 2 files and added doc
  11794. * src/TrackerWatcherCommand.cc
  11795. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  11796. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11797. Changed CheckIntegrityEntry interface so that it can define
  11798. the action when all the chunk checksums are valid.
  11799. * src/CheckIntegrityEntry.h
  11800. * src/StreamCheckIntegrityEntry.{h, cc}
  11801. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  11802. are valid, then aira2 goes to seeding mode. Sometimes it is better
  11803. to exit rather than doing seeding. So, it would be good to toggle this
  11804. behavior.
  11805. * src/CheckIntegrityCommand.cc
  11806. * src/AbstractCommand.cc
  11807. * src/RequestGroup.cc
  11808. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11809. Reflect the download length of in-flight pieces.
  11810. It makes the download length readout more precise.
  11811. * src/DefaultPieceStorage.{h, cc}
  11812. * test/DefaultPieceStorageTest.cc
  11813. * src/a2functional.h
  11814. * test/a2functionalTest.cc
  11815. Lower CPU load when --max-download-limit is used.
  11816. There is up and down in speed indicator when enabling
  11817. http-pipelining but a download goes well. I think the problem is that
  11818. because http-pipelining is enabled, DownloadCommand is created for
  11819. each segment and in its constructor, PeerStat::downloadStart() is
  11820. called. In PeerStat::downloadStart(), speed calculation object is
  11821. reseted, which makes download speed zero.
  11822. * src/DownloadCommand.cc
  11823. Rewritten using accumulate.
  11824. * src/RequestGroupMan.cc (calculateStat)
  11825. Code clearnup.
  11826. * src/FtpNegotiationCommand.cc
  11827. * src/HttpResponseCommand.cc
  11828. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11829. Fixed: Can not resume: aria2 reports download already finished.
  11830. * src/AbstractCommand.{h, cc}
  11831. * src/HttpResponseCommand.cc
  11832. * src/FtpNegotiateCommand.cc
  11833. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11834. Now a file is stored in the directory specified in .metalnk file
  11835. (file[@name]).
  11836. * src/Metalink2RequestGroup.cc
  11837. Create the directory structure when opening the file if it doesn't
  11838. exist.
  11839. * src/AbstractDiskWriter.cc
  11840. * src/Util.{h, cc}
  11841. * src/File.h
  11842. * test/UtilTest.cc
  11843. Removed file name comparison
  11844. * src/Metalink2RequestGroup.cc
  11845. * src/HttpResponseCommand.cc
  11846. Rewritten using Util::mkdirs()
  11847. * src/FileEntry.cc (setupDir)
  11848. * test/FileEntryTest.cc
  11849. Updated doc
  11850. * src/SingleFileDownloadContext.h
  11851. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11852. Now SleepCommand dispatches nextCommand when halt is requested.
  11853. It avoids a possible long wait after hitting CTRL-C.
  11854. * src/SleepCommand.{h, cc}
  11855. * src/RequestGroupAware.{h, cc}
  11856. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11857. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  11858. to open listen port, then remove the port number from the tracker
  11859. request.
  11860. * src/DefaultBtAnnounce.cc
  11861. * test/DefaultBtAnnounceTest.cc
  11862. * test/MockPieceStorage.h
  11863. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  11864. them more testable.
  11865. * src/DefaultBtAnnounce.{h, cc}
  11866. * src/DefaultBtContext.{h, cc}
  11867. * src/Util.{h, cc}
  11868. * test/DefaultBtAnnounceTest.cc
  11869. * test/DefaultBtContextTest.cc
  11870. * test/UtilTest.cc
  11871. Added 'B' to upload bytes readout.
  11872. * src/ConsoleStatCalc.cc
  11873. Now the listen port for BitTorrent download is opened when it is
  11874. needed.
  11875. * src/DownloadEngineFactory.cc
  11876. * src/BtSetup.{h, cc}
  11877. * src/PeerListenCommand.{h, cc}
  11878. Now an exception thrown while parsing tracker response is now logged.
  11879. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  11880. called, which means no retry is made in this case, assuming a tracker
  11881. has a problem.
  11882. * src/TrackerWatcherCommand.cc
  11883. Fixed: downloading a file whose length is unkown fails.
  11884. * src/DownloadCommand.cc
  11885. Simplified prepareForNextSegment()
  11886. * src/DownloadCommand.cc
  11887. Updated
  11888. * po/POTFILES.in
  11889. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11890. Re-implemented a file listing for Metalink, which was dropped while
  11891. http/ftp/torrent integration was being implemented.
  11892. * src/MetalinkHelper.{h, cc}: New class.
  11893. * test/MetalinkHelperTest.cc
  11894. * src/main.cc
  11895. * src/Metalink2RequestGroup.cc
  11896. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11897. Added the ability to display the detailed torrent file information.
  11898. Now -S option gives not only a file listing, but also total download
  11899. length, info hash, announce URI, piece length, the number of pieces,
  11900. and mode(single or multi-torrent).
  11901. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  11902. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  11903. KiB)
  11904. * test/UtilTest.cc
  11905. * src/main.cc
  11906. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11907. Added ftp://USER:PASSWD@Servername automatic parsing.
  11908. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  11909. _password. Recognize username and password in URI.
  11910. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  11911. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  11912. * src/RequestFactory.{h, cc}: Removed.
  11913. * src/AuthConfigFactory.{h, cc}: New class.
  11914. * src/FtpConnection.cc: Use AuthConfigFactory.
  11915. * src/HttpRequest.cc: Use AuthConfigFactory.
  11916. * test/HttpRequestTest.cc: Updated.
  11917. * test/RequestTest.cc: Updated.
  11918. * test/AuthConfigFactoryTest.cc: New class.
  11919. * test/RequestFactoryTest.cc: Removed.
  11920. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11921. Use RequestGroup::allDownloadFinished() to decide whether the control
  11922. file should be removed or saved.
  11923. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  11924. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  11925. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11926. Use File::renameTo()
  11927. * src/DefaultBtProgressInfoFile.cc
  11928. Added --no-file-allocation-limit command-line option.
  11929. * src/version_usage.cc
  11930. * src/option_processing.cc
  11931. * src/OptionHandlerFactory.cc
  11932. * src/RequestGroup.{h, cc}
  11933. * src/BtCheckIntegrityEntry.cc
  11934. * src/StreamCheckIntegrityEntry.cc
  11935. * src/prefs.h
  11936. * doc/aria2c.1.txt
  11937. * doc/aria2c.1
  11938. Now prealloc is the default value for --file-allocation option.
  11939. * src/version_usage.cc
  11940. * src/option_processing.cc
  11941. * doc/aria2c.1.txt
  11942. * doc/aria2c.1
  11943. Don't URL-encode user-agent.
  11944. * src/HttpRequest.cc
  11945. Updated translations
  11946. * po/LINGUAS: Added nl for Dutch translation.
  11947. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  11948. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  11949. * po/POTFILES.in: Updated.
  11950. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11951. Added the ability to recognize url-list in a torrent file.
  11952. The retrieved URLs are attached to the corresponding FileEntry.
  11953. * src/DefaultBtContext.{h, cc}
  11954. * src/FileEntry.{h, cc}
  11955. * test/DefaultBtContextTest.cc
  11956. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11957. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  11958. after the download finishes.
  11959. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11960. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  11961. the data smaller than block length.
  11962. A block length can be specified by constructor's argument.
  11963. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  11964. Get a missing piece in the range of given FileEntry. This function is
  11965. not used in the program yet.
  11966. * src/Util.h: Added some macros.
  11967. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11968. Added HTTP/1.1 keep alive and pipelining support.
  11969. See --enable-http-keep-alive and --enable-http-pipelining option.
  11970. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  11971. Segment.
  11972. * src/HttpDownloadCommand.{h, cc}
  11973. * src/OptionHandlerFactory.cc
  11974. * src/HttpConnection.{h, cc}
  11975. * src/version_usage.cc
  11976. * src/HttpInitiateConnectionCommand.cc
  11977. * src/FtpInitiateConnectionCommand.cc
  11978. * src/Segment.h
  11979. * src/HttpRequestCommand.{h, cc}
  11980. * src/option_processing.cc
  11981. * src/prefs.h
  11982. * src/HttpResponseCommand.cc
  11983. * src/SegmentMan.{h, cc}
  11984. * src/FtpNegotiateCommand.cc
  11985. * src/HttpProxyResponseCommand.cc
  11986. * src/Request.cc
  11987. * src/HttpRequest.cc
  11988. * src/DownloadCommand.cc
  11989. * test/HttpRequestTest.cc
  11990. * test/RequestTest.cc
  11991. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11992. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  11993. finished.
  11994. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11995. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  11996. catching it inside the method.
  11997. When no file entry is found in a metalink without querying user
  11998. preferences, throw the exception with the error message that suggests
  11999. metalink file is probably broken.
  12000. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  12001. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12002. Fixed the bug that prevents remote Metalink/Torrent file from begin
  12003. processed.
  12004. * src/RequestGroupMan.cc (removeStoppedGroup)
  12005. Added debug message.
  12006. * src/BtPostDownloadHandler.cc
  12007. * src/MetalinkPostDownloadHandler.cc
  12008. * src/PostDownloadHandler.{h, cc}
  12009. * src/RequestGroup.cc
  12010. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12011. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  12012. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12013. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  12014. stops and there are any unfinished or in-progress downloads.
  12015. Added the legend of "stat".
  12016. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12017. Throw exception when chunck checksum verification fails.
  12018. * src/DownloadCommand.cc (validatePieceHash): New function.
  12019. * src/PiecedSegment.{h, cc} (clear): New function.
  12020. * src/GrowSegment.{h, cc} (clear): New function.
  12021. * src/Segment.h (clear): New function.
  12022. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  12023. * test/SegmentTest.cc
  12024. * test/GrowSegmentTest.cc
  12025. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12026. Do not send referer when redirected.
  12027. * src/Request.cc (redirectUrl)
  12028. * test/RequestTest.cc
  12029. * test/HttpRequestTest.cc
  12030. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12031. Implemented BitTorrent/http/ftp integrated download.
  12032. I've rewritten lots of files and now some headers have forward
  12033. class declarations to reduce compile time.
  12034. The implementation is extremely alpha stage, I recommend to use this
  12035. for testing purpose only.
  12036. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12037. Fixed the compilation error on 64bit platform.
  12038. * test/HttpHeaderProcessorTest.cc
  12039. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12040. Merged Ross's patch that fixes compilation problem in MinGW
  12041. * test/DefaultBtProgressInfoFileTest.cc
  12042. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12043. Updated fr.po by sebone
  12044. * po/fr.po
  12045. Updated man page.
  12046. * doc/aria2c.1.txt
  12047. * Release 0.11.3
  12048. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12049. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  12050. failure in Metalink.
  12051. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12052. Automatically save *.aria2 control file of http/ftp download in every
  12053. 60 seconds.
  12054. * src/AutoSaveCommand.{h, cc}: New class.
  12055. * src/TimeBasedCommand.{h, cc}: New class.
  12056. * src/DownloadEngineFactory.cc (newConsoleEngine)
  12057. Disable parameterized URI support by default. Added -P option to
  12058. enable the feature.
  12059. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  12060. * src/OptionHandlerFactory.cc
  12061. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  12062. Updated Japanese translation.
  12063. * po/ja.po
  12064. Updated man page.
  12065. * doc/aria2c.1.txt
  12066. * Release 0.11.3-rc
  12067. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12068. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  12069. it is successful, then renamed to *.aria2.
  12070. This prevents *.aria2 file from being truncated or corrupted when
  12071. file system becomes out of space.
  12072. * src/DefaultBtProgressInfoFile.cc (save)
  12073. * src/SegmentMan.cc (save)
  12074. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  12075. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12076. Reduced the fragmentation of bitfield in http/ftp download.
  12077. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  12078. * test/BitfieldManTest.cc
  12079. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12080. Added the ability to disable segmented download in .metalink.
  12081. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  12082. 'url' tag.
  12083. * src/MetalinkEntry.{h, cc}
  12084. * src/RequestResource.{h, cc}
  12085. * src/MetalinkRequestInfo.cc
  12086. * src/Xml2MetalinkProcessor.cc
  12087. * test/Xml2MetalinkProcessorTest.cc
  12088. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12089. Added parameterized URI support.
  12090. * src/main.cc: -Z option added.
  12091. * src/OptionHandlerFactory.cc
  12092. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  12093. * src/PStringDatum.h: New class.
  12094. * src/PStringSegment.{h,cc}: New class.
  12095. * src/PStringNumLoop.h: New class.
  12096. * src/PStringSelect.h: New class.
  12097. * src/NumberDecorator.h: New class.
  12098. * src/FixedWidthNumberDecorator.h: New class.
  12099. * src/AlphaNumberDecorator.h: New class.
  12100. * src/PStringVisitor.h: New class.
  12101. * src/PStringBuildVisitor.{h,cc}: New class.
  12102. * src/ParameterizedStringParser.{h,cc}: New class.
  12103. * src/Util.{h,cc}
  12104. (isNumber): New function.
  12105. (isLowercase): New function.
  12106. (isUppercase): New function.
  12107. (alphaToNum): New function.
  12108. * test/ParameterizedStringParserTest.cc: New class.
  12109. * test/AlphaNumberDecoratorTest.cc: New class.
  12110. * test/PStringBuildVisitorTest.cc: New class.
  12111. * test/UtilTest.cc
  12112. (testIsNumber): New function.
  12113. (testIsLowercase): New function.
  12114. (testIsUppercase): New function.
  12115. (testAlphaToNum): New function.
  12116. Added '\n' after the error message
  12117. * src/RequestInfo.h (printDownloadAbortMessage)
  12118. Added auto file renaming feature in http(s)/ftp download.
  12119. * src/main.cc: Added --auto-file-renaming command-line option.
  12120. * src/OptionHandlerFactory.cc
  12121. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  12122. * src/RequestGroup.{h, cc}
  12123. (shouldCancelDownloadForSafety): Rewritten
  12124. (tryAutoFileRenaming): New function.
  12125. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  12126. * src/HttpResponseCommand.cc
  12127. (executeInternal): Removed the call to RequestGroupMan::
  12128. isSameFileBeingDownloaded()
  12129. * src/FtpNegotiateCommand.cc
  12130. (recvSize): Removed the call to RequestGroupMan::
  12131. isSameFileBeingDownloaded()
  12132. * test/RequestGroupTest.cc: New class.
  12133. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12134. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  12135. IO.
  12136. * src/DefaultBtProgressInfoFile.cc
  12137. * src/MetaFileUtil.cc
  12138. * src/SimpleLogger.cc
  12139. * src/SegmentMan.cc
  12140. * src/Util.cc
  12141. * src/Platform.cc
  12142. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12143. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  12144. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12145. Avoid sparse files if possible, because VFAT32 doesn't support it.
  12146. * src/DefaultDiskWriter.cc (initAndOpenFile)
  12147. Fixed the bug that prevents file allocation is not done when
  12148. dowloading multi-torrent file.
  12149. * src/AbstractDiskWriter.cc (openFile)
  12150. Increase the maximum number of -j option from 15 to 45.
  12151. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12152. Added fr.po, thanks to Charles Landemaine.
  12153. * po/fr.po
  12154. * po/LINGUAS
  12155. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12156. gcc 3.4.4 support:
  12157. * src/DefaultBtContext.cc: int32_t -> int
  12158. * src/main.cc: int -> int32_t, int32_t -> int
  12159. * src/messageDigest.h: uint32_t -> unsigned int
  12160. * src/NameResolver.h: int32_t -> int
  12161. * src/PeerConnection.cc: int -> int32_t
  12162. * src/SpeedCalc.cc: int32_t -> int
  12163. * src/TrackerUpdateCommand.h: int -> int32_t
  12164. * src/Util.cc: int32_t -> int
  12165. * src/Util.h: int32_t -> int
  12166. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  12167. * test/AnnounceListTest.cc: int -> int32_t
  12168. * test/ChunkedEncodingTest.cc: int -> int32_t
  12169. * test/DataTest.cc: int -> int32_t
  12170. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  12171. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  12172. * test/DefaultPieceStorageTest.cc: int -> int32_t
  12173. * test/FeatureConfigTest.cc: int -> int32_t
  12174. * test/MetalinkEntryTest.cc: int -> int32_t
  12175. * test/MockBtRequestFactory.h: int -> int32_t
  12176. * test/MockPieceStorage.h: int -> int32_t
  12177. * test/OptionTest.cc: int -> int32_t
  12178. * test/RequestTest.cc: int -> int32_t
  12179. * test/SegmentManTest.cc: int -> int32_t
  12180. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  12181. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12182. Move sleep functions to Util class:
  12183. * src/Util.cc
  12184. (sleep): New function.
  12185. (usleep): New function.
  12186. * src/DownloadCommand.cc: sleep -> Util::sleep
  12187. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  12188. MinGW build enhancements. The following files are added:
  12189. * src/timegm.{c,h}
  12190. Changes to support the above new files:
  12191. * configure.ac
  12192. * src/Makefile.am
  12193. * src/a2time.h
  12194. * src/Util.cc:
  12195. * src/strptime.c: Added support for %Z option.
  12196. Fixed MinGW non-blocking bug.
  12197. * src/SocketCore.cc
  12198. * src/HttpRequestCommand.cc
  12199. Miscellenous build fixes/enhancements.
  12200. * configure.ac: Added summary report.
  12201. * src/Platform.h: Tweaked #include's.
  12202. * src/a2netcompat.h: Tweaked #include's.
  12203. * src/strptime.h: Tweaked #include's.
  12204. * src/gai_strerror.c: Tweaked #include's.
  12205. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  12206. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  12207. * src/gettimeofday.h: Added HAVE_CONFIG_H
  12208. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12209. Increased the initial connection size in BitTorrent download to 40.
  12210. * src/BtRuntime.h
  12211. Added the usage message of --peer-id-prefix option.
  12212. * src/main.cc
  12213. * Release 0.11.2
  12214. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12215. MessageDigestHelper is introduced in order to simplify the use
  12216. of message digest. Removed repeated code.
  12217. The message digest algorithm is now specified by string, like "sha1",
  12218. "md5".
  12219. * src/messageDigest.{h, cc}
  12220. * src/MessageDigestHelper.{h, cc}: New class.
  12221. * src/DefaultPieceStorage.cc
  12222. * src/DefaultBtContext.{h, cc}
  12223. (computeFastSet): New function.
  12224. (setInfoHash): Added for unit testing.
  12225. (setNumPieces): Added for unit testing.
  12226. * src/DefaultBtInteractive.cc
  12227. * src/BtPieceMessage.cc
  12228. * src/Peer.cc
  12229. * src/Checksum.h
  12230. * src/message.h
  12231. * src/IteratableChecksumValidator.h
  12232. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  12233. inside it.
  12234. * src/SegmentMan.{h, cc}
  12235. (checkIntegrity): Removed.
  12236. * src/IteratableChunkChecksumValidator.{h, cc}
  12237. * src/Util.h
  12238. (sha1Sum): Removed.
  12239. (simpleMessageDigest): Removed.
  12240. (fileChecksum): Removed.
  12241. (computeFastSet): Removed.
  12242. * src/ShaVisitor.cc
  12243. * src/ChunkChecksum.h
  12244. * src/DownloadCommand.cc
  12245. Removed messageDigest virtual functions.
  12246. * src/MultiDiskAdaptor.{h, cc}
  12247. * src/DiskAdaptor.h
  12248. * src/ByteArrayDiskWriter.h
  12249. * src/DiskWriter.h
  12250. * src/DiskAdaptorWriter.h
  12251. * src/AbstractSingleDiskAdaptor.{h, cc}
  12252. * src/AbstractDiskWriter.{h, cc}
  12253. Fixed comilation error when message digest is disabled.
  12254. * src/MetalinkEntry.{h, cc}
  12255. * src/MetalinkRequestInfo.cc
  12256. Removed srandom and random.
  12257. * src/SimpleRandomizer.h
  12258. Added size() virtual function to DiskAdaptor
  12259. * src/MultiDiskAdaptor.h
  12260. Fixed the bug that causes that files are not opened correctly in
  12261. multi-file torrent.
  12262. * src/TorrentRequestInfo.cc
  12263. * src/MultiDiskAdaptor.cc
  12264. Added SHA256 support
  12265. * src/messageDigest.cc
  12266. * src/Xml2MetalinkProcessor.cc
  12267. Show supported message digest algorithms
  12268. * src/main.cc
  12269. Updated contact info.
  12270. * src/main.cc
  12271. Applied Ross's patch
  12272. * src/a2netcompat.h
  12273. * src/main.cc
  12274. Fixed the bug that prevents a remote metalink from not being processed
  12275. even if '-o foo.metalink' is specified.
  12276. * src/MetalinkRequestInfo.cc
  12277. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12278. Merged Dan's patch:
  12279. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  12280. Use va_copy to avoid core dump on amd64:
  12281. * src/SimpleLogger.cc
  12282. Updated contact info.
  12283. * src/main.cc
  12284. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  12285. digest is not available.
  12286. * src/MetalinkEntry.h
  12287. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12288. Make a2netcompat.h include a2io.h to fix compilation error:
  12289. * src/a2netcompat.h
  12290. * src/SocketCore.cc: Removed include of a2io.h
  12291. * src/Util.cc: Removed include of a2io.h
  12292. Gather time related functions to a2time.h:
  12293. * src/a2time.h: New file.
  12294. * src/DefaultPeerStorage.cc
  12295. * src/SimpleLogger.cc
  12296. * src/Util.{h, cc}
  12297. * src/SimpleRandomizer.h
  12298. * src/TimeA2.{h,cc}
  12299. * src/DownloadCommand.cc
  12300. * src/main.cc
  12301. Removed #ifdef __MINGW32__ since gai_strerror is included in
  12302. a2netcompat.h:
  12303. * src/NameResolver.cc
  12304. Fixed compilation error without openssl:
  12305. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  12306. Added default block to suppress compiler warnings:
  12307. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  12308. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  12309. MinGW build enhancements. The following files are added:
  12310. * src/gai_strerror.{c,h}
  12311. * src/gettimeofday.{c,h}
  12312. Changes to support the above new files:
  12313. * configure.ac
  12314. * src/Makefile.am
  12315. * src/a2netcompat.h
  12316. * src/TimeA2.cc
  12317. * src/DefaultPeerStorage.cc
  12318. * src/NameResolver.cc: removed mingw_strerror() function.
  12319. * src/SocketCore.cc: removed mingw_strerror() function.
  12320. Miscellaneous MinGW build fixes.
  12321. * src/a2io.h: Use _lseeki64() instead of lseek()
  12322. * src/common.h
  12323. * src/DefaultFileAllocator.cc
  12324. * src/GlowFileAllocator.cc
  12325. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  12326. * src/NameResolver.cc
  12327. (callback): Changed int32_t to int.
  12328. (resolve): Changed int32_t to int.
  12329. * src/Platform.cc
  12330. * src/Platform.h
  12331. * test/MultiDiskWriterTest.cc
  12332. * test/PeerMessageUtilTest.cc
  12333. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  12334. Other enhancements and fixes.
  12335. * src/HttpRequestCommand.cc
  12336. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  12337. * src/SocketCore.cc:
  12338. (error): New function to abstract errno/WSAGetLastError().
  12339. (errorMsg): New function to abstract errno/WSAGetLastError().
  12340. (initiateSecureConnection): Added more detailed error reporting.
  12341. * src/SocketCore.h: Added private variable blocking, to allow
  12342. proper handling of OpenSSL psuedo-errors.
  12343. * src/message.h
  12344. (EX_SSL_INIT_FAILURE)
  12345. (EX_SSL_IO_ERROR)
  12346. (EX_SSL_PROTOCOL_ERROR)
  12347. (EX_SSL_UNKNOWN_ERROR)
  12348. (EX_SSL_CONNECT_ERROR)
  12349. (EX_SOCKET_BLOCKING)
  12350. (EX_SOCKET_NONBLOCKING)
  12351. (EX_SOCKET_UNKNOWN_ERROR)
  12352. * src/Util.cc
  12353. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  12354. reserved name.
  12355. (httpGMT): Fixed typo.
  12356. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12357. Merged Ross's win32 patch(manually)
  12358. In the course of merging, following files are added.
  12359. * src/strptime.{h,c}
  12360. * src/libgen.{h,c}
  12361. * src/inet_aton.{h,c}
  12362. * src/Platform.{h,cc}
  12363. * src/localtime_r.{h,c}
  12364. * src/getaddrinfo.{h,c}
  12365. I've gethered network related things, and put them to following file:
  12366. * src/a2netcompat.h
  12367. Also io related things are put to following file:
  12368. * src/a2io.h
  12369. Changed %lld to %s because mingw32 doesn't recognize %lld.
  12370. * src/message.h
  12371. (MSG_ALLOCATION_COMPLETED)
  12372. (EX_TOO_LARGE_FILE)
  12373. (EX_SIZE_MISMATCH)
  12374. (EX_FILE_OFFSET_OUT_OF_RANGE)
  12375. (EX_INVALID_CHUNK_CHECKSUM)
  12376. (EX_INVALID_RANGE_HEADER)
  12377. * src/FileAllocationCommand.cc
  12378. * src/HttpResponse.cc
  12379. * src/RequestGroup.cc
  12380. * src/MultiDiskAdaptor.cc
  12381. * src/OptionHandlerImpl.h
  12382. * src/HttpResponseCommand.cc
  12383. * src/FtpNegotiateCommand.cc
  12384. * src/IteratableChecksumValidator.cc
  12385. * src/SegmentMan.cc
  12386. * src/ChunkChecksumValidator.cc
  12387. Added Randomizer::getRandomNumber(long int)
  12388. * src/Randomizer.h (getRandomNumber)
  12389. * src/SimpleRandomizer.h (getRandomNumber)
  12390. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  12391. * src/Util.cc (randomAlpha): Use this new function.
  12392. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12393. Converted int's to in32_t. long long int's are also converted to
  12394. int64_t
  12395. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12396. Fixed the bug that prevents cookies from being sent to the server
  12397. if the domain of cookie is FQDN and starts with ".".
  12398. * src/Cookie.cc (match)
  12399. To add the ability to change peer id.
  12400. * src/DefaultBtContext.h
  12401. (_peerIdPrefix): New variable
  12402. (setPeerIdPrefix): New function.
  12403. * src/torrentRequestInfo.cc
  12404. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  12405. DefaultBtContext.
  12406. * src/main.cc (main): Added peer-id-prefix command-line option.
  12407. The usage message is not added yet.
  12408. * src/DefaultBtContext.cc
  12409. (generatePeerId): Use _peerIdPrefix.
  12410. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  12411. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12412. Fixed the bug that prevents filename in content-disposition from
  12413. being retrieved when filename is not quoted.
  12414. * src/Util.cc (getContentDispositionFilename)
  12415. Fixed the bug that causes infinate loop and memory leak when file open
  12416. operation failed.
  12417. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  12418. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12419. Fixed the bug that causes segfault when all URIs specified are
  12420. unsupported.
  12421. * src/RequestGroupMan.cc (getInitialCommands)
  12422. Check if RequestGroup::createNextCommand() returns empty list of
  12423. commands.
  12424. * src/RequestGroup.cc (createNextCommand)
  12425. Change log level from info to error so that users can notice that
  12426. an error occurred.
  12427. Fixed the bug that causes segfault when a zero-sized file is
  12428. downloaded.
  12429. * src/BitfieldMan.cc (isAllBitSet)
  12430. Return true if bitfieldLength is 0.
  12431. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12432. * src/main.cc
  12433. (showUsage): Added 3 usage examples for metalink download.
  12434. Replace MetalinkChunkChecksum with ChunkChecksum.
  12435. * src/MetalinkChunkChecksum.h: Removed.
  12436. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  12437. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  12438. * src/Xml2MetalinkProcessor.cc
  12439. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  12440. * src/MetalinkRequestInfo.cc (execute)
  12441. * Release 0.11.1
  12442. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12443. Reads URIs from stdin when "-i -" is specified.
  12444. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  12445. * src/UriListParser.h, src/UriListParser.cc: New class.
  12446. * src/StreamUriListParser.h: New class.
  12447. * src/FileUriListParser.h: New class.
  12448. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  12449. instead of UriFileListParser.
  12450. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12451. Made console readout more readable.
  12452. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12453. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12454. Fix the bug that causes -s option not to work.
  12455. * src/main.cc (main)
  12456. * src/a2algo.h: New file.
  12457. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12458. Create directory structure specified in metalink file.
  12459. * src/RequestGroup.h, src/RequestGroup.cc
  12460. (initAndOpenFile): Create a directory to store files if it does not
  12461. exist.
  12462. (getDir): New function.
  12463. Added ETA and download speed for an individual file to readout.
  12464. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12465. * src/RequestGroup.h
  12466. (calculateDownloadSpeed): New function.
  12467. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12468. Made -S option work with metalink file and provided selective download
  12469. to metalink.
  12470. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  12471. (filename): Removed.
  12472. (file): New variable.
  12473. (size): Removed.
  12474. (operator=): Updated.
  12475. (getPath): New function.
  12476. (getLength): New function.
  12477. (toFileEntry): New function.
  12478. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  12479. (execute): Use toStream.
  12480. (showFileEntry): Removed.
  12481. * src/MetalinkRequestInfo.h
  12482. (targetFiles): New variable.
  12483. (setTargetFiles): New variable.
  12484. * src/MetalinkRequestInfo.cc
  12485. (execute): Added the ability to print file information included in
  12486. a metalink file.
  12487. Added selective download mode to metalink.
  12488. * src/main.cc
  12489. (showUsage): Updated to denote that -S and --select-file options are
  12490. applicable to metalink.
  12491. * src/FileEntry.h
  12492. (operator=): New function.
  12493. (getBasename): New function.
  12494. (getDirname): New function.
  12495. * src/Util.h, src/Util.cc
  12496. (toStream): New function.
  12497. * src/Xml2MetalinkProcessor.cc: Updated.
  12498. Made aria2 work with metalink with directory structure.
  12499. * src/File.h, src/File.cc
  12500. (getBasename): New function.
  12501. (getDirname): New function.
  12502. * src/RequestGroup.h, src/RequestGroup.cc
  12503. (_topDir): New variable.
  12504. (setTopDir): New function.
  12505. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  12506. Rewrote HTTP header parsing with stringstream.
  12507. * src/HttpConnection.h, src/HttpConnection.cc
  12508. (HttpRequestEntry): New class.
  12509. (headerBuf): Removed.
  12510. (headerBufLength): Removed.
  12511. (outstandingHttpRequests): Now its element type is
  12512. HttpRequestEntryHandle.
  12513. (findEndOfHeader): Removed.
  12514. (receiveResponse): Rewritten.
  12515. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  12516. Updated doc for -j option to notice that it should be used with -i
  12517. option.
  12518. * src/main.cc (showUsage)
  12519. Removed unused classes.
  12520. * src/RequestInfo.h
  12521. (FileInfo): Removed.
  12522. (checksum): Removed.
  12523. (fileInfo): Removed.
  12524. (setChecksum): Removed.
  12525. (getChecksum): Removed.
  12526. (getFileInfo): Removed.
  12527. Use ISO units.
  12528. * src/ConsoleDownloadEngine.cc
  12529. * src/TorrentConsoleDownloadEngine.cc
  12530. * src/Util.cc (abbrevSize)
  12531. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12532. Added the default listening ports to the help message.
  12533. * src/main.cc (showUsage)
  12534. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12535. Reduce the number of calls to gettimeofday to lower CPU load.
  12536. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  12537. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  12538. * src/Peer.h (calculateUploadSpeed): New function.
  12539. (calculateDownloadSpeed): New function.
  12540. * src/DefaultPeerStorage.cc
  12541. (CalculateStat): Added _now variable.
  12542. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  12543. and Peer::calculateUploadSpeed(const struct timeval&)
  12544. Drop connection if no request or piece message is exchanged in
  12545. a certain interval.
  12546. * src/DefaultBtInteractive.h
  12547. (btRuntime): New variable.
  12548. (inactiveCheckPoint): New variable.
  12549. (checkActiveInteraction): New function.
  12550. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  12551. request or piece message is received.
  12552. (checkActiveInteraction): New function.
  12553. (doInteractionProcessing): Call checkActiveInteraction.
  12554. Fixed the bug that causes remote Metalink and Torrent files are not
  12555. processed.
  12556. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  12557. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12558. Changed format of log file.
  12559. * src/SimpleLogger.cc
  12560. * Release 0.11.0
  12561. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12562. * src/AbstractCommand.cc
  12563. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  12564. MSG_MAX_TRY from error to info.
  12565. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  12566. * src/message.h
  12567. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  12568. (MSG_DOWNLOAD_ABORTED): Added %s.
  12569. (MSG_RESTARTING_DOWNLOAD): Added %s.
  12570. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  12571. * src/PeerAbstractCommand.cc
  12572. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  12573. * src/Request.h
  12574. (cookieBox): Made ShardHandle.
  12575. * src/RequestGroup.h, src/RequestGroup.cc
  12576. (createNextCommandWithAdj): New function.
  12577. * src/FileAllocationCommand.cc
  12578. (executeInternal): Use createNextCommandWithAdj().
  12579. * src/CheckIntegrityCommand.cc
  12580. (executeInternal): Use createNextCommandWithAdj().
  12581. Added --load-cookies command-option.
  12582. * src/OptionHandlerFactory.cc
  12583. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  12584. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  12585. Now aria2 can handle cookie's expiration date.
  12586. * src/Cookie.h (expires): Changed its type to time_t.
  12587. * src/main.cc: Added --load-cookies command-line option.
  12588. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  12589. * src/Util.h, src/Util.cc (httpGMT): New function.
  12590. * src/Request.cc (Request): Initialize cookieBox using
  12591. CookieBoxFactory.
  12592. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  12593. * src/CookieParser.h, src/CookieParser.cc: New class.
  12594. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  12595. * src/HttpResponseCommand.cc
  12596. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  12597. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  12598. download.
  12599. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12600. Added -j command-line option.
  12601. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12602. * src/main.cc
  12603. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  12604. Rewritten using stringstream.
  12605. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  12606. Rewritten using stringstream.
  12607. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12608. Make download size shown in MB, KB.
  12609. * src/ConsoleDownloadEngine.h (sendStatistics)
  12610. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  12611. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12612. Accept incoming connections if download rate is low.
  12613. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  12614. (_lowestSpeedLimit): New variable.
  12615. (setLowestSpeedLimit): New function.
  12616. (execute): Accept incoming connections if download rate is low.
  12617. MAX_PEERS is ignored in this case.
  12618. Disable PREF_OUT in multiple concurrent download:
  12619. * src/RequestGroup.h, src/RequestGroup.cc
  12620. (setUserDefinedFilename): New function.
  12621. * src/DownloadEngineFactory.cc
  12622. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  12623. concurrent download.
  12624. * src/DefaultSegmentManFactory.cc
  12625. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  12626. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12627. RequestGroup::getNextCommand() was renamed to createNextCommand().
  12628. Added its overloaded method.
  12629. * src/RequestGroup.h
  12630. (_numConcurrentCommand): New variable.
  12631. (setNumConcurrentCommand): New function.
  12632. * src/RequestGroup.cc
  12633. Abort download if same file is being downloaded concurrently.
  12634. * src/RequestGroup.h, src/RequestGroupMan.cc
  12635. (isSameFileBeingDownloaded): New function.
  12636. * src/HttpResponseCommand.cc (executeInternal)
  12637. * src/FtpNegotiateCommand.cc (recvSize)
  12638. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  12639. * main.cc: Added help message for -i option.
  12640. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12641. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  12642. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  12643. * src/MetalinkEntry.h
  12644. (checksum): Changed to ChecksumHandle
  12645. * src/MetalinkRequestInfo.cc
  12646. (checksum): Changed to ChecksumHandle
  12647. * src/File.cc
  12648. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  12649. * src/common.h
  12650. (DIR_OPEN_MODE): New definition
  12651. * src/RequestGroup.cc
  12652. (prepareForNextAction): Added an argument.
  12653. * src/message.h
  12654. (MSG_GOOD_CHECKSUM): New definition
  12655. (MSG_BAD_CHECKSUM): New definition
  12656. * src/HttpResponseCommand.cc
  12657. (handleDefaultEncoding): Continue download sequence in new
  12658. non-segmented download.
  12659. * src/FileAllocationEntry.h
  12660. (_nextDownloadCommand): New variable.
  12661. * src/DownloadCommand.cc
  12662. (prepareForNextSegment): Create ChecksumCommand if checksum is
  12663. available.
  12664. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  12665. * src/IteratableChecksumValidator.h,
  12666. src/IteratableChecksumValidator.cc: New class.
  12667. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  12668. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12669. Change file mode to 666:
  12670. * src/common.h (OPEN_MODE): New definition.
  12671. * src/File.cc
  12672. * src/Util.cc
  12673. * src/Directry.cc
  12674. * src/AbstractDiskWriter.cc
  12675. Change the level of log message "download aborted" to debug:
  12676. * src/PeerAbstractCommand.cc (execute)
  12677. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  12678. * src/TrackerWatcherCommand.cc
  12679. (createCommand): Sleep some seconds after request failed.
  12680. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  12681. then abort tracker request.
  12682. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12683. * Added the simultaneous download feature.
  12684. * src/main.cc: Print "Exception caught: " when exception is caught.
  12685. Use CUIDCounter instead of BtRuntime::getNewCuid():
  12686. * src/ActivePeerConnectionCommand.cc
  12687. * src/PeerInteractionCommand.cc
  12688. * src/BtRuntime.h
  12689. (cuidCounter): Removed.
  12690. (getNewCuid): Removed.
  12691. * src/DownloadEngineFactory.cc
  12692. * src/PeerListenCommand.cc
  12693. * src/TrackerUpdateCommand.cc
  12694. * src/PeerInitiateConnectionCommand.cc
  12695. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12696. * src/PeerAbstractCommand.cc
  12697. (onAbort): Call PeerStorage::returnPeer()
  12698. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  12699. (incomingPeers): New variable.
  12700. (addIncomingPeer): New function.
  12701. (returnPeer): New function.
  12702. (onErasingPeer): New function.
  12703. (addPeer): push_back -> push_front
  12704. (getActivePeers): Rewritten.
  12705. (calculateStat): Rewritten.
  12706. * src/PeerStorage.h
  12707. (TransferStat::copy): New function.
  12708. (TransferStat::TransferStat): New function.
  12709. (TransferStat::operator=): New function.
  12710. (addIncomingPeer): New function.
  12711. (returnPeer): New function.
  12712. * src/PeerListenCommand.cc
  12713. (execute): Use PeerStorage::addIncomingPeer() instead of
  12714. Peer::addPeer().
  12715. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12716. Connect to a peer actively when download speed is lower than specified
  12717. speed in torrent download:
  12718. * src/ActivePeerConnectionCommand.h: New class.
  12719. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12720. * src/HttpRequest.cc (createRequest): url-encode user-agent
  12721. * src/main.cc: Fixed the bug that prevents download if .netrc
  12722. doesn't exist.
  12723. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12724. To cache resolved hostname:
  12725. * src/AbstractCommand.h, src/AbstractCommand.cc
  12726. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  12727. Added dns cache.
  12728. * src/FtpInitiateConnectionCommand.cc
  12729. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  12730. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  12731. NameResolver working without ares.
  12732. * src/TorrentRequestInfo.cc
  12733. (execute): Don't cache dns in torrent download.
  12734. * src/HttpInitiateConnectionCommand.cc
  12735. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  12736. * src/DNSCache.h: New class.
  12737. * src/UrlRequestInfo.cc
  12738. (execute): Use dns cache.
  12739. In http request, suppress port number in http request header if port
  12740. is 80 or 443:
  12741. * src/HttpRequest.cc (getHostText): Suppress port number in http
  12742. request header if port is 80 or 443.
  12743. (createProxyRequest): Allways send port number.
  12744. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12745. To add the command-line option which disables netrc support:
  12746. * src/OptionHandlerFactory.cc
  12747. (createOptionHandlers): Added PREF_NO_NETRC.
  12748. * src/main.cc: Added -n option.
  12749. * src/prefs.h (PREF_NO_NETRC): New definition.
  12750. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  12751. V_TRUE.
  12752. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  12753. is V_FALSE. This may get configurable in the future release.
  12754. To clear peer's error status by time basis:
  12755. * src/PeerAbstractCommand.cc
  12756. (onAbort): Call Peer::startBadCondition().
  12757. * src/Peer.h, src/Peer.cc
  12758. (error): Removed.
  12759. (_badConditionStartTime): New variable.
  12760. (_badConditionInterval): New variable. Initialized to 10 seconds.
  12761. (startBadCondition): New function.
  12762. (isGood): New function.
  12763. * src/DefaultPeerStorage.cc
  12764. (addPeer): Use Peer::isGood().
  12765. (FindFinePeer): Use Peer::isGood().
  12766. Always include port number in http request header:
  12767. * src/HttpRequest.cc (getHostText): Always include port number in
  12768. http request header.
  12769. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12770. To the ability to read options from a config file:
  12771. * src/main.cc: Command-line parameter validation is delegated to
  12772. OptionHandler class.
  12773. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  12774. * src/Option.h, src/Option.cc (clear): New function.
  12775. * src/OptionParser.h, src/OptionParser.cc: New class.
  12776. * src/OptionHandler.h: New class.
  12777. * src/NameMatchOptionHandler.h: New class.
  12778. * src/OptionHandlerImpl.h: New classes.
  12779. * src/prefs.h: '_' -> '-'
  12780. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  12781. (FTP_PASV): New definition.
  12782. * src/Util.h, src/Util.cc (getRealSize): New function.
  12783. To disable netrc support if .netrc file does not have correct
  12784. permissions:
  12785. * src/File.h, src/File.cc (mode): New function.
  12786. To prevent confidential information to be logged:
  12787. * src/HttpConnection.h, src/HttpConnection.cc
  12788. (eraseConfidentialInfo): New function.
  12789. (sendRequest): Call eraseConfidentialInfo().
  12790. (sendProxyRequest): Call eraseConfidentialInfo().
  12791. * src/main.cc: Validate permissions of .netrc file.
  12792. To add --user-agent command-line option:
  12793. * src/main.cc: Added new command line option: --user-agent
  12794. * src/prefs.h (PREF_USER_AGENT): New definition.
  12795. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  12796. parameter to HttpRequest object.
  12797. * src/AbstractProxyRequestCommand.cc
  12798. (executeInternal): Set user-agent option parameter to HttpRequest
  12799. object.
  12800. Marged the patches from Dan Fandrich.
  12801. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12802. Use filename and size from Metalink file instead of sending HEAD
  12803. request:
  12804. * src/UrlRequestInfo.h
  12805. (_filename): New variable.
  12806. (_totalLength): New variable.
  12807. (setTotalLength): New variable.
  12808. (setFilename): New variable.
  12809. * src/MetalinkRequestInfo.cc
  12810. (execute): Set filename and size to UrlRequestInfo
  12811. * src/UrlRequestInfo.cc
  12812. (execute): Use filename and size from Metalink instead of seding
  12813. HEAD request to servers.
  12814. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12815. To add the ability to resume downloading a partially downloaded file
  12816. which is downloaded from the beginning:
  12817. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  12818. takes this role.
  12819. * src/main.cc: Added -c option.
  12820. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  12821. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  12822. * src/prefs.h (PREF_CONTINUE): New definition.
  12823. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  12824. * src/DefaultDiskWriter.cc
  12825. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  12826. * src/AbstractDiskWriter.h
  12827. (glowFileAllocator): New variable.
  12828. * src/AbstractDiskWriter.cc
  12829. (openExistingFile): Now preallocate file space from the end of the
  12830. existing file if totalLength argument is specified and grater than 0.
  12831. * src/UrlRequestInfo.cc: If -c option is specified and the file
  12832. to download exists in local, continue the download of the file.
  12833. --allow-overwrite=true is assumed in this context.
  12834. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  12835. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  12836. Throw exception if --check-integrity=true is specified but chunk
  12837. checksums are not provided:
  12838. * src/UrlRequestInfo.cc
  12839. Do not print URLs to stdout:
  12840. * src/UrlRequestInfo.cc
  12841. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12842. * src/Request.h: Use AuthResolver to get authentication information.
  12843. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  12844. set to RequestFactory object.
  12845. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  12846. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  12847. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  12848. create Request object.
  12849. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  12850. To integrate Netrc into exsiting classes:
  12851. * src/Request.h
  12852. (_userDefinedAuthConfig): New variable.
  12853. (findNetrcAuthenticator): New function.
  12854. (segment): Removed.
  12855. (setUserDefinedAuthConfig): New function.
  12856. (resolveHttpAuthConfigItem): New function.
  12857. (resolveFtpAuthConfigItem): New function.
  12858. (resolveHttpProxyAuthConfigItem): New function.
  12859. * src/HttpRequest.h
  12860. (authConfig): Removed.
  12861. (proxyAuthConfig): Removed.
  12862. (setAuthConfig): Removed.
  12863. (setProxyAuthConfig): Removed.
  12864. * src/UrlRequest.h
  12865. (getHeadResult): Added a parameter: authConfigHandle
  12866. * src/common.h
  12867. (SingletonHolder.h): New include.
  12868. * src/main.cc
  12869. (Netrc.h): New include.
  12870. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  12871. Added initial value of PREF_NETRC_PATH.
  12872. Added the initialization of netrc.
  12873. * src/AuthConfig.h: New class.
  12874. * src/prefs.h
  12875. (PREF_NETRC_PATH): New definition.
  12876. * src/HttpAuthConfig.h: Removed.
  12877. * src/Netrc.cc
  12878. (getRequiredNextToken): New function.
  12879. (skipMacdef): New function.
  12880. (parse): Rewritten.
  12881. * src/Netrc.h
  12882. (getRequiredNextToken): New function.
  12883. (skipMacdef): New function.
  12884. * src/Util.h, src/Util.cc
  12885. (getHomeDir): New function.
  12886. * src/TrackerWatcherComand.cc
  12887. (createRequestCommand): Use AuthConfig.
  12888. * src/FtpConnection.cc
  12889. (sendUser): Use Request::resolveFtpAuthConfigItem().
  12890. (sendPass): Use Request::resolveFtpAuthConfigItem().
  12891. * src/Request.cc
  12892. (findNetrcAuthenticator): New function.
  12893. (resolveHttpAuthConfigItem): New function.
  12894. (resolveFtpAuthConfigItem): New function.
  12895. (resolveHttpProxyAuthConfigItem): New function.
  12896. * src/UrlRequestInfo.cc: Use AuthConfig.
  12897. * src/HttpRequest.cc
  12898. (createRequest): Use authConfig.
  12899. (getProxyAuthString): Use authConfig.
  12900. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  12901. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  12902. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12903. To reduce overhead to find commands whose socket is either
  12904. readable or writable in the download engine loop:
  12905. * src/Command.h, src/Command.cc
  12906. (STATUS): New enum.
  12907. (status): New variable.
  12908. (statusMatch): New function.
  12909. (setStatusActive): New function.
  12910. (setStatusInactive): New function.
  12911. * src/DownloadEngine.h, src/DownloadEngine.cc
  12912. (executeCommand): New function.
  12913. (run): Simplified.
  12914. (waitData): Call Command::setStatusActive() when command's socket is
  12915. readable or writable.
  12916. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12917. To handle Segment as SegmentHandle:
  12918. * src/AbstractCommand.cc (execute): Rewritten.
  12919. * src/SegmentMan.h: Segment -> SegmentHandle
  12920. Introducded HttpResponse class, HttpRequest class to improve code
  12921. extensiveness and make it clear:
  12922. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  12923. HttpResponse class.
  12924. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  12925. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  12926. * src/HttpConnection.cc: Contruction of http request were moved to
  12927. HttpRequest class.
  12928. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  12929. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  12930. * src/HttpAuthConfig.h: New class.
  12931. * src/Range.h: New class.
  12932. To make FtpTunnel{Request, Response}Command and
  12933. HttpProxy{Request, Response}Command derived from
  12934. AbstractProxy{Request, Response}Command:
  12935. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  12936. Derived from AbstractProxyRequestCommand class.
  12937. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  12938. Derived from AbstractProxyResponseCommand class.
  12939. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  12940. Derived from AbstractProxyRequestCommand class.
  12941. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  12942. Derived from AbstractProxyResponseCommand class.
  12943. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  12944. : New class.
  12945. * src/AbstractProxyResponseCommand.h,
  12946. src/AbstractProxyResponseCommand.cc: New class.
  12947. To add netrc support:
  12948. * src/Netrc.h, src/Netrc.cc: New class.
  12949. * src/Util.h, src/Util.cc (split): New function.
  12950. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  12951. "Content-Range" header instead of "Range" header.
  12952. * src/HttpHeader.h
  12953. (getStatus): Removed.
  12954. (setStatus): Removed.
  12955. * src/Segment.h
  12956. (getPositionToWrite): New function.
  12957. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12958. * src/HttpHeader.h
  12959. (Range.h): New include.
  12960. (status): New variable.
  12961. (HttpHeader): Initialized status with 0.
  12962. (getStatus): New function.
  12963. (setStatus): New function.
  12964. (getRange): New function.
  12965. (HttpHeaderHandle): New function.
  12966. * src/HttpHeader.cc
  12967. (getRange): New function.
  12968. * src/Request.h
  12969. (RequestWeakHandle): New definition.
  12970. * src/HttpConnection.h
  12971. (HttpConnectionHandle): New type definition.
  12972. * src/HttpConnection.cc
  12973. (receiveResponse): Set HTTP status to headers.
  12974. * src/main.cc
  12975. (showUsage): Fixed typo.
  12976. * src/Segment.h
  12977. (SegmentHandle): New type definition.
  12978. * src/BitfieldMan.h
  12979. (getMissingUnusedLength): New function.
  12980. * src/BitfieldMan.cc
  12981. (getMissingUnusedLength): New function.
  12982. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12983. To fix static initialization order problem:
  12984. * src/BitfieldManFactory.h
  12985. (defaultRandomizer): Removed.
  12986. (factory): New variable.
  12987. (getNewFactory): Removed.
  12988. (getFactoryInstance): New function.
  12989. (setDefaultRandomizer): Rewritten.
  12990. (getDefaultRandomizer): Rewritten.
  12991. * src/BitfieldManFactory.cc
  12992. (defaultRandomizer): Removed.
  12993. (factory): Initialized to 0.
  12994. (BitfieldManFactory): Initialized randomizer to 0.
  12995. * src/DefaultPieceStorage.cc
  12996. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  12997. * src/Peer.cc
  12998. (Peer): getNewFactory() -> getFactoryInstance()
  12999. * src/SegmentMan.cc
  13000. (initBitfield): getNewFactory() -> getFactoryInstance()
  13001. * src/Piece.cc
  13002. (Piece): getNewFactory() -> getFactoryInstance()
  13003. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13004. To fix the bug that causes crash on Max OS X:
  13005. * src/SimpleRandomizer.h
  13006. (getInstance): Create new instance if the static variable is null.
  13007. * src/SimpleRandomizer.cc
  13008. (randomizer): Initialized to 0.
  13009. * src/BitfieldManFactory.h
  13010. (getNewFactory): Removed the call to setRandomizer().
  13011. To fix the miscalculation of the range of checksum:
  13012. * src/BitfieldMan.h
  13013. (isBitSetOffsetRange): New function.
  13014. * src/BitfieldMan.cc
  13015. (isBitSetOffsetRange): New function.
  13016. * src/SegmentMan.cc
  13017. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  13018. Use bitfield->getBlockLength() instead of segment.segmentLength.
  13019. * Release 0.10.1
  13020. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13021. To lower CPU usage in BitTorrent download when --max-upload-limit
  13022. command-line option specified:
  13023. * src/DefaultBtMessageDispatcher.cc
  13024. (sendMessages): Calculate uploading speed only when current message
  13025. is uploading data and is not sent yet.
  13026. * src/DefaultPeerStorage.h
  13027. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  13028. * src/HttpResponseCommand.cc
  13029. (handleDefaultEncoding): Added the cast to int32_t to itos.
  13030. This fixes compile error in Soralis 10.
  13031. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13032. To fix segfault in Metalink download:
  13033. * src/UrlRequestInfo.h
  13034. (filename): Removed.
  13035. (totalLength): Removed.
  13036. (setTotalLength): Removed.
  13037. (setFilename): Removed.
  13038. * src/MetalinkRequestInfo.cc
  13039. (execute): Do not set filename and totalLength to reqInfo.
  13040. Set chunk checksum to reqInfo if it is not null.
  13041. * src/HttpResponseCommand.cc
  13042. (executeInternal): Fixed filename in log.
  13043. (handleDefaultEncoding): Removed the call to initBitfield() and
  13044. markAllPiecesDone().
  13045. (handleOtherEncoding): Added HEAD method handling.
  13046. * src/FtpNegotiateCommand.cc
  13047. (executeInternal): Added SEQ_HEAD_OK handling.
  13048. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  13049. return false.
  13050. * src/FtpNegotiateCommand.h
  13051. (SEQ_HEAD_OK): New definition.
  13052. * src/SegmentMan.cc
  13053. (initBitfield): Delete bitfield.
  13054. (isChunkChecksumValidationReady): Fixed the condition.
  13055. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  13056. works fine.
  13057. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13058. * src/Xml2MetalinkProcessor.h
  13059. (xpathExists): New function.
  13060. * src/Xml2MetalinkProcessor.cc
  13061. (xpathExists): New function.
  13062. Not to send HEAD request if filename and size are available in Metalink
  13063. file:
  13064. * src/UrlRequestInfo.h
  13065. (filename): New variable.
  13066. (totalLength): New variable.
  13067. (setTotalLength): New function.
  13068. (setFilename): New function.
  13069. * src/MetalinkRequestInfo.cc
  13070. (execute): Set filename and size to UrlRequestInfo.
  13071. * src/MetalinkEntry.cc
  13072. (MetalinkEntry): Initialize size with 0.
  13073. * src/UrlRequestInfo.cc
  13074. (execute): Set filename and size to SegmentMan.
  13075. Not to download rest of the files after selected files are downloaded
  13076. in BitTorrent:
  13077. * src/PieceStorage.h
  13078. (allDownloadFinished): New function.
  13079. * src/DefaultBtAnnounce.cc
  13080. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  13081. downloadFinished.
  13082. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  13083. * src/DefaultPieceStorage.cc
  13084. (completePiece): Use allDownloadFinished instead of downloadFinished.
  13085. Commented out the call to finishSelectiveDownloadingMode().
  13086. (downloadFinished): Call isFilteredAllBitSet() instead of
  13087. isAllBitSet().
  13088. (allDownloadFinished): New function.
  13089. * src/DefaultBtInteractive.cc
  13090. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  13091. downloadFinished().
  13092. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  13093. * src/TorrentDownloadEngine.cc
  13094. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  13095. * src/BitfieldMan.h
  13096. (isFilteredAllBitSet): New function.
  13097. * src/ShareRatioSeedCriteria.h
  13098. (PieceStorage.h): New include.
  13099. (pieceStorage): New variable.
  13100. (evaluate):
  13101. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  13102. * src/BitfieldMan.cc
  13103. (isFilteredAllBitSet): New function.
  13104. (isAllBitSet): Filter is not took into account.
  13105. Rename --force-truncate as --allow-overwrite:
  13106. * src/TorrentRequestInfo.cc
  13107. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  13108. * src/main.cc
  13109. (showUsage): --force-truncate -> --allow-overwrite
  13110. * src/message.h
  13111. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  13112. * src/prefs.h
  13113. (PREF_FORCE_TRUNCATE): Removed.
  13114. (PREF_ALLOW_OVERWRITE): New definition.
  13115. * src/SegmentMan.cc
  13116. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  13117. * src/MetalinkRequestInfo.cc
  13118. (execute): Queueing message are now logged in info level.
  13119. * src/common.h
  13120. (LONG_LONG_MAX): Removed.
  13121. (LONG_LONG_MIN): Removed.
  13122. * src/HttpResponseCommand.cc
  13123. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  13124. * src/FtpNegotiateCommand.cc
  13125. (recvSize): LONG_LONG_MAX -> INT64_MAX
  13126. * src/main.cc
  13127. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  13128. command-line option.
  13129. (main): Added --check-integriy and --realtime-chunk-checksum
  13130. command-line option.
  13131. --force-truncate -> --allow-overwrite
  13132. Set initial value of --check-integrity option to false.
  13133. Don't show usage when error occurs while persing command-line options.
  13134. Removed deprecated --upload-limit option.
  13135. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13136. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  13137. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  13138. * src/BtAllowedFastMessage.cc:
  13139. * src/BtBitfieldMessage.cc
  13140. * src/BtCancelMessage.cc
  13141. * src/BtChokeMessage.cc
  13142. * src/BtHaveAllMessage.cc
  13143. * src/BtHaveMessage.cc
  13144. * src/BtHaveNoneMessage.cc
  13145. * src/BtInterestedMessage.cc
  13146. * src/BtNotInterestedMessage.cc
  13147. * src/BtPieceMessage.cc
  13148. * src/BtPortMessage.cc
  13149. * src/BtRejectMessage.cc
  13150. * src/BtRequestMessage.cc
  13151. * src/BtSuggestPieceMessage.cc
  13152. * src/BtUnchokeMessage.cc
  13153. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  13154. files are affected.
  13155. * src/ChunkChecksumValidator.cc
  13156. * src/SegmentMan.cc
  13157. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13158. To add chunk checksum validation:
  13159. * src/MetalinkEntry.h
  13160. (MetalinkChunkChecksum.h): New include.
  13161. (chunkChecksum): New variable.
  13162. * src/Request.h
  13163. (method): New variable.
  13164. (setMethod): New function.
  13165. (getMethod): New function.
  13166. (METHOD_GET): New static constant.
  13167. (METHOD_HEAD): New static constant.
  13168. * src/Xml2MetalinkProcessor.h
  13169. (getPieceHash): New function.
  13170. * src/PieceStorage.h
  13171. (markAllPiecesDone): New function.
  13172. (checkIntegrity): New function.
  13173. * src/FileAllocator.h
  13174. (NullFileAllocationMonitor.h): New include.
  13175. (FileAllocator): Initialize fileAllocationMonitor with new
  13176. NullFileAllocationMonitor().
  13177. * src/MultiDiskAdaptor.h
  13178. (messageDigest.h): Remove include.
  13179. (ctx): Removed.
  13180. (hashUpdate): Added ctx.
  13181. (MultiDiskAdaptor): Removed ctx.
  13182. (sha1Sum): Renamed as messageDigest.
  13183. (messageDigest): New function.
  13184. * src/UrlRequestInfo.h
  13185. (HeadResult): New class.
  13186. (digestAlgo): New variable.
  13187. (chunkChecksumLength): New variable.
  13188. (chunkChecksums): New variable.
  13189. (getHeadResult): New function.
  13190. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  13191. (setDigestAlgo): New function.
  13192. (setChunkChecksumLength): New function.
  13193. (setChunkChecksums): New function.
  13194. * src/DefaultPieceStorage.cc
  13195. (DiskAdaptorWriter.h): New include.
  13196. (ChunkChecksumValidator.h): New include.
  13197. (markAllPiecesDone): New function.
  13198. (checkIntegrity): New function.
  13199. * src/DefaultBtContext.h
  13200. (getPieceHashes): New function.
  13201. * src/TorrentRequestInfo.cc
  13202. (execute): Try to validate chunk checksum if file already exists and
  13203. .aria2 file doesn't there and user allows aria2 to overwrite it.
  13204. * src/messageDigest.h
  13205. (~MessageDigestContext): Added digestFree().
  13206. * src/MetalinkRequestInfo.cc
  13207. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  13208. * src/DiskAdaptor.h
  13209. (messageDigest.h): New include.
  13210. (sha1Sum): Renamed as messageDigest.
  13211. (messageDigest): New function.
  13212. * src/DownloadCommand.h
  13213. (PeerStat.h): New include.
  13214. (maxDownloadSpeedLimit): New variable.
  13215. (startupIdleTime): New variable.
  13216. (lowestDownloadSpeedLimit): New variable.
  13217. (peerStat): New variable.
  13218. (setMaxDownloadSpeedLimit): New function.
  13219. (setStartupIdleTime): New function.
  13220. (setLowestDownloadSPeedLimit): New function.
  13221. * src/BtContext.h
  13222. (getPieceHashes): New function.
  13223. * src/main.cc
  13224. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  13225. option to true for testing purpose.
  13226. * src/BtPieceMessage.cc
  13227. (checkPieceHash): Use messageDigest
  13228. * src/DownloadEngine.cc
  13229. (SetDescriptor): Removed.
  13230. (AccumulateActiveCommand): Removed.
  13231. (waitData): Rewritten.
  13232. (updateFdSet): Rewritten.
  13233. * src/MultiDiskAdaptor.cc
  13234. (hashUpdate): Added ctx.
  13235. (sha1Sum): Renamed as messageDigest.
  13236. (messageDigest): New function.
  13237. * src/BitfieldMan.h
  13238. (isBitRangeSet): New function.
  13239. (unsetBitRange): New function.
  13240. * src/ByteArrayDiskWriter.h
  13241. (sha1Sum): Renamed as messageDigest.
  13242. (messageDigest): New function.
  13243. * src/ConsoleDownloadEngine.cc
  13244. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  13245. * src/DiskWriter.h
  13246. (messageDigest.h): New include.
  13247. (sha1Sum): Renamed as messageDigest.
  13248. (messageDigest): New function.
  13249. * src/ChunkChecksumValidator.h: New class.
  13250. * src/DiskAdaptorWriter.h: New class.
  13251. * src/prefs.h
  13252. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  13253. (PREF_CHECK_INTEGRITY): New definition.
  13254. * src/HttpResponseCommand.cc
  13255. (handleDefaultEncoding): Added method "HEAD" handling.
  13256. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13257. (handleOtherEncoding):
  13258. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  13259. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  13260. startupIdleTime, lowestDownloadSpeedLimit to command.
  13261. * src/SegmentMan.h
  13262. (getSegmentEntryByIndex): New function.
  13263. (getSegmentEntryByCuid): New function.
  13264. (getSegmentEntryIteratorByCuid): New function.
  13265. (diskWriter): DiskWriter -> DiskWriterHandle
  13266. (pieceHashes): New variable.
  13267. (chunkHashLength): New variable.
  13268. (digestAlgo): New variable.
  13269. (FindPeerStat): Removed.
  13270. (getPeerStat): Rewritten.
  13271. (markAllPiecesDone): New function.
  13272. (checkIntegrity): New function.
  13273. (tryChunkChecksumValidation): New function.
  13274. (isChunkChecksumValidationReady): New function.
  13275. * src/BitfieldMan.cc
  13276. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  13277. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  13278. blocks to 0.
  13279. (isBitRangeSet): New function.
  13280. (unsetBitRange): New function.
  13281. * src/FtpNegotiateCommand.cc
  13282. (executeInternal): Set maxDownloadSpeedLimit,
  13283. startupIdleTime, lowestDownloadSpeedLimit to command.
  13284. (recvSize): Added method "HEAD" handling.
  13285. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13286. * src/AbstractSingleDiskAdaptor.cc
  13287. (sha1Sum): Renamed as messageDigest.
  13288. (messageDigest): New function.
  13289. * src/AbstractSingleDiskAdaptor.h
  13290. (sha1Sum): Renamed as messageDigest.
  13291. (messageDigest): New function.
  13292. * src/Util.h
  13293. (indexRange): New function.
  13294. * src/MetalinkEntry.cc
  13295. (MetalinkEntry): Initialized chunkChecksum to 0.
  13296. * src/ShaVisitor.cc
  13297. (~ShaVisitor): Removed the call to ctx.digestFree().
  13298. * src/SegmentMan.cc
  13299. (ChunkChecksumValidator.h): New include.
  13300. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  13301. to DIGEST_ALGO_SHA1.
  13302. (~SegmentMan): Removed diskWriter.
  13303. (FindSegmentEntryByIndex): Removed.
  13304. (FindSegmentEntryByCuid): Removed.
  13305. (checkoutSegment): Rewritten.
  13306. (findSlowerSegmentEntry): Rewritten.
  13307. (getSegment): Rewritten.
  13308. (updateSegment): Rewritten.
  13309. (completeSegment): Rewritten.
  13310. (markAllPiecesDone): New function.
  13311. (checkIntegrity): New function.
  13312. (isChunkChecksumValidationReady): New function.
  13313. (tryChunkChecksumValidation): New function.
  13314. * src/Xml2MetalinkProcessor.cc
  13315. (getEntry): Get size and set it to entry.
  13316. Get chunk checksum and set it to entry.
  13317. (getPieceHash): New function.
  13318. * src/Util.cc
  13319. (sha1Sum): Removed ctx.digestFree()
  13320. (fileChecksum): Removed ctx.digestFree()
  13321. (indexRange): New function.
  13322. * src/Request.cc
  13323. (METHOD_GET): New variable.
  13324. (METHOD_HEAD): New variable.
  13325. (Request): Added method.
  13326. * src/UrlRequestInfo.cc
  13327. (FatalException.h): New include.
  13328. (message.h): New include.
  13329. (operator<<): Added operator<< for class HeadResult.
  13330. (getHeadResult): New function.
  13331. (execute): Get filename and size in separate download engine.
  13332. * src/ChunkChecksumValidator.cc: New class.
  13333. * src/DownloadCommand.cc:
  13334. (DownloadCommand): Added peerStat.
  13335. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  13336. the value from Option.
  13337. The buffer size is now 16KB.
  13338. Use peerStat member instead of getting it from SegmentMan.
  13339. Use startupIdleTime member instead of gettingit from Option.
  13340. Added chunk checksum validation.
  13341. * src/AbstractDiskWriter.cc
  13342. (AbstractDiskWriter): Removed ctx.
  13343. (~AbstractDiskWriter): Removed ctx.digestFree()
  13344. (writeDataInternal): Returns the return value of write.
  13345. (readDataInternal): Returns the return value of read.
  13346. (sha1Sum): Renamed as messageDigest
  13347. (messageDigest): New function.
  13348. * src/AbstractDiwkWriter.h
  13349. (messageDigest.h): Removed include.
  13350. (ctx): Removed.
  13351. (sha1Sum): Renamed as messageDigest
  13352. (messageDigest): New function.
  13353. * src/DefaultPieceStorage.h
  13354. (markAllPiecesDone): New function.
  13355. (checkIntegrity): New function.
  13356. * src/NullFileAllocationMonitor.h: New class.
  13357. * src/MetalinkChunkChecksum.h: New class.
  13358. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13359. To decrease CPU usage in bittorrent download, calculation results in
  13360. BitfieldMan were cached and realtime fetching PeerObject was removed
  13361. with WeakHandle introduced. Option values are set to the objects
  13362. by setter before download begins.
  13363. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  13364. * src/DefaultBtRequestFactory.h
  13365. (dispatcher): BtMessageDispatcherHandle ->
  13366. BtMessageDispatcherWeakHandle.
  13367. (messageFactory): New variable.
  13368. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  13369. BtMessageDispatcherWeakHandle.
  13370. (setBtMessageFactory): New function.
  13371. * src/DefaultBtMessageDispatcher.cc:
  13372. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  13373. from Option.
  13374. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  13375. feating the value from Option.
  13376. Use messageFactory member.
  13377. * src/PeerInteractionCommand.cc
  13378. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  13379. Add reverse dependencies to factory object.
  13380. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  13381. dispatcher.
  13382. Set messageFactory to receiver.
  13383. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  13384. btInteractive.
  13385. Set receiver to peerObject.
  13386. Set maxDownloadSpeedLimit to this.
  13387. (executeInternal): Use maxDownloadSpeedLimit member.
  13388. * src/BtChokeMessage.cc
  13389. (doReceivedAction): Use dispatcher, requestFactory member.
  13390. (onSendComplete): Use dispatcher member.
  13391. * src/PeerInteractionCommand.h
  13392. (maxDownloadSpeedLimit): New variable.
  13393. * src/DefaultBtMessageReceiver.h
  13394. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13395. (dispatcher):
  13396. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13397. (messageFactory): New variable.
  13398. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13399. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13400. (setDispatcher):
  13401. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13402. (setBtMessageFactory): New function.
  13403. * src/DefaultBtInteractive.cc
  13404. (initiateHandshake): Use messageFactory member.
  13405. (addBitfieldMessageToQueue): Use messageFactory member.
  13406. (addAllowedFastMessageToQueue): Use messageFactory member.
  13407. (decideChoking): Use messageFactory member.
  13408. (checkHave): Use messageFactory member.
  13409. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  13410. (receiveMessages): Use maxDownloadSpeedLimit member.
  13411. (decideInterest): Use messageFactory member.
  13412. * src/BtRequestMessage.cc
  13413. (doReceivedAction): Use messageFactory, dispatcher member.
  13414. (onQueued): Use dispatcher member.
  13415. * src/BtPieceMessage.cc
  13416. (doReceivedAction): Use dispatcher member.
  13417. (send): Use peerConnection member.
  13418. (onWrongPiece): Use requestFactory member.
  13419. (handleChokingEvent): Use messageFactory, dispatcher member.
  13420. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  13421. * src/BtMessageDispatcher.h
  13422. (BtMessageDispatcherWeakHandle): New type definition.
  13423. * src/SimpleBtMessage.cc
  13424. (send): Use peerConnection member.
  13425. * src/BtRejectMessage.cc
  13426. (doReceivedAction): Use dispatcher member.
  13427. * src/DefaultBtMessageDispatcher.h
  13428. (Option.h): Removed include.
  13429. (messageFactory): New variable.
  13430. (option): Removed.
  13431. (maxUploadSpeedLimit): New variable.
  13432. (requestTimeout): New variable.
  13433. (DefaultBtMessageDispatcher): Removed option.
  13434. Added maxUploadSpeedLimit, requestTimeout.
  13435. (setOption): Removed.
  13436. (getOption): Removed.
  13437. (setMaxUploadSpeedLimit): New function.
  13438. (setRequestTimeout): New function.
  13439. (setBtMessageFactory): New function.
  13440. * src/DefaultBtInteractive.h
  13441. (btMessageReceiver):
  13442. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13443. (dispatcher):
  13444. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13445. (btRequestFactory):
  13446. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13447. (peerConnection):
  13448. PeerConnectionHandle -> PeerConnectionWeakHandle
  13449. (messageFactory): New variable.
  13450. (option): Removed.
  13451. (keepAliveInterval): New variable.
  13452. (maxDownloadSpeedLimit): New variable.
  13453. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  13454. (setBtMessageReceiver):
  13455. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13456. (setDispatcher):
  13457. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13458. (setBtRequestFactory):
  13459. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13460. (setPeerConnection):
  13461. PeerConnectionHandle -> PeerConnectionWeakHandle
  13462. (setOption): Removed.
  13463. (setKeepAliveInterval): New function.
  13464. (setMaxDownloadSpeedLimit): New function.
  13465. (setBtMessageFactory): New function.
  13466. * src/BitfieldMan.h
  13467. (cachedNumMissingBlock): New variable.
  13468. (cachedNumFilteredBlock): New variable.
  13469. (cachedCompletedLength): New variable.
  13470. (cachedFilteredComletedLength): New variable.
  13471. (cachedFilteredTotalLength): New variable.
  13472. (countMissingBlockNow): New function.
  13473. (countFilteredBlockNow): New function.
  13474. (getFilteredTotalLengthNow): New function.
  13475. (getCompletedLengthNow): New function.
  13476. (getFilteredCompletedLengthNow): New function.
  13477. (updateCache): New function.
  13478. * src/AbstractBtMessage.h
  13479. (BtMessageDispatcher.h): New include.
  13480. (PeerConnection.h): New include.
  13481. (BtRequestFactory.h): New include
  13482. (BtMessageFactory.h): New include.
  13483. (dispatcher): New variable.
  13484. (messageFactory): New variable.
  13485. (peerConnection: New variable.
  13486. (setBtMessageDispatcher): New function.
  13487. (setPeerConnection): New function.
  13488. (setBtMessageFactory): New function.
  13489. (setBtRequestFactory): New function.
  13490. * src/DefaultBtMessageFactory.cc
  13491. (setCommonProperty): Set dispatcher, requestFactory, this,
  13492. peerConnection to msg.
  13493. * src/BtRegistry.h
  13494. (BT_MESSAGE_RECEIVER): New macro.
  13495. * src/PeerConnection.h
  13496. (PeerConnectionWeakHandle): New type definition.
  13497. * src/BtMessageFactory.h
  13498. (BtMessageFactoryWeakHandle): New type definition.
  13499. * src/BitfieldMan.cc
  13500. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  13501. cachedCompletedLength, cachedFilteredComletedLength,
  13502. cachedFilteredTotalLength.
  13503. Call updateCache().
  13504. (countMissingBlock): Return cachedNumMissingBlock.
  13505. (countMissingBlockNow): New function.
  13506. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  13507. (countFilteredBlockNow): New function.
  13508. (setBit): Call updateCache().
  13509. (unsetBit): Call updateCache().
  13510. (setBitfield): Call updateCache().
  13511. (clearAllBit): Call updateCache().
  13512. (setAllBit): Use setBitInternal instead of setBit.
  13513. Call updateCache().
  13514. (addFilter): Call updateCache().
  13515. (enableFilter): Call updateCache().
  13516. (disableFilter): Call updateCache().
  13517. (clearFilter): Call updateCache().
  13518. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  13519. (getFilteredTotalLengthNow): New function.
  13520. (getCompletedLength): Return cachedCompletedLength.
  13521. (getCompletedLengthNow): New function.
  13522. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  13523. (getFilteredCompletedLengthNow): New function.
  13524. (updateCache): New function.
  13525. * src/BtMessageReceiver.h
  13526. (BtMessageReceiverWeakHandle): New type definition.
  13527. * src/DefaultBtMessageReceiver.cc
  13528. (receiveHandshake): Use messageFactory member.
  13529. (sendHandshake): Use messageFactory member.
  13530. (receiveMessage): Use messageFactory member.
  13531. * src/DefaultBtMessageFactory.h
  13532. (dispatcher): New variable.
  13533. (requestFactory): New variable.
  13534. (peerConnection): New variablle.
  13535. (setBtMessageDispatcher): New function.
  13536. (setBtRequestFactory): New function.
  13537. (setPeerConnection): New function.
  13538. * src/SharedHandle.h
  13539. (RefCount): New class.
  13540. (WeakHandle): New class.
  13541. * src/PeerObject.h
  13542. (BtMessageReceiver.h): New include.
  13543. (PeerObject): Added btMessageReceiver.
  13544. (btMessageReceiver): New variable.
  13545. * src/Util.cc
  13546. (countBit): Simplified.
  13547. * src/BtCancelMessage.cc
  13548. (doReceivedAction): Use dispatcher member.
  13549. * src/BtRequestFactory.h
  13550. (BtRequestFactoryWeakHandle): New type definition.
  13551. * src/PeerStorage.h
  13552. (downloadSpeed): int -> uint32_t
  13553. (uploadSpeed): int -> uint32_t
  13554. (sessionDownloadLength): long long int -> uint64_t
  13555. (sessionUploadLength): long long int -> uint64_t
  13556. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13557. To add RecoverableException, FatalException:
  13558. * src/AbstractCommand.cc
  13559. (onAbort): Exception -> RecoverableException
  13560. * src/PeerAbstractCommand.h
  13561. (RecoverableException.h): New include.
  13562. (onAbort): Exception -> RecoverableException.
  13563. * src/PeerInteractionCommand.cc
  13564. (onAbort): Exception -> RecoverableException.
  13565. * src/PeerAbstractCommand.cc
  13566. (execute): Exception -> RecoverableException.
  13567. (onAbort): Exception -> RecoverableException.
  13568. * src/TorrentRequestInfo.cc
  13569. (execute): Exception -> RecoverableException.
  13570. * src/MetalinkRequestInfo.cc
  13571. (execute): Exception -> RecoverableException.
  13572. * src/MetaFileUtil.cc: RecoverableException.
  13573. * src/AbstractCommand.h
  13574. (onAbort): Exception -> RecoverableException.
  13575. * src/DlRetryEx.h: Exception -> RecoverableException.
  13576. * src/DlAbortEx.h: Exception -> RecoverableException.
  13577. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  13578. * src/Util.cc: Exception -> RecoverableException.
  13579. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  13580. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  13581. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  13582. To make ID static const int
  13583. * src/BtInterestedMessage.h
  13584. (ID_t): Removed.
  13585. (ID): New variable.
  13586. (getId): Made non-const.
  13587. * src/BtPieceMessage.h
  13588. (ID_t): Removed.
  13589. (ID): New variable.
  13590. (getId): Made non-const.
  13591. * src/BtChokeMessage.h
  13592. (ID_t): Removed.
  13593. (ID): New variable.
  13594. (getId): Made non-const.
  13595. * src/BtHaveAllMessage.h
  13596. (ID_t): Removed.
  13597. (ID): New variable.
  13598. (getId): Made non-const.
  13599. * src/BtKeepAliveMessage.h
  13600. (ID_t): Removed.
  13601. (ID): New variable.
  13602. (getId): Made non-const.
  13603. * src/BtHandshakeMessage.h
  13604. (ID): New variable.
  13605. (getId): Made non-const.
  13606. * src/BtSuggestPieceMessage.h
  13607. (ID_t): Removed.
  13608. (ID): New variable.
  13609. (getId): Made non-const.
  13610. * src/BtPortMessage.h
  13611. (ID_t): Removed.
  13612. (ID): New variable.
  13613. (getId): Made non-const.
  13614. * src/AbstractBtMessage.h
  13615. (id): Removed.
  13616. (AbstractBtMessage): Removed id.
  13617. (getId): Removed.
  13618. * src/BtHaveMessage.h
  13619. (ID_t): Removed.
  13620. (ID): New variable.
  13621. (getId): Made non-const.
  13622. * src/BtAllowedFastMessage.h
  13623. (ID_t): Removed.
  13624. (ID): New variable.
  13625. (getId): Made non-const.
  13626. * src/BtCancelMessage.h
  13627. (ID_t): Removed.
  13628. (ID): New variable.
  13629. (getId): Made non-const.
  13630. * src/BtNotInterestedMessage.h
  13631. (ID_t): Removed.
  13632. (ID): New variable.
  13633. (getId): Made non-const.
  13634. * src/BtChokeMessage.h
  13635. (ID_t): Removed.
  13636. (ID): New variable.
  13637. (getId): Made non-const.
  13638. * src/BtRejectMessage.h
  13639. (ID_t): Removed.
  13640. (ID): New variable.
  13641. (getId): Made non-const.
  13642. * src/BtBitfieldMessage.h
  13643. (ID_t): Removed.
  13644. (ID): New variable.
  13645. (getId): Made non-const.
  13646. * src/BtUnchokeMessage.h
  13647. (ID_t): Removed.
  13648. (ID): New variable.
  13649. (getId): Made non-const.
  13650. * src/BtRequestMessage.h
  13651. (ID_t): Removed.
  13652. (ID): New variable.
  13653. (getId): Made non-const.
  13654. * src/BtHaveMessage.h
  13655. (ID_t): Removed.
  13656. (ID): New variable.
  13657. (getId): Made non-const.
  13658. To add --force-truncate command-line option and a check whether
  13659. the file already exists:
  13660. * src/DirectDiskAdaptor.h
  13661. (getFilePath): Made virtual public.
  13662. * src/MultiDiskAdaptor.h
  13663. (File.h): New include.
  13664. (DiskWriterEntry::fileEntry): Made private.
  13665. (DiskWriterEntry::fileExists): New function.
  13666. (DiskWriterEntry::getFileEntry): New function.
  13667. (fileExists): New function.
  13668. (getFilePath): New function.
  13669. * src/TorrentRequestInfo.cc
  13670. (FatalException.h): New include.
  13671. (message.h): New include.
  13672. (RecoverableException.h): New include.
  13673. (execute): Added a check whether file is already exists or not.
  13674. * src/DiskAdaptor.h
  13675. (fileExists): New function.
  13676. (getFilePath): New function.
  13677. * src/main.cc
  13678. (showUsage): Added an explanation of --force-truncate command-line
  13679. option.
  13680. (main): Added --force-truncate command-line option.
  13681. * src/Exception.h
  13682. (setMsg): buf[256] -> buf[1024]
  13683. * src/CopyDiskWriter.h
  13684. (getFilePath): Made public virtual.
  13685. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  13686. (fileExists): New function.
  13687. * src/DownloadEngineFactory.cc
  13688. (newTorrentConsoleEngine): Don't open file here.
  13689. * src/message.h
  13690. (EX_FILE_ALREADY_EXISTS): New definition.
  13691. * src/prefs.h
  13692. (PREF_FOECE_TRUNCATE): New definition.
  13693. * src/HttpResponseCommand.cc
  13694. (handleDefaultEncoding): Added a check whether the file already exists.
  13695. * src/SegmentMan.h
  13696. (fileExists): New function.
  13697. (shouldCancelDownloadForSafety): New function.
  13698. * src/FtpNegotiateCommand.cc
  13699. (recvSize): Added a check whether the file already exists.
  13700. * src/AbstractSingleDiskAdaptor.cc
  13701. (File.h): New include.
  13702. (fileExists): New function.
  13703. * src/AbstractSingleDiskAdaptor.h
  13704. (getFilePath): Removed.
  13705. (fileExists): New function.
  13706. * src/SegmentMan.cc
  13707. (fileExists): New function.
  13708. (shouldCancelDownloadForSafety): New function.
  13709. To fix regression bug in torrent downloading:
  13710. * src/DefaultBtRequestFactory.cc
  13711. (doChokedAction): New function.
  13712. * src/DefaultBtRequestFactory.h
  13713. (doChokedAction): New function.
  13714. * src/DefaultBtMessageDispatcher.cc
  13715. (doChokedAction): Do not delete request if its target is in allowed
  13716. fast set.
  13717. * src/DefaultBtInteractive.cc
  13718. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  13719. (sendKeepAlive): Send keep alive message even if the outgoing message
  13720. queue is not empty.
  13721. (decideInterest): Simplified the code.
  13722. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  13723. it is already called when BtChokeMessage is received from a peer.
  13724. * src/BtRequestFactory.h
  13725. (doChokedAction): New function.
  13726. To clean up code:
  13727. * src/PeerInteractionCommand.h
  13728. (executeInternal): Added virtual keyword explicitly.
  13729. (prepareForRetry): Added virtual keyword explicitly.
  13730. (prepareForNextPeer): Added virtual keyword explicitly.
  13731. (onAbort): Added virtual keyword explicitly.
  13732. * src/RequestSlot.cc
  13733. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  13734. * src/BtPieceMessage.cc
  13735. (doReceivedAction): Added a debug log of piece's bitfield.
  13736. * src/Piece.h
  13737. (getBitfieldLength): New function.
  13738. * src/ByteArrayDiskWriter.cc
  13739. (clear): Added buf = 0 to avoid double free corruption.
  13740. * src/FileAllocator.cc
  13741. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  13742. Added cp.reset().
  13743. * src/BitfieldMan.h
  13744. (operator=): Rewritten.
  13745. * src/BitfieldMan.cc
  13746. (BitfieldMan): Initialized bitfield, useBitfield.
  13747. * src/PeerConnection.cc
  13748. (receiveMessage): Added a call to socket->readable() after getting
  13749. message length to avoid possible EOF.
  13750. * src/Util.cc
  13751. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  13752. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13753. To add an ability to pre-allocate file space:
  13754. * src/DirectDiskAdaptor.h: Rewritten.
  13755. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  13756. * src/MultiDiskAdaptor.h: Rewritten.
  13757. * src/DefaultPieceStorage.cc
  13758. (MultiDiskWriter.h): Removed include.
  13759. (PreAllocationDiskWriter.h): Removed include.
  13760. (FileAllocationMonitor.h): New include.
  13761. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  13762. (initStorage): Rewritten.
  13763. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13764. * src/FileAllocator.h: New class.
  13765. * src/FileAllocator.cc: New class.
  13766. * src/FileAllocationMonitor.h: New class.
  13767. * src/FileAllocationMonitor.cc: New class.
  13768. * src/ConsoleFileAllocationMonitor.h: New class.
  13769. * src/ConsoleFileAllocationMonitor.cc: New class.
  13770. * src/AbstractSingleDiskAdaptor.h: New class.
  13771. * src/AbstractSingleDiskAdaptor.cc: New class.
  13772. * src/DiskAdaptor.h
  13773. (Directory.h): Removed include.
  13774. (DiskWriter.h): Removed include.
  13775. (FileEntry.h): Removed include.
  13776. (diskWriter): Removed.
  13777. (DiskAdaptor): Removed diskWriter.
  13778. (openFile): Made pure virtual.
  13779. (closeFile): Made pure virtual.
  13780. (openExistingFile): Made pure virtual.
  13781. (initAndOpenFile): Made pure virtual.
  13782. (writeData): Made pure virtual.
  13783. (readData): Made pure virtual.
  13784. (sha1Sum): Made pure virtual.
  13785. (getStoreDir): Returns const reference of storeDir.
  13786. (DiskAdaptorHandle): New type definition.
  13787. * src/main.cc
  13788. (ConsoleFileAllocationMonitor.h): New include.
  13789. (showUsage): Added default value description of -s option.
  13790. Added the description of --file-allocation option.
  13791. (main): Set default value of --file-allocation option to 'none'.
  13792. Added --file-allocation command-line option.
  13793. Setup FileAllocationMonitorFactory.
  13794. * src/FtpInitiateConnectionCommand.cc
  13795. (executeInternal): Removed diskWriter related processing, which was
  13796. moved to FtpNegotiationCommand.cc.
  13797. * src/DirectDiskAdaptor.cc
  13798. (getFilePath): Made non-const.
  13799. * src/CopyDiskAdaptor.h
  13800. (DiskAdaptor.h): Removed include.
  13801. (DiskWriter.h): Removed include.
  13802. (AbstractSingleDiskAdaptor.h): New include.
  13803. (getFilePath): Made non-const. Added virtual keyword.
  13804. (CopyDiskAdaptor): Removed diskWriter.
  13805. (getTempFile): Returns const reference.
  13806. (CopyDiskAdaptorHandle): New type definition.
  13807. * src/ByteArrayDiskWriter.cc
  13808. (clear): Simplified.
  13809. (initAndOpenFile): Rewritten.
  13810. (openFile): Call initAndOpenFile()
  13811. * src/MultiDiskAdaptor.cc: Rewritten.
  13812. * src/DownloadEngineFactory.cc
  13813. (FileAllocator.h): New include.
  13814. (FileAllocationMonitor.h): New include.
  13815. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  13816. create DefaultDiskWriter with file allocator.
  13817. * src/DiskWriter.h
  13818. (initAndOpenFile): Added totalLength argument.
  13819. (openFile): Added totalLength argument.
  13820. * src/prefs.h
  13821. (PREF_FILE_ALLOCATION): New definition.
  13822. (V_PREALLOC): New definition.
  13823. (V_NONE): New definition.
  13824. * src/HttpResponseCommand.cc
  13825. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  13826. size.
  13827. * src/FtpNegotiateCommand.cc
  13828. (Util.h): New include.
  13829. (recvSize): Open file here.
  13830. * src/Util.h
  13831. (ullitos): New function.
  13832. * src/CopyDiskWriter.h
  13833. (getFilePath): Made non-const.
  13834. * src/DefaultDiskWriter.h
  13835. (Option.h): New include.
  13836. (totalLength): Removed.
  13837. (DefaultDiskWriter): Removed totalLength.
  13838. (initAndOpenFile): Added totalLength argument.
  13839. (DefaultDiskWriterHandle): New type definition.
  13840. (createNewDiskWriter): New function.
  13841. * src/Util.cc
  13842. (ullitos): New function.
  13843. * src/DefaultDiskWriter.cc
  13844. (message.h): New include.
  13845. (FileAllocator.h): New include.
  13846. (prefs.h): New include.
  13847. (Util.h): New include.
  13848. (DefaultDiskWriter): Removed totalLength.
  13849. (initAndOpenFile): Added file allocation.
  13850. (createNewDiskWriter): New function. Just for temporary solution.
  13851. It will be rewritten later.
  13852. * src/DiskAdaptor.cc
  13853. (DiskAdaptor): Removed diskWriter.
  13854. * src/AbstractDiskWriter.cc
  13855. (LogFactory.h): New include.
  13856. (AbstractDiskWriter): Added fileAllocator, logger.
  13857. (openFile): Added totalLength argument.
  13858. * src/AbstractDiskWriter.h
  13859. (FileAllocator.h): New include.
  13860. (Logger.h): New include.
  13861. (fileAllocator): New variable.
  13862. (logger): New variable.
  13863. (openFile): Added totalLength argument. Added virtual keyword
  13864. explicitly.
  13865. (openExistingFile): Added totalLength argument. Added virtual keyword
  13866. explicitly.
  13867. (closeFile): Added virtual keyword explicitly.
  13868. (sha1Sum): Added virtual keyword explicitly.
  13869. (writeData): Added virtual keyword explicitly.
  13870. (readData): Added virtual keyword explicitly.
  13871. (setFileAllocator): New function.
  13872. * src/DefaultPieceStorage.h
  13873. (FileAllocator.h): New include.
  13874. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13875. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13876. * src/FileProgressMonitor.h: New class.
  13877. To compile aria2 on PC-BSD:
  13878. * src/DefaultBtContext.cc
  13879. (libgen.h): New include.
  13880. To fix memory leak:
  13881. * src/Exception.h
  13882. (~Exception): Delete cause. Fixed memory leak.
  13883. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13884. Rewritten a portion of bittorrent implementation:
  13885. * src/BtMessageValidator.h: New class.
  13886. * src/BtBitfieldMessageValidator.h: New class.
  13887. * src/BtHandshakeMessageValidator.h: New class.
  13888. * src/BtRequestMessageValidator.h: New class.
  13889. * src/BtSuggestPieceMessageValidator.h: New class.
  13890. * src/BtAllowedFastMessageValidator.h: New class.
  13891. * src/BtRejectMessageValidator.h: New class.
  13892. * src/BtCancelMessageValidator.h: New class.
  13893. * src/BtPieceMessageValidator.h: New class.
  13894. * src/BtHaveMessageValidator.h: New class.
  13895. * src/BtEventListener.h: New class.
  13896. * src/AbstractBtEventListener.h: New class.
  13897. * src/BtEvent.h: New class.
  13898. * src/BtChokingEvent.h: New class.
  13899. * src/BtChokedEvent.h: New class.
  13900. * src/BtCancelSendingPieceEvent.h: New class.
  13901. * src/BtAbortOutstandingRequestEvent.h: New class.
  13902. * src/Randomizer.h: New class.
  13903. * src/SimpleRandomizer.h: New class.
  13904. * src/BtMessage.h: New class.
  13905. * src/AbstractBtMessage.h: New class.
  13906. * src/SimpleBtMessage.h: New class.
  13907. * src/BtHaveMessage.h: New class.
  13908. * src/BtInterestedMessage.h: New class.
  13909. * src/BtAllowedFastMessage.h: New class.
  13910. * src/BtUnchokeMessage.h: New class.
  13911. * src/BtCancelMessage.h: New class.
  13912. * src/BtNotInterestedMessage.h: New class.
  13913. * src/BtChokeMessage.h: New class.
  13914. * src/BtHaveNoneMessage.h: New class.
  13915. * src/BtHandshakeMessage.h: New class.
  13916. * src/BtSuggestPieceMessage.h: New class.
  13917. * src/BtHaveMessage.h: New class.
  13918. * src/BtPieceMessage.h: New class.
  13919. * src/BtHaveAllMessage.h: New class.
  13920. * src/BtKeepAliveMessage.h: New class.
  13921. * src/BtPortMessage.h: New class.
  13922. * src/BtRejectMessage.h: New class.
  13923. * src/BtBitfieldMessage.h: New class.
  13924. * src/BtRequestMessage.h: New class.
  13925. * src/DefaultBtRequestFactory.h: New class.
  13926. * src/DefaultBtMessageReceiver.h: New class.
  13927. * src/BtInteractive.h: New class.
  13928. * src/BtMessageDispatcher.h: New class.
  13929. * src/DefaultBtMessageDispatcher.h: New class.
  13930. * src/DefaultBtInteractive.h: New class.
  13931. * src/BitfieldManFactory.h: New class.
  13932. * src/HandleRegistry.h: New class.
  13933. * src/BtMessageFactory.h: New class.
  13934. * src/BtMessageReceiver.h: New class.
  13935. * src/DefaultBtMessageFactory.h: New class.
  13936. * src/PeerObject.h: New class.
  13937. * src/BtRequestFactory.h: New class.
  13938. * src/SuggestPieceMessage.h: Removed.
  13939. * src/PortMessage.h: Removed.
  13940. * src/SuggestPieceMessage.h: Removed.
  13941. * src/KeepAliveMessage.h: Removed.
  13942. * src/HandshakeMessage.h: Removed.
  13943. * src/PeerInteraction.h: Removed.
  13944. * src/UnchokeMessage.h: Removed.
  13945. * src/PieceMessage.h: Removed.
  13946. * src/RequestMessage.h: Removed.
  13947. * src/InterestedMessage.h: Removed.
  13948. * src/HaveMessage.h: Removed.
  13949. * src/CancelMessage.h: Removed.
  13950. * src/RejectMessage.h: Removed.
  13951. * src/AllowedFastMessage.h: Removed.
  13952. * src/HaveNoneMessage.h: Removed.
  13953. * src/SimplePeerMessage.h: Removed.
  13954. * src/HaveAllMessage.h: Removed.
  13955. * src/BitfieldMessage.h: Removed.
  13956. * src/PeerMessageFactory.h: Removed.
  13957. * src/NotInterestedMessage.h: Removed.
  13958. * src/ChokeMessage.h: Removed.
  13959. * src/PeerMessage.h: Removed.
  13960. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13961. To know root cause of exception:
  13962. * src/Exception.h
  13963. (cause): New variable.
  13964. (Exception): Added a parameter.
  13965. (getMsg): Return const reference to msg.
  13966. (getCause): New function.
  13967. * src/DlRetryEx.h
  13968. (DlRetryEx): Added a parameter 'cause'.
  13969. Added an overloaded constructor.
  13970. (DlAbortEx): Added a parameter 'cause'.
  13971. Added an overloaded constructor.
  13972. * src/SimpleLogger.cc
  13973. (writeLog): Log nested exception messages recursively.
  13974. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13975. * src/DefaultBtProgressInfoFile.cc
  13976. (load): Fixed memory leak when the infohash doesn't match.
  13977. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13978. * src/DefaultPeerStorage.cc
  13979. (calculateStat): Simplified the code by combining 2 loops into 1.
  13980. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13981. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  13982. for BitTorrent download:
  13983. * src/PeerAbstractCommand.cc
  13984. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  13985. * src/main.cc:
  13986. (timeoutSpecified): Removed.
  13987. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  13988. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  13989. * src/TorrentRequestInfo.cc
  13990. (timeoutSpecified): Removed.
  13991. (torrentHandler): Removed timeoutSpecified and the adjustment of
  13992. timeout value.
  13993. * src/prefs.h
  13994. (PREF_BT_TIMEOUT): New definition.
  13995. Delete unused variables:
  13996. * src/TorrentRequestInfo.cc
  13997. (requestInfo): Removed.
  13998. Move setSignalHander to Util::setGlobalSignalHandler:
  13999. * src/TorrentRequestInfo.cc:
  14000. setSignalHander -> Util::setGlobalSignalHandler
  14001. * src/main.cc
  14002. (setSignalHander): Removed.
  14003. (main): setSignalHander -> Util::setGlobalSignalHandler
  14004. * src/Util.h
  14005. (setGlobalSignalHandler): New function.
  14006. * src/Util.cc
  14007. (setGlobalSignalHandler): New function.
  14008. * src/UrlRequestInfo.cc:
  14009. setSignalHander -> Util::setGlobalSignalHandler
  14010. Reset peer status in order to exit gracefully:
  14011. * src/PeerAbstractCommand.cc
  14012. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  14013. To fix the bug that causes the number of bytes uploaded is not saved
  14014. to .aria2 file:
  14015. * src/DefaultPeerStorage.h
  14016. (removedPeerSessionDownloadLength): New variable.
  14017. (removedPeerSessionUploadLength): New variable.
  14018. * src/DefaultPeerStorage.cc
  14019. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  14020. removedPeerSessionUploadLength(0).
  14021. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  14022. through all peers, and then add removedPeerSessionDownloadLength(
  14023. removedPeerSessionUploadLength) to it.
  14024. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  14025. (to) the peer to removedPeerSessionDownloadLength
  14026. (removedPeerSessionUploadLength).
  14027. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14028. To add Metalink location option:
  14029. * src/MetalinkRequestInfo.cc
  14030. (execute): Call MetalinkEntry::setLocationPreference()
  14031. * src/main.cc
  14032. (showUsage): Added the help message for --metalink-location option.
  14033. (main): Added --metalink-location option.
  14034. * src/prefs.h
  14035. (PREF_METALINK_LOCATION): New definition.
  14036. * src/MetalinkEntry.cc
  14037. (AddLocationPreference): New function object.
  14038. (setLocationPreference): New function.
  14039. * src/Xml2MetalinkProcessor.cc
  14040. (getResource): Set location attribute to MetalinkResource
  14041. To show URLs to download
  14042. * src/UrlRequestInfo.h
  14043. (printUrls): New function.
  14044. To add multiple <file> Metalink support:
  14045. * src/MetalinkEntry.h
  14046. (MetalinkResources): Removed.
  14047. (setLocationPreference): New function.
  14048. (MetalinkEntryHandle): New type definition.
  14049. (MetalinkEntries): New type definition.
  14050. * src/Xml2MetalinkProcessor.h
  14051. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14052. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14053. (parseFile): Metalinker* -> MetalinkerHandle
  14054. * src/UrlRequestInfo.h
  14055. (execute): RequestInfo* -> RequestInfos
  14056. * src/MetalinkRequestInfo.cc
  14057. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  14058. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  14059. (execute): RequestInfo* -> RequestInfos
  14060. Added multiple <file> support. Print filename when it is queued.
  14061. * src/MetalinkRequestInfo.h
  14062. (execute): RequestInfo* -> RequestInfos
  14063. (getDownloadEngine): Removed.
  14064. * src/RequestInfo.h
  14065. (RequestInfoHandle): New type definition.
  14066. (RequestInfos): New type definition.
  14067. (execute): RequestInfo* -> RequestInfos
  14068. (getDownloadEngine): Removed.
  14069. * src/MetalinkResource.h
  14070. (MetalinkResourceHandle): New type definition.
  14071. (MetalinkResources): New type definition.
  14072. * src/MetalinkEntry.cc
  14073. (~MetalinkEntry): Removed the deletion of the elements of resources,
  14074. because the element is now of type MetalinkResourceHandle.
  14075. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  14076. (Supported): MetalinkResource* -> MetalinkResourceHandle
  14077. (dropUnsupportedResource): Removed the deletion of the elements of
  14078. resources because the element is now of type MetalinkResourceHandle.
  14079. * src/Xml2MetalinkProcessor.cc
  14080. (parseFile): Metalinker* -> MetalinkerHandle
  14081. MetalinkEntry* -> MetalinkEntryHandle
  14082. Removed try-catch block.
  14083. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14084. MetalinkResource* -> MetalinkResourceHandle
  14085. Removed try-catch block.
  14086. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14087. Free result by using xmlXPathFreeObject()
  14088. * src/Metalinker.cc
  14089. (~Metalinker): Removed the deletion of entries.
  14090. MetalinkEntry* -> MetalinkEntryHandle
  14091. (queryEntry): Add multiple <file> Metalink support.
  14092. * src/Metalinker.h
  14093. (MetalinkEntries): Removed.
  14094. (queryEntry): MetalinkEntry* -> MetalinkEntries
  14095. * src/MetalinkProcessor.h
  14096. (parseFile): Metalinker* -> MetalinkerHandle
  14097. Bug fixes:
  14098. * src/PeerChokeCommand.cc
  14099. (execute): cat01->cat02
  14100. * src/DefaultPieceStorage.cc
  14101. (DefaultPieceStorage): Added diskAdaptor(0)
  14102. * src/TrackerWatcherComand.cc:
  14103. (execute): Use btAnnounce->noMoreAnnounce()
  14104. to determin whether the function returns true or not.
  14105. * src/TrackerUpdateCommand.cc:
  14106. (execute): Use btAnnounce->noMoreAnnounce()
  14107. to determin whether the function returns true or not.
  14108. * src/FtpConnection.cc
  14109. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  14110. This is the fix of the busy loop bug.
  14111. * src/DownloadCommand.cc
  14112. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  14113. cached PeerStat.
  14114. The value of "name" entry in torrent file is now set by
  14115. *DiskAdaptor::setTopDir(...) methods.
  14116. * src/MultiDiskAdaptor.h
  14117. (topDir): New variable.
  14118. (setTopDir): New function.
  14119. (getTopDir): New function.
  14120. * src/MultiDiskAdaptor.cc
  14121. (getFilePath): Concat storDir, "/" and topDir.
  14122. (mkdir): Use getFilePath() to get the directory path for output.
  14123. * src/DefaultPieceStorage.cc
  14124. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  14125. CopyDiskAdaptor.
  14126. * src/CopyDiskAdaptor.h
  14127. (topDir): New variable.
  14128. (setTopDir): New function.
  14129. (getTopDir): New function.
  14130. * src/CopyDiskAdaptor.cc
  14131. (fixFilename): Updated.
  14132. Misc
  14133. * src/UrlRequestInfo.h
  14134. (e): Removed.
  14135. (UrlRequestInfo): Removed e.
  14136. (getDownloadEngine): Removed.
  14137. * src/UrlRequestInfo.cc
  14138. (handler): Rewritten.
  14139. (printUrls): New function.
  14140. (execute): Call printUrls().
  14141. * src/HandshakeMessage.cc
  14142. (check): peerinteraction->getBtContext() -> btContext
  14143. * src/PeerInteraction.h
  14144. (getBtContext): Removed.
  14145. * src/TorrentRequestInfo.h
  14146. (execute): RequestInfo* -> RequestInfos
  14147. (getDownloadEngine): Removed.
  14148. * src/TorrentRequestInfo.cc
  14149. (haltRequested): Removed.
  14150. (btHaltRequested): New variable.
  14151. (torrentHandler): haltRequested -> btHaltRequested
  14152. (execute): RequestInfo* -> RequestInfos
  14153. * src/TorrentConsoleDownloadEngine.cc
  14154. (afterEachIteration): haltRequested -> btHaltRequested.
  14155. * src/ConsoleDownloadEngine.h
  14156. (initStatistics): Added virtual.
  14157. (calculateStatistics): Added virtual.
  14158. (onEndOfRun): Added virtual.
  14159. (afterEachIteration): Added virtual.
  14160. * src/ConsoleDownloadEngine.cc
  14161. (haltRequested): New variable.
  14162. (afterEachIteration): New function.
  14163. * src/main.cc
  14164. (requestInfo): Removed.
  14165. * src/SegmentMan.cc
  14166. (findSlowerSegmentEntry): Refactored.
  14167. * Release 0.9.0
  14168. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14169. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  14170. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  14171. * src/TorrentMan.h: Removed.
  14172. * src/TorrentMan.cc: Removed.
  14173. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  14174. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  14175. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  14176. * src/PeerAbstractCommand.cc: Use btRuntime.
  14177. * src/BtContextAwareCommand.h: New class.
  14178. * src/FileEntry.h: Added accessor methods for following variables.
  14179. (path): Made private.
  14180. (length): Made private.
  14181. (offset): Made private.
  14182. (extracted): Made private.
  14183. (requested): Made private.
  14184. (FileEntries): New definition.
  14185. (FileEntryHandle): New definition.
  14186. * src/FileEntry.cc: New file.
  14187. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  14188. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  14189. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  14190. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  14191. * src/PieceStorage.h: New file.
  14192. * src/PeerInteractionCommand.h: Use btContext.
  14193. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  14194. btRuntime.
  14195. * src/DefaultBtProgressInfoFile.h: New file.
  14196. * src/DefaultBtProgressInfoFile.cc: New file.
  14197. * src/File.cc
  14198. (Util.h): New include.
  14199. (mkdirs): New function.
  14200. * src/MultiDiskAdaptor.h
  14201. (mkdir): New function.
  14202. * src/PeerListProcessor.h
  14203. (Peers): Removed.
  14204. * src/PeerInteraction.h
  14205. (torrentMan): Removed.
  14206. (btContext): New variable.
  14207. (peerStorage): New variable.
  14208. (pieceStorage): New variable.
  14209. (btAnnounce): New variable.
  14210. (getTorrentMan): Removed.
  14211. (getBtContext): New function.
  14212. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  14213. btAnnounce.
  14214. * src/HandshakeMessage.h
  14215. (TorrentMan.h): Removed.
  14216. * src/HandshakeMessage.cc: Use btContext.
  14217. * src/DefaultBtAnnounce.cc: New file.
  14218. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  14219. * src/DefaultPieceStorage.cc: New file.
  14220. * src/DefaultBtContext.h: New file.
  14221. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  14222. Use the accessor methods of FileEntry.
  14223. * src/CookieBox.cc: Updated to use Util::slice().
  14224. * src/PieceMessage.cc: Use btContext, pieceStorage.
  14225. * src/common.h (SharedHandle.h): New include.
  14226. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  14227. pieceStorage.
  14228. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  14229. * src/DiskAdaptor.h
  14230. (topDir): Removed.
  14231. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  14232. (setTopDir): Removed.
  14233. (getTopDir): Removed.
  14234. * src/BtContext.h: New file.
  14235. * src/DefaultPeerStorage.h: New file.
  14236. * src/PieceMessage.h (TorrentMan.h): Removed.
  14237. * src/RequestMessage.h (TorrentMan.h): Removed.
  14238. * src/TorrentDownloadEngine.h
  14239. (uploadLength): New variable.
  14240. (btContext): New variable.
  14241. (btRuntime): New variable.
  14242. (pieceStorage): New variable.
  14243. (peerStorage): New variable.
  14244. (btAnnounce): New variable.
  14245. (btProgressInfoFile): New variable.
  14246. (torrentMan): Removed.
  14247. (setBtContext): New function.
  14248. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  14249. peerStorage, btAnnounce, btProgressInfoFile.
  14250. * src/Piece.h
  14251. (toString): New function.
  14252. (Pieces): New type definition.
  14253. * src/Peer.h
  14254. (active): New variable.
  14255. (Peer): Added active.
  14256. (activate): Set active to true.
  14257. (deactivate): Set active to false.
  14258. (isActive): New function.
  14259. (Peers): New type definition.
  14260. * src/DirectDiskAdaptor.cc
  14261. (getFilePath): Use the accessor methods of FileEntry.
  14262. * src/TorrentConsoleDownloadEngine.h
  14263. (afterEachIteration): New function.
  14264. * src/TorrentConsoleDownloadEngine.cc
  14265. (haltRequested): New variable.
  14266. (sendStatistics): Use pieceStorage, btRuntime.
  14267. (afterEachIteration): New function.
  14268. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  14269. * src/Directry.h
  14270. (Directory): New function.
  14271. (DirectoryHandle): New type definition.
  14272. * src/BtProgressInfoFile.h: New file.
  14273. * src/RequestMessage.cc: Use pieceStorage.
  14274. * src/BtRuntime.h: New file.
  14275. * src/DefaultBtContext.cc: New file.
  14276. * src/BitfieldMan.h
  14277. (getCompletedLength): New function(private).
  14278. (getCompletedLength): New function.
  14279. (getFilteredCompletedLength): New function.
  14280. * src/BitfieldMan.h
  14281. (getCompletedLength): New function(private).
  14282. (getCompletedLength): New function.
  14283. (getFilteredCompletedLength): New function.
  14284. * src/MultiDiskAdaptor.cc
  14285. (mkdir): New function.
  14286. (openFile): Call mkdir().
  14287. (initAndOpenFile): Call mkdir().
  14288. * src/CancelMessage.h
  14289. (TorrentMan.h): Removed.
  14290. * src/RejectMessage.h
  14291. (TorrentMan.h): Removed.
  14292. * src/DownloadEngineFactory.cc
  14293. (DefaultPieceStorage.h): New include.
  14294. (DefaultPeerStorage.h): New include.
  14295. (DefaultBtAnnounce.h): New include.
  14296. (DefaultBtProgressInfoFile.h): New include.
  14297. (newTorrentConsoleEngine): Rewritten.
  14298. * src/ShareRatioSeedCriteria.h
  14299. (torrentMan): Removed.
  14300. (btContext): New variable.
  14301. (peerStorage): New variable.
  14302. (btRuntime): New variable.
  14303. (evaluate): Use btContext, btRuntime, peerStorage.
  14304. * src/AnnounceTier.h: New file.
  14305. * src/BtAnnounce.h: New file.
  14306. * src/BtRegistry.h: New file.
  14307. * src/PeerInitiateConnectionCommand.h: Added btContext.
  14308. * src/PeerConnection.h (TorrentMan.h): Removed.
  14309. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  14310. * src/Util.h
  14311. (slice): Added an argument.
  14312. * src/Util.cc
  14313. (slice): Added an argument to control whether trim is made or not.
  14314. * src/PeerStorage.h: New file.
  14315. * src/BtRegistry.cc: New file.
  14316. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  14317. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  14318. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  14319. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  14320. * src/TorrentRequestInfo.h
  14321. (e): Removed.
  14322. (showFileEntry): Added an argument.
  14323. (getDownloadEngine): Return 0.
  14324. * src/DefaultBtAnnounce.h: New file.
  14325. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  14326. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  14327. * src/PeerMessageFactory.h
  14328. (btContext): New variable.
  14329. (pieceStorage): New variable.
  14330. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  14331. btAnnounce.
  14332. * src/DiskAdaptor.cc
  14333. (DiskAdaptor): Removed topDir.
  14334. (~DiskAdaptor): Removed topDir.
  14335. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  14336. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  14337. * src/File.h (mkdirs): New function.
  14338. * src/DefaultPeerStorage): New file.
  14339. * src/DownloadEngineFactory.h
  14340. (newTorrentConsoleEngine): Use btContext.
  14341. * src/BtContextAwareCommand.cc: New file.
  14342. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  14343. * src/PeerMessage.h
  14344. (btContext): New variable.
  14345. (peerStorage): New variable.
  14346. (pieceStorage): New variable.
  14347. (setBtContext): New function.
  14348. * src/Directry.cc
  14349. (Directory): New function.
  14350. (createDir): Do nothing if name.size() == 0.
  14351. * src/AnnounceList.h
  14352. (AnnounceTier): Removed.
  14353. (AnnounceTiers): Removed.
  14354. * src/DefaultPieceStorage.h: New file.
  14355. * src/Piece.cc (toString): New function.
  14356. To fix typo:
  14357. * src/main.cc (showVersion): Fixed typo.
  14358. To fix compile warning:
  14359. * src/DelegatingPeerListProcessor.cc
  14360. (canHandle): Added "return false".
  14361. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14362. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  14363. make the process of announce request testable.
  14364. * src/TrackerWatcherCommand.h
  14365. (TimeA2.h): Removed.
  14366. (interval): Removed.
  14367. (checkPoint): Removed.
  14368. (createRequestCommand): Added an argument 'url'.
  14369. (TrackerWatherCommand): Removed interval.
  14370. (createCommand): New function.
  14371. * src/DownloadEngineFactory.cc
  14372. (newTorrentConsoleEngine): Updated according to the changes in
  14373. TrackerWatherCommand.
  14374. * src/TorrentMan.cc
  14375. (DelegatingPeerListProcessor.h): New includes.
  14376. (TorrentMan): Added the initialization of announceInterval.
  14377. (isStoppedAnnounceReady): New function.
  14378. (isCompletedAnnounceReady): New function.
  14379. (isDefaultAnnounceReady): New function.
  14380. (isAnnounceReady): New function.
  14381. (getAnnounceUrl): New function.
  14382. (announceStart): New function.
  14383. (announceFailure): New function.
  14384. (announceSuccess): New function.
  14385. (isAllAnnounceFailed): New function.
  14386. (resetAnnounce): New function.
  14387. (processAnnounceResponse): New function.
  14388. (needMorePeerConnection): New function.
  14389. (noMoreAnnounce): New function.
  14390. * src/TrackerUpdateCommand.h
  14391. (getTrackerResponse): int->size_t
  14392. * src/TorrentMan.h
  14393. (isStoppedAnnounceReady): New function.
  14394. (isCompletedAnnounceReady): New function.
  14395. (isDefaultAnnounceReady): New function.
  14396. (announceInterval): New variable.
  14397. (isAnnounceReady): New function.
  14398. (getAnnounceUrl): New function.
  14399. (announceStart): New function.
  14400. (announceFailure): New function.
  14401. (announceSuccess): New function.
  14402. (isAllAnnounceFailed): New function.
  14403. (resetAnnounce): New function.
  14404. (processAnnounceResponse): New function.
  14405. (needMorePeerConnection): New function.
  14406. (noMoreAnnounce): New function.
  14407. * src/TrackerWatcherCommand.cc
  14408. (TrackerWatherCommand): Removed interval and checkPoint.
  14409. (execute): Rewritten.
  14410. (createCommand): New function.
  14411. (createRequestCommand): Rewritten.
  14412. * src/TrackerUpdateCommand.cc
  14413. (MetaFileUtil.h): Removed.
  14414. (DelegatingPeerListProcessor.h): Removed.
  14415. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  14416. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14417. Request -> RequestHandle:
  14418. * src/HttpResponseCommand.h: Request->RequestHandle
  14419. * src/AbstractCommand.cc: Request->RequestHandle
  14420. * src/HttpDownloadCommand.cc: Request->RequestHandle
  14421. * src/HttpRequestCommand.cc: Request->RequestHandle
  14422. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  14423. * src/AbstractCommand.h: Request->RequestHandle
  14424. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  14425. * src/HttpResponseCommand.cc: Request->RequestHandle
  14426. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  14427. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  14428. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  14429. * src/HttpConnection.h: Request->RequestHandle
  14430. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  14431. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  14432. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14433. * src/DownloadCommand.h: Request->RequestHandle
  14434. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  14435. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  14436. * src/HttpRequestCommand.h: Request->RequestHandle
  14437. * src/FtpNegotiateCommand.h: Request->RequestHandle
  14438. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14439. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  14440. * src/HttpDownloadCommand.h: Request->RequestHandle
  14441. * src/FtpConnection.cc: Request->RequestHandle
  14442. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  14443. * src/UrlRequestInfo.cc: Request->RequestHandle
  14444. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  14445. * src/HttpConnection.h: Request->RequestHandle
  14446. * src/DownloadCommand.cc: Request->RequestHandle
  14447. * src/FtpConnection.h: Request->RequestHandle
  14448. * src/FtpDowndloadCommand.h: Request->RequestHandle
  14449. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  14450. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  14451. * src/Request.h
  14452. (SharedHandle.h): New include.
  14453. (RequestHandle): New type definition.
  14454. (Requests): Redefined.
  14455. To add MULTITRACKER support:
  14456. * src/TrackerWatcherCommand.h
  14457. (createRequestCommand): New function.
  14458. * src/DownloadEngineFactory.cc
  14459. (newTorrentConsoleEngine): Removed req.
  14460. * src/prefs.h
  14461. (PREF_TRACKER_MAX_TRIES): New definition.
  14462. * src/TorrentMan.cc
  14463. (TorrentMan): Removed req. Added trackerNumTry.
  14464. (~TorrentMan): Removed req.
  14465. (setupInternal1): Added announceList.
  14466. * src/TorrentRequestInfo.cc
  14467. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  14468. announces is now specified by PREF_TRACKER_MAX_TRIES.
  14469. * src/main.cc
  14470. (main): Added PREF_TRACKER_MAX_TRIES.
  14471. * src/TorrentMan.h
  14472. (Request.h): Removed.
  14473. (AnnounceList.h): New include.
  14474. (trackerNumTry): New variable.
  14475. (req): Removed.
  14476. (announceList): New variable.
  14477. * src/TrackerWatcherCommand.cc
  14478. (execute): Rewritten.
  14479. (createRequestCommand): New function.
  14480. * src/TrackerUpdateCommand.cc
  14481. (execute): Updated with the use of AnnounceList.
  14482. * src/AnnounceList.cc: New class.
  14483. * src/AnnounceList.h: New class.
  14484. To fix typo:
  14485. * src/prefs.h
  14486. (PREF_MAX_TRIES): max_try->max_tries
  14487. To not to decode "+" as space in URL decode:
  14488. * src/Util.cc
  14489. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  14490. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14491. To add timeout to async name resolution:
  14492. * src/AbstractCommand.h
  14493. (nameResolveFinished): New function. This is not elegant way. It needs
  14494. to be more refined.
  14495. (nameResolverCheck): New variable.
  14496. * src/AbstractCommand.cc
  14497. (AbstractCommand): Added nameResolverCheck.
  14498. (execute): Added the check whether the name resolution has finished.
  14499. (setNameResolverCheck): Set nameResolverCheck to true.
  14500. (disableNameResolverCheck): Set nameResolverCheck to false.
  14501. (nameResolverFinished): New function.
  14502. * src/FtpInitiateConnectionCommand.h
  14503. (nameResolverFinished): New function.
  14504. * src/FtpInitiateConnectionCommand.cc
  14505. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14506. * src/HttpInitiateConnectionCommand.h
  14507. (nameResolverFinished): New function.
  14508. * src/HttpInitiateConnectionCommand.cc
  14509. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14510. * src/prefs.h
  14511. (PREF_DNS_TIMEOUT): New definition.
  14512. * src/main.cc
  14513. (main): Added PREF_DNS_TIMEOUT.
  14514. To add the support for a non-compact response from a tracker:
  14515. * src/PeerListProcessor.h: New class.
  14516. * src/DefaultPeerListProcessor.h: New class.
  14517. * src/DefaultPeerListProcessor.cc: New class.
  14518. * src/CompactPeerListProcessor.h: New class.
  14519. * src/CompactPeerListProcessor.cc: New class.
  14520. * src/DelegatingPeerListProcessor.h: New class.
  14521. * src/DelegatingPeerListProcessor.cc: New class.
  14522. * src/TorrentMan.cc
  14523. (addPeer): New function(overload).
  14524. (addPeer): Delete unused peers only when new peer is added.
  14525. * src/TorrentMan.h
  14526. (PeerListProcessor.h): Included.
  14527. (Peers): Removed.
  14528. (addPeer): New function(overload).
  14529. * src/TrackerUpdateCommand.cc
  14530. (netinet/in.h): Removed.
  14531. (DelegatingPeerListProcessor.h): Included.
  14532. (execute): Updated to use DelegatingPeerListProcessor.
  14533. To fix the memory leak in TorrentMan::peers:
  14534. * src/PeerAbstractCommand.cc
  14535. (onAbort): Added peer->resetStatus().
  14536. * src/Peer.h
  14537. (resetStatus): Made public.
  14538. To improve the precision of the speed calculation:
  14539. * src/SpeedCalc.h
  14540. (nextInterval): New variable.
  14541. * src/SpeedCalc.cc
  14542. (reset): Added nextInterval.
  14543. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  14544. (changeSw): Set nextInterval to 15 seconds relative to the current
  14545. instant time.
  14546. * src/main.cc
  14547. (showVersion): Updated.
  14548. (showUsage): Updated.
  14549. * Release 0.8.1
  14550. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14551. * src/main.cc
  14552. (showUsage): Commented out --min-segment-size option.
  14553. (main): Commented out --min-segment-size option.
  14554. * Release 0.8.0
  14555. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14556. * src/*.{h,cc}:
  14557. Added an exception to the license which allows linking with OpenSSL.
  14558. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14559. * src/AbstractCommand.cc
  14560. (execute): Check whether the download has finished before checking
  14561. socket status.
  14562. Return true if peerStat->getStatus() == REQUEST_IDLE.
  14563. Do not exit even if no segment is available.
  14564. * src/prefs.h
  14565. (PREF_STARTUP_IDLE_TIME): New definition.
  14566. * src/PeerInteractionCommand.cc
  14567. (executeInternal): Removed max speed limit. Because it performs bad.
  14568. (receiveMessages): Added max speed limit. This was better than above,
  14569. but still a little bit to be desired. Sometimes the download speed
  14570. became much faster than I specified.
  14571. * src/SpeedCalc.h
  14572. (start): New variable.
  14573. (accumulatedLength): New variable.
  14574. (getAvgSpeed): New function.
  14575. * src/SpeedCalc.cc
  14576. (reset): Added start, accumulatedLength.
  14577. (update): Added calculation of an average speed.
  14578. (getAvgSpeed): New function.
  14579. * src/DownloadCommand.h
  14580. (sw): Removed.
  14581. * src/main.cc
  14582. (main): Added PREF_STARTUP_IDLE_TIME.
  14583. * src/PeerStat.h
  14584. (STATUS): Added REQUEST_IDLE.
  14585. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  14586. (getAvgDownloadSpeed): New function
  14587. (requestIdle): New function.
  14588. * src/SegmentMan.h
  14589. (SegmentEntryHandle): New type definition.
  14590. (SegmentEntries): Now holds SegmentEntryHandle.
  14591. (findSlowerSegmentEntry): New funtion.
  14592. * src/SegmentMan.cc
  14593. (save): Updated according to the changes in SegmentEntries.
  14594. (read): Updated according to the changes in SegmentEntries.
  14595. (FindSegmentEntryByIndex): Updated according to the changes in
  14596. SegmentEntries.
  14597. (FindSegmentEntryByCuid): Updated according to the changes in
  14598. SegmentEntries.
  14599. (checkoutSegment): Updated according to the changes in SegmentEntries.
  14600. (onNullBitfield): Updated according to the changes in SegmentEntries.
  14601. Renamed uitr as itr.
  14602. (findSlowerSegmentEntry): New function.
  14603. (getSegment): Updated according to the changes in SegmentEntries.
  14604. Added the feature that cancels the segment with slow server and fast
  14605. one takes it over.
  14606. (cancelSegment): Updated according to the changes in SegmentEntries.
  14607. (getDownloadLength): Updated according to the changes in
  14608. SegmentEntries.
  14609. (init): Assigned 0 to bitfield after deleting it.
  14610. * src/DownloadCommand.cc
  14611. (STARTUP_IDLE_TIME): Removed.
  14612. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  14613. * src/PeerChokeCommand.cc
  14614. (optUnchokingPeer): Updated according to the changes in Peer.
  14615. (ResetDelta): Removed.
  14616. (UploadFaster): Updated according to the changes in Peer.
  14617. (DownloadFaster): Updated according to the changes in Peer.
  14618. (execute): I clarify the meaning of "upload" and "download" here.
  14619. "upload" means the transfer from localhost to remote host.
  14620. "download" means the transfer from remote host to localhost.
  14621. Based on this rule, I swapped orderByUploadRate and
  14622. orderByDownloadRate.
  14623. * src/PeerInteractionCommand.cc
  14624. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  14625. (executeInternal): Removed the argument of
  14626. peerInteraction->sendMessages().
  14627. (receiveMessages): Rewritten download speed limit.
  14628. (sendKeepAlive): Removed peerInteraction->sendMessages().
  14629. * src/HttpResponseCommand.cc
  14630. (handleDefaultEncoding): If file size is unknown in torrent request,
  14631. do not call segmentMan->initBitfield() here.
  14632. Disabled persistent connection feature in torrent request.
  14633. * src/UrlRequestInfo.h
  14634. (UrlRequestInfo): Removed const qualifier from option.
  14635. * src/TorrentMan.h
  14636. (TransferStat): New class.
  14637. (deltaDownloadLength): Removed.
  14638. (deltaUploadLength): Removed.
  14639. (addDeltaDownloadLength): Removed.
  14640. (getDeltaDownloadLength): Removed.
  14641. (resetDeltaDownloadLength): Removed.
  14642. (addDeltaUploadLength): Removed.
  14643. (getDeltaUploadLength): Removed.
  14644. (resetDeltaUploadLength): Removed.
  14645. (addActivePeer): Added peer->activate().
  14646. (deleteActivePeer): Added peer->deactivate().
  14647. (calculateStat): New function.
  14648. * src/TorrentMan.cc
  14649. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  14650. (calculateStat): New function.
  14651. * src/PeerInteraction.h
  14652. (uploadLimit): Removed.
  14653. (option): New variable.
  14654. (setUploadLimit): Removed.
  14655. (getUploadSpeed): Removed.
  14656. (sendMessages): Removed the argument "currentUploadSpeed".
  14657. * src/PeerInteraction.cc
  14658. (prefs.h): Included.
  14659. (PeerInteraction): Removed uploadLimit. Added option.
  14660. (sendMessages): Rewritten upload speed limit.
  14661. (sendHandshake): Removed the argument from sendMessages().
  14662. (sendBitfield): Removed the argument from sendMessages().
  14663. * src/PeerAbstractCommand.cc
  14664. (execute): Commented out the portion of upload limit.
  14665. (onAbort): Removed peer->resetStatus().
  14666. * src/TorrentRequestInfo.cc
  14667. (timeoutSpecified): Declared extern.
  14668. (execute): Set timeout to 180 if timeout is not specified by.
  14669. command-line.
  14670. * src/PieceMessage.cc
  14671. (receivedAction): Added peer->updateDownloadLength().
  14672. Removed peer->addPeerUpload().
  14673. Removed torrentMan->addDeltaDownloadLength().
  14674. (send): Added peer->updateUploadLength().
  14675. Removed peer->addPeerDownload().
  14676. Removed torrentMan->addDeltaUploadLength().
  14677. * src/main.cc
  14678. (timeoutSpecified): New variable.
  14679. (main): Set timeoutSpecified to false.
  14680. If the command-line option "--upload-limit" is specified, then
  14681. timeoutSpecified is set to true. This option will remain in the next
  14682. release, but be deprecated in the future release.
  14683. * src/TorrentRequestInfo.h
  14684. (TorrentRequestInfo): Removed const qualifier from op.
  14685. * src/PeerStat.h
  14686. (uploadSpeed): New variable.
  14687. (PeerStat): Added default value to cuid.
  14688. (calculateUploadSpeed): New function.
  14689. (updateUploadLength): New function.
  14690. (getMaxUploadSpeed): New function.
  14691. (getAvgUploadSpeed): New function.
  14692. (reset): Added uploadSpeed. Set status to IDLE.
  14693. * src/TorrentDownloadEngine.h
  14694. (cp): Declared as Time.
  14695. (sessionDownloadLengthArray): Removed.
  14696. (sessionUploadLengthArray): Removed.
  14697. (currentCp): Removed.
  14698. (lastCalcStat): New variable
  14699. (lastElapsed): Removed.
  14700. (sessionDownloadLength): Removed.
  14701. (calculateStat): New function.
  14702. * src/TorrentDownloadEngine.cc
  14703. (initStatistics): Removed lastElapsed, cp[],
  14704. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  14705. currentCp, sessionDownloadLength.
  14706. Added cp.reset() and lastCalcStat.reset().
  14707. (calculateSpeed): Changed the name of the argument.
  14708. (calculateStatistics): Rewritten.
  14709. (calculateStat): New function.
  14710. * src/Peer.h
  14711. (PeerStat.h): Included.
  14712. (peerUpload): Removed.
  14713. (peerDownload): Removed.
  14714. (peerStat): New variable.
  14715. (sessionUploadLength): New variable.
  14716. (sessionDownloadLength): New variable.
  14717. (deltaUpload): Removed.
  14718. (deltaDownload): Removed.
  14719. (resetStatus): Made private.
  14720. (Peer): Added sessionUploadLength, sessionDownloadLength.
  14721. Removed peerUpload, peerDownload.
  14722. (updateUploadLength): New function.
  14723. (addDeltaUpload): Removed.
  14724. (updateDownloadLength): New function.
  14725. (resetDeltaUpload): Removed.
  14726. (getDeltaUpload): Removed.
  14727. (addDeltaDownload): Removed.
  14728. (calculateUploadSpeed): New function.
  14729. (resetDeltaDownload): Removed.
  14730. (getDeltaDownload): Removed.
  14731. (calculateDownloadSpeed): New function.
  14732. (getSessionUploadLength): New function.
  14733. (getSessionDownloadLength): New function.
  14734. (activate): New function.
  14735. (deactivate): New function.
  14736. (addPeerUpload): Removed.
  14737. (setPeerUpload): Removed.
  14738. (getPeerUpload): Removed.
  14739. (addPeerDownload): Removed.
  14740. (setPeerDownload): Removed.
  14741. (getPeerDownload): Removed.
  14742. * src/Peer.cc
  14743. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  14744. * src/MetalinkRequestInfo.h
  14745. (MetalinkRequestInfo): Removed const qualifier from op.
  14746. * src/RequestInfo.h
  14747. (op): Removed const qualifier.
  14748. (RequestInfo): Removed const qualifier from op.
  14749. * src/prefs.h
  14750. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  14751. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  14752. * src/PeerInteractionCommand.cc
  14753. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  14754. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  14755. * src/PeerInteraction.cc
  14756. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  14757. * src/main.cc
  14758. (showUsage): Updated the description of "--lowest-speed-limit" option.
  14759. Added the description of "--max-download-limit" option.
  14760. Removed the description of "--upload-limit" option.
  14761. Added the description of "--max-upload-limit" option.
  14762. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  14763. Added "--max-download-limit" option and "--max-upload-limit" option.
  14764. Added the warning message if "--upload-limit" option is used.
  14765. * src/DownloadCommand.cc
  14766. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  14767. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14768. To rewrite segment download mechanism for HTTP/FTP download.
  14769. Use BitfieldMan to manage segment download.
  14770. * src/HttpResponseCommand.h
  14771. (executeInternal): Pass the reference of segment.
  14772. * src/AbstractCommand.cc
  14773. (prepareForRetry): Call segmentMan->cancelSegment here.
  14774. (onAbort): Call segmentMan->cancelSegment here.
  14775. * src/HttpDownloadCommand.cc
  14776. (prepareForNextSegment): New function.
  14777. * src/DownloadEngineFactory.cc
  14778. (newConsoleEngine): Removed splitter.
  14779. (newTorrentConsoleEngine): Removed splitter.
  14780. * src/Request.h
  14781. (segment): Renamed from seg.
  14782. * src/FtpInitiateConnectionCommand.h
  14783. (executeInternal): Pass the reference of segment.
  14784. * src/AbstractCommand.h
  14785. (executeInternal): Pass the reference of segment.
  14786. * src/pref.h
  14787. (PREF_SEGMENT_SIZE): New definition.
  14788. * src/HttpProxyRequestCommand.h
  14789. (executeInternal): Pass the reference of segment.
  14790. * src/HttpResponseCommand.cc
  14791. (checkResponse): Allowed status 206 when a request range starts 0.
  14792. (handleDefaultEncoding): Rewritten the code related to Segment.
  14793. (handleOtherEncoding): Rewritten the code related to Segment.
  14794. * src/SegmentMan.h
  14795. (SegmentEntry): New class.
  14796. (SegmentEntries): New type definition.
  14797. (bitfield): New variable.
  14798. (usedSegmentEntries): New variable.
  14799. (onNullBitfield): New function.
  14800. (checkoutSegment): New function.
  14801. (segments): Removed.
  14802. (splitter): Removed.
  14803. (unregisterId): Removed.
  14804. (getSegment): New function(overload)
  14805. (getDownloadedSize): Removed.
  14806. (cancelSegment): New function.
  14807. (completeSegment): New function.
  14808. (initBitfield): New function.
  14809. (hasSegment): New function.
  14810. (getDownloadLength): New function.
  14811. * src/BitfieldMan.h
  14812. (getStartIndex): New function.
  14813. (getEndIndex): New function.
  14814. (getMissingUnusedIndex): New function(overload).
  14815. (getSparseMissingUnusedIndex): New function.
  14816. * src/BitfieldMan.cc
  14817. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  14818. (getMissingUnusedIndex): New function(overload).
  14819. (Range): New class.
  14820. (getStartIndex): New function.
  14821. (getEndIndex): New function.
  14822. (getSparseMissingUnusedIndex): New function.
  14823. (isBitSetInternal): Return false if the given index is less than 0.
  14824. * src/HttpInitiateConnectionCommand.h
  14825. (executeInternal): Pass the reference of segment.
  14826. * src/FtpNegotiateCommand.h
  14827. (executeInternal): Pass the reference of segment.
  14828. * src/FtpNegotiateCommand.cc
  14829. (recvSize): Initialize bitfield here.
  14830. * src/FtpTunnelResponseCommand.h
  14831. (executeInternal): Pass the reference of segment.
  14832. * src/HttpConnection.cc
  14833. (createRequest): Rewritten range header processing.
  14834. * src/DownloadCommand.h
  14835. (executeInternal): Pass the reference of segment.
  14836. (prepareForRetry): Removed.
  14837. (prepareForNextSegment): Added an argument segment. Made it a virtual
  14838. function.
  14839. * src/main.cc
  14840. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  14841. * src/SegmentMan.cc
  14842. (SegmentMan): Added bitfield. Removed splitter.
  14843. (~SegmentMan): Added bitfield. Removed splitter.
  14844. (unregisterId): Removed.
  14845. (getSegment): Rewritten.
  14846. (updateSegment): Rewritten.
  14847. (save): Rewritten.
  14848. (read): Rewritten.
  14849. (finished): Rewritten.
  14850. (getDownloadedSize): Removed.
  14851. (initBitfield): New function.
  14852. (FindSegmentEntryByIndex): New function object.
  14853. (FindSegmentEntryByCuid): New function object.
  14854. (checkoutSegment): New function.
  14855. (onNullBitfield): New function.
  14856. (getSegment): New function(overload).
  14857. (CancelSegment): New function object.
  14858. (cancelSegment): New function.
  14859. (completeSegment): New function.
  14860. (hasSegment): New function.
  14861. (getDownloadLength): New function.
  14862. * src/FtpInitiateConnectionCommand.cc
  14863. (executeInternal): Load .aria2 file after hostname resolution finishes.
  14864. * src/Segment.h: Rewritten.
  14865. * src/Segment.cc (operator<<): New function.
  14866. * src/HttpDownloadCommand.h
  14867. (prepareForNextSegment): New function.
  14868. * src/Request.cc
  14869. (resetUrl): Made segment null.
  14870. * src/DownloadEngine.cc
  14871. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  14872. * src/HttpProxyRequestCommand.h
  14873. (executeInternal): Pass the reference of segment.
  14874. * src/DownloadCommand.cc
  14875. (executeInternal): Rewritten the code related to Segment.
  14876. (prepareForRetry): Removed.
  14877. (prepareForNextSegment): Rewritten.
  14878. * src/FtpTunnelResponseCommand.h
  14879. (executeInternal): Pass the reference of segment.
  14880. To add HTTP 1.1 persistent connection support(experimental)
  14881. * src/HttpRequestCommand.cc
  14882. (executeInternal): Disable keep alive if it is disabled by
  14883. configuration.
  14884. * src/Request.h
  14885. (keepAlive): New variable.
  14886. (isKeepAlive): New function.
  14887. (setKeepAlive): New function.
  14888. * src/pref.h
  14889. (PREF_HTTP_KEEP_ALIVE): New definition.
  14890. * src/HttpResponseCommand.cc
  14891. (executeInternal): Check the remote server supports keep alive.
  14892. * src/HttpConnection.cc
  14893. (createRequest): Send "Connection: close" only if keep alive is
  14894. disabled.
  14895. * src/main.cc
  14896. (main):
  14897. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  14898. To add max download speed limit:
  14899. * src/pref.h
  14900. (PREF_MAX_SPEED_LIMIT): New definition.
  14901. * src/PeerInteractionCommand.cc
  14902. (executeInternal): Added max download speed limit. Not tested yet.
  14903. * src/SegmentMan.h
  14904. (PeerStats): New type definition.
  14905. (peerStats): New variable.
  14906. (registerPeerStat): New function.
  14907. (FindPeerStat): New function object.
  14908. (getPeerStat): New function.
  14909. (calculateDownloadSpeed): New function.
  14910. * src/SpeedCalc.h: New class.
  14911. * src/SpeedCalc.cc: New class.
  14912. * src/main.cc
  14913. (main):
  14914. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  14915. download speed is not restricted).
  14916. * src/PeerStat.h: New class.
  14917. * src/SegmentMan.cc
  14918. (registerPeerStat): New function.
  14919. (calculateDownloadSpeed): New function.
  14920. * src/DownloadCommand.cc
  14921. (STARTUP_IDLE_TIME): New definition.
  14922. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  14923. downloadStart.
  14924. (~DownloadCommand): Call peerStat->downloadStop.
  14925. (executeInternal): Added download speed limitter. Rewritten lowest
  14926. speed limitter.
  14927. * src/HttpConnection.cc
  14928. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  14929. * src/AbstractCommand.cc
  14930. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  14931. Added hostname to the error message.
  14932. * src/ConsoleDownloadEngine.cc
  14933. (calculateStatistics): Initialize psize with dlSize.
  14934. * src/PieceMessage.cc
  14935. (receivedAction): Do not call peerInteraction->abortPiece here.
  14936. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  14937. * src/BitfieldMan.h
  14938. (clearAllUseBit): New function.
  14939. (setAllUseBit): New function.
  14940. * src/BitfieldMan.cc
  14941. (clearAllBit): Do not clear useBitfield here.
  14942. (clearAllUseBit): New function.
  14943. (setAllUseBit): New function.
  14944. * src/Piece.cc
  14945. (clearAllBlock): Call bitfield->clearAllUseBit().
  14946. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14947. To make filename URL-decoded:
  14948. * src/HttpResponseCommand.h: Updated doc.
  14949. * src/HttpResponseCommand.cc
  14950. (determinFilename): Made filename URL-decoded.
  14951. * src/FtpInitiateConnectionCommand.cc
  14952. (executeInternal): Made filename URL-decoded.
  14953. * src/Util.h (urldecode): New function.
  14954. * src/Util.cc (urldecode): New function.
  14955. To fix a bug that caused assertion failure in ares_strerror:
  14956. * src/NameResolver.cc (callback): Fixed the bug.
  14957. * Release 0.7.3
  14958. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14959. To add --seed-time and --seed-ratio command-line option:
  14960. * src/Option.h (getAsDouble): New function.
  14961. * src/Option.cc (getAsDouble): New function.
  14962. * src/SeedCheckCommand.h: New class.
  14963. * src/SeedCheckCommand.cc: New class.
  14964. * src/DownloadEngineFactory.cc
  14965. (SeedCheckCommand.h): Included.
  14966. (UnionSeedCriteria.h): Included.
  14967. (TimeSeedCriteria.h): Included.
  14968. (ShareRatioSeedCriteria.h): Included.
  14969. (newTorrentConsoleEngine): Added the processing of seed option.
  14970. * src/SeedCriteria.h: New class.
  14971. * src/ShareRatioSeedCriteria.h: New class.
  14972. * src/TimeSeedCriteria.h: New class.
  14973. * src/UnionSeedCriteria.h: New class.
  14974. * src/prefs.h
  14975. (PREF_SEED_TIME): New definition.
  14976. (PREF_SEED_RATIO): New definition.
  14977. * src/main.cc
  14978. (showUsage): Added --seed-time and --seed-ratio option.
  14979. (main): Added --seed-time and --seed-ratio option.
  14980. Made default log file name "/dev/null".
  14981. * src/SharedHandle.h
  14982. (SharedHandle): Copy constructor. Made it assignable from the
  14983. SharedHandle of the subclasses.
  14984. (operator=): Made it assignable from the SharedHandle of the
  14985. subclasses.
  14986. (getRefCount): New function.
  14987. To add notice log level and the switch to write log to stdout. This
  14988. switch is configurable per log level.
  14989. * src/Logger.h
  14990. (notice): New function.
  14991. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  14992. constant.
  14993. * src/LogFactory.cc
  14994. (getInstance): The use of NullLogger was removed. A log message with
  14995. notice log level was made written to stdout along with log file.
  14996. * src/NullLogger.h
  14997. (notice): New function.
  14998. * src/SimpleLogger.h
  14999. (writeHeader): Added the 'file' argument.
  15000. (writeLog): Added the 'file' argument.
  15001. (writeFile): New function.
  15002. (stdoutField): New variable.
  15003. (SimpleLogger): Removed the default constructor.
  15004. (SimpleLogger): Made the default value of logfile 0.
  15005. (debug): Added 'virtual' keyword.
  15006. (info): Added 'virtual' keyword.
  15007. (warn): Added 'virtual' keyword.
  15008. (error): Added 'virtual' keyword.
  15009. (notice): New function.
  15010. (setStdout): New function.
  15011. * src/SimpleLogger.cc
  15012. (WRITE_LOG): Replaced writeLog with writeFile.
  15013. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  15014. (SimpleLogger): Removed the default constructor.
  15015. (setStdout): New function.
  15016. (writeLog): Added the handling of NOTICE log level.
  15017. (writeFile): New function.
  15018. (notice): New function.
  15019. * src/TorrentMan.h: Updated doc.
  15020. * src/BitfieldMan.h: Updated doc.
  15021. * src/TrackerWatcherCommand.cc
  15022. (execute): Return true if error occurred in the request to the tracker
  15023. and halt is requested.
  15024. * src/TrackerUpdateCommand.cc
  15025. (execute): Return true if error occurred in the request to the tracker
  15026. and halt is requested.
  15027. To call onDownloadComplete from TorrentMan::completePiece(), not from
  15028. DownloadEngine:
  15029. * src/TorrentConsoleDownloadEngine.h
  15030. (onSelectiveDownloadingCompletes): Removed.
  15031. * src/TorrentConsoleDownloadEngine.cc
  15032. (onSelectiveDownloadingCompletes): Removed.
  15033. * src/TorrentDownloadEngine.h
  15034. (onEndOfRun): Added 'virtual' keyword.
  15035. (afterEachIteration): Removed.
  15036. (onSelectiveDownloadingCompletes): Removed.
  15037. * src/TorrentDownloadEngine.cc
  15038. (onEndOfRun): Removed filenameFixed.
  15039. (afterEachIteration): Removed.
  15040. * src/TorrentMan.cc
  15041. (completePiece): Call onDownloadComplete here.
  15042. (onDownloadComplete): Added 2 log messages.
  15043. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15044. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  15045. * src/NameResolver.h: Added the prototype declaration of callback().
  15046. To support c-ares library:
  15047. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15048. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15049. * src/FtpInitiateConnectionCommand.h:
  15050. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15051. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15052. * src/HttpInitiateConnectionCommand.h:
  15053. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15054. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  15055. Added thes upport of c-ares's ares_strerror(the idea came from patch
  15056. #1542285 by tizianomueller)
  15057. * src/HttpInitiateConnectionCommand.cc:
  15058. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15059. * src/FtpInitiateConnectionCommand.cc:
  15060. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15061. * src/DownloadEngine.h:
  15062. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15063. * src/DownloadEngine.cc:
  15064. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15065. To fix the bug that causes compilation failure with metalink-support
  15066. disabled(bug#1543587):
  15067. * src/main.cc: Fixed with the patch by tizianomueller.
  15068. * Release 0.7.2
  15069. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15070. * src/main.cc
  15071. (main): Added a message to inform users that aria2 is starting to
  15072. verify checksum.
  15073. * src/RequestInfo.cc
  15074. (printDownloadAbortMessage): Added a message to inform users that
  15075. transfer can be resumed.
  15076. * src/FeatureConfig.cc
  15077. (FEATURE_ASYNC_DNS): New definition.
  15078. (FeatureConfig): Added aysnc DNS entry.
  15079. To replace CommandUuid with Command* in SocketEntry and
  15080. NameResolverEntry:
  15081. * src/DownloadEngine.h
  15082. (CommandUuids): Removed.
  15083. (SocketEntry::commandUuid): Removed.
  15084. (SocketEntry::command): New variable.
  15085. (SocketEntry::SocketEntry): Updated.
  15086. (SocketEntry::operator==): Updated.
  15087. (NameResolverEntry::commandUuid): Removed.
  15088. (NameResolverEntry::command): New variable.
  15089. (NameResolverEntry::NameResolverEntry): Updated.
  15090. (NameResolverEntry::operator==): Updated.
  15091. (waitData): Changed the argument type.
  15092. (addSocketForReadCheck): Changed the argument type.
  15093. (deleteSocketForReadCheck): Changed the argument type.
  15094. (addSocketForWriteCheck): Changed the argument type.
  15095. (deleteSocketForWriteCheck): Changed the argument type.
  15096. (addNameResolverCheck): Changed the argument type.
  15097. (deleteNameResolverCheck): Changed the argument type.
  15098. * src/DownloadEngine.cc
  15099. (FindCommand): Removed.
  15100. (run): Removed activeUuid. Added activeCommands instead.
  15101. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  15102. (AccumulateActiveCommand): New function object.
  15103. (waitData): Use AccumulateActiveCommand.
  15104. (addSocketForReadCheck): Use Command instead of CommandUuid.
  15105. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  15106. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  15107. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  15108. (addNameResolverCheck): Use Command instead of CommandUuid.
  15109. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  15110. * src/AbstractCommand.cc
  15111. (disableReadCheckSocket): Updated according to the changes in
  15112. DownloadEngine.
  15113. (setReadCheckSocket): Updated according to the changes in
  15114. DownloadEngine.
  15115. (disableWriteCheckSocket): Updated according to the changes in
  15116. DownloadEngine.
  15117. (setWriteCheckSocket): Updated according to the changes in
  15118. DownloadEngine.
  15119. (setNameResolverCheck): Updated according to the changes in
  15120. DownloadEngine.
  15121. (disableNameResolverCheck): Updated according to the changes in
  15122. DownloadEngine.
  15123. * src/AbstractCommand.cc
  15124. (disableReadCheckSocket): Updated according to the changes in
  15125. DownloadEngine.
  15126. (setReadCheckSocket): Updated according to the changes in
  15127. DownloadEngine.
  15128. (disableWriteCheckSocket): Updated according to the changes in
  15129. DownloadEngine.
  15130. (setWriteCheckSocket): Updated according to the changes in
  15131. DownloadEngine.
  15132. * release 0.7.1
  15133. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15134. To handle the case where some BitTorrent tracker requires all letters
  15135. except for [A-Za-z0-9] is URL encoded.
  15136. * src/Util.h
  15137. (torrentUrlencode): New function.
  15138. * src/Util.cc
  15139. (ctype.h): Included.
  15140. (torrentUrlencode): New function.
  15141. * src/TrackerWatcherCommand.cc
  15142. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  15143. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15144. To add asynchronous DNS support(libares):
  15145. * src/AbstractCommand.h
  15146. (setNameResolverCheck): New function.
  15147. (disableNameResolverCheck): New function
  15148. (resolveHostname): New function.
  15149. * src/AbstractCommand.cc
  15150. (setNameResolverCheck): New function.
  15151. (disableNameResolverCheck): New function
  15152. (resolveHostname): New function.
  15153. * src/FtpInitiateConnectionCommand.h
  15154. (nameResolver): New function.
  15155. * src/FtpInitiateConnectionCommand.cc
  15156. (Util.h): Included.
  15157. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  15158. disableWriteCheckSocket.
  15159. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  15160. (executeInternal): Added async DNS support.
  15161. * src/HttpInitiateConnectionCommand.h
  15162. (nameResolver): New function.
  15163. * src/HttpInitiateConnectionCommand.cc
  15164. (DlRetryEx.h): Included.
  15165. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  15166. disableWriteCheckSocket.
  15167. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  15168. (executeInternal): Added async DNS support.
  15169. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  15170. by extern "C" declaration.
  15171. * src/NameResolver.cc: New class.
  15172. * src/Util.h:
  15173. (isNumberAndDotsNotation): New function
  15174. * src/Util.cc
  15175. (isNumberAndDotsNotation): New function.
  15176. * src/DownloadEngine.h
  15177. (NameResolver.h): Included.
  15178. (NameResolverEntry): New class.
  15179. (NameResolverEntries): New type definition.
  15180. (addNameResolverCheck): New function.
  15181. (deleteNameResolverCheck): New function.
  15182. * src/DownloadEngine.cc
  15183. (run): Initialize cp with 0.
  15184. (SetDescriptor::operator()): Added for NameResolverEntry.
  15185. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  15186. (waitData): Check nameResolver entries.
  15187. (updateFdSet): Update fds in nameResolver entries.
  15188. (addNameResolverCheck): New function.
  15189. (deleteNameResolverCheck): new function.
  15190. * src/PeerInteractionCommand.cc
  15191. (executeInternal): Fixed wrong socket handling.
  15192. * src/main.cc
  15193. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  15194. * src/Util.cc
  15195. (fileChecksum): Removed the call to ctx.digestReset().
  15196. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15197. * po/ru.po: Azamat sent me Russian translation.
  15198. * src/FtpNegotiateCommand.cc
  15199. (recvGreeting): Call disableWriteCheckSocket just after
  15200. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  15201. (recvRetr): Recognized status code 125 as a acceptable response code.
  15202. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  15203. case-insesitive filesystem(BUG#1531057).
  15204. * src/Time.h: Renamed as TimeA2.h.
  15205. * src/Time.cc: Renamed as TimeA2.cc.
  15206. * src/TimeA2.h: New class.
  15207. * src/TimeA2.cc: New class.
  15208. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  15209. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  15210. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  15211. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  15212. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  15213. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15214. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  15215. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  15216. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  15217. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15218. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  15219. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  15220. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  15221. * release 0.7.0
  15222. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15223. * src/PeerChokeCommand.h
  15224. (PeerChokeCommand): Rearranged the arguments.
  15225. * src/PeerChokeCommand.cc
  15226. (PeerChokeCommand): Rearranged the arguments.
  15227. * src/MetalinkEntry.h
  15228. (Checksum.h): Included.
  15229. (md5): Removed.
  15230. (sha1): Removed.
  15231. (checksum): New variable.
  15232. (operator=): Updated.
  15233. (check): Removed.
  15234. * src/prefs.h
  15235. (PREF_LOWEST_SPEED_LIMIT): New definition.
  15236. (PREF_FOLLOW_TORRENT): New definition.
  15237. (PREF_SELECT_FILE): New definition.
  15238. (PREF_FOLLOW_METALINK): New definition.
  15239. * src/MetalinkResource.h
  15240. (TYPE_HTTPS): Added to enum TYPE.
  15241. * src/TorrentMan.cc
  15242. (~TorrentMan): Rewritten.
  15243. * src/MultiDiskWriter.cc
  15244. (MultiDiskAdaptor): Updated according to the changes in
  15245. MessageDigestContext.
  15246. (~MultiDiskAdaptor): Updated according to the changes in
  15247. MessageDigestContext.
  15248. (hashUpdate): Updated according to the changes in MessageDigestContext.
  15249. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15250. * src/Util.h
  15251. (fileChecksum): Updated according to the changes in
  15252. MessageDigestContext.
  15253. * src/Util.cc
  15254. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15255. (fileChecksum): Updated according to the changes in
  15256. MessageDigestContext.
  15257. * src/messageDigest.h: Rewritten.
  15258. * src/MetalinkEntry.cc
  15259. (check): Removed.
  15260. (Supported): Updated.
  15261. (dropUnsupportedResource): Fixed a memory leak.
  15262. * src/ShaVisitor.cc
  15263. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  15264. (~ShaVisitor): Updated according to the changes in
  15265. MessageDigestContext.
  15266. (visit): Updated according to the changes in MessageDigestContext.
  15267. * src/main.cc
  15268. (main): Rewritten the portion of download loop. --lowest-speed-limit
  15269. command-line option added.
  15270. * src/DownloadEngine.h
  15271. (SocketEntry): New class.
  15272. (SocketEntries): New definition.
  15273. (PairFind): Removed.
  15274. (SockCmdMap): Removed.
  15275. * src/DownloadEngine.cc
  15276. (DownloadEngine): Rewritten.
  15277. (~DownloadEngine): Rewritten.
  15278. (run): Renamed activeCommandUuids as activeUuids.
  15279. (SetDescriptor): Rewritten.
  15280. (AccumulateActiveCommandUuid): Removed.
  15281. (AccumulateActiveUuid): New function object.
  15282. (waitData): Rewritten.
  15283. (updateFdSet): Rewritten.
  15284. (addSocket): Rewritten.
  15285. (deleteSocket): Rewritten.
  15286. (addSocketForReadCheck): Rewritten.
  15287. (deleteSocketForReadCheck): Rewritten.
  15288. (addSocketForWriteCheck): Rewritten.
  15289. (deleteSocketForWriteCheck): Rewritten.
  15290. * src/Xml2MetalinkProcessor.cc
  15291. (getEntry): Rewritten the portion of MetalinkEntry creation.
  15292. * src/DownloadCommand.cc
  15293. (executeInternal): Added the check routine for lowest speed limit.
  15294. * src/AbstractDiskWriter.cc
  15295. (AbstractDiskWriter): Updated according to the changes in
  15296. MessageDigestContext.
  15297. (~AbstractDiskWriter): Updated according to the changes in
  15298. MessageDigestContext.
  15299. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15300. * src/RequestInfo.h: New class.
  15301. * src/UrlRequestInfo.h: New class.
  15302. * src/UrlRequestInfo.cc: New class.
  15303. * src/TorrentRequestInfo.h: New class.
  15304. * src/TorrentRequestInfo.cc: New class.
  15305. * src/MetalinkRequestInfo.h: New class.
  15306. * src/MetalinkRequestInfo.cc: New class.
  15307. * src/Checksum.h: New class.
  15308. * src/DownloadEngineFactory.h: New class.
  15309. * src/DownloadEngineFactory.cc: New class.
  15310. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15311. * src/Option.h
  15312. (getAsBool): New function.
  15313. * src/Option.cc
  15314. (prefs.h): Included.
  15315. (defined): 0-length value is now recognized as undefined.
  15316. (getAsInt): Rewritten.
  15317. (getAsLLInt): Rewritten.
  15318. (getAsBool): New function.
  15319. * src/FeatureConfig.h: Rewritten.
  15320. * src/FeatureConfig.cc: Rewritten.
  15321. * src/prefs.h
  15322. (PREF_STDOUT_LOG): New definition.
  15323. (PREF_LOG): New definition.
  15324. (PREF_DIR): New definition.
  15325. (PREF_OUT): New definition.
  15326. (PREF_SPLIT): New definition.
  15327. (PREF_DAEMON): New definition.
  15328. (PREF_REFERER): New definition.
  15329. (PREF_TORRENT_FILE): New definition.
  15330. (PREF_LISTEN_PORT): New definition.
  15331. (PREF_METALINK_FILE): New definition.
  15332. (PREF_METALINK_VERSION): New definition.
  15333. (PREF_METALINK_LANGUAGE): New definition.
  15334. (PREF_METALINK_OS): New definition.
  15335. (PREF_METALINK_SERVERS): New definition.
  15336. * src/main.cc
  15337. (main): Following command-line parameters are now put into Option
  15338. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  15339. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  15340. metalinkLanguage, metalinkOs, metalinkServers
  15341. To fix the bug that aria2 can not handle http response header properly.
  15342. * src/HttpHeader.cc
  15343. (put): Made name lowercased.
  15344. (defined): Made name lowercased.
  15345. (getFirst): Made name lowercased.
  15346. (get): Made name lowercased.
  15347. (getFirstAsInt): Rewritten.
  15348. (getFirstAsLLInt): Rewritten.
  15349. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15350. * src/TorrentMan.h:
  15351. (advertisePiece): Updated doc.
  15352. (getAdvertisedPieceIndexes): Updated doc.
  15353. (removeAdvertisedPiece); New function.
  15354. * src/TorrentMan.cc
  15355. (FindElapsedHave): New function object.
  15356. (removeAdvertisedPiece): New function.
  15357. * src/HaveEraseCommand.h: New class.
  15358. * src/HaveEraseCommand.cc: New class.
  15359. * src/FeatureConfig.h: New class.
  15360. * src/FeatureConfig.cc: New class.
  15361. * src/Request.h
  15362. (defaultPorts): Removed.
  15363. * src/Request.cc
  15364. (FeatureConfig.h): Included.
  15365. (Request): Removed the statements related to defaultPorts.
  15366. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  15367. A default port number is now retrieved from FeatureConfig.
  15368. * src/main.cc
  15369. (HaveEraseCommand.h): Included.
  15370. (showVersion): Added the output of feature list.
  15371. (main): Added HaveEraseCommand to command queue in BitTorrent
  15372. downloading.
  15373. * src/PeerInteractionCommand.h
  15374. (chokeCheckPoint): Commented out.
  15375. (periodicExecPoint): New variable.
  15376. * src/PeerInteractionCommand.cc
  15377. (executeInternal): Following methods are now called in at least every
  15378. 0.5 seconds to reduce CPU usage:
  15379. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  15380. checkHave(), sendKeepAlive().
  15381. (checkLongTimePeerChoking): Commented out.
  15382. * src/BitfieldMan.h
  15383. (getNthBitIndex): Changed the method signature.
  15384. (getMissingIndexRandomly): Changed the method signature.
  15385. * src/BitfieldMan.cc
  15386. (getNthBitIndex): Rewritten
  15387. (getMissingIndexRandomly): Rewritten.
  15388. (hasMissingPiece): Rewritten.
  15389. (getMissingIndex): Refactored.
  15390. (getMissingUnusedIndex); Refactored.
  15391. (getMissingIndex): Refactored.
  15392. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15393. * src/PeerMessage.h
  15394. (Piece.h): Included.
  15395. (SharedHandle.h): Included.
  15396. (invalidate): New variable.
  15397. (uploading): New variable.
  15398. (isInvalidate): New function.
  15399. (isUploading): New function.
  15400. (onPush): New function.
  15401. (onChoked): New function.
  15402. (onCanceled): New function.
  15403. (onAbortPiece): New function.
  15404. (PeerMessageHandle): New type definition.
  15405. * src/PeerMessage.cc
  15406. (PeerMessage): Added the initialization for invalidate and uploading.
  15407. * src/CancelMessage.h
  15408. (CancelMessage): Rewritten.
  15409. * src/RejectMessage.h
  15410. (RejectMessage): Rewritten.
  15411. * src/Metalinker.h
  15412. (operator=): Defined.
  15413. * src/MetaEntry.h
  15414. (operator=): Defined.
  15415. * src/MetalinkResource.h
  15416. (operator=): Defined.
  15417. * src/AllowedFastMessage.h
  15418. (AllowedFastMessage): Rewritten.
  15419. * src/HandshakeMessage.h
  15420. (HandshakeMessage): New function(overload).
  15421. * src/HandshakeMessage.cc
  15422. (HandshakeMessage): Rewritten.
  15423. (init): New function.
  15424. * src/HaveMessage.h
  15425. (HaveMessage): Rewritten.
  15426. * src/Time.h
  15427. (operator=): Defined the function body here.
  15428. * src/Time.cc
  15429. (operator=): Removed.
  15430. * src/SocketCore.h
  15431. (operator==): Defined here.
  15432. (operator!=): Defined here.
  15433. (operator<): Defined here.
  15434. * src/SocketCore.cc
  15435. (operator==): Removed.
  15436. (operator<): Removed.
  15437. * src/BitfieldMan.h
  15438. (operator=): Defined the function body here.
  15439. * src/BitfieldMan.cc
  15440. (operator=): Removed.
  15441. * src/TorrentMan.h
  15442. (deleteErrorPeer): Removed.
  15443. (deleteUnusedPeer); New function.
  15444. * src/TorrentMan.cc
  15445. (addPeer): Call deleteUnusedPeer.
  15446. (deleteErrorPeer): Removed.
  15447. (deleteUnusedPeer): New function.
  15448. * src/PeerAbstractCommand.h
  15449. (setNoCheck): New function.
  15450. (noCheck): New variable.
  15451. * src/PeerAbstractCommand.cc
  15452. (PeerAbstractCommand): Added the initialization of noCheck.
  15453. (execute): Added a check for noCheck.
  15454. (setNoCheck): New function.
  15455. * src/Util.h
  15456. (stdio.h): Included.
  15457. * src/Util.cc
  15458. (unistd.h): Included.
  15459. * src/DefaultDiskWriter.cc
  15460. (unistd.h): Included.
  15461. * src/Peer.h
  15462. (operator==): Defined the function body here.
  15463. (operator!=): Defined the function body here.
  15464. * src/Peer.cc
  15465. (operator==): Removed.
  15466. (operator!=): Removed.
  15467. * src/Piece.h
  15468. (Piece): Defined the function body here(copy constructor).
  15469. (operator=): Defined the function body here.
  15470. (operator==): Defined the function body here.
  15471. * src/Piece.cc
  15472. (Piece): Removed(copy constructor).
  15473. (operator=): Removed.
  15474. (operator==): Removed.
  15475. * src/PeerMessageUtil.h
  15476. (ChokeMessage.h): Removed.
  15477. (UnchokeMessage.h): Removed.
  15478. (InterestedMessage.h): Removed.
  15479. (NotInterestedMessage.h): Removed.
  15480. (HaveMessage.h): Removed.
  15481. (BitfieldMessage.h): Removed.
  15482. (RequestMessage.h): Removed.
  15483. (CancelMessage.h): Removed.
  15484. (PieceMessage.h): Removed.
  15485. (HandshakeMessage.h): Removed.
  15486. (KeepAliveMessage.h): Removed.
  15487. (PortMessage.h): Removed.
  15488. (HaveAllMessage.h): Removed.
  15489. (HaveNoneMessage.h): Removed.
  15490. (PeerConnection.h): Removed.
  15491. (HandshakeMessage.h): Included.
  15492. * src/BitfieldMessage.h
  15493. (init): New function.
  15494. (BitfieldMessage): Rewritten.
  15495. (BitfieldMessage): New function(overload).
  15496. * src/RequestSlot.h
  15497. (operator=): Defined the function body here.
  15498. (operator==): Defined the function body here.
  15499. * src/RequestSlot.cc
  15500. (operator=): Removed.
  15501. (operator==): Removed.
  15502. To remove the dependency on the PeerMessage subclass from
  15503. PeerInteraction:
  15504. * src/PeerMessageFactory.h: New class.
  15505. * src/PeerMessageFactory.cc: New class.
  15506. * src/SimplePeerMessage.cc
  15507. (send): If invalidate is true then do nothing.
  15508. * src/PeerInteractionCommand.cc
  15509. (HandshakeMessage.h): Included.
  15510. (KeepAliveMessage.h): Included.
  15511. (ChokeMessage.h): Included.
  15512. (UnchokeMessage.h): Included.
  15513. (HaveMessage.h): Included.
  15514. (executeInternal): Call setNoCheck().
  15515. Removed setWriteCheckSocket(socket).
  15516. * src/PeerInteraction.h
  15517. (ChokeMessage.h): Removed.
  15518. (UnchokeMessage.h): Removed.
  15519. (InterestedMessage.h): Removed.
  15520. (NotInterestedMessage.h): Removed.
  15521. (HaveMessage.h): Removed.
  15522. (BitfieldMessage.h): Removed.
  15523. (RequestMessage.h): Removed.
  15524. (CancelMessage.h): Removed.
  15525. (PieceMessage.h): Removed.
  15526. (HandshakeMessage.h): Removed.
  15527. (KeepAliveMessage.h): Removed.
  15528. (PortMessage.h): Removed.
  15529. (HaveAllMessage.h): Removed.
  15530. (HaveNoneMessage.h): Removed.
  15531. (RejectMessage.h): Removed.
  15532. (AllowedFastMessage.h): Removed.
  15533. (SuggestPieceMessage.h): Removed.
  15534. (PeerMessageFactory.h): Included.
  15535. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  15536. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  15537. (PeerMessageFactory): New variable.
  15538. (createPeerMessage): Removed.
  15539. (createHandshakeMessage): Removed.
  15540. (setPeerMessageCommonProperty): Removed.
  15541. (addRequestSlot): New function.
  15542. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15543. (getPeerMessageFactory): New function.
  15544. (createRequestMessage): Removed.
  15545. (createCancelMessage): Removed.
  15546. (createPieceMessage): Removed.
  15547. (createHaveMessage): Removed.
  15548. (createChokeMessage): Removed.
  15549. (createUnchokeMessage): Removed.
  15550. (createInterestedMessage): Removed.
  15551. (createNotInterestedMessage): Removed.
  15552. (createBitfieldMessage): Removed.
  15553. (createKeepAliveMessage): Removed.
  15554. (createHaveAllMessage): Removed.
  15555. (createHaveNoneMessage): Removed.
  15556. (createRejectMessage): Removed.
  15557. (createAllowedFastMessage): Removed.
  15558. * src/PeerInteraction.cc
  15559. (PeerInteraction): Allocate PeerMessageFactory here.
  15560. (~PeerInteraction): Deallocate PeerMessageFactory here.
  15561. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  15562. PieceMessage::ID.
  15563. (addMessage): Simplified by using PeerMessage::onPush().
  15564. (addRequestSlot): New function.
  15565. (rejectAllPieceMessageInQueue): Simplified by using
  15566. PeerMessage::onChoked().
  15567. (rejectPieceMessageInQueue): Simplified by using
  15568. PeerMessage::onCanceled().
  15569. (abortPiece): Simplified by using PeerMessage::abortPiece().
  15570. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15571. (createHandshakeMessage): Removed.
  15572. (createPeerMessage): Removed.
  15573. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  15574. (setPeerMessageCommonProperty): Removed.
  15575. (createRequestMessage): Removed.
  15576. (createCancelMessage): Removed.
  15577. (createPieceMessage): Removed.
  15578. (createHaveMessage): Removed.
  15579. (createChokeMessage): Removed.
  15580. (createUnchokeMessage): Removed.
  15581. (createInterestedMessage): Removed.
  15582. (createNotInterestedMessage): Removed.
  15583. (createBitfieldMessage): Removed.
  15584. (createKeepAliveMessage): Removed.
  15585. (createHaveAllMessage): Removed.
  15586. (createHaveNoneMessage): Removed.
  15587. (createRejectMessage): Removed.
  15588. (createAllowedFastMessage): Removed.
  15589. * src/PieceMessage.h
  15590. (createRejectMessage): New function.
  15591. (PieceMessage): Rewritten.
  15592. (onChoked): New function.
  15593. (onCanceled): New function.
  15594. * src/PieceMessage.cc
  15595. (send): If invalidate is true then do nothing, just return.
  15596. (createRejectMessage): New function.
  15597. (onChoked): New function.
  15598. (onCanceled): New function.
  15599. * src/RequestMessage.h
  15600. (RequestMessage): Rewritten.
  15601. (onPush): New function.
  15602. (onAbortPiece): New function.
  15603. * src/RequestMessage.cc
  15604. (onPush): New function.
  15605. (onAbortPiece): New function.
  15606. Update fd_set when a socket is added or deleted in order to improve
  15607. performance:
  15608. * src/DownloadEngine.h
  15609. (rfdset): New variable.
  15610. (wfdset): New variable.
  15611. (updateFdSet): New function.
  15612. * src/DownloadEngine.cc
  15613. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  15614. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  15615. (waitData): Copy rfdset and wfdset.
  15616. (updateFdSet): New function.
  15617. (addSocket): Call updateFdSet.
  15618. (deleteSocket): Call updateFdSet.
  15619. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15620. To add the support for Metalink3.0 backward compatible links:
  15621. * src/Request.h
  15622. (SAFE_CHARS): Added '#'.
  15623. (METALINK_MARK): New definition.
  15624. * src/Request.cc
  15625. (parseUrl): Added the support for Metalink3.0 backward compatible
  15626. links.
  15627. etc
  15628. * src/PeerInteraction.cc
  15629. (MsgPushBack): Removed.
  15630. (sendMessages): Use STL copy and back_inserter.
  15631. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  15632. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  15633. * src/TorrentMan.h
  15634. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  15635. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15636. * src/SharedHandle.h: New class.
  15637. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  15638. * src/HttpResponseCommand.h
  15639. (HttpResponseCommand): Wrapped Socket.
  15640. * src/SocketCore.h
  15641. (operator==): New function.
  15642. (operator!=): New function.
  15643. (operator<): New function.
  15644. (getSockfd): New function.
  15645. (isOpen): New function.
  15646. (writeData): New function.
  15647. * src/SocketCore.cc
  15648. (operator==): New function.
  15649. (operator!=): New function.
  15650. (operator<): New function.
  15651. * src/AbstractCommand.h
  15652. (socket): Changed its type to SocketHandle.
  15653. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15654. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15655. (disableReadCheckSocket): New function.
  15656. (disableWriteCheckSocket): New function.
  15657. (readCheckTarget): Changed its type to SocketHandle.
  15658. (writeCheckTarget): Changed its type to SocketHandle.
  15659. (AbstractCommand): Replaced Socket with SocketHandle.
  15660. * src/AbstractCommand.cc
  15661. (AbstractCommand): Replaced Socket with SocketHandle.
  15662. (~AbstractCommand): Removed the deallocation for Socket object.
  15663. (disableReadCheckSocket): New function.
  15664. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15665. (disableWriteCheckSocket): New function.
  15666. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15667. * src/HttpDownloadCommand.cc
  15668. (DownloadCommand): Replaced Socket with SocketHandle.
  15669. * src/PeerAbstractCommand.h
  15670. (socket): Changed its type to SocketHandle.
  15671. (peer): Changed its type to PeerHandle.
  15672. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15673. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15674. (disableReadCheckSocket): New function.
  15675. (disableWriteCheckSocket): New function.
  15676. (readCheckTarget): Changed its type to SocketHandle.
  15677. (writeCheckTarget): Changed its type to SocketHandle.
  15678. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  15679. Replaced Peer with PeerHandle.
  15680. * src/HttpRequestCommand.cc
  15681. (HttpRequestCommand): Replaced Socket with SocketHandle.
  15682. Use disableReadCheckSocket.
  15683. * src/PeerInitiateConnectionCommand.h
  15684. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  15685. * src/PeerChokeCommand.cc
  15686. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  15687. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  15688. (execute): Use PeerHandle.
  15689. * src/PeerConnection.h
  15690. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  15691. (socket): Changed its type to SocketHandle.
  15692. (PeerConnection): Replaced Socket with SocketHandle.
  15693. * src/PeerConnection.cc
  15694. (PeerConnection): Replaced Socket with SocketHandle.
  15695. * src/PeerInteractionCommand.h
  15696. (PeerInteractionCommand): Replaced socket with SocketHandle.
  15697. Replaced Peer with PeerHandle.
  15698. * src/PeerInteractionCommand.cc
  15699. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  15700. Replaced Peer with PeerHandle.
  15701. (executeInternal): Use disableWriteCheckSocket.
  15702. Use HandshakeMessageHandle.
  15703. (receiveMessages): Use PeerMessageHandle.
  15704. (prepareForNextPeer): Use PeerHandle.
  15705. * src/HttpProxyRequestCommand.h
  15706. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15707. * src/HttpResponseCommand.cc
  15708. (HttpResponseCommand): Replaced Socket with SocketHandle.
  15709. * src/TorrentMan.cc
  15710. (nullPeer): Added external reference.
  15711. (~TorrentMan): Removed the deallocation of the elements of peers.
  15712. (addPeer): Rewritten.
  15713. (isPeerAvailable): Use nullPeer.
  15714. (deleteOldpeers): Replaced with deleteErrorPeer.
  15715. (deleteErrorPeer): New function.
  15716. (getPeer): Use PeerHandle and nullPeer.
  15717. (hasMissingPiece): Replaced Peer with PeerHandle.
  15718. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  15719. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  15720. (getMissingFastPiece): Replaced Peer with PeerHandle.
  15721. (getMissingPiece): Replaced Peer with PeerHandle.
  15722. * src/FtpNegotiateCommand.cc
  15723. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  15724. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  15725. (recvGreeting): Use disableWriteCheckSocket.
  15726. (recvPasv): Removed the allocation of Socket.
  15727. Use disableReadCheckSocket.
  15728. (sendRestPasv): Use disableWriteCheckSocket.
  15729. (recvRetr): Changed assertion.
  15730. * src/PeerInteraction.h
  15731. (SharedHandle.h): Included SharedHandle.h.
  15732. (PeerMessageHandle): New type definition.
  15733. (HandshakeMessageHandle): New type definition.
  15734. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  15735. (peer): Changed its type to PeerHandle.
  15736. (createHandshakeMessage): Replaced HandshakeMessage with
  15737. HandshakeMessageHandle.
  15738. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  15739. (PeerInteraction): Replaced Peer with PeerHandle.
  15740. Replaced Socket with SocketHandle.
  15741. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  15742. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  15743. (receiveHandshake): Replaced HandshakeMessage with
  15744. HandshakeMessageHandle.
  15745. * src/PeerInteraction.cc
  15746. (PeerInteraction): Replaced Peer with PeerHandle.
  15747. Replaced Socket with SocketHandle.
  15748. (~PeerInteraction): Removed the deallocation of the elements of
  15749. messageQueue.
  15750. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  15751. (isSendingMessageInProgress): Replaced PeerMessage with
  15752. PeerMessageHandle.
  15753. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  15754. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  15755. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  15756. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  15757. (abortPiece): Use PeerMessageHandle.
  15758. (receiveHandshake): Replaced HandshakeMessage with
  15759. HandshakeMessageHandle. Removed try-catch block.
  15760. (createHandshakeMessage): Replaced HandshakeMessage with
  15761. HandshakeMessageHandle.
  15762. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  15763. Removed try-catch block.
  15764. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  15765. * src/HttpProxyResponseCommand.cc
  15766. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15767. * src/FtpTunnelResponseCommand.h
  15768. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  15769. * src/HttpConnection.cc
  15770. (HttpConnection): Replaced Socket with SocketHandle.
  15771. * src/PeerAbstractCommand.cc
  15772. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  15773. (~PeerAbstractCommand): Removed the deallocation of socket.
  15774. Use disableReadCheckSocket, disableWriteCheckSocket.
  15775. (disableReadCheckSocket): New function.
  15776. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15777. (disableWriteCheckSocket): New function.
  15778. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15779. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  15780. * src/FtpTunnelRequestCommand.cc
  15781. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  15782. (~FtpTunnelRequestCommand): Corrected indentation.
  15783. * src/DownloadCommand.h
  15784. (DownloadCommand): Replaced Socket with SocketHandle.
  15785. * src/PeerListenCommand.cc
  15786. (PeerListenCommand): Removed the initialization of socket.
  15787. (~PeerListenCommand): Removed the deallocation of socket.
  15788. (bindPort): Use SocketHandle.
  15789. (execute): Use SocketHandle and PeerHandle.
  15790. * src/FtpDowndloadCommand.cc
  15791. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  15792. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  15793. * src/main.cc
  15794. (main): Corrected indentation.
  15795. * src/HttpInitiateConnectionCommand.cc
  15796. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  15797. (executeInternal): Removed the allocation of socket.
  15798. * src/HttpRequestCommand.h
  15799. (HttpRequestCommand): Replaced Socket with SocketHandle.
  15800. * src/FtpNegotiationCommand.h
  15801. (dataSocket): Changed its type to SocketHandle.
  15802. (serverSocket): Changed its type to SocketHandle.
  15803. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  15804. * src/TorrentMan.h
  15805. (MAX_PEER_UPDATE): Removed.
  15806. (MAX_PEERS): New definition.
  15807. (Peers): The element is now of type PeerHandle.
  15808. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  15809. (getPeer): Replaced Peer with PeerHandle.
  15810. (deleteOldErrorPeers): Removed.
  15811. (deleteErrorPeer): New function.
  15812. (hasMissingPiece): Replaced Peer with PeerHandle.
  15813. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  15814. (getMissingPiece): Replaced Peer with PeerHandle.
  15815. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  15816. (getMissingFastPiece): Replaced Peer with PeerHandle.
  15817. (addActivePeer): Replaced Peer with PeerHandle.
  15818. (deleteActivePeer): Replaced Peer with PeerHandle.
  15819. Added a check for the return value of find.
  15820. * src/FtpTunnelResponseCommand.cc
  15821. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  15822. * src/FtpInitiateConnectionCommand.cc
  15823. (executeInternal): Removed the allocation of socket.
  15824. * src/DownloadEngine.h
  15825. (Sockets): An element is now of type SocketHandle.
  15826. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  15827. (CommandUuids): New type definition.
  15828. (rsockets): Changed its type to SockCmdMap.
  15829. (wsockets): Changed its type to SockCmdMap.
  15830. (addSocket): Rewritten.
  15831. (deleteSocket): Rewritten.
  15832. (addSocketForReadCheck): Rewritten.
  15833. (deleteSocketForReadCheck): Rewritten.
  15834. (addSocketForWriteCheck): Rewritten.
  15835. (deleteSocketForWriteCheck): Rewritten.
  15836. (PairFind): New template class.
  15837. * src/HttpDownloadCommand.h
  15838. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  15839. * src/FtpConnection.cc
  15840. (FtpConnection): Replaced Socket with SocketHandle.
  15841. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  15842. block.
  15843. * src/InitiateConnectionCommandFactory.cc
  15844. (DlAbortEx.h): Included DlAbortEx.h.
  15845. (createInitiateConnectionCommand): Throw exception if the protocol of
  15846. requested URI is not supported.
  15847. * src/Peer.cc
  15848. (nullPeer): Changed its type to PeerHandle.
  15849. (operator==): New function.
  15850. (operator!=): New function.
  15851. * src/Peer.h
  15852. (SharedHandle.h): Included SharedHandle.h.
  15853. (operator==): New function.
  15854. (operator!=): New function.
  15855. (Peer): Added the default constructor.
  15856. Use resetStatus() to initialize member variables.
  15857. (nullPeer): Removed.
  15858. * src/TrackerUpdateCommand.cc
  15859. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  15860. with MIN_PEERS.
  15861. * src/PeerListenCommand.h
  15862. (socket): Changed its type to SocketHandle.
  15863. * src/Command.h
  15864. (CommandUuid): New type definition.
  15865. (uuid): New variable.
  15866. (uuidGen): New variable.
  15867. (Command): Added the initialization of uuid.
  15868. (getUuid): New function.
  15869. * src/Socket.h
  15870. (Socket): Removed.
  15871. (SocketHandle): New type definition.
  15872. * src/DownloadEngine.h
  15873. (FindCommand): New function object.
  15874. (run): The portion of socket check was rewritten.
  15875. (SetDescriptor): New function object.
  15876. (AccumulateActiveCommandUuid): New function object.
  15877. (waitData): Rewritten.
  15878. (addSocket): Rewritten.
  15879. (deleteSocket): Rewritten.
  15880. (addSocketForReadCheck): Rewritten.
  15881. (addSocketForWriteCheck): Rewritten.
  15882. (deleteSocketForReadCheck): Rewritten.
  15883. (deleteSocketForWriteCheck): Rewritten.
  15884. * src/HttpProxyResponseCommand.h
  15885. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  15886. * src/HttpConnection.h
  15887. (socket): Changed its type to SocketHandle.
  15888. (HttpConnection): Replaced Socket with SocketHandle.
  15889. * src/PeerInitiateConnectionCommand.cc
  15890. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  15891. (executeInternal): Removed the allocation of socket.
  15892. (prepareForNextPeer): Use PeerHandle.
  15893. * src/PeerMessage.h
  15894. (peer): Changed its type to PeerHandle.
  15895. (getPeer): Replaced Peer with PeerHandle.
  15896. (setPeer): Replaced Peer with PeerHandle.
  15897. * src/DownloadCommand.cc
  15898. (DownloadCommand): Replaced Socket with SocketHandle.
  15899. * src/FtpConnection.h
  15900. (socket): Changed its type to SocketHandle.
  15901. (FtpConnection): Replaced Socket with SocketHandle.
  15902. (sendPort); Replaced Socket with SocketHandle.
  15903. * src/FtpDowndloadCommand.h
  15904. (ctrlSocket): Changed its type to SocketHandle.
  15905. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  15906. * src/HttpProxyRequestCommand.cc
  15907. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15908. * src/FtpTunnelRequestCommand.h
  15909. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  15910. etc
  15911. * src/PeerChokeCommand.h
  15912. (setAllPeerChoked): Removed.
  15913. (setAllPeerResetDelta): Removed.
  15914. * src/PeerChokeCommand.cc
  15915. (setAllPeerChoked): Removed.
  15916. (ChokePeer): New function object.
  15917. (setAllPeerResetDelta): Removed.
  15918. (ResetDelta): New function object.
  15919. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  15920. (execute): Show download speed when the local node is a seeder.
  15921. setAllPeerChoked and setAllPeerResetDelta were rewritten
  15922. using STL.
  15923. * src/TrackerWatcherCommand.h
  15924. (MIN_PEERS): Removed.
  15925. * src/TorrentMan.cc
  15926. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  15927. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15928. To fix the bug that .aria2 file is not saved if downloading is stopped
  15929. by the errors:it results that aria2 can not resume downloading:
  15930. * src/main.cc
  15931. (normalDownload): Added the call to save().
  15932. (main): Added the deletion of the elements in 'reserved'.
  15933. To fix log:
  15934. * src/PeerInteraction.cc
  15935. (receiveHandshake): Fixed log.
  15936. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15937. To improve download performance in BitTorrent:
  15938. * src/TorrentMan.cc
  15939. (getPeer): Check the number of connections. Return nullPeer if
  15940. it is greater than MAX_PEER_UPDATE.
  15941. This code was originally here, but was removed in 0.5.1.
  15942. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15943. To improve the conditional compilation:
  15944. * src/MultiDiskWriter.h:
  15945. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15946. * src/MultiDiskWriter.cc:
  15947. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15948. * src/Util.h:
  15949. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15950. Added ENABLE_BITTORRENT around computeFastSet().
  15951. * src/Util.cc:
  15952. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15953. Added ENABLE_BITTORRENT around computeFastSet().
  15954. * src/messageDigest.h:
  15955. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  15956. * src/ShaVisitor.h:
  15957. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15958. * src/ShaVisitor.cc:
  15959. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15960. * src/main.cc:
  15961. Added ENABLE_BITTORRENT around includes and blocks related to
  15962. BitTorrent.
  15963. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  15964. digest support is not available.
  15965. * src/AbstractDiskWriter.h:
  15966. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15967. * src/AbstractDiskWriter.cc:
  15968. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15969. * src/MetalinkEntry.cc
  15970. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  15971. support is not available.
  15972. To add command-line options for Metalink:
  15973. * src/main.cc:
  15974. Added metalink-version, metalink-language, metalink-os,
  15975. follow-metalink.
  15976. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  15977. * src/main.cc: Use these definition.
  15978. * Release 0.6.0
  15979. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15980. To add Metalink support(http/ftp only):
  15981. * src/AbstractCommand.h
  15982. (tryReserved): New function.
  15983. * src/AbstractCommand.cc
  15984. (execute): Call tryReserved().
  15985. (tryReserved): New function.
  15986. * src/Request.h
  15987. (Requests): New type definition.
  15988. * src/SegmentMan.h
  15989. (reserved): New variable.
  15990. * src/Util.h
  15991. (fileChecksum): New function.
  15992. (toUpper): New function.
  15993. (toLower): New function.
  15994. * src/Util.cc
  15995. (messageDigest.h): Included.
  15996. (trim): Trim \r\n\t.
  15997. (fileChecksum): New function.
  15998. (toUpper): New function.
  15999. (toLower): New function.
  16000. * src/main.cc
  16001. (normalDownload): New function.
  16002. (main): Added 2 command-line options: metalink-file,
  16003. metalink-connection. Their usage has not been written yet.
  16004. * src/MetalinkProcessor.h: New class.
  16005. * src/Xml2MetalinkProcessor.h: New class.
  16006. * src/Xml2MetalinkProcessor.cc: New class.
  16007. * src/MetalinkEntry.h: New class.
  16008. * src/MetalinkEntry.cc: New class.
  16009. * src/MetalinkResource.h: New class.
  16010. * src/MetalinkResource.cc: New class.
  16011. To add md5 message digest checking:
  16012. * src/messageDigest.h: Rewritten.
  16013. * src/MultiDiskWriter.cc: Updated according to the changes in
  16014. messageDigest.h.
  16015. * src/ShaVisitor.cc: Updated according to the changes in
  16016. messageDigest.h.
  16017. * src/Util.cc: Updated according to the changes in messageDigest.h.
  16018. * src/AbstractDiskWriter.cc: Updated according to the changes in
  16019. messageDigest.h.
  16020. To fix a bug that causes segfault when the payload length in peer
  16021. message is less than 0:
  16022. * src/PeerConnection.cc:
  16023. (receiveMessage): Fixed the bug.
  16024. * src/PeerMessageUtil.cc
  16025. (checkLength): Throw an exception if length is less than or equals to
  16026. 0.
  16027. To add new interfaces to Base64 encoding/decoding:
  16028. * src/Base64.h
  16029. (part_encode): Changed the method signature.
  16030. (encode): New function(overload).
  16031. (decode): New function(overload).
  16032. * src/Base64.cc
  16033. (part_encode): Rewritten.
  16034. (encode): Rewritten.
  16035. (encode): New function(overload).
  16036. To prevent a peer to download same piece if there is an error in
  16037. checksum:
  16038. * src/PieceMessage.cc
  16039. (receivedAction): Call peerInteraction->abortPiece().
  16040. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16041. To fix the bug that causes same have message is sent many times to
  16042. a single peer.
  16043. * src/Time.cc
  16044. (isNewer): Use Util::difftv().
  16045. * src/Util.cc
  16046. (difftv): Added a cast to (long long int).
  16047. * src/TorrentMan.cc
  16048. (advertisePiece): Use push_front.
  16049. (getAdvertisedPieceIndexes): A performance improvement was made.
  16050. To fix the bug that sends tracker requests without a sleep interval
  16051. when the number of connections is less than 15.
  16052. * src/TrackerWatcherCommand.cc
  16053. (execute): Now the number of connections is not a factor to decide
  16054. whether or not a tracker request should be sent or not.
  16055. * src/Time.h
  16056. (setTimeInSec): New function.
  16057. * src/Time.cc
  16058. (setTimeInSec): New function.
  16059. etc.
  16060. * src/ChokeMessage.cc
  16061. (receivedAction): Removed peer->snubbing = false
  16062. * src/PeerConnection.h
  16063. (receiveHandshake): Updated doc.
  16064. * src/TorrentMan.h
  16065. (getAdvertisedPieceIndexes): Updated the method signature.
  16066. * src/TorrentMan.cc
  16067. (getAdvertisedPieceIndexes): Updated the method signature.
  16068. * src/Time.h
  16069. (getTimeInMicros): Added a cast to (long long int).
  16070. (getTimeInMillis): Added a cast to (long long int).
  16071. * Release 0.5.2
  16072. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16073. To make a listening socket non-block:
  16074. * src/SocketCore.h
  16075. (setNonBlockingMode): New function.
  16076. * src/SocketCore.cc
  16077. (setNonBlockingMode): New function.
  16078. (beginListen): Added a call to setNonBlockingMode().
  16079. (acceptConnection): Call setNonBlockingMode().
  16080. (setBlockingMode): Updated.
  16081. To handle tracker's NAT-checking:
  16082. * src/PeerConnection.cc
  16083. (receiveHandshake): 'msg' param is filled with received data and
  16084. its length is assigned to 'length' param, even if all handshake
  16085. message is not yet received.
  16086. * src/PeerInteractionCommand.cc
  16087. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  16088. a new peer connects to localhost.
  16089. A call to peerInteraction->sendHandshake() was removed because
  16090. it is called from peerInteraction->receiveHandshake(true).
  16091. * src/PeerInteraction.h
  16092. (quickReplied): New variable.
  16093. (receiveHandshake): Added an argument.
  16094. * src/PeerInteraction.cc
  16095. (PeerInteraction): Added the initialization of quickReplied.
  16096. (receiveHandshake): Send handshake message as soon as the info hash
  16097. in a handshake message from a peer is correct.
  16098. To change the random part of peer id and key parameter:
  16099. * src/TorrentMan.h
  16100. (key): New variable.
  16101. * src/TorrentMan.cc
  16102. (setupInternal1): Use Util::randomAlpha() to generate random part
  16103. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  16104. key is also generated by Util::randomAlpha() and it is now 8 character
  16105. long.
  16106. * src/Util.h
  16107. (randomAlpha): New function.
  16108. * src/Util.cc
  16109. (randomAlpha): New function.
  16110. * src/TrackerWatcherCommand.cc
  16111. (execute): In a tracker request: Use torrentMan->key as key parameter.
  16112. Added no_peer_id=1.
  16113. Set snubbing flag to false when a choke message is received from a
  16114. snubbed peer.
  16115. * src/ChokeMessage.cc
  16116. (receivedAction): Set snubbing flag to false.
  16117. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16118. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  16119. * src/SimpleLogger.h (writeHeader): New function.
  16120. * src/SimpleLogger.cc (writeHeader): New function.
  16121. (writeLog): Fixed the bug that causes segfaults if exception message
  16122. contains an unescaped "%" character.
  16123. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  16124. when a tracker request fails.
  16125. * src/Request.cc (parseUrl): Query string is now handled properly.
  16126. * Release 0.5.1
  16127. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16128. To add Time class which represents a specific instant in time and
  16129. its precision is microseconds. Time checking procedures were rewritten
  16130. using this object.
  16131. * src/Time.h: New class.
  16132. * src/Time.cc: New class.
  16133. * src/AbstractCommand.h
  16134. (updateCheckPoint): Removed.
  16135. (isTimeoutDetected): Removed.
  16136. (checkPoint): Changed the type to Time.
  16137. (timeout): New variable.
  16138. (setTimeout): New function.
  16139. * src/AbstractCommand.cc
  16140. (AbstractCommand): Removed the initialization of checkPoint.
  16141. Added the initialization of timeout.
  16142. (updateCheckPoint): Removed.
  16143. (isTimeoutDetected): Removed.
  16144. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16145. * src/PeerChokeCommand.h
  16146. (checkPoint): Changed the type to Time.
  16147. * src/PeerChokeCommand.cc
  16148. (PeerChokeCommand): Removed the initialization of checkPoint.
  16149. (execute): Rewritten using Time object.
  16150. * src/TrackerWatcherCommand.h
  16151. (checkPoint): Changed the type to Time.
  16152. * src/TrackerWatcherCommand.cc
  16153. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  16154. (execute): Rewritten.
  16155. * src/ConsoleDownloadEngine.h
  16156. (cp): Changed the type to Time.
  16157. (startup): Changed the type to Time.
  16158. * src/ConsoleDownloadEngine.cc
  16159. (initStatistics): Use cp.reset(), startup.reset().
  16160. (calculateStatistics): Rewritten using Time object.
  16161. * src/PeerAbstractCommand.h
  16162. (updateCheckPoint): Removed.
  16163. (isTimeoutDetected): Removed.
  16164. (checkPoint): Changed the type to Time.
  16165. * src/PeerAbstractCommand.cc
  16166. (PeerAbstractCommand): Removed the initialization of checkPoint.
  16167. (updateCheckPoint): Removed.
  16168. (isTimeoutDetected): Removed.
  16169. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16170. * src/PeerInteractionCommand.cc
  16171. (PeerInteractionCommand): Removed the initializations of struct
  16172. timeval variables.
  16173. * src/PeerInteractionCommand.h
  16174. (keepAliveCheckPoint): Changed the type to Time.
  16175. (chokeCheckPoint): Changed the type to Time.
  16176. (freqCheckPoint): Changed the type to Time.
  16177. (haveCheckTime): Changed the type to Time.
  16178. * src/PeerInteractionCommand.cc
  16179. (executeInternal): Rewritten using Time object.
  16180. (detectMessageFlooding): Rewritten using Time object.
  16181. (checkLongTimePeerChoking): Rewritten using Time object.
  16182. (sendKeepAlive): Rewritten using Time object.
  16183. (checkHave): Rewritten using Time object.
  16184. * src/SleepCommand.h
  16185. (checkPoint): Changed the type to Time.
  16186. * src/SleepCommand.cc
  16187. (SleepCommand): Removed the initialization of checkPoint.
  16188. (execute): Rewritten using Time object.
  16189. * src/TorrentAutoSaveCommand.h
  16190. (checkPoint): Changed the type to Time.
  16191. * src/TorrentAutoSaveCommand.cc
  16192. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  16193. (execute): Rewritten.
  16194. * src/DownloadCommand.h
  16195. (sw): Changed the type to Time.
  16196. * src/DownloadCommand.cc
  16197. (DownloadCommand): Removed the initialization of sw.
  16198. (executeInternal): Rewritten.
  16199. * src/RequestSlot.h
  16200. (dispatchedTime): Changed the type to Time.
  16201. * src/RequestSlot.cc
  16202. (RequestSlot): Removed the call to setDispatchedTime().
  16203. (setDispatchedTime): Rewirtten.
  16204. (isTimeout): Rewritten.
  16205. (getLatencyInMillis): Rewritten.
  16206. * src/TorrentDownloadEngine.h
  16207. (cp): Changed the type to Time[2].
  16208. (startup): Changed the type to Time.
  16209. * src/TorrentDownloadEngine.cc
  16210. (initStatistics): Rewritten.
  16211. (calculateStatistics): Rewritten.
  16212. * src/DownloadEngine.cc
  16213. (run): Rewritten.
  16214. To detect all attempts to connect to the tracker are failed:
  16215. * src/AbstractCommand.cc
  16216. (execute): Increment e->segmentMan->errors if a command aborted.
  16217. * src/SegmentMan.h
  16218. (errors): New variable.
  16219. * src/SegmentMan.cc
  16220. (SegmentMan): Added the initialization of errors.
  16221. (init): Added the initialization of errors.
  16222. * src/TrackerWatcherCommand.cc
  16223. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  16224. request was failed.
  16225. To handle snubbed peers:
  16226. * src/PeerChokeCommand.cc
  16227. (optUnchokingPeer): Snubbed peers don't get unchoked.
  16228. (execute): Snubbed peers don't get unchoked.
  16229. * src/PeerInteraction.h
  16230. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  16231. * src/PeerInteraction.cc
  16232. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  16233. back the requested 16k block in 60 seconds.
  16234. * src/PieceMessage.cc
  16235. (receivedAction): A peer's snubbed state is cleard if it sends
  16236. the requested 16k block in 60 seconds.
  16237. * src/Peer.h
  16238. (snubbing): New variable.
  16239. * src/Peer.cc
  16240. (resetStatus): Added snubbed = false.
  16241. To fix the bug that causes have message is not sent:
  16242. * src/PeerInteractionCommand.cc
  16243. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  16244. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  16245. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  16246. * src/TorrentMan.h
  16247. (HaveEntry): New class.
  16248. (advertisePiece): Rewritten.
  16249. (getAdvertisedPieceIndexes): Rewritten.
  16250. (Haves): Changed the type.
  16251. (getAdvertisedPieceIndexes): Added an argument.
  16252. Others:
  16253. * src/TorrentMan.h
  16254. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  16255. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  16256. * src/TorrentMan.cc
  16257. (getPeer): Don't check the number of connections here.
  16258. (setupInternal1): Changed peerId.
  16259. * src/PeerInteractionCommand.h
  16260. (KEEP_ALIVE_INTERVAL): New definition.
  16261. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  16262. * src/main.cc
  16263. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  16264. * src/DownloadEngine.h: Removed unnecessary header includes.
  16265. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16266. To fix the bug that causes segfaults if a tracker returns a zero-length
  16267. list as "peers":
  16268. * src/TrackerUpdateCommand.cc
  16269. (execute): Added a check to see wether the type of peers is Data*.
  16270. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16271. * Release 0.5.0
  16272. To fix compile issue with gcc3:
  16273. * src/CancelMessage.h
  16274. (ID): Renamed as ID_t
  16275. (ID_t): New enum.
  16276. * src/RejectMessage.h
  16277. (ID): Renamed as ID_t
  16278. (ID_t): New enum.
  16279. * src/SuggestPieceMessage.h
  16280. (ID): Renamed as ID_t
  16281. (ID_t): New enum.
  16282. * src/AllowedFastMessage.h
  16283. (ID): Renamed as ID_t
  16284. (ID_t): New enum.
  16285. * src/PortMessage.h
  16286. (ID): Renamed as ID_t
  16287. (ID_t): New enum.
  16288. * src/HaveNoneMessage.h
  16289. (ID): Renamed as ID_t
  16290. (ID_t): New enum.
  16291. * src/KeepAliveMessage.h
  16292. (ID): Renamed as ID_t
  16293. (ID_t): New enum.
  16294. * src/HaveAllMessage.h
  16295. (ID): Renamed as ID_t
  16296. (ID_t): New enum.
  16297. * src/UnchokeMessage.h
  16298. (ID): Renamed as ID_t
  16299. (ID_t): New enum.
  16300. * src/BitfieldMessage.h
  16301. (ID): Renamed as ID_t
  16302. (ID_t): New enum.
  16303. * src/PieceMessage.h
  16304. (ID): Renamed as ID_t
  16305. (ID_t): New enum.
  16306. * src/RequestMessage.h
  16307. (ID): Renamed as ID_t
  16308. (ID_t): New enum.
  16309. * src/NotInterestedMessage.h
  16310. (ID): Renamed as ID_t
  16311. (ID_t): New enum.
  16312. * src/ChokeMessage.h
  16313. (ID): Renamed as ID_t
  16314. (ID_t): New enum.
  16315. * src/InterestedMessage.h
  16316. (ID): Renamed as ID_t
  16317. (ID_t): New enum.
  16318. * src/HaveMessage.h
  16319. (ID): Renamed as ID_t
  16320. (ID_t): New enum.
  16321. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16322. * src/PeerAbstractCommand.h
  16323. (beforeSocketCheck): Removed.
  16324. * src/PeerAbstractCommand.cc
  16325. Modified in order to call executeInternal() even if socket check
  16326. and upload limit check fail.
  16327. * src/PeerInteractionCommand.h
  16328. (keepAlive): Removed.
  16329. (sendKeepAlive): New function.
  16330. (checkHave): New function.
  16331. (beforeSocketCheck): Removed.
  16332. * src/PeerInteractionCommand.cc
  16333. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  16334. calls to checkHave() and sendKeepAlive().
  16335. (keepAlive): Renamed to sendKeepAlive().
  16336. (sendKeepAlive): New function.
  16337. (beforeSocketCheck): Removed.
  16338. (checkHave): New function.
  16339. * src/BitfieldMan.cc
  16340. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  16341. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  16342. 0.
  16343. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  16344. * src/TorrentMan.h
  16345. (UsedPieces): Removed.
  16346. (Pieces): New type definition.
  16347. * src/Piece.h: Updated doc.
  16348. * src/Peer.h
  16349. (totalLength): Removed.
  16350. * src/Peer.cc
  16351. (updateLatency): Fixed the latency calculation.
  16352. * src/TorrentMan.cc
  16353. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  16354. than or equal to MAX_PEER_LIST_SIZE.
  16355. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  16356. then return false.
  16357. (deleteOldErrorPeers): Rewritten.
  16358. (deleteUsedPiece): Fixed the miss use of STL remove.
  16359. * src/PeerInteraction.h
  16360. (Pieces): Removed.
  16361. (deleteTimeoutRequestSlot): Removed.
  16362. (deleteCompletedRequestSlot): Removed.
  16363. (checkRequestSlot): New function.
  16364. * src/PeerInteraction.cc
  16365. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  16366. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  16367. (checkRequestSlot): New function.
  16368. * src/DownloadEngine.cc
  16369. (run): Clear activeSockets before calling waitData().
  16370. (waitData): Removed a call to activeSockets.clear().
  16371. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16372. To attempt to handle EINTR:
  16373. * src/SocketCore.cc
  16374. (isReadable): Added EINTR handling.
  16375. (isWritable): Added EINTR handling.
  16376. To improve the performance:
  16377. * src/AbstractCommand.cc
  16378. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16379. * src/PeerInteractionCommand.h
  16380. (receiveMessage): Renamed as receiveMessages().
  16381. (receiveMessages): New function.
  16382. * src/PeerInteractionCommand.cc
  16383. (executeInternal): receiveMessage loop is moved to new receiveMessages
  16384. () function. detectMessageFlooding() is moved here.
  16385. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  16386. (). The flooding detection for have message is comment out.
  16387. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  16388. Util::difftv().
  16389. (receiveMessage): Renamed as receiveMessages().
  16390. (receiveMessages): New function.
  16391. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  16392. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  16393. * src/SleepCommand.cc
  16394. (execute): Use Util::difftvsec() instead of Util::difftv().
  16395. * src/BitfieldMan.h
  16396. (getNthBitIndex): New function.
  16397. (hasMissingPiece): New function.
  16398. (getAllMissingIndexes): New function.
  16399. * src/BitfieldMan.cc
  16400. (countSetBit): Rewritten.
  16401. (getNthBitIndex): New function.
  16402. (getMissingIndexRandomly): Rewritten.
  16403. (hasMissingPiece): New function.
  16404. (getAllMissingIndexes): New function.
  16405. * src/TorrentMan.cc
  16406. (hasMissingPiece): New function.
  16407. (deleteUsedPiece): Rewritten using STL.
  16408. * src/PeerInteraction.cc
  16409. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  16410. is a little bit faster then TorrentMan::getMissingPieceIndex().
  16411. (addRequests): Updated the number of pending requests.
  16412. * src/PeerAbstractCommand.cc
  16413. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16414. (execute): Returns true if TorrentMan::isHalt() is true.
  16415. Corrected the condition of upload limit checking.
  16416. * src/Util.h
  16417. (countBit): New function.
  16418. * src/Util.cc
  16419. (nbits): New variable.
  16420. (countBit): New function.
  16421. * src/DownloadEngine.h
  16422. (SockCmdMap): New type definition.
  16423. (waitData): Added an argument.
  16424. (addSocket): Added an argument.
  16425. (addSocketForReadCheck): Added an argument.
  16426. (addSocketForWriteCheck): Added an argument.
  16427. * src/DownloadEngine.cc
  16428. (run): Executes only commands whose sockets are ready to read or write.
  16429. All commands are executed in every 1 second.
  16430. (waitData): Calls select() again if it returned
  16431. EINTR.
  16432. (addSocket): Saves socket and command object pair to the map.
  16433. (deleteSocket): Deletes socket and command object pair from the map.
  16434. (addSocketForReadCheck): Added an argument.
  16435. (addSocketForWriteCheck): Added an argument.
  16436. * src/DownloadCommand.cc
  16437. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  16438. To send "event=stopped" to the tracker when the application finishes:
  16439. * src/PeerChokeCommand.h
  16440. (checkPoint): New variable.
  16441. * src/PeerChokeCommand.cc
  16442. (PeerChokeCommand): Added the initialization of checkPoint.
  16443. (execute): The interval check is now done by checkPoint, not
  16444. SleepCommand. Return true if TorrentMan::isHalt() is true.
  16445. * src/TorrentMan.h
  16446. (halt): New function.
  16447. (hasMissingPiece): New function.
  16448. (isHalt): New function.
  16449. (setHalt): New function.
  16450. * src/TorrentMan.cc
  16451. (TorrentMan): Added the initialization of halt.
  16452. * src/TorrentAutoSaveCommand.h
  16453. (checkPoint): New variable.
  16454. * src/PeerListenCommand.cc
  16455. (execute): Returns true if TorrentMan::isHalt() is true.
  16456. * src/main.cc
  16457. (setSignalHander): Added flags argument.
  16458. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  16459. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  16460. Removed printDownloadAbortMessage() after torrent downloading loop.
  16461. * src/TorrentAutoSaveCommand.cc
  16462. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  16463. (execute): Returns true if TorrentMan::isHalt() is true.
  16464. The interval check is now done by checkPoint, not SleepCommand.
  16465. * src/TrackerWatcherCommand.cc
  16466. (execute): If TorrentMan::isHalt(), then create a tracker request with
  16467. event=stopped.
  16468. * src/TrackerUpdateCommand.cc
  16469. (prepareForRetry): Do not use SleepCommand here.
  16470. (execute): Returns true if TorrentMan::isHalt() is true.
  16471. Others:
  16472. * src/TorrentMan.cc
  16473. (getMissingPieceIndex): Updated log message.
  16474. * src/PeerInteraction.cc
  16475. (createPeerMessag): Updated log message.
  16476. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16477. To add the ability to download several pieces in mix in a command and
  16478. increase the number of request slots according to request-cancel
  16479. latency:
  16480. * src/PeerInteractionCommand.cc
  16481. (executeInternal): The number of messages to be received at a time
  16482. is increased from 10 to 50.
  16483. * src/LogFactory
  16484. (getInstance): Added NullLogger.
  16485. * src/NullLogger.h: New class.
  16486. * src/BitfieldMan.h
  16487. (getMissingIndex): New function.
  16488. * src/BitfieldMan.cc
  16489. (getMissingIndex): New function.
  16490. * src/TorrentMan.h
  16491. (checkOutPiece): New function.
  16492. (getMissingPieceIndex): New function.
  16493. (getMissingFastPieceIndex): New function.
  16494. (getMissingFastPiece): New function.
  16495. * src/TorrentMan.cc
  16496. (updatePiece): Rewritten using STL.
  16497. (syncPiece): Rewritten using STL.
  16498. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  16499. checkOutPiece().
  16500. (getMissingPieceIndex): New function.
  16501. (getMissingFastPieceIndex): New function.
  16502. (getMissingFastPiece): New function.
  16503. (checkOutPiece): New function.
  16504. * src/PeerInteraction.h
  16505. (Pieces): New type definition.
  16506. (piece): Removed.
  16507. (pieces): New variable.
  16508. (getNewPieceAndSendInterest): Added the "piece" argument.
  16509. (abortPiece): Added the "piece" argument.
  16510. (abortAllPieces): New function.
  16511. (isInRequestSlot): New function.
  16512. (hasDownloadPiece): Added the "index" argument.
  16513. (setDownloadPiece): Removed.
  16514. (getDownloadPiece): Added the "index" argument.
  16515. (updatePiece): New function.
  16516. (createRequestMessage): Added the "index" argument.
  16517. * src/PeerInteraction.cc
  16518. (onChoked): Rewritten.
  16519. (abortPiece): Rewirtten.
  16520. (abortAllPieces): New function.
  16521. (deleteTimeoutRequestSlot): Rewritten.
  16522. Clarified code a little bit.
  16523. (deleteCompletedRequestSlot): Rewritten.
  16524. (isInRequestSlot): New function.
  16525. (syncPiece): Rewritten.
  16526. (updatePiece): New function.
  16527. (getNewPieceAndSendInterest): Rewritten.
  16528. (addRequests): Rewritten.
  16529. (getDownloadPiece): Rewritten.
  16530. (hasDownloadPiece): Rewritten.
  16531. (createRequestMessage): Added the "index" argument.
  16532. * src/common.h
  16533. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  16534. (DIV_FLOOR): New definition.
  16535. * src/PieceMessage.cc
  16536. (receivedAction): Update request-piece latency here.
  16537. * src/RequestSlot.h
  16538. (getLatencyInMillis): New function.
  16539. * src/RequestSlot.cc
  16540. (isTimeout): Rewritten using getLatencyInMillis.
  16541. (getLatencyInMillis): New function.
  16542. * src/Piece.h
  16543. (operator==): New function.
  16544. (getMissingBlockIndex): New function.
  16545. * src/Piece.cc
  16546. (operator==): New function.
  16547. (getMissingBlockIndex): New function.
  16548. * src/Peer.h
  16549. (DEFAULT_LATENCY): New definition.
  16550. (latency): New variable.
  16551. (updateLatency): New function.
  16552. (getLatency): New function.
  16553. * src/Peer.cc
  16554. (resetStatus): Reset latecy.
  16555. (updateLatency): New function.
  16556. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16557. * src/SocketCore.cc
  16558. (isReadable): Added secure to the condition.
  16559. * src/HttpConnection.cc
  16560. (receiveResponse): Fixed a bug that causes no response header
  16561. exception.
  16562. * src/Peer.h
  16563. (getFastSet): Fixed the return value type.
  16564. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16565. To remove a wait from download loop:
  16566. * src/DownloadEngine.cc
  16567. (run): Comment out shortSleep.
  16568. To rewrite the message handling:
  16569. * src/SimplePeerMessage.h: New class.
  16570. * src/SimplePeerMessage.cc: New class.
  16571. * src/CancelMessage.h: Derived from SimplePeerMessage.
  16572. (msg): New variable.
  16573. (create): New function.
  16574. (send): Removed.
  16575. (getMessage): New function.
  16576. (getMessageLength): New function.
  16577. * src/CancelMessage.cc
  16578. (create): New function.
  16579. (receivedAction): Replaced deleteRequestMessageInQueue with
  16580. rejectPieceMessageInQueue.
  16581. (send): Removed.
  16582. (getMessage): New function.
  16583. (getMessageLength): New function.
  16584. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  16585. (msg): New variable.
  16586. (msgLength): New variable.
  16587. (~BitfieldMessage): Deleted msg.
  16588. (send): Removed.
  16589. (getMessage): New function.
  16590. (getMessageLength): New function.
  16591. * src/BitfieldMessage.cc
  16592. (create): New function.
  16593. (send): Removed.
  16594. (getMessage): New function.
  16595. (getMessageLength): New function.
  16596. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  16597. (msg): New variable.
  16598. (sendPredicate): New function.
  16599. (onSendComplete): New function.
  16600. (send): Removed.
  16601. (getMessage): New function.
  16602. (getMessageLength): New function.
  16603. (create): New function.
  16604. * src/ChokeMessage.cc
  16605. (create): New function.
  16606. (send): Removed.
  16607. (sendPredicate): New function.
  16608. (getMessage): New function.
  16609. (getMessageLength): New function.
  16610. (onSendComplete): New function.
  16611. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  16612. (msg): New variable.
  16613. (send): Removed.
  16614. (getMessage): New function.
  16615. (getMessageLength): New function.
  16616. * src/KeepAliveMessage.cc
  16617. (send): Removed.
  16618. (getMessage): New function.
  16619. (getMessageLength): New function.
  16620. * src/PortMessage.h
  16621. (create): New function.
  16622. (receivedAction): Updated log message.
  16623. * src/PortMessage.cc: New file.
  16624. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  16625. (msg): New variable.
  16626. (sendPredicate): New function.
  16627. (onSendComplete): New function.
  16628. (create): New function.
  16629. (send): Removed.
  16630. (getMessage): New function.
  16631. (getMessageLength): New function.
  16632. * src/UnchokeMessage.cc
  16633. (create): New function.
  16634. (send): Removed.
  16635. (sendPredicate): New function.
  16636. (getMessage): New function.
  16637. (getMessageLength): New function.
  16638. (onSendComplete): New function.
  16639. * src/PieceMessage.h
  16640. (leftPieceDataLength): Removed.
  16641. (leftDataLength): New variable.
  16642. (headerSend): New variable.
  16643. (pendingCount): New variable.
  16644. (msgHeader): New variable.
  16645. (sendPieceData): New function.
  16646. (incrementPendingCount): New function.
  16647. (isPendingCountMax): New function.
  16648. (create): New function.
  16649. (getMessageHeader): New function.
  16650. (getMessageHeaderLength): New function.
  16651. * src/PieceMessage.cc
  16652. (create): New function.
  16653. (getMessageHeader): New function.
  16654. (getMessageHeaderLength): New function.
  16655. (send): Rewritten.
  16656. (sendPieceData): New function.
  16657. * src/HaveMessage.h: Derived from SimplePeerMessage.
  16658. (msg): New variable.
  16659. (create): New function.
  16660. (getMessage): New function.
  16661. (getMessageLength): New function.
  16662. * src/HaveMessage.cc
  16663. (create): New function.
  16664. (send): Removed.
  16665. (sendPieceData): New function.
  16666. (getMessage): New function.
  16667. (getMessageLength): New function.
  16668. * src/RequestMessage.h: Derived from SimplePeerMessage.
  16669. (msg): New variable.
  16670. (create): New function.
  16671. (send): Removed.
  16672. (getMessage): New function.
  16673. (getMessageLength): New function.
  16674. * src/RequestMessage.cc
  16675. (create): New function.
  16676. (receivedAction): Added the handling of fast extension.
  16677. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  16678. (send): Removed.
  16679. (getMessage): New function.
  16680. (getMessageLength): New function.
  16681. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  16682. (msg): New variable.
  16683. (sendPredicate): New function.
  16684. (onSendComplete): New function.
  16685. (create): New function.
  16686. (getMessage): New function.
  16687. (getMessageLength): New function.
  16688. * src/InterestedMessage.cc
  16689. (create): New function.
  16690. (send): Removed.
  16691. (sendPieceData): New function.
  16692. (getMessage): New function.
  16693. (getMessageLength): New function.
  16694. (onSendComplete): New function.
  16695. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  16696. (msg): New variable.
  16697. (sendPieceData): New function.
  16698. (onSendComplete): New function.
  16699. (create): New function.
  16700. (send): Removed.
  16701. (getMessage): New function.
  16702. (getMessageLength): New function.
  16703. * src/NotInterestedMessage.cc
  16704. (create): New function.
  16705. (send): Removed.
  16706. (sendPredicate): New function.
  16707. (getMessage): New function.
  16708. (getMessageLength): New function.
  16709. (onSendComplete): New function.
  16710. * src/AllowedFastMessage.h: New class.
  16711. * src/AllowedFastMessage.cc: New class.
  16712. * src/RejectMessage.h: New class.
  16713. * src/RejectMessage.cc: New class.
  16714. * src/SuggestPieceMessage.h: New class.
  16715. * src/SuggestPieceMessage.cc: New class.
  16716. * src/HaveAllMessage.h: New class.
  16717. * src/HaveAllMessage.cc: New class.
  16718. * src/HaveNoneMessage.h: New class.
  16719. * src/HaveNoneMessage.cc: New class.
  16720. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  16721. (msg): New variable.
  16722. (reserved): New variable.
  16723. (create): New function.
  16724. (getId): New function.
  16725. (receivedAction): New function.
  16726. (getMessage): New function.
  16727. (getMessageLength): New function.
  16728. (isFastExtensionSupported): New function.
  16729. * src/HandshakeMessage.cc
  16730. (HandshakeMessage): Moved here from HandshakeMessage.h.
  16731. (create): New function.
  16732. (getMessage): New function.
  16733. (getMessageLength): New function.
  16734. (toString): Added the output of reserved field.
  16735. (check): Added const qualifier.
  16736. (isFastExtensionSupported): New function.
  16737. * src/PeerMessageUtil.h
  16738. (createChokeMessage): Removed.
  16739. (createUnchokeMessage): Removed.
  16740. (createInterestedMessage): Removed.
  16741. (createNotInterestedMessage): Removed.
  16742. (createHaveMessage): Removed.
  16743. (createBitfieldMessage): Removed.
  16744. (createRequestMessage): Removed.
  16745. (createCancelMessage): Removed.
  16746. (createPieceMessage): Removed.
  16747. (createPortMessage): Removed.
  16748. (createChokeMessage): Removed.
  16749. (createUnchokeMessage): Removed.
  16750. (createInterestedMessage): Removed.
  16751. (createNotInterestedMessage): Removed.
  16752. (createHaveMessage): Removed.
  16753. (createBitfieldMessage): Removed.
  16754. (createRequestMessage): Removed.
  16755. (createCancelMessage): Removed.
  16756. (createPieceMessage): Removed.
  16757. (createKeepAliveMessage): Removed.
  16758. (createHandshakeMessage): Removed.
  16759. (setIntParam): New function.
  16760. (createPeerMessageString): New function.
  16761. * src/PeerMessageUtil.cc
  16762. (createChokeMessage): Removed.
  16763. (createUnchokeMessage): Removed.
  16764. (createInterestedMessage): Removed.
  16765. (createNotInterestedMessage): Removed.
  16766. (createHaveMessage): Removed.
  16767. (createBitfieldMessage): Removed.
  16768. (createRequestMessage): Removed.
  16769. (createCancelMessage): Removed.
  16770. (createPieceMessage): Removed.
  16771. (createPortMessage): Removed.
  16772. (createRequestMessage): Removed.
  16773. (createCancelMessage): Removed.
  16774. (createPieceMessage): Removed.
  16775. (createHaveMessage): Removed.
  16776. (createChokeMessage): Removed.
  16777. (createUnchokeMessage): Removed.
  16778. (createInterestedMessage): Removed.
  16779. (createNotInterestedMessage): Removed.
  16780. (createBitfieldMessage): Removed.
  16781. (createKeepAliveMessage): Removed.
  16782. (createHandshakeMessage): Removed.
  16783. (setIntParam): New function.
  16784. (createPeerMessageString): New function.
  16785. * src/PeerConnection.h
  16786. (peer): Removed.
  16787. (torrentMan): Removed.
  16788. (createNLengthMessage): Removed.
  16789. (setIntParam): Removed.
  16790. (writeOutgoingMessageLog): Removed all overloaded functions.
  16791. (PeerConnection): Deleted peer and torrentMan from its arguments.
  16792. (sendMessage): New function.
  16793. (sendHandshake): Removed.
  16794. (sendKeepAlive): Removed.
  16795. (sendChoke): Removed.
  16796. (sendUnchoke): Removed.
  16797. (sendInterested): Removed.
  16798. (sendNotInterested): Removed.
  16799. (sendHave): Removed.
  16800. (sendBitfield): Removed.
  16801. (sendRequest): Removed.
  16802. (sendPiece): Removed.
  16803. (sendPieceHeader): Removed.
  16804. (sendPieceData): Removed.
  16805. (sendCancel): Removed.
  16806. (getPeer): Removed.
  16807. * src/PeerConnection.cc
  16808. (PeerConnection): Deleted peer and torrentMan from its arguments.
  16809. (sendHandshake): Removed.
  16810. (sendKeepAlive): Removed.
  16811. (createNLengthMessage): Removed.
  16812. (setIntParam): Removed.
  16813. (writeOutgoingMessageLog): Removed all overloaded functions.
  16814. (sendChoke): Removed.
  16815. (sendUnchoke): Removed.
  16816. (sendInterested): Removed.
  16817. (sendNotInterested): Removed.
  16818. (sendHave): Removed.
  16819. (sendBitfield): Removed.
  16820. (sendRequest): Removed.
  16821. (sendPiece): Removed.
  16822. (sendPieceHeader): Removed.
  16823. (sendPieceData): Removed.
  16824. (sendMessage): New function.
  16825. (sendCancel): Removed.
  16826. * src/PeerInteractionCommand.cc
  16827. (PeerInteractionCommand): Call setUploadLimit.
  16828. (executeInternal): Call setUploadLimit.
  16829. Added the handling of "inProgress" state of handshake message.
  16830. Call sendBitfield() or sendAllowdFast() instead of deprecated
  16831. sendNow().
  16832. (keepAlive): Call addMessage and sendMessage instead of deprecated
  16833. sendNow().
  16834. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  16835. * src/TorrentMan.h
  16836. (PEER_ID_LENGTH): New definition.
  16837. (hasAllPieces): New function.
  16838. * src/TorrentMan.cc
  16839. (getMissingPiece): Added the handling of fast extension.
  16840. (cancelPiece): Call updatePiece().
  16841. (hasAllPieces): New function.
  16842. * src/PeerInteraction.h
  16843. (fastSet): New variable.
  16844. (getNewPieceAndSendInterest): Changed the return type to void.
  16845. (send): Renamed as sendMessages.
  16846. (deleteAllRequestSlot): Removed.
  16847. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  16848. (cancelAllRequest): Removed all overloaded functions.
  16849. (deleteAllRequestSlot): Removed.
  16850. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  16851. (rejectPieceMessageInQueue): New function.
  16852. (rejectAllPieceMessageInQueue): New function.
  16853. (onChoked): New function.
  16854. (isSendingMessageInProgress): New function.
  16855. (getCorrespondingRequestSlot): Changed its arguments.
  16856. (isInFastSet): New function.
  16857. (addFastSetIndex): New function.
  16858. (addRequests): New function.
  16859. (sendNow): Removed.
  16860. (trySendNow): Removed.
  16861. (sendBitfield): New function.
  16862. (sendAllowdFast): New function.
  16863. (createHaveAllMessage): New function.
  16864. (createHaveNoneMessage): New function.
  16865. (createRejectMessage): New function.
  16866. (createAllowedFastMessage): New function.
  16867. * src/PeerInteraction.cc
  16868. (send): Renamed as sendMessages.
  16869. (sendMessages): New function.
  16870. (MsgPushBack): New class.
  16871. (isSendingMessageInProgress): New function.
  16872. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  16873. (rejectAllPieceMessageInQueue): New function.
  16874. Added the handling of fast extension.
  16875. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  16876. (rejectPieceMessageInQueue): New function.
  16877. Added the handling of fast extension.
  16878. (deleteRequestSlot): Replaced for loop with std::find.
  16879. (onChoked): New function.
  16880. (deleteAllRequestSlot): Removed.
  16881. (abortPiece): Rewirtten.
  16882. (deleteTimeoutRequestSlot): Updated log messages.
  16883. (getCorrespondingRequestSlot): Changed its arguments.
  16884. (cancelAllRequest): Removed all overloaded functions.
  16885. (receiveHandshake): Added the check to see whether an incoming peer
  16886. supports fast extension.
  16887. (createHandshakeMessage): Use HandshakeMessage::create instead of
  16888. PeerMessageUtil.
  16889. (createPeerMessage): Use create() of each message class instead of
  16890. PeerMessageUtil.
  16891. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  16892. AllowedFastMessage were added.
  16893. (getNewPieceAndSendInterest): Changed its return value type to void.
  16894. Added the handling of fast extension.
  16895. (addRequests): New function.
  16896. (sendNow): Removed.
  16897. (sendHandshake): Rewritten.
  16898. (trySendNow): Removed.
  16899. (sendBitfield): New function.
  16900. (sendAllowdFast): New function.
  16901. (isInFastSet): New function.
  16902. (addFastSetIndex): New function.
  16903. (createRequestMessage): Use RequestMessage::create instead of
  16904. PeerMessageUtil.
  16905. (createCancelMessage): Use CancelMessage::create instead of
  16906. PeerMessageUtil.
  16907. (createPieceMessage): Use PieceMessage::create instead of
  16908. PeerMessageUtil.
  16909. (createHaveMessage): Use HaveMessage::create instead of
  16910. PeerMessageUtil.
  16911. (createChokeMessage): Use ChokeMessage::create instead of
  16912. PeerMessageUtil.
  16913. (createUnchokeMessage): Use UnchokeMessage::create instead of
  16914. PeerMessageUtil.
  16915. (createInterestedMessage): Use InterestedMessage::create instead of
  16916. PeerMessageUtil.
  16917. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  16918. of PeerMessageUtil.
  16919. (createBitfieldMessage): Use BitfieldMessage::create instead of
  16920. PeerMessageUtil.
  16921. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  16922. PeerMessageUtil.
  16923. (createHaveAllMessage): New function.
  16924. (createHaveNoneMessage): New function.
  16925. (createRejectMessage): New function.
  16926. (createAllowedFastMessage: New function.
  16927. * src/Util.h
  16928. (sha1Sum): New function.
  16929. (computeFastSet): New function.
  16930. * src/Util.cc
  16931. (sha1Sum): New function.
  16932. (computeFastSet): New function.
  16933. * src/Peer.h
  16934. (fastExtensionEnabled): New variable.
  16935. (fastSet): New variable.
  16936. (setAllBitfield): New function.
  16937. (setFastExtensionEnabled): New function.
  16938. (isFastExtensionEnabled): New function.
  16939. (addFastSetIndex): New function.
  16940. (getFastSet): New function.
  16941. (isInFastSet): New function.
  16942. (countFastSet): New function.
  16943. * src/Peer.cc
  16944. (isInFastSet): New function.
  16945. (addFastSetIndex): New function.
  16946. (setAllBitfield): New function.
  16947. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  16948. sockets.
  16949. * src/PeerAbstractCommand.cc
  16950. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  16951. and uploadLimit.
  16952. (execute): Changed the procedure of checking sockets. The upload speed
  16953. checking were added.
  16954. (setUploadLimit): New function.
  16955. (setUploadLimitCheck): New function.
  16956. * src/PeerAbstractCommand.h
  16957. (setUploadLimit): New function.
  16958. (setUploadLimitCheck): New function.
  16959. (uploadLimit): New variable.
  16960. (uploadLimitCheck): New variable.
  16961. To contact a tracker regularly:
  16962. * src/TrackerWatcherCommand.h (interval): New variable.
  16963. (checkPoint): New variable.
  16964. (TrackerWatcherCommand): Added interval argument.
  16965. * src/TrackerWatcherCommand.cc
  16966. (TrackerWatcherCommand): Initialized checkPoint.
  16967. (execute): Now a tracker is contacted in every specified period.
  16968. If peer list is not needed, send request with numwant=0.
  16969. * src/TrackerUpdateCommand.cc
  16970. (execute): Updated log messages.
  16971. * src/DownloadEngine.cc
  16972. (~DownloadEngine): Removed two asserts.
  16973. (waitData): Uncommented wfds. May be a bug fix.
  16974. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16975. * src/PeerInteractionCommand.h
  16976. (checkInactiveConnection): Removed.
  16977. * src/PeerInteractionCommand.cc
  16978. (executeInternal): Removed following function calls:
  16979. detectMessageFlooding(), checkLongTimePeerChoking and
  16980. checkInactiveConnection().
  16981. (checkInactiveConnection): Removed.
  16982. (detectMessageFlooding): Removed function call to
  16983. checkInactiveConnection().
  16984. * src/PeerMessageUtil.h
  16985. (createChokeMessage): New function. Overload.
  16986. (createUnchokeMessage): New function. Overload.
  16987. (createInterestedMessage): New function. Overload.
  16988. (createNotInterestedMessage): New function. Overload.
  16989. (createHaveMessage): New function. Overload.
  16990. (createBitfieldMessage): New function. Overload.
  16991. (createRequestMessage): New function. Overload.
  16992. (createCancelMessage): New function. Overload.
  16993. (createPieceMessage): New function. Overload.
  16994. (createKeepAliveMessage): New function. Overload.
  16995. * src/PeerMessageUtil.cc
  16996. (createChokeMessage): New function. Overload.
  16997. (createUnchokeMessage): New function. Overload.
  16998. (createInterestedMessage): New function. Overload.
  16999. (createNotInterestedMessage): New function. Overload.
  17000. (createHaveMessage): New function. Overload.
  17001. (createBitfieldMessage): New function. Overload.
  17002. (createRequestMessage): New function. Overload.
  17003. (createCancelMessage): New function. Overload.
  17004. (createPieceMessage): New function. Overload.
  17005. (createKeepAliveMessage): New function. Overload.
  17006. * src/SendMessageQueue.cc
  17007. (createRequestMessage): Use PeerMessageUtil.
  17008. (createCancelMessage): Use PeerMessageUtil.
  17009. (createPieceMessage): Use PeerMessageUtil.
  17010. (createHaveMessage): Use PeerMessageUtil.
  17011. (createChokeMessage): Use PeerMessageUtil.
  17012. (createUnchokeMessage): Use PeerMessageUtil.
  17013. (createInterestedMessage): Use PeerMessageUtil.
  17014. (createNotInterestedMessage): Use PeerMessageUtil.
  17015. (createBitfieldMessage): Use PeerMessageUtil.
  17016. (createKeepAliveMessage): Use PeerMessageUtil.
  17017. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  17018. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  17019. * src/PeerInteraction.h: New class.
  17020. * src/PeerInteraction.cc: New class.
  17021. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17022. Each peer message has its own class.
  17023. * src/PendingMessages.h: Removed.
  17024. * src/PendingMessages.cc: Removed. The sending process was moved to
  17025. each message class.
  17026. * src/RequestSlotMan.h: Removed.
  17027. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  17028. SendMessageQueue.
  17029. * src/RequestMessage.h: New class.
  17030. * src/RequestMessage.cc: New class.
  17031. * src/CancelMessage.h: New class.
  17032. * src/CancelMessage.cc: New class.
  17033. * src/BitfieldMessage.h: New class.
  17034. * src/BitfieldMessage.cc: New class.
  17035. * src/ChokeMessage.h: New class.
  17036. * src/ChokeMessage.cc: New class.
  17037. * src/KeepAliveMessage.h: New class.
  17038. * src/KeepAliveMessage.cc: New class.
  17039. * src/PortMessage.h: New class.
  17040. * src/UnchokeMessage.h: New class.
  17041. * src/UnchokeMessage.cc: New class.
  17042. * src/PieceMessage.h: New class.
  17043. * src/PieceMessage.cc: New class.
  17044. * src/HaveMessage.h: New class.
  17045. * src/HaveMessage.cc: New class.
  17046. * src/BitfieldMessage.h: New class.
  17047. * src/BitfieldMessage.cc: New class.
  17048. * src/NotInterestedMessage.h: New class.
  17049. * src/NotInterestedMessage.cc: New class.
  17050. * src/InterestedMessage.h: New class.
  17051. * src/InterestedMessage.cc: New class.
  17052. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  17053. (getSendMessageQueue): New function.
  17054. (setSendMessageQueue): New function.
  17055. * src/HandshakeMessage.cc: New class.
  17056. * src/PeerConnection.h (receiveMessage): Changed return value and
  17057. arguments.
  17058. (receiveHandshake): Changed return value and arguments.
  17059. * src/PeerConnection.cc (receiveMessage): Do not create message class
  17060. here.
  17061. (receiveHandshake): Do not create handshake class here.
  17062. * src/PeerInteractionCommand.h (peerConnection): Removed.
  17063. (piece): Removed.
  17064. (syncPiece): Removed.
  17065. (sendInterest): Removed.
  17066. (sendMessages): Removed.
  17067. (createRequestPendingMessage): Removed.
  17068. (checkPieceHash): Removed.
  17069. (erasePieceOnDisk): Removed.
  17070. (getNewPieceAndSendInterest): Removed.
  17071. (onGotNewPice): Removed.
  17072. (onGotWrongPiece): Removed.
  17073. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17074. Removed peerConnection, piece.
  17075. (~PeerInteractionCommand): Removed peerConnection.
  17076. (executeInternal): Use sendMessageQueue instead of peerConnection.
  17077. (syncPiece): Moved to SendMessageQueue.
  17078. (decideChoking): Removed PendingMessage.
  17079. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  17080. The action after receiving peer message was moved to each message
  17081. class.
  17082. (onGotNewPice): Moved to SendMessageQueue.
  17083. (onGotWrongPiece): Moved to SendMessageQueue.
  17084. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  17085. (sendInterest): Moved to SendMessageQueue.
  17086. (createRequestPendingMessage): Removed.
  17087. (sendMessages): Moved to SendMessageQueue.
  17088. (onAbort): Use SendMessageQueue::abortPiece()
  17089. (keepAlive): Use sendMessageQueue instead of peerConnection.
  17090. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  17091. (checkPieceHash): Moved to SendMessageQueue.
  17092. (erasePieceOnDisk): Moved to SendMessageQueue.
  17093. * src/PeerMessageUtil.h
  17094. (createBitfieldMessage): Removed.
  17095. (createHaveMessage): Changed return value and arguments.
  17096. (createBitfieldMessage): Changed return value and arguments.
  17097. (createRequestCancelMessage): Removed.
  17098. (createPieceMessage): Changed return value and arguments.
  17099. (getShortIntParam): New function.
  17100. (checkIndex): Changed arguments.
  17101. (checkBegin): Changed arguments.
  17102. (checkLength): Changed arguments.
  17103. (checkPieceOffset): Removed.
  17104. (checkRange): New function.
  17105. (checkBitfield): Changed arguments.
  17106. (createPeerMessage): Removed.
  17107. (checkIntegrity): Removed.
  17108. (createHandshakeMessage): Changed arguments.
  17109. (createChokeMessage): New function.
  17110. (createUnchokeMessage): New function.
  17111. (createInterestedMessage): New function.
  17112. (createNotInterestedMessage): New function.
  17113. (createRequestMessage): New function.
  17114. (createCancelMessage): New function.
  17115. (createPortMessage): New function.
  17116. * src/PeerMessageUtil.cc
  17117. (createBitfieldMessage): Removed.
  17118. (createHaveMessage): Changed return value and arguments.
  17119. (createBitfieldMessage): Changed return value and arguments.
  17120. (createRequestCancelMessage): Removed.
  17121. (createPieceMessage): Changed return value and arguments.
  17122. (getShortIntParam): New function.
  17123. (checkIndex): Changed arguments.
  17124. (checkBegin): Changed arguments.
  17125. (checkLength): Changed arguments.
  17126. (checkPieceOffset): Removed.
  17127. (checkRange): New function.
  17128. (checkBitfield): Changed arguments.
  17129. (createPeerMessage): Removed.
  17130. (checkIntegrity): Removed.
  17131. (createHandshakeMessage): Changed arguments.
  17132. (createChokeMessage): New function.
  17133. (createUnchokeMessage): New function.
  17134. (createInterestedMessage): New function.
  17135. (createNotInterestedMessage): New function.
  17136. (createRequestMessage): New function.
  17137. (createCancelMessage): New function.
  17138. (createPortMessage): New function.
  17139. * src/PeerMessage.h
  17140. (id): Removed.
  17141. (index): Removed.
  17142. (begin): Removed.
  17143. (length): Removed.
  17144. (bitfield): Removed.
  17145. (bitfieldLength): Removed.
  17146. (block): Removed.
  17147. (blockLength): Removed.
  17148. (inProgress): New variable.
  17149. (cuid): New variable.
  17150. (peer): New variable.
  17151. (sendMessageQueue): New variable.
  17152. (logger): New variable.
  17153. (setBitfield): Removed.
  17154. (getBitfield): Removed.
  17155. (setBlock): Removed.
  17156. (getBlock): Removed.
  17157. (getBitfieldLength): Removed.
  17158. (getBlockLength): Removed.
  17159. (isInProgress): New function.
  17160. (toString): Made pure virtual.
  17161. (check): New function.
  17162. (send): New function.
  17163. (receivedAction): New function.
  17164. (getId): Made pure virtual.
  17165. (setId): Removed.
  17166. (getIndex): Removed.
  17167. (setIndex): Removed.
  17168. (getBegin): Removed.
  17169. (setBegin): Removed.
  17170. (getLength): Removed.
  17171. (setLength): Removed.
  17172. (getCuid): New function.
  17173. (setCuid): New function.
  17174. (getPeer): New function.
  17175. (setPeer): New function.
  17176. (getSendMessageQueue): New function.
  17177. (setSendMessageQueue): New function.
  17178. (ID): Removed.
  17179. * src/PeerMessage.cc
  17180. (setBitfield): Removed.
  17181. (setBlock): Removed.
  17182. (toString): Removed.
  17183. * src/TorrentMan.h
  17184. (getPieceLength): New function.
  17185. (getPieceLength): New function.
  17186. * src/SendMessageQueue.h
  17187. (REQUEST_TIME_OUT): New definition.
  17188. (RequestSlots): New definition.
  17189. (MessageQueue): New definition.
  17190. (requestSlotMan): Removed.
  17191. (pendingMessages): Removed.
  17192. (requestSlots): New variable.
  17193. (messageQueue): New variable.
  17194. (torrentMan): New variable.
  17195. (peerConnection): New variable.
  17196. (peer): New variable.
  17197. (piece): New variable.
  17198. (getNewPieceAndSendInterest): New function.
  17199. (createPeerMessage): New function.
  17200. (createHandshakeMessage): New function.
  17201. (send): Made private.
  17202. (setPeerMessageCommonProperty): New function.
  17203. (deleteAllRequestSlot): New function.
  17204. (deleteRequestMessageInQueue): New function.
  17205. (cancelAllRequest): Made private.
  17206. (cancelAllRequest): Made private.
  17207. (countRequestSlot): Made private.
  17208. (addPendingMessage): Removed.
  17209. (deletePendingPieceMessage): Removed.
  17210. (deletePendingRequestMessage): Removed.
  17211. (addMessage): New function.
  17212. (deletePieceMessageInQueue): New function.
  17213. (deleteTimeoutRequestSlot): Changed argument.
  17214. (deleteCompletedRequestSlot): Changed argument.
  17215. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  17216. (getCorrespondingRequestSlot): New function.
  17217. (countPendingMessage): Removed.
  17218. (countMessageInQueue): New function.
  17219. (getTorrentMan): New function.
  17220. (getPeerConnection): New function.
  17221. (hasDownloadPiece): New function.
  17222. (getDownloadPiece): New function.
  17223. (setDownloadPiece): New function.
  17224. (syncPiece): New function.
  17225. (sendMessages): New function.
  17226. (sendNow): New function.
  17227. (trySendNow): New function.
  17228. (abortPiece): New function.
  17229. (sendHandshake): New function.
  17230. (receiveMessage): New function.
  17231. (receiveHandshake): New function.
  17232. (createRequestMessage): New function.
  17233. (createCancelMessage): New function.
  17234. (createPieceMessage): New function.
  17235. (createHaveMessage): New function.
  17236. (createChokeMessage): New function.
  17237. (createUnchokeMessage): New function.
  17238. (createInterestedMessage): New function.
  17239. (createNotInterestedMessage): New function.
  17240. (createBitfieldMessage): New function.
  17241. (createKeepAliveMessage): New function.
  17242. * src/SendMessageQueue.cc
  17243. (SendMessageQueue): Removed requestSlotMan.
  17244. Instantiated peerConnection here.
  17245. (~SendMessageQueue): Removed requestSlotMan.
  17246. Added deletion of peerConnection and the contents of messageQueue.
  17247. (send): Updated according to the change of messageQueue.
  17248. (addPendingMessage): Renamed to addMessage.
  17249. (addMessage): New function.
  17250. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  17251. (deletePieceMessageInQueue): New function.
  17252. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  17253. (deleteRequestMessageInQueue): New function.
  17254. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  17255. here.
  17256. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  17257. (...) was moved here.
  17258. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  17259. moved here.
  17260. (deleteCompletedRequestSlot):
  17261. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  17262. (getCorrespondingRequestSlot):
  17263. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  17264. And renamed to getCorrespondingRequestSlot, correcting a typo.
  17265. (countPendingMessage): Renamed to countMessageInQueue.
  17266. (countMessageInQueue): New function.
  17267. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  17268. (receiveHandshake): New function.
  17269. (createHandshakeMessage): New function.
  17270. (receiveMessage): New function.
  17271. (createPeerMessage): New function.
  17272. (syncPiece): New function.
  17273. (getNewPieceAndSendInterest): New function.
  17274. (sendMessages): New function.
  17275. (sendNow): New function.
  17276. (trySendNow): New function.
  17277. (sendHandshake): New function.
  17278. (abortPiece): New function.
  17279. (getDownloadPiece): New function.
  17280. (getPeerMessageCommonProperty): New function.
  17281. (createRequestMessage): New function.
  17282. (createCancelMessage): New function.
  17283. (createPieceMessage): New function.
  17284. (createHaveMessage): New function.
  17285. (createChokeMessage): New function.
  17286. (createUnchokeMessage): New function.
  17287. (createInterestedMessage): New function.
  17288. (createNotInterestedMessage): New function.
  17289. (createBitfieldMessage): New function.
  17290. (createKeepAliveMessage): New function.
  17291. To add simple Content-Disposition support:
  17292. * src/HttpResponseCommand.h (determinFilename): New function.
  17293. * src/HttpResponseCommand.cc (executeInternal):
  17294. Use determinFilename(headers) instead of req->getFile() when comparing
  17295. filename.
  17296. (determinFilename): New function.
  17297. (handleDefaultEncoding): Use determinFilename(headers) instead of
  17298. req->getFile().
  17299. (handleOtherEncoding): Use determinFilename(headers) instead of
  17300. req->getFile().
  17301. * src/Util.h (getContentDispositionFilename): New function.
  17302. * src/Util.cc (getContentDispositionFilename): New function.
  17303. * src/LogFactory.h (release): New function.
  17304. * src/LogFactory.cc (release): New function.
  17305. To fix a bug that causes out-of-bound exception when HTTP status
  17306. line is wrong:
  17307. * src/HttpConnection.cc (receiveResponse): Added a check for header
  17308. size.
  17309. * src/common.h (Deleter): New class.
  17310. * src/SegmentMan.cc
  17311. (~SegmentMan): Added deletion of splitter and diskWriter.
  17312. * src/DownloadEngine.h
  17313. (Commands): Use deque.
  17314. (clearQueue): New function.
  17315. * src/DownloadEngine.cc
  17316. (~DownloadEngine): Added deletion of segmentMan.
  17317. (cleanQueue): New function.
  17318. * src/TorrentDownloadEngine.h
  17319. (TorrentDownloadEngine): The implementation was moved to
  17320. TorrentDownloadEngine.cc.
  17321. (~TorrentDownloadEngine): The implementation was moved to
  17322. TorrentDownloadEngine.cc.
  17323. * src/TorrentDownloadEngine.cc
  17324. (~TorrentDownloadEngine): Added deletion of torrentMan.
  17325. * src/main.cc
  17326. (clearRequest): Removed.
  17327. (handler): Added deletion of e.
  17328. (torrentHandler): Added deletion of te.
  17329. (main): Do not share splitter.
  17330. Use Deleter instead of clearRequest.
  17331. Deletion of classes were updated.
  17332. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17333. * src/main.cc (main): Fixed typo.
  17334. * src/message.h: Fixed typo.
  17335. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  17336. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17337. To add --select-file command-line option:
  17338. * src/Util.cc
  17339. (unfoldRange): New function.
  17340. (getNum): New function.
  17341. (unfoldSubRange): New function
  17342. * src/main.cc
  17343. (showUsage): Added help message.
  17344. (main): Added --select-file command-line option. Updated the layout of
  17345. file listing.
  17346. * src/common.h
  17347. (Integers): New definition.
  17348. * src/SocketCore.cc
  17349. (writeData): Removed timeout argument.
  17350. (readData): Removed timeout argument.
  17351. (peekData): Removed timeout argument.
  17352. * src/Socket.cc
  17353. (writeData): Removed timeout argument.
  17354. (readData): Removed timeout argument.
  17355. (peekData): Removed timeout argument.
  17356. * Release 0.4.1
  17357. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17358. To deploy upload rate based choking algorithm:
  17359. * src/PeerInteractionCommand.cc
  17360. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  17361. peer currently used.
  17362. (decideChoking): Deleted the choke/unchoke decision algorithm when
  17363. download completes. Simplified.
  17364. (receiveMessage): Updated.
  17365. * src/TorrentMan.h
  17366. (activePeers): New variable.
  17367. (addActivePeer): New function.
  17368. (getActivePeers): New function.
  17369. (deleteActivePeer): New function.
  17370. * src/TorrentMan.cc
  17371. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  17372. * src/PeerAbstractCommand.cc
  17373. (onAbort): Use peer->resetStatus().
  17374. * src/main.cc
  17375. (PeerChokeCommand.h): Included.
  17376. (main): Added the instance of ChokingCommand to the command queue.
  17377. * src/Peer.h
  17378. (amChoking): Renamed from amChocking
  17379. (chokingRequired): New variable.
  17380. (optUnchoking): New variable.
  17381. (deltaUpload): New variable.
  17382. (deltaDownload): New variable.
  17383. (addDeltaUpload): New function.
  17384. (resetDeltaUpload): New function.
  17385. (addDeltaDownload): New function.
  17386. (resetDeltaDownload): New function.
  17387. (addPeerUpload): Added a call to addDeltaUpload.
  17388. (addPeerDownload): Added a call to addDeltaDownload.
  17389. * src/Peer.cc
  17390. (shouldBeChoking): Renamed from shouldChoke.
  17391. (resetStatus): New function.
  17392. * src/PeerChokeCommand.h: New class.
  17393. * src/PeerChokeCommand.cc: New class.
  17394. To add lazy upload speed limiter:
  17395. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  17396. statistics calculation to TorrentDownloadEngine.
  17397. * src/TorrentConsoleDownloadEngine.cc
  17398. (sendStatistics): Renamed from printStatistics.
  17399. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  17400. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  17401. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  17402. * src/TorrentDownloadEngine.h: Added the variables for statistics
  17403. calculation.
  17404. (sendStatistics): New function as pure virtual function.
  17405. (getUploadSpeed): New function.
  17406. * src/TorrentDownloadEngine.cc
  17407. (initStatistics): New function.
  17408. (calculateSpeed): New function.
  17409. (calculateStatistics): New function.
  17410. * src/SendMessageQueue.h
  17411. (uploadLength): New variable.
  17412. (send): Added an argument.
  17413. (setUploadLimit): New function.
  17414. (getUploadLimit): New function.
  17415. * src/SendMessageQueue.cc
  17416. (send): Added upload speed limiter.
  17417. * src/prefs.h
  17418. (PREF_UPLOAD_LIMIT): New definition.
  17419. * src/PeerInteractionCommand.cc
  17420. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  17421. * src/main.cc
  17422. (main): Added --upload-limit option
  17423. For bug fixes:
  17424. * src/main.cc
  17425. (showUsage): Corrected --listen-port help
  17426. Other changes:
  17427. * src/TorrentMan.cc
  17428. (getPeer): Return nullPeer if connection is grather than
  17429. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  17430. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17431. To add some useful information to the exception message:
  17432. * src/SocketCore.cc : Updated messages.
  17433. * src/SegmentMan.cc :
  17434. * src/TorrentMan.cc : Updated messages.
  17435. * src/MultiDiskWriter.cc : Updated messages.
  17436. * src/Util.cc : Updated messages.
  17437. * src/AbstractDiskWriter.cc : Updated messages.
  17438. * src/PreAllocationDiskWriter.cc : Updated messages.
  17439. * src/message.cc : Added new messages. Updated some messages.
  17440. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  17441. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  17442. Updated threshold from 30 to 15.
  17443. * src/AbstractDiskWriter.h (filename): New variable.
  17444. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  17445. (createFile): Assigned filename.
  17446. * src/main.cc: Updated the help message for http-auth-scheme.
  17447. * Release 0.4.0
  17448. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17449. To add TrackerUpdateCommand with which replaces
  17450. CompactTrackerResponseProcessor:
  17451. * src/TrackerWatcherCommand.h (req): Removed.
  17452. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  17453. if the number of peer connections are less than 30.
  17454. * src/ByteArrayDiskWriter.h (readData): Implemented.
  17455. * src/SegmentMan.h (diskWriter): New function.
  17456. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  17457. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  17458. (main): Use TrackerUpdateCommand.
  17459. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  17460. (req): New variable.
  17461. (setTrackerResponseProcessor): Removed.
  17462. (getTrackerResponseProcessor): Removed.
  17463. (processTrackerResponse): Removed.
  17464. * src/DownloadEngine.h (diskWriter): Removed.
  17465. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  17466. to torrentMan->processTrackerResponse().
  17467. To add Util::expandBuffer:
  17468. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  17469. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  17470. * src/Util.h (expandBuffer): New function.
  17471. To fix the bug that causes segmentation fault when "-l ." is specified
  17472. in command-line option:
  17473. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  17474. (openFile): New function.
  17475. (closeFile): New function.
  17476. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  17477. (~SimpleLogger): Call closeFile();
  17478. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  17479. * src/main.cc (main): Added a check to see logger is configured
  17480. properly.
  17481. To enable HTTP authentication without specifying "--http-auth-scheme"
  17482. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  17483. * src/HttpConnection.cc (createRequest): Send Authorization header
  17484. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  17485. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  17486. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  17487. * src/Peer.cc (shouldChoke): Updated algorithm.
  17488. * src/message.h (EX_AUTH_FAILED): New definition.
  17489. (EX_FILE_OPEN): New definition.
  17490. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  17491. if status == 401.
  17492. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  17493. if req->isTorrent == true.
  17494. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  17495. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  17496. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  17497. (createFile): Updated message.
  17498. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17499. To add a readout of estimated remaining time to normal HTTP/FTP
  17500. downloads:
  17501. * src/ConsoleDownloadEngine.h (startup): New variable.
  17502. (startupLength): New variable.
  17503. (isStartupLengthSet): New variable.
  17504. (avgSpeed): New variable.
  17505. (eta): New variable.
  17506. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  17507. estimated remaining time.
  17508. (initStatistics): Initialized newly added variables.
  17509. (calculateStatistics): Calculate average speed and estimated remaining
  17510. time.
  17511. To decouple TorrentDownloadEngine from HttpResponseCommand:
  17512. * src/TrackerDownloadCommand.h: Removed.
  17513. * src/TrackerDownloadCommand.cc: Removed.
  17514. * src/TrackerInitCommand.h: Removed.
  17515. * src/TrackerInitCommand.cc: Removed.
  17516. * src/TrackerUpdateCommand.h: Removed.
  17517. * src/TrackerUpdateCommand.cc: Removed.
  17518. * src/TrackerWatcherCommand.cc (execute): The construction of request
  17519. url written in TrackerInitCommand was moved here. Do not create
  17520. tracker request command if torrentMan->trackers != 0.
  17521. * src/CompactTrackerResponseProcessor.h: New class.
  17522. * src/CompactTrackerResponseProcessor.cc: New class.
  17523. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  17524. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  17525. Decoupled TorrentDownloadEngine from this.
  17526. * src/SegmentMan.h (init): New function.
  17527. * src/SegmentMan.cc (init): New function.
  17528. * src/TorrentMan.h (responseProcessor): New variable.
  17529. (trackers): New variable.
  17530. (setTrackerResponseProcessor): New function.
  17531. (getTrackerResponseProcessor): New function.
  17532. (processTrackerResponse): New function.
  17533. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  17534. (processTrackerResponse): New function.
  17535. * src/main.cc (main): Use ByteArrayDiskWriter and
  17536. CompactTrackerResponseProcessor.
  17537. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  17538. processTrackerResponse().
  17539. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  17540. readout.
  17541. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  17542. which indicates download has completed.
  17543. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  17544. (closeFile): fd >= 0, not fd > 0
  17545. * src/main.cc (main): Added short cut for show-files.
  17546. Added short cut for torrent-file.
  17547. Added new command-line option listen-port.
  17548. Updated i18n messages.
  17549. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17550. To add LogFactory which creates singleton logger:
  17551. * src/LogFactory.h: New class.
  17552. * src/LogFactory.cc: New class.
  17553. * src/Command.h (logger): New variable.
  17554. (Constructor): Use LogFactory.
  17555. * src/AbstractCommand.cc: Use Command::logger
  17556. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  17557. Use LogFactory.
  17558. * src/SegmentSplitter.h : Made logger protected.
  17559. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  17560. * src/SegmentMan.cc (Constructor): Use LogFactory.
  17561. * src/DownloadEngine.h : Made logger protected.
  17562. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  17563. * src/PeerInteractionCommand.cc : Use Command::logger.
  17564. * src/HttpResponseCommand.cc : Use Command::logger.
  17565. * src/SegmentMan.h : Made logger private.
  17566. * src/TorrentMan.h : Made logger private.
  17567. * src/TorrentMan.cc : Use LogFactory.
  17568. * src/FtpNegotiateCommand.cc : Use Command::logger.
  17569. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  17570. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  17571. Use LogFactory.
  17572. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  17573. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  17574. Use LogFactory.
  17575. * src/DownloadCommand.cc : Use Command::logger.
  17576. * src/PeerAbstractCommand.cc : Use Command::logger.
  17577. * src/PeerListenCommand.cc : Use Command::logger.
  17578. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  17579. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  17580. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  17581. * src/TrackerWatcherCommand.cc : Use Command::logger.
  17582. * src/TrackerUpdateCommand.cc : Use Command::logger.
  17583. * src/TrackerDownloadCommand.cc : Use Command::logger.
  17584. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  17585. Use LogFactory.
  17586. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  17587. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  17588. Use LogFactory.
  17589. * src/main.cc (main): Use LogFactory.
  17590. * src/DiskAdaptor.h (logger): New variable.
  17591. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  17592. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  17593. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17594. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  17595. parameter to a tracker request.
  17596. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  17597. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  17598. * src/main.cc (setSignalHander): New function.
  17599. (main): Added a handler for SIGTERM.
  17600. (handler): Updated message.
  17601. (torrentHandler): Updated message.
  17602. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17603. * src/TorrentConsoleDownloadEngine.cc
  17604. (onPartialDownloadingCompletes): Renamed as
  17605. onSelectiveDownloadingCompletes.
  17606. (onSelectiveDownloadingCompletes): Updated message.
  17607. To add DiskAdaptor which abstract DiskWriter family:
  17608. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  17609. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  17610. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  17611. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  17612. MultiDiskAdaptor.h.
  17613. (readFileEntry): Changed its arguments.
  17614. (setup): setupDiskWriter is merged into this function.
  17615. (setupDiskWriter): Removed.
  17616. (setFileFilter): New function.
  17617. (readFileEntryFromMetaInfoFile): Updated according to the changes
  17618. made in readFileEntry.
  17619. (getFilePath): Removed.
  17620. (getTempFilePath): Removed.
  17621. (getSegmentFilePath): Updated due to the removal of getFilePath.
  17622. (fixFilename): Removed.
  17623. (copySingleFile): Removed.
  17624. (splitMultiFile): Removed.
  17625. (deleteTempFile): Removed.
  17626. (setFileEntriesToDownload): Removed.
  17627. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  17628. (isSelectiveDownloadingMode): New function.
  17629. (setAllMultiFileRequestedState): Removed.
  17630. (finishPartialDownloadingMode): Renamed as
  17631. finishSelectiveDownloadingMode.
  17632. (finishSelectiveDownloadingMode): New function.
  17633. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  17634. (getSelectedTotalLength): New function.
  17635. (onDownloadComplete): Use diskAdaptor.
  17636. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  17637. (Range): Removed.
  17638. (setMultiFileEntries): Renamed as setFileEntries.
  17639. (setFileEntries): New function.
  17640. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  17641. (pieceLength): New variable.
  17642. * src/main.cc (printDownloadCompeleteMessage): New function.
  17643. (torrentHandler): Use diskAdaptor instead of diskWriter.
  17644. (main): Renamed torrent-show-files to show-files.
  17645. Rewritten file contents listing.
  17646. * src/TorrentMan.h (FileEntry): Removed.
  17647. (multiFileTopDir): Removed.
  17648. (multiFileEntries): Removed.
  17649. (diskWriter): Removed.
  17650. (diskAdaptor): New variable.
  17651. * src/DefaultDiskWriter.h (totalLength): New variable.
  17652. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  17653. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  17654. diskWriter.
  17655. * src/TorrentConsoleDownloadEngine.h
  17656. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  17657. (partialTotalLength): Renamed as selectedTotalLength.
  17658. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  17659. openExistingFile, otherwise call initAndOpenFile.
  17660. (closeFile): fd > 0, not fd != 0.
  17661. * src/DirectDiskAdaptor.h: New class.
  17662. * src/DirectDiskAdaptor.cc: New class.
  17663. * src/MultiDiskAdaptor.h: New class.
  17664. * src/MultiDiskAdaptor.cc: New class.
  17665. * src/CopyDiskAdaptor.h: New class.
  17666. * src/CopyDiskAdaptor.cc: New class.
  17667. * src/DiskAdaptor.h: New class.
  17668. * src/DiskAdaptor.cc: New class.
  17669. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  17670. (PREF_SHOW_FILES): New definition.
  17671. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17672. To add the ability to download multi torrent into respective files
  17673. directly:
  17674. * src/DiskWriter.h (openFile): New function.
  17675. (seek): Removed.
  17676. * src/MultiDiskWriter.h: New class.
  17677. * src/MultiDiskWriter.cc: New class.
  17678. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  17679. protected.
  17680. (openFile): New function.
  17681. * src/AbstractDiskWriter.cc (openFile): New function.
  17682. * src/prefs.h (V_FALSE): New definition.
  17683. (PREF_DIRECT_FILE_MAPPING): New definition.
  17684. * src/TorrentMan.h (setupDiskWriter): New function.
  17685. (setAllMultiFileRequestedState): New function.
  17686. (onDownloadComplete): New function.
  17687. * src/TorrentMan.cc : Included MultiDiskWriter.h
  17688. (setupDiskWriter): New function.
  17689. (getFilePath): Updated.
  17690. (getTempFilePath): Updated.
  17691. (getSegmentFilePath): Updated.
  17692. (fixFilename): Updated.
  17693. (deleteTempFile): Updated.
  17694. (setAllMultiFileRequestedState): New function.
  17695. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  17696. (finishPartialDownloadingMode): Reset requested flags.
  17697. (onDownloadComplete): New function.
  17698. * src/main.cc: Added --direct-file-mapping option.
  17699. Use TorrentMan::setupDiskWriter().
  17700. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  17701. onDownloadComplete().
  17702. To fix ETA bug:
  17703. * src/Util.h (difftvsec): New function.
  17704. * src/Util.cc (difftvsec): New function.
  17705. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  17706. type of "elapsed" instead of long long int.
  17707. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  17708. The updates of statistics takes place every 1 seconds.
  17709. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  17710. (calculateSpeed): Changed its argument signature.
  17711. * src/PeerMessage.cc (toString): Fixed message.
  17712. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17713. To print ETA:
  17714. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  17715. completion handling when dealing with
  17716. TorrentMan::isPartialDownloadingMode() == true.
  17717. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  17718. New function.
  17719. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  17720. (sessionDownloadLength): New variable.
  17721. (avgSpeed): New variable.
  17722. (eta): New variable.
  17723. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  17724. new variables: eta, avgSpeed, startup.
  17725. (calculateSpeed): Calculate average speed and ETA.
  17726. (printStatistics): Added ETA.
  17727. * src/Util.h (secfmt): New function.
  17728. * src/Util.cc (secfmt): New function.
  17729. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17730. To detect "keep alive" flooding:
  17731. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  17732. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  17733. variable: keepAliveCount.
  17734. (detectMessageFlooding): Added "keep alive" flooding detection.
  17735. (receiveMessage): Increase keepAliveCount when "keep alive" message
  17736. received.
  17737. To add the ability to download only specified files in multi-file
  17738. torrent:
  17739. * src/BitfieldMan.h (filterBitfield): New variable.
  17740. (filterEnabled): New variable.
  17741. (setFilterBit): New function.
  17742. (enableFilter): New function.
  17743. (disableFilter): New function.
  17744. (isFilterEnabled): New function.
  17745. (getFilteredTotalLength): New function.
  17746. (getCompletedLength): New function.
  17747. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  17748. filterBitfield, filterEnabled.
  17749. (CopyConstructor): Added filterBitfield and filterEnabled.
  17750. (operator==): Added filterBitfield and filterEnabled.
  17751. (Destructor): Added filterBitfield.
  17752. (getMissingIndex): Use filterBitfield.
  17753. (getMissingUnusedIndex): Use filterBitfield.
  17754. (getFirstMissingUnusedIndex): Use filterBitfield.
  17755. (getFirstMissingUnusedIndex): Use filterBitfield.
  17756. (getAllMissingIndexes): Use filterBitfield.
  17757. (countMissingBlock): Use filterBitfield.
  17758. (countBlock): Use filterBitfield.
  17759. (setBitInternal): Added new argument on.
  17760. (setUseBit): Use setBitInternal.
  17761. (unsetUseBit): Use setBitInternal.
  17762. (setBit): Use setBitInternal.
  17763. (unsetBit): Use setBitInternal.
  17764. (isAllBitSet): Use filterBitfield.
  17765. (setFilterBit): New function.
  17766. (addFilter): New function.
  17767. (enableFilter): New function.
  17768. (disableFilter): New function.
  17769. (clearFilter): New function.
  17770. (isFilterEnabled): New function.
  17771. (getFilteredTotalLength): New function.
  17772. (getCompletedLength): New function.
  17773. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  17774. Initalized newly added variables.
  17775. [FileEntry](offset): New variable.
  17776. [FileEntry](extracted): New variable.
  17777. [FileEntry](requested): New variable.
  17778. (readFileEntry): New function.
  17779. (option): New variable.
  17780. (splitMultiFile): Removed const qualifier.
  17781. (fixFilename): Removed const qualifier.
  17782. (readFileEntryFromMetaInfoFile): New function.
  17783. (finishPartialDownloadingMode): New function.
  17784. (isPartialDownloadingMode): New function.
  17785. (setFileEntriesToDownload): New function.
  17786. (getCompletedLength): New function.
  17787. (getPartialTotalLength): New function.
  17788. * src/TorrentMan.cc (readFileEntry): New function.
  17789. (setup): Use readFileEntry. If no-preallocation option is specified,
  17790. use DefaultDiskWriter.
  17791. (readFileEntryFromMetaInfoFile): New function.
  17792. (fixFilename): Removed const qualifier.
  17793. (splitMultiFile): Removed const qualifier.
  17794. (setFileEntriesToDownload): New function.
  17795. (isPartialDownloadingMode): New function.
  17796. (finishPartialDownloadingMode): New function.
  17797. (getCompletedLength): New function.
  17798. (getPartialTotalLength): New function.
  17799. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  17800. New variable.
  17801. (partialTotalLength): New variable.
  17802. (downloadLength): New variable.
  17803. (totalLength): New variable.
  17804. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  17805. Added log.
  17806. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  17807. partialTotalLength, downloadLength, totalLength.
  17808. (calculate): Calculate downloadLength and totalLength.
  17809. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  17810. * src/main.cc (addCommand): Changed argument signature.
  17811. (main): Added new variable: args. Added new option "torrent-show-files"
  17812. "no-preallocation". Usage is not updated yet.
  17813. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17814. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  17815. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17816. Attempt to add the ability to listing file entries in a .torrent file.
  17817. This feature is not yet complete.
  17818. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  17819. * src/TorrentMan.cc (getMultiFileEntries): New function.
  17820. (getName): New function.
  17821. * src/TorrentMan.h (getMultiFileEntries): New function.
  17822. (getName): New function.
  17823. * src/main.cc (main): Use above 2 funtion.
  17824. * Release 0.3.2
  17825. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17826. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  17827. (detectMessageFlooding): Updated threshold value.
  17828. (checkLongTimePeerChoking): Updated timeout value.
  17829. (getNewPieceAndSendInterest): Added debug log.
  17830. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  17831. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  17832. (getPeer): Updated.
  17833. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  17834. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  17835. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  17836. is localhost.
  17837. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  17838. * src/PendingMessage.cc (processMessage): Not to send piece message
  17839. if peer is not interested in the pieces localhost has.
  17840. * src/Peer.cc (shouldChoke): Updated.
  17841. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  17842. * src/Util.cc (isPowerOf): New function.
  17843. * src/Util.h (isPowerOf): New function.
  17844. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  17845. whether or not it is power of 2.
  17846. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17847. Added new class SendMessageQueue that includes PendingMessages and
  17848. RequestSlotMan.
  17849. * src/SendMessageQueue.h: New class.
  17850. * src/SendMessageQueue.cc: New class.
  17851. * src/PendingMessage.h: Added new member variable blockIndex and its
  17852. accessors.
  17853. (createRequestMessage): Updated.
  17854. * src/PendingMessage.cc (createRequestMessage): Updated.
  17855. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  17856. SendMessageQueue.
  17857. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  17858. (receiveMessage): Updated with SendMessageQueue.
  17859. (deletePendingPieceMessage): Removed.
  17860. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  17861. (sendInterest): Updated with SendMessageQueue.
  17862. (createRequestPendingMessage): Updated with SendMessageQueue.
  17863. (sendMessages): Updated with SendMessageQueue.
  17864. (onAbort): Updated with SendMessageQueue.
  17865. (keepAlive): Updated with SendMessageQueue.
  17866. (beforeSocketCheck): Updated SendMessageQueue.
  17867. * src/PeerInteractionCommand (sendMessages): Shuffle
  17868. missingBLockIndexes before using it.
  17869. Added its own timeout for peer connection.
  17870. * src/PeerAbstractCommand.h: Added member variable timeout and its
  17871. setter.
  17872. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  17873. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17874. Added setTimeout() call.
  17875. (executeInternal): Added setTimeout() call.
  17876. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  17877. Added timeout.
  17878. (isTimeoutDetected): Updated.
  17879. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  17880. option.
  17881. Added *simple* message flooding checker.
  17882. * src/PeerInteractionCommand.cc (executeInternal):
  17883. Added detectMessageFlooding() call.
  17884. (detectMessageFlooding): New function.
  17885. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  17886. (beforeSocketCheck): Added detectMessageFlooding() call.
  17887. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  17888. chokeUnchokeCount, haveCount, detectMessageFlooding().
  17889. Removed deletePendingPieceMessage(), getRequestSlot(),
  17890. deleteRequestSlot(), deleteAllRequestSlot().
  17891. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  17892. Added checkLongTimePeerChoking() call.
  17893. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  17894. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  17895. if duplicate == false.
  17896. The parameter "uploaded" and "downloaded" in the tracker request are
  17897. the size since the client sent the "started" event to the tracker.
  17898. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  17899. uploaded size to preDownloadedSize, preUploadedSize respectively.
  17900. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  17901. getSessionDownloadedSize(), getSessionUploadedSize().
  17902. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  17903. getSessionUploadedSize() instead of getDownloadedSize(),
  17904. getUploadedSize().
  17905. * src/PendingMessage.cc (processMessage): Do not send request message
  17906. if the peer is choking the client.
  17907. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  17908. less than interval.
  17909. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17910. * configure.in: Added gnutls support. Added several CPP macros.
  17911. * m4/openssl.m4: Added.
  17912. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  17913. readData(), peekData(). Added gnutls support.
  17914. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  17915. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  17916. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  17917. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  17918. Instead, added a check for whether setup method has executed
  17919. successfully.
  17920. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  17921. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  17922. * src/Makefile.am: Updated.
  17923. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  17924. using whether OpenSSL or gcrypt, depending on the result of configure
  17925. script.
  17926. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  17927. messageDigest.h.
  17928. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  17929. * src/PeerListenCommand.cc: Added log about port binded successfully.
  17930. Fixed memory leak.
  17931. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  17932. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  17933. Removed instantiation of TrackerInitCommand. Instead,
  17934. TrackerWatcherCommand is instantiated and pushed to the command queue.
  17935. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  17936. ENABLE_SSL.
  17937. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  17938. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  17939. If a piece is already acquired by another command, delete the request
  17940. slots for the piece.
  17941. * src/TrackerUpdateCommand.cc (execute):
  17942. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  17943. Added a check whether peer list is null.
  17944. Fixed the bug that causes sending completed event to the tracker
  17945. several times.
  17946. * src/TrackerInitCommand.cc (execute):
  17947. Fixed the bug that causes sending completed event to the tracker
  17948. several times.
  17949. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  17950. by using messageDigest.h.
  17951. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17952. * PeerConnection.cc: Replaced log message "keep-alive" with
  17953. "keep alive".
  17954. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  17955. localhost long time.
  17956. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  17957. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  17958. at most 100 failure entry from the list. If with duplicate = false,
  17959. MAX_PEER_LIST is not checked.
  17960. * PeerListenCommand.cc: Fixed the argument order of log message.
  17961. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17962. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  17963. Added warn().
  17964. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  17965. Implemented warn().
  17966. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  17967. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17968. * Request.h: Added AFTER_COMPLETED event.
  17969. * TorrentDownloadEngine.cc: Prints "Download complete" message
  17970. instead of downloaded size and progress(%) after download completes.
  17971. * PeerInteractionCommand.cc: After download completes, sends unchoke
  17972. message to the peer if it is interested in what localhost has
  17973. downloaded.
  17974. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  17975. destination instead of just renaming it.
  17976. * TorrentMan.cc: Added deleteTempFile().
  17977. * PeerAbstractCommand.cc: do not stop execution after download
  17978. completes. This makes localhost a seeder.
  17979. * Util.{h,cc}: Added fileCopy().
  17980. * PeerListenCommand.cc: do not stop execution after download completes.
  17981. This makes localhost a seeder.
  17982. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  17983. Added TorrentMan::deleteTempFile() to torrentHandler.
  17984. Initialized the variable dir as ".".
  17985. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  17986. Deleted renameSingleFile().
  17987. Added copySingleFile(), deleteTempFile().
  17988. * DownloadEngine.h: Added virtual function afterEachIteration().
  17989. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  17990. in onEndOfRun() to afterEachIteration().
  17991. In onEndOfRun(), changed if condition to check whether filenameFixed is
  17992. true.
  17993. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  17994. In rangedFileCopy(), added try-catch block to properly close file
  17995. descriptors.
  17996. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  17997. Added afterEachIteration(), isFilenameFixed().
  17998. * Peer.cc: Changed choking strategy.
  17999. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  18000. * TrackerInitCommand.cc: Send completed event only once.
  18001. * DownloadEngine.cc: Added a call to afterEachIteration().
  18002. * TrackerUpdateCommand.cc: Do not stop execution after download
  18003. completes.
  18004. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  18005. connect the peers at most MAX_PEER_UPDATE when a peer list is
  18006. received from a tracker.
  18007. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  18008. Decreased the number of failure peers to delete to 0(just comment out
  18009. the line).
  18010. * Release 0.3.1
  18011. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18012. * PeerInteractionCommand.cc: added a call to
  18013. TorrentMan::unadvertisePiece in Destructor.
  18014. * PeerInteractionCommand.cc: make have message sent immediately
  18015. if the size of pending message queue is zero.
  18016. * TorrentMan.cc: set the maximum size of peer list to 250.
  18017. * TorrentMan.h: changed the container type of Peers and UsedPieces
  18018. to deque.
  18019. * Util.cc: fixed rangedFileCopy.
  18020. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  18021. to Constructor. Also, moved digest cleanup to Destructor.
  18022. * MetaFileUtil.cc: fixed memory leak
  18023. * replaced std::vector with std::deque.
  18024. * AbstractCommand.cc: casted timeout value to long long int.
  18025. * ChunkedEncoding.cc: fixed memory leak.
  18026. * PeerInteractionCommand.cc: casted timeout value to long long int.
  18027. * SleepCommand.cc: casted timeout value to long long int.
  18028. * Data.cc: fixed memory leak.
  18029. * Data.cc: fixed toLLInt().
  18030. * BitfieldMan.cc: fixed memory leak.
  18031. * TorrentMan.cc: initialized storeDir to ".".
  18032. * TorrentMan.cc: fixed memory leak.
  18033. * TorrentMan.cc: corrected file paths of splitted files.
  18034. * PeerAbstractCommand.cc: casted timeout to long long int.
  18035. * main.cc: added delete(req) and delete(te->diskWriter).
  18036. * RequestSlot.cc: casted timeout value to long long int.
  18037. * Request.cc: fixed memory leak.
  18038. * PendingMessage.cc: make HAVE messages sent only when peer does not
  18039. have the piece.
  18040. * Peer.{h,cc}: added hasPiece(int index).
  18041. * main.cc: corrected addCommand.
  18042. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18043. * BitTorrent protocol support added.
  18044. * Release 0.3.0
  18045. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18046. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  18047. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18048. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  18049. decoding did not work properly.
  18050. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18051. * DownloadEngine.h: included sys/time.h
  18052. * DownloadEngine.cc: remove sys/time.h
  18053. * Makefile.am (SUBDIRS): Add intl.
  18054. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  18055. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18056. * main.cc: correct help message for --http-auth-scheme.
  18057. * main.cc: changed e-mail address for bug reports.
  18058. * ja.po: added japanese translation.
  18059. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18060. * SimpleLogger.cc: flush log file instead of stdout.
  18061. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18062. * main.cc: Fixed command-line option: max-tries
  18063. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  18064. does not equal to seg.sp.
  18065. * DownloadCommand.cc: If EOF is got from the server and the total size
  18066. of file is not zero, then throw DlRetryEx.
  18067. * main.cc: Set the minium value of min-segment-size to 1024.
  18068. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  18069. fails because of a regression since 0.2.0 release.
  18070. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18071. * HttpConnection.cc:
  18072. * common.h: defined the user agent name as macro
  18073. * DownloadEngine.{h, cc}:
  18074. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  18075. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  18076. * main.cc: Download complete/abort message is now generated by main.
  18077. * Makefile.am (SUBDIRS): Add m4.
  18078. (ACLOCAL_AMFLAGS): New variable.
  18079. (EXTRA_DIST): New variable.
  18080. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  18081. * gettext: added gettext functionality
  18082. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18083. * AbstractCommand.cc:
  18084. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  18085. unregister its cuid from SegmentMan.
  18086. * DownloadEngine.cc: .aria2 file was written when a downloading
  18087. failed with errors.
  18088. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  18089. Added "User-Agent" header to CONNECT proxy request.
  18090. Fixed "Proxy-Authorization" header. Now proxy authorization works
  18091. properly.
  18092. * Logger.h:
  18093. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  18094. * ChunkedEncoding.cc: Added #include directive for strings.h
  18095. * Release 0.2.1
  18096. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18097. * Util.{h,cc}: added startsWith().
  18098. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  18099. Util::endsWith().
  18100. * SocketCore.cc: struct addrinfo is now zero-initialized.
  18101. * common.h: added #include directive of limit.h.
  18102. * DownloadEngine.cc: added #include directive of sys/time.h and
  18103. algorithm.
  18104. * Exception.h: added #include directive of stdio.h.
  18105. * AbstractCommand.h: added #include directive of sys/time.h.
  18106. * DownloadCommand.h: added #include directive of sys/time.h.
  18107. * *.h: added #include directive of common.h to all base classes.
  18108. subclasses' one was removed.
  18109. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  18110. does not define these macros.
  18111. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18112. * Release 0.2.0
  18113. * main.cc:
  18114. * HttpInitiateConnectionCommand.{h,cc}:
  18115. * prefs.h:
  18116. * HttpConnection.{h,cc}: added --http-proxy-method option.
  18117. We can now use GET command in http proxy.
  18118. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18119. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  18120. that splits slowest segment of SegmentMan::commands vector.
  18121. This is the default split algorithm of aria2.
  18122. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  18123. that splits first segment of SegmentMan::commands vector.
  18124. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  18125. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  18126. * Segment.h:
  18127. * SegmentMan.cc: Added speed field to Segment.h
  18128. * main.cc: -s option now affects all URLs in command-line arguemtns.
  18129. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  18130. * message.h: Change file size related %d to %lld.
  18131. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18132. * FtpInitiateConnectionCommand.{h,cc}:
  18133. * FtpNegotiationCommand.{h,cc}:
  18134. * FtpDownloadCommand.{h,cc}:
  18135. * FtpConnection.{h,cc}: Added FTP support
  18136. * SimpleLogger.cc: Log message now includes time information.
  18137. * main.cc: The value of --http-auth-scheme option is chagned from
  18138. 'BASIC' to 'basic'
  18139. * main.cc: Added --timeout command-line option.
  18140. * main.cc: Added --min-segment-size command-line option.
  18141. * main.cc: Added --max-retries command-line option.
  18142. * prefs.h: option string constants are now defined in prefs.h
  18143. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18144. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  18145. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  18146. with version 0.1.0's one.
  18147. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18148. * configure.in: Added --enable-ssl option to configure script.
  18149. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  18150. cannot permit absoluteURI as Request-URI.
  18151. * HttpConnection.cc: Added Referer support.
  18152. * main.cc: Added referer command-line option.
  18153. * main.cc: Added rety-wait command-line option.
  18154. * Exception.h: Fixed formating bug in Exception::setMsg()
  18155. * SocketCore.{h,cc}:
  18156. * Socket.{h, cc}:
  18157. * Request.cc:
  18158. * InitiateConnectionCommandFactory.cc:
  18159. * HttpRequestCommand.cc: Added HTTPS support.
  18160. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  18161. for SocketCore.
  18162. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  18163. size is wrong
  18164. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  18165. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  18166. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  18167. * Release 0.1.0