ChangeLog 736 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856
  1. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Ensure that std::ofstream is destroyed before renaming.
  3. * src/SessionSerializer.cc
  4. * src/util.cc
  5. 2010-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6. Fixed the bug that user specified path is escaped using
  7. util::escapePath() where it should not.
  8. * src/DownloadContext.cc
  9. * src/DownloadContext.h
  10. 2010-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  11. Hold reference to PieceStorage when paused in order to provide
  12. progress information via XML-RPC.
  13. * src/RequestGroup.cc
  14. * src/RequestGroup.h
  15. * src/RequestGroupMan.cc
  16. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  17. Defined struct timespec if it is not available.
  18. * src/a2time.h
  19. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  20. Added missing serialize_session.meta4 to EXTRA_DIST
  21. * test/Makefile.am
  22. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  23. Fixed compile error without BitTorrent support.
  24. * src/Metalink2RequestGroup.cc
  25. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  26. Fixed compile error on Mac OS X
  27. * src/TimerA2.h
  28. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  29. Added warning for the system which lacks clock_gettime with
  30. CLOCK_MONOTONIC.
  31. * src/MultiUrlRequestInfo.cc
  32. * src/TimerA2.cc
  33. * src/TimerA2.h
  34. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  35. Removed redundant method call for DownloadEngine.
  36. * src/DownloadCommand.cc
  37. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  38. Fixed the bug that hash check hangs when aria2.pause is issued
  39. while aria2 is checking piece hashes. Fixed the bug that the
  40. download is paused after file allocation completion even if
  41. aria2.pause is issued during file allocation.
  42. * src/CheckIntegrityCommand.cc
  43. * src/FileAllocationCommand.cc
  44. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  45. Added nsl to search-libs for getaddrinfo on opensolaris
  46. * configure.ac
  47. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  48. Fixed compile error on opensolaris
  49. * configure.ac
  50. * src/Logger.h
  51. * src/GZipEncoder.h
  52. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  53. Added aria2.pauseAll, aria2.forcePauseAll and aria2.unpauseAll
  54. XML-RPC method.
  55. * doc/aria2c.1.txt
  56. * src/XmlRpcMethodFactory.cc
  57. * src/XmlRpcMethodImpl.cc
  58. * src/XmlRpcMethodImpl.h
  59. * test/XmlRpcMethodTest.cc
  60. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  61. Added aria2.forcePause XML-RPC command.
  62. * src/XmlRpcMethodFactory.cc
  63. * src/XmlRpcMethodImpl.cc
  64. * src/XmlRpcMethodImpl.h
  65. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  66. Use global::wallclock
  67. * src/DHTBucket.cc
  68. * src/DHTMessageTrackerEntry.cc
  69. * src/DHTMessageTrackerEntry.h
  70. * src/DefaultBtInteractive.cc
  71. * src/Peer.cc
  72. * src/PeerAbstractCommand.cc
  73. * src/PeerStat.h
  74. * src/RequestSlot.h
  75. * src/TimeBasedCommand.cc
  76. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  77. Use clock_gettime(CLOCK_MONOTONIC, ...) if it is available and
  78. usable to prevent from aria2 from being affected by system time
  79. change.
  80. 2010-04-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  81. Added aria2.pause and aria2.unpause XML-RPC method. aria2.pause
  82. pauses the download denoted by gid. gid is of type string. The
  83. status of paused download becomes "paused" and the download is
  84. placed on the first position of waiting queue. As long as the
  85. status is "paused", the download is not started. To change status
  86. to "waiting", use aria2.unpause method. This method returns GID of
  87. paused download. aria2.unpause changes the status of the download
  88. denoted by gid from "paused" to "waiting". This makes the download
  89. eligible to restart. gid is of type string. This method returns
  90. GID of unpaused download.
  91. * doc/aria2c.1.txt
  92. * src/DownloadContext.cc
  93. * src/FileEntry.cc
  94. * src/OptionHandlerFactory.cc
  95. * src/RequestGroup.cc
  96. * src/RequestGroup.h
  97. * src/RequestGroupMan.cc
  98. * src/XmlRpcMethodFactory.cc
  99. * src/XmlRpcMethodImpl.cc
  100. * src/XmlRpcMethodImpl.h
  101. * src/prefs.cc
  102. * src/prefs.h
  103. * src/usage_text.h
  104. 2010-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  105. Added --save-session=FILE option. This option saves
  106. error/unfinished downloads to FILE on exit. You can pass this
  107. output file to aria2c with -i option on restart. Please note that
  108. downloads added by aria2.addTorrent and aria2.addMetalink XML-RPC
  109. method are not saved.
  110. * src/BtPostDownloadHandler.cc
  111. * src/DownloadResult.h
  112. * src/Makefile.am
  113. * src/MetadataInfo.cc
  114. * src/MetadataInfo.h
  115. * src/Metalink2RequestGroup.cc
  116. * src/MetalinkPostDownloadHandler.cc
  117. * src/MultiUrlRequestInfo.cc
  118. * src/OptionHandlerFactory.cc
  119. * src/RequestGroup.cc
  120. * src/RequestGroup.h
  121. * src/SessionSerializer.cc
  122. * src/SessionSerializer.h
  123. * src/UTMetadataPostDownloadHandler.cc
  124. * src/download_helper.cc
  125. * src/download_helper.h
  126. * src/prefs.cc
  127. * src/prefs.h
  128. * src/usage_text.h
  129. * test/Makefile.am
  130. * test/SessionSerializerTest.cc
  131. * test/XmlRpcMethodTest.cc
  132. * test/serialize_session.meta4
  133. 2010-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  134. Fixed the bug that FTP data connection is not established via
  135. proxy when --ftp-proxy is defined and --ftp-pasv=true and
  136. --proxy-method=tunnel.
  137. * src/AbstractCommand.cc
  138. * src/AbstractCommand.h
  139. * src/FtpNegotiationCommand.cc
  140. * src/FtpNegotiationCommand.h
  141. * src/InitiateConnectionCommand.cc
  142. 2010-04-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  143. Updated po templates.
  144. * po/aria2.pot
  145. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  146. Bump up version number to 1.9.1
  147. * configure.ac
  148. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  149. Added shutdown and forceShutdown to aria2rpc
  150. * doc/xmlrpc/aria2rpc
  151. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  152. Changed error message.
  153. * src/XmlRpcMethod.cc
  154. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  155. Added bt-tracker-timeout, bt-tracker-connect-timeout,
  156. always-resume, max-resume-failure-tries and http-accept-gzip to -i
  157. list options.
  158. * doc/aria2c.1.txt
  159. * doc/xmlrpc/aria2rpc
  160. * src/download_helper.cc
  161. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  162. Fixed the bug that web-seed URI is not percent-encoded.
  163. * src/a2functional.h
  164. * src/bittorrent_helper.cc
  165. * test/BittorrentHelperTest.cc
  166. * test/url-list-multiFile.torrent
  167. * test/url-list-singleFileEndsWithSlash.torrent
  168. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  169. Added aria2.shutdown and aria2.forceShutdown XML-RPC method.
  170. These methods, as their name implies, shutdown aria2. These
  171. methods are useful for Windows because it lacks signal mechanism.
  172. * doc/aria2c.1.txt
  173. * src/TimedHaltCommand.cc
  174. * src/XmlRpcMethodFactory.cc
  175. * src/XmlRpcMethodImpl.cc
  176. * src/XmlRpcMethodImpl.h
  177. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  178. Added forceHalt argument to TimedHaltCommand.
  179. Added requestForceHalt() to DownloadEngine.
  180. * src/DownloadEngine.cc
  181. * src/DownloadEngine.h
  182. * src/TimedHaltCommand.cc
  183. * src/TimedHaltCommand.h
  184. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  185. Possible fix for chunked encoding with Content-Length.
  186. * src/HttpResponseCommand.cc
  187. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  188. Don't send "Accept: default, gzip" by default. This is because
  189. some server responds with "Content-Encoding: gzip" for files which
  190. itself is gzipped file and aria2 inflates them. This is a problem
  191. if user don't want to inflate the file. Apparently this is server
  192. configuration error, but I cannot do anything about this. So turn
  193. this off. Added --http-accept-gzip option. If true is given to
  194. this option, aria2 sends 'Accept: deflate, gzip' request header
  195. and inflates response if remote server responds with
  196. 'Content-Encoding: gzip' or 'Content-Encoding: deflate'. This
  197. indicates we removed extension tgz hack in order not to inflate
  198. files with tgz extensions.
  199. * doc/aria2c.1.txt
  200. * src/HttpRequest.cc
  201. * src/HttpRequest.h
  202. * src/HttpRequestCommand.cc
  203. * src/HttpResponseCommand.cc
  204. * src/OptionHandlerFactory.cc
  205. * src/prefs.cc
  206. * src/prefs.h
  207. * src/usage_text.h
  208. * test/HttpRequestTest.cc
  209. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  210. Made aria2 not send
  211. "application/metalink4+xml,application/metalink+xml" in Accept
  212. header for web-seeding URIs and tracker request.
  213. * src/Metalink2RequestGroup.cc
  214. * src/TrackerWatcherCommand.cc
  215. * src/download_helper.cc
  216. * src/util.cc
  217. * src/util.h
  218. 2010-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  219. Added download_helper.{cc,h} to SRCS
  220. * src/Makefile.am
  221. * test/Makefile.am
  222. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  223. Added --dht-message-timeout option.
  224. * doc/aria2c.1.txt
  225. * src/DHTConstants.h
  226. * src/DHTMessageDispatcherImpl.cc
  227. * src/DHTMessageDispatcherImpl.h
  228. * src/DHTMessageTracker.cc
  229. * src/DHTMessageTracker.h
  230. * src/DHTReplaceNodeTask.h
  231. * src/DHTSetup.cc
  232. * src/DHTTaskFactoryImpl.cc
  233. * src/DHTTaskFactoryImpl.h
  234. * src/OptionHandlerFactory.cc
  235. * src/prefs.cc
  236. * src/prefs.h
  237. * src/usage_text.h
  238. * test/DHTMessageTrackerTest.cc
  239. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  240. Added --bt-tracker-connect-timeout and --bt-tracker-timeout
  241. option.
  242. * doc/aria2c.1.txt
  243. * src/OptionHandlerFactory.cc
  244. * src/TrackerWatcherCommand.cc
  245. * src/prefs.cc
  246. * src/prefs.h
  247. * src/usage_text.h
  248. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  249. Documented that specifying --seed-time=0 disables seeding after
  250. download completed.
  251. * doc/aria2c.1.txt
  252. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  253. Code cleanup
  254. * src/BtSetup.cc
  255. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  256. Drop connection if same Peer ID has been already seen.
  257. * src/DefaultBtInteractive.cc
  258. 2010-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  259. Fixed the bug that waiting download unintentionally starts when
  260. URIs are added to it using aria2.changeUri XML-RPC method. This
  261. also fixes the bug that causes segmentation fault when adding URIs
  262. to waiting download, which is a regression introduced by the
  263. previous change made to src/XmlRpcMethodImpl.cc
  264. * src/XmlRpcMethodImpl.cc
  265. 2010-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  266. Fixed compile error with g++-4.4 on FreeBSD.
  267. * src/util.h
  268. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  269. Fixed the bug that added URI using aria2.changeUri XML-RPC method
  270. is not used immediately if there is no URIs remaining before
  271. calling aria2.changeUri and the number of connection is less than
  272. the value in -s(or -C for Metalink downloads).
  273. * src/XmlRpcMethodImpl.cc
  274. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  275. Documented --always-resume and --max-resume-failure-tries option
  276. and exit status 8 in man page. Fixed typo.
  277. * doc/aria2c.1.txt
  278. * src/OptionHandlerFactory.cc
  279. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  280. Added --always-resume and --max-resume-failure-tries option. If
  281. --always-resume=false is given, when all given URIs does not
  282. support resume or aria2 encounters N URIs which does not support
  283. resume
  284. (N is the value specified using --max-resume-failure-tries
  285. option), aria2 download file from scratch. The default behavior
  286. is --always-resume=true, which means if all URIs do not support
  287. resume, download fails. I think this is OK because user normally
  288. don't like to see that partially downloaded file is
  289. overwritten(this is particularly true if file size is big). This
  290. option is useful when aria2 is used as download backend and
  291. graceful falling back to overwritten behavior is preferable.
  292. Added exit status value 8, which means download failed because
  293. server did not support resume.
  294. * src/AbstractCommand.cc
  295. * src/DefaultPieceStorage.cc
  296. * src/DownloadCommand.cc
  297. * src/DownloadResultCode.h
  298. * src/FileEntry.h
  299. * src/FtpNegotiationCommand.cc
  300. * src/HttpResponse.cc
  301. * src/HttpResponseCommand.cc
  302. * src/OptionHandlerFactory.cc
  303. * src/RequestGroup.cc
  304. * src/RequestGroup.h
  305. * src/SegmentMan.cc
  306. * src/SegmentMan.h
  307. * src/prefs.cc
  308. * src/prefs.h
  309. * src/usage_text.h
  310. * test/DefaultPieceStorageTest.cc
  311. * test/SegmentManTest.cc
  312. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  313. Added --remove-control-file option to -i list options.
  314. * doc/aria2c.1.txt
  315. * doc/xmlrpc/aria2rpc
  316. * src/download_helper.cc
  317. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  318. Added --remove-control-file option. This option removes control
  319. file(*.aria2 file) before download. Using with
  320. --allow-overwrite=true, download always starts from scratch. This
  321. will be useful for users behind proxy server which disables
  322. resume. For such proxy user, -C1 is also recommended for Metalink
  323. downloads to avoid establishing unnecessary connections.
  324. * doc/aria2c.1.txt
  325. * src/OptionHandlerFactory.cc
  326. * src/RequestGroup.cc
  327. * src/prefs.cc
  328. * src/prefs.h
  329. * src/usage_text.h
  330. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  331. Removed arrayLength. Defined A2_ARRAY_LEN as macro to calculate
  332. size of array at compile time.
  333. * src/array_fun.h
  334. * test/BitfieldManTest.cc
  335. * test/BtPortMessageTest.cc
  336. * test/DHTRoutingTableDeserializerTest.cc
  337. * test/DHTRoutingTableSerializerTest.cc
  338. * test/DownloadHelperTest.cc
  339. * test/LongestSequencePieceSelectorTest.cc
  340. * test/MultiDiskAdaptorTest.cc
  341. * test/OptionParserTest.cc
  342. * test/PriorityPieceSelectorTest.cc
  343. * test/array_funTest.cc
  344. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  345. Added vbegin() and vend() for fixed sized array.
  346. * src/DownloadHandlerConstants.cc
  347. * src/FeatureConfig.cc
  348. * src/OptionHandlerFactory.cc
  349. * src/ServerStat.cc
  350. * src/TimeA2.cc
  351. * src/XmlRpcMethod.cc
  352. * src/array_fun.h
  353. * src/download_helper.cc
  354. * src/messageDigest.cc
  355. * src/util.cc
  356. * test/BittorrentHelperTest.cc
  357. * test/DHTRoutingTableDeserializerTest.cc
  358. * test/DHTRoutingTableSerializerTest.cc
  359. * test/DefaultBtAnnounceTest.cc
  360. * test/DefaultBtProgressInfoFileTest.cc
  361. * test/DownloadContextTest.cc
  362. * test/DownloadHelperTest.cc
  363. * test/FeatureConfigTest.cc
  364. * test/FeedbackURISelectorTest.cc
  365. * test/HttpRequestTest.cc
  366. * test/InOrderURISelectorTest.cc
  367. * test/MSEHandshakeTest.cc
  368. * test/MultiDiskAdaptorTest.cc
  369. * test/MultiFileAllocationIteratorTest.cc
  370. * test/PriorityPieceSelectorTest.cc
  371. * test/RequestGroupManTest.cc
  372. * test/UtilTest.cc
  373. * test/XmlRpcMethodTest.cc
  374. * test/a2algoTest.cc
  375. * test/array_funTest.cc
  376. 2010-03-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  377. Simplified code using lastByteMask
  378. * src/BitfieldMan.cc
  379. * src/PieceStatMan.cc
  380. 2010-03-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  381. Rewritten lastByteMask
  382. * src/bitfield.h
  383. 2010-03-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  384. Redefined the maximum length of buffer used for HTTP header.
  385. * src/HttpHeaderProcessor.cc
  386. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  387. Code cleanup
  388. * src/SleepCommand.cc
  389. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  390. Do exact match if IP address is specified in --no-proxy.
  391. * src/AbstractCommand.cc
  392. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  393. Fixed the bug that socket is added to EventPoll object twice. This
  394. is because derived class FtpFinishDownloadCommand adds socket to
  395. EventPoll object while base class AbstractCommand does that
  396. already.
  397. * src/FtpFinishDownloadCommand.cc
  398. * src/FtpFinishDownloadCommand.h
  399. 2010-03-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  400. Defined gid_t as int64_t.
  401. * src/BtDependency.cc
  402. * src/BtStopDownloadCommand.cc
  403. * src/FtpNegotiationCommand.cc
  404. * src/HttpResponseCommand.cc
  405. * src/RequestGroup.cc
  406. * src/RequestGroup.h
  407. * src/RequestGroupMan.cc
  408. * src/TrackerWatcherCommand.cc
  409. * src/XmlRpcMethodImpl.cc
  410. * src/message.h
  411. * test/XmlRpcMethodTest.cc
  412. 2010-03-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  413. Defined cuid_t as int64_t. Removed texts containing "CUID#%D" from
  414. translatable texts because it is used in log and debugging
  415. purpose.
  416. * src/AbstractCommand.cc
  417. * src/ActivePeerConnectionCommand.cc
  418. * src/BtPieceMessage.cc
  419. * src/CUIDCounter.h
  420. * src/CheckIntegrityCommand.cc
  421. * src/CheckIntegrityDispatcherCommand.cc
  422. * src/Command.h
  423. * src/CreateRequestCommand.cc
  424. * src/DHTEntryPointNameResolveCommand.cc
  425. * src/DefaultBtInteractive.cc
  426. * src/DefaultBtMessageDispatcher.cc
  427. * src/DownloadCommand.cc
  428. * src/FileAllocationCommand.cc
  429. * src/FileAllocationDispatcherCommand.cc
  430. * src/FtpConnection.cc
  431. * src/FtpInitiateConnectionCommand.cc
  432. * src/FtpNegotiationCommand.cc
  433. * src/HttpConnection.cc
  434. * src/HttpInitiateConnectionCommand.cc
  435. * src/HttpListenCommand.cc
  436. * src/HttpResponse.cc
  437. * src/HttpServerBodyCommand.cc
  438. * src/HttpServerCommand.cc
  439. * src/HttpServerResponseCommand.cc
  440. * src/InitiateConnectionCommand.cc
  441. * src/InitiatorMSEHandshakeCommand.cc
  442. * src/MSEHandshake.cc
  443. * src/PeerAbstractCommand.cc
  444. * src/PeerConnection.cc
  445. * src/PeerInitiateConnectionCommand.cc
  446. * src/PeerInteractionCommand.cc
  447. * src/PeerListenCommand.cc
  448. * src/PeerReceiveHandshakeCommand.cc
  449. * src/SegmentMan.cc
  450. * src/SimpleBtMessage.cc
  451. * src/TrackerWatcherCommand.cc
  452. * src/message.h
  453. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  454. Use gid_t type for gid.
  455. * src/BtRegistry.cc
  456. * src/BtRegistry.h
  457. * src/DownloadResult.h
  458. * src/RequestGroup.cc
  459. * src/RequestGroup.h
  460. * src/RequestGroupMan.cc
  461. * src/RequestGroupMan.h
  462. * src/XmlRpcMethodImpl.cc
  463. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  464. Use cuid_t type for cuid.
  465. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  466. Added v key in DHT message. aria2's DHT version is independent of
  467. the package version and we defined it as 1 at the moment. It is
  468. defined as DHT_VERSION in src/DHTConstants.h. aria2's DHT version
  469. scheme is "A2"+2bytes DHT version number in network byte order.
  470. * src/DHTAbstractMessage.cc
  471. * src/DHTConstants.h
  472. * src/DHTMessage.cc
  473. * src/DHTMessage.h
  474. * src/DHTMessageFactoryImpl.cc
  475. * src/DHTQueryMessage.cc
  476. * src/DHTResponseMessage.cc
  477. * src/util.h
  478. * test/DHTAnnouncePeerMessageTest.cc
  479. * test/DHTAnnouncePeerReplyMessageTest.cc
  480. * test/DHTFindNodeMessageTest.cc
  481. * test/DHTFindNodeReplyMessageTest.cc
  482. * test/DHTGetPeersMessageTest.cc
  483. * test/DHTGetPeersReplyMessageTest.cc
  484. * test/DHTPingMessageTest.cc
  485. * test/DHTPingReplyMessageTest.cc
  486. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  487. Fixed the bug that value of numSeeders in aria2.tellStatus XML-RPC
  488. method response is integer, while manual says it is string. When
  489. peer's port is not listening port, set '0' to port in
  490. aria2.getPeers response.
  491. * src/XmlRpcMethodImpl.cc
  492. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  493. Lines starting "#" in -i list are treated as comments.
  494. Example:
  495. # this is comment
  496. http://example.org/file
  497. http://example.org/file2
  498. dir=/tmp
  499. # another comment
  500. out=myfile
  501. * doc/aria2c.1.txt
  502. * src/UriListParser.cc
  503. * test/filelist1.txt
  504. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  505. Accept IPv4 network address with CIDR block in --no-proxy option
  506. and no_proxy environment variable. Current implementation does
  507. not resolve hostname in URI to compare network address. So it is
  508. only effecive if URI has numeric IP addresses.
  509. * doc/aria2c.1.txt
  510. * src/AbstractCommand.cc
  511. * src/OptionHandlerFactory.cc
  512. * src/bitfield.h
  513. * src/usage_text.h
  514. * src/util.cc
  515. * src/util.h
  516. * test/UtilTest.cc
  517. * test/bitfieldTest.cc
  518. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  519. Reduced interval for metadatagetmode to quickly gather metadata.
  520. * src/BtSetup.cc
  521. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  522. Release 1.9.0
  523. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  524. Updated po templates.
  525. * po/aria2.pot
  526. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  527. Updated doc.
  528. * doc/aria2c.1.txt
  529. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  530. Documented about Metalink4 and LPD in README
  531. * RADME
  532. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  533. Few adjustment for timeouts in DHT. DHT message timeout is changed
  534. from 15 to 10. The interval of PeerLookup is first 5 seconds and
  535. it adds another 5 seconds in each retry.
  536. * src/DHTConstants.h
  537. * src/DHTGetPeersCommand.cc
  538. * src/DHTGetPeersCommand.h
  539. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  540. Changed log level from error to info for DHT message send error.
  541. * src/DHTMessageDispatcherImpl.cc
  542. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  543. Inspect all xt in magnet to find urn:btih.
  544. * src/bittorrent_helper.cc
  545. * test/BittorrentHelperTest.cc
  546. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  547. Use global option for DHTSetup.
  548. * src/DHTSetup.cc
  549. * src/DHTSetup.h
  550. * src/RequestGroup.cc
  551. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  552. Added bt-enable-lpt, reuse-uri
  553. and {http,https,ftp,all}-proxy-{user,passwd} options to -i list
  554. options.
  555. * doc/aria2c.1.txt
  556. * doc/xmlrpc/aria2rpc
  557. * src/download_helper.cc
  558. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  559. Use global option for PREF_LISTEN_PORT and PREF_BT_LPD_INTERFACE.
  560. * src/BtSetup.cc
  561. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  562. Resurrected --http-proxy-user and --http-proxy-passwd option.
  563. Added --https-proxy-user, --https-proxy-passwd, --ftp-proxy-user,
  564. --ftp-proxy-passwd, --all-proxy-user, --all-proxy-passwd option.
  565. * doc/aria2c.1.txt
  566. * src/OptionHandlerFactory.cc
  567. * src/OptionHandlerImpl.h
  568. * src/prefs.cc
  569. * src/prefs.h
  570. * src/usage_text.h
  571. * test/OptionHandlerTest.cc
  572. 2010-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  573. Updated Russian and Simplified Chinese translation. Thanks to all
  574. translators.
  575. * po/ru.po
  576. * po/zh_CN.po
  577. 2010-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  578. Updated po templates.
  579. * po/aria2.pot
  580. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  581. For LPD sockets, bind IN_ADDRANY because binding multicast address
  582. fails under Windows.
  583. * src/LpdMessageReceiver.cc
  584. * test/LpdMessageDispatcherTest.cc
  585. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  586. Fixed the bug that error message is not propagated to Exception.
  587. * src/SocketCore.cc
  588. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  589. Documented --bt-lpd-interface option in man page.
  590. * doc/aria2c.1.txt
  591. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  592. Bump up version number to 1.9.0
  593. * configure.ac
  594. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  595. Fixed the bug that FillRequestGroupCommand is not invoked when
  596. RequestGroupMan::createInitialCommand() creates no Command object.
  597. * src/FillRequestGroupCommand.cc
  598. * src/RequestGroupMan.cc
  599. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  600. Added debug logs.
  601. * src/FileEntry.cc
  602. * src/SegmentMan.cc
  603. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  604. Fixed unit test error with mingw32 build.
  605. * test/LpdMessageReceiverTest.cc
  606. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  607. Updated automake-1.11.1
  608. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  609. Fixed compile error and unit test error without openssl and
  610. gnutls.
  611. * src/MetalinkParserController.cc
  612. * test/MetalinkProcessorTest.cc
  613. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  614. Fixed unitest fails if openssl doesn't support sha-256.
  615. * src/MetalinkParserStateV4Impl.cc
  616. * test/MetalinkProcessorTest.cc
  617. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  618. Wait until message arrives(again)
  619. * test/LpdMessageReceiverTest.cc
  620. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  621. Added missing wallclock.h to SRCS.
  622. * src/Makefile.am
  623. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  624. Fixed compile error with --disable-bittorrent
  625. * test/Metalink2RequestGroupTest.cc
  626. * test/MetalinkParserControllerTest.cc
  627. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  628. Added --reuse-uri option. This option has existed quite long, but
  629. been hidden.
  630. * doc/aria2c.1.txt
  631. * src/OptionHandlerFactory.cc
  632. * src/usage_text.h
  633. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  634. Ignore filename parameter if it contains directory traversal
  635. directives.
  636. * src/util.cc
  637. * test/UtilTest.cc
  638. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  639. urldecode -> percentDecode
  640. * src/FtpConnection.cc
  641. * src/FtpNegotiationCommand.cc
  642. * src/HttpResponse.cc
  643. * src/Request.cc
  644. * src/magnet.cc
  645. * src/util.cc
  646. * src/util.h
  647. * test/UtilTest.cc
  648. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  649. urlencode -> percentEncode,
  650. torrentUrlencode -> torrentPercentEncode
  651. * src/BtHandshakeMessage.cc
  652. * src/BtHandshakeMessageValidator.h
  653. * src/DHTMessageFactoryImpl.cc
  654. * src/DefaultBtAnnounce.cc
  655. * src/HandshakeExtensionMessage.cc
  656. * src/HttpRequest.cc
  657. * src/XmlRpcMethodImpl.cc
  658. * src/bittorrent_helper.cc
  659. * src/util.cc
  660. * src/util.h
  661. * test/DHTAnnouncePeerMessageTest.cc
  662. * test/DHTGetPeersMessageTest.cc
  663. * test/DHTGetPeersReplyMessageTest.cc
  664. * test/UTPexExtensionMessageTest.cc
  665. * test/UtilTest.cc
  666. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  667. Fixed the bug that filename is percent encoded where it must be
  668. percent decoded in sendMdtm().
  669. * src/FtpConnection.cc
  670. * test/FtpConnectionTest.cc
  671. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  672. url -> uri in Request class.
  673. * src/AbstractCommand.cc
  674. * src/AdaptiveURISelector.cc
  675. * src/DefaultBtAnnounce.cc
  676. * src/FeedbackURISelector.cc
  677. * src/FileEntry.cc
  678. * src/FileEntry.h
  679. * src/HttpRequest.h
  680. * src/HttpResponse.cc
  681. * src/InitiateConnectionCommandFactory.cc
  682. * src/Metalink2RequestGroup.cc
  683. * src/OptionHandlerImpl.h
  684. * src/ProtocolDetector.cc
  685. * src/Request.cc
  686. * src/Request.h
  687. * src/XmlRpcMethodImpl.cc
  688. * test/AuthConfigFactoryTest.cc
  689. * test/FtpConnectionTest.cc
  690. * test/HttpRequestTest.cc
  691. * test/HttpResponseTest.cc
  692. * test/RequestTest.cc
  693. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  694. Added getServers XML-RPC method.
  695. * doc/aria2c.1.txt
  696. * src/FileEntry.h
  697. * src/XmlRpcMethodFactory.cc
  698. * src/XmlRpcMethodImpl.cc
  699. * src/XmlRpcMethodImpl.h
  700. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  701. Pool request when download finished.
  702. * src/DownloadCommand.cc
  703. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  704. Made 'fileIndex' parameter in aria2.changeUri XML-RPC method
  705. 1-based.
  706. * doc/aria2c.1.txt
  707. * src/XmlRpcMethodImpl.cc
  708. * test/XmlRpcMethodTest.cc
  709. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  710. Call RequestGroupMan::requestQueueCheck() when
  711. max-concurrent-downloads option is changed or new downloads are
  712. added/inserted into reserved list.
  713. * src/RequestGroupMan.cc
  714. * src/XmlRpcMethodImpl.cc
  715. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  716. Added aria2.forceRemove XML-RPC method.
  717. * doc/aria2c.1.txt
  718. * src/XmlRpcMethodFactory.cc
  719. * src/XmlRpcMethodImpl.cc
  720. * src/XmlRpcMethodImpl.h
  721. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  722. Added debug log.
  723. * src/AbstractCommand.cc
  724. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  725. Create CreateRequestCommand to the number of -s/-C when URIs are
  726. added by XML-RPC.
  727. * src/RequestGroup.cc
  728. * src/RequestGroup.h
  729. * src/XmlRpcMethodImpl.cc
  730. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  731. Added 'status' key to the response of getUri XML-RPC method.
  732. * doc/aria2c.1.txt
  733. * src/XmlRpcMethodImpl.cc
  734. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  735. Replaced Time::reset() call with assigning of global::wallclock.
  736. * src/BtLeecherStateChoke.cc
  737. * src/BtSeederStateChoke.cc
  738. * src/PeerSessionResource.cc
  739. * src/RequestSlot.cc
  740. * src/ServerStat.cc
  741. * src/SpeedCalc.cc
  742. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  743. Added changeUri XML-RPC method. This method removes/adds URIs
  744. dynamically.
  745. * doc/aria2c.1.txt
  746. * src/AbstractCommand.cc
  747. * src/DownloadContext.cc
  748. * src/DownloadContext.h
  749. * src/FileEntry.cc
  750. * src/FileEntry.h
  751. * src/Request.cc
  752. * src/Request.h
  753. * src/RequestGroup.cc
  754. * src/RequestGroupMan.cc
  755. * src/XmlRpcMethodFactory.cc
  756. * src/XmlRpcMethodImpl.cc
  757. * src/XmlRpcMethodImpl.h
  758. * test/FileEntryTest.cc
  759. * test/XmlRpcMethodTest.cc
  760. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  761. Rewritten copy ctor of RequestSlot to use initialization list.
  762. * src/RequestSlot.h
  763. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  764. Added Time global::wallclock to cache "current time" to reduce the
  765. call gettimeofday(). Global variables are now in namespace global.
  766. * src/AbstractCommand.cc
  767. * src/ActivePeerConnectionCommand.cc
  768. * src/AdaptiveURISelector.cc
  769. * src/BtLeecherStateChoke.cc
  770. * src/BtLeecherStateChoke.h
  771. * src/BtSeederStateChoke.cc
  772. * src/BtSeederStateChoke.h
  773. * src/BtStopDownloadCommand.cc
  774. * src/ConsoleStatCalc.cc
  775. * src/DHTBucket.cc
  776. * src/DHTGetPeersCommand.cc
  777. * src/DHTMessageTrackerEntry.cc
  778. * src/DHTNode.cc
  779. * src/DHTPeerAnnounceEntry.cc
  780. * src/DHTPeerAnnounceStorage.cc
  781. * src/DHTSetup.cc
  782. * src/DefaultBtAnnounce.cc
  783. * src/DefaultBtInteractive.cc
  784. * src/DefaultBtMessageDispatcher.cc
  785. * src/DefaultPeerStorage.cc
  786. * src/DefaultPieceStorage.cc
  787. * src/DownloadCommand.cc
  788. * src/DownloadEngine.cc
  789. * src/FileEntry.cc
  790. * src/HttpServerBodyCommand.cc
  791. * src/HttpServerCommand.cc
  792. * src/HttpServerResponseCommand.cc
  793. * src/LpdMessageDispatcher.cc
  794. * src/MultiUrlRequestInfo.cc
  795. * src/Peer.cc
  796. * src/Peer.h
  797. * src/PeerAbstractCommand.cc
  798. * src/PeerStat.h
  799. * src/RequestSlot.cc
  800. * src/RequestSlot.h
  801. * src/SegmentMan.cc
  802. * src/ServerStatMan.cc
  803. * src/SleepCommand.cc
  804. * src/SpeedCalc.cc
  805. * src/SpeedCalc.h
  806. * src/TimeA2.cc
  807. * src/TimeA2.h
  808. * src/TimeBasedCommand.cc
  809. * src/TimeSeedCriteria.h
  810. * src/UTMetadataRequestTracker.h
  811. * src/UTPexExtensionMessage.cc
  812. * src/wallclock.h
  813. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  814. Fixed the bug that util::itos(INT64_MIN) fails.
  815. * src/util.cc
  816. * src/util.h
  817. * test/UtilTest.cc
  818. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  819. Fixed memory leak in SocketBuffer when _bufq is not empty when
  820. SocketBuffer is deleted. Added BufEntry constructor and deleted
  821. static factory functions.
  822. * src/SocketBuffer.cc
  823. * src/SocketBuffer.h
  824. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  825. Only execute RequestGroupMan::fillRequestGroupFromReserver() when
  826. queue maintenance is requested by RequestGroup to avoid to call
  827. the function unnecessarily.
  828. * src/FillRequestGroupCommand.cc
  829. * src/RequestGroup.cc
  830. * src/RequestGroup.h
  831. * src/RequestGroupMan.cc
  832. * src/RequestGroupMan.h
  833. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  834. Don't use hash for Peer::id. Simple concatenation of ip address
  835. and port is enough.
  836. * src/Peer.cc
  837. * test/PeerTest.cc
  838. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  839. Enclosed log of DHTMessage::toString() with Logger::info().
  840. * src/DHTMessageDispatcherImpl.cc
  841. * src/DHTMessageReceiver.cc
  842. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  843. Rewritten util::toHex().
  844. * src/util.cc
  845. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  846. Removed SocketBuffer::feedAndSend(). Renamed
  847. SocketBuffer::feedSendBuffer() as SocketBuffer::pushStr().
  848. * src/FtpConnection.cc
  849. * src/HttpConnection.cc
  850. * src/HttpServer.cc
  851. * src/MSEHandshake.cc
  852. * src/PeerConnection.cc
  853. * src/SocketBuffer.cc
  854. * src/SocketBuffer.h
  855. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  856. Removed unused PeerConnection::sendMessage(). Updated doc.
  857. * src/PeerConnection.cc
  858. * src/PeerConnection.h
  859. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  860. Reduced copying/std::string instantiation in sending/receiving
  861. BitTorrent messages.
  862. * src/BtBitfieldMessage.cc
  863. * src/BtBitfieldMessage.h
  864. * src/BtExtendedMessage.cc
  865. * src/BtExtendedMessage.h
  866. * src/BtHandshakeMessage.cc
  867. * src/BtHandshakeMessage.h
  868. * src/BtKeepAliveMessage.cc
  869. * src/BtKeepAliveMessage.h
  870. * src/BtPieceMessage.cc
  871. * src/BtPieceMessage.h
  872. * src/BtPortMessage.cc
  873. * src/BtPortMessage.h
  874. * src/BtUnchokeMessage.h
  875. * src/DefaultBtMessageReceiver.cc
  876. * src/IndexBtMessage.cc
  877. * src/IndexBtMessage.h
  878. * src/PeerConnection.cc
  879. * src/PeerConnection.h
  880. * src/RangeBtMessage.cc
  881. * src/RangeBtMessage.h
  882. * src/SimpleBtMessage.cc
  883. * src/SimpleBtMessage.h
  884. * src/SocketBuffer.cc
  885. * src/SocketBuffer.h
  886. * src/ZeroBtMessage.cc
  887. * src/ZeroBtMessage.h
  888. * test/BtAllowedFastMessageTest.cc
  889. * test/BtBitfieldMessageTest.cc
  890. * test/BtCancelMessageTest.cc
  891. * test/BtChokeMessageTest.cc
  892. * test/BtExtendedMessageTest.cc
  893. * test/BtHandshakeMessageTest.cc
  894. * test/BtHaveAllMessageTest.cc
  895. * test/BtHaveMessageTest.cc
  896. * test/BtHaveNoneMessageTest.cc
  897. * test/BtInterestedMessageTest.cc
  898. * test/BtKeepAliveMessageTest.cc
  899. * test/BtNotInterestedMessageTest.cc
  900. * test/BtPieceMessageTest.cc
  901. * test/BtPortMessageTest.cc
  902. * test/BtRejectMessageTest.cc
  903. * test/BtRequestMessageTest.cc
  904. * test/BtSuggestPieceMessageTest.cc
  905. * test/BtUnchokeMessageTest.cc
  906. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  907. Rewritten SocketBuffer. Old implementation uses single std::string
  908. to store data and erase sent data, which is costly. New
  909. implementation uses deque to hold each data to avoid to mutate
  910. string.
  911. * src/SocketBuffer.cc
  912. * src/SocketBuffer.h
  913. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  914. Removed unused FileEntry::extracted
  915. * src/FileEntry.cc
  916. * src/FileEntry.h
  917. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  918. Wait until data arrives.
  919. * test/LpdMessageReceiverTest.cc
  920. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  921. In Metalink4, if size element contains invalid size, discard whole
  922. document. Added strict hash value check for metalink3/4.
  923. * src/MetalinkParserController.cc
  924. * src/MetalinkParserStateMachine.cc
  925. * src/MetalinkParserStateMachine.h
  926. * src/MetalinkParserStateV3Impl.cc
  927. * src/MetalinkParserStateV4Impl.cc
  928. * src/util.cc
  929. * src/util.h
  930. * test/MetalinkParserControllerTest.cc
  931. * test/MetalinkProcessorTest.cc
  932. * test/metalink4.xml
  933. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  934. Added strict attribute validation for metalink4. When
  935. specification violation is found, discard the whole document.
  936. * src/ExpatMetalinkProcessor.cc
  937. * src/MetalinkParserStateMachine.cc
  938. * src/MetalinkParserStateMachine.h
  939. * src/MetalinkParserStateV4Impl.cc
  940. * src/XML2SAXMetalinkProcessor.cc
  941. * test/Makefile.am
  942. * test/MetalinkProcessorTest.cc
  943. * test/metalink4-attrs.xml: Removed
  944. * test/metalink4-dirtraversal.xml: Removed
  945. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  946. Added test for Metaurl transaction.
  947. * src/MetalinkParserController.cc
  948. * test/MetalinkParserControllerTest.cc
  949. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  950. Avoid costly BtMessage::toString() if info level log is not
  951. required.
  952. * src/DefaultBtInteractive.cc
  953. * src/Logger.h
  954. * src/SimpleBtMessage.cc
  955. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  956. Reserved vector elements based on profiler results.
  957. * src/DefaultBtInteractive.cc
  958. * src/DefaultBtProgressInfoFile.cc
  959. 2010-03-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  960. Avoid to calculate end() iterator in each loop. std::deque is
  961. particularly slow. Make sure that recalculate end iterator if
  962. element is erased during loop.
  963. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  964. Use vector instead of deque for containers which is used for
  965. mostly read-only purpose.
  966. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  967. Fixed typo
  968. * test/Makefile.am
  969. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  970. Added metalink4-groupbymetaurl.xml to EXTRA_DIST
  971. * test/Makefile.am
  972. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  973. Small optimization: In updateTransferStatFor(), don't search peer
  974. ID twice.
  975. * src/DefaultPeerStorage.cc
  976. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  977. Use vector instead of deque for MetalinkEntry and MetalinkResource
  978. objects.
  979. * src/Metalink2RequestGroup.cc
  980. * src/Metalink2RequestGroup.h
  981. * src/MetalinkEntry.cc
  982. * src/MetalinkEntry.h
  983. * src/MetalinkHelper.cc
  984. * src/MetalinkHelper.h
  985. * src/Metalinker.cc
  986. * src/Metalinker.h
  987. * src/main.cc
  988. * test/MetalinkEntryTest.cc
  989. * test/MetalinkHelperTest.cc
  990. * test/MetalinkProcessorTest.cc
  991. * test/MetalinkerTest.cc
  992. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  993. Fixed the bug that grouped FileEntry objects are not used but
  994. instead all FileEntry objects are used for each metaurl group.
  995. * src/Metalink2RequestGroup.cc
  996. * test/Metalink2RequestGroupTest.cc
  997. * test/metalink4-groupbymetaurl.xml
  998. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  999. Use vector instead of deque for ChunkChecksum.
  1000. * src/ChunkChecksum.h
  1001. * src/MetalinkParserController.cc
  1002. * src/MetalinkParserController.h
  1003. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1004. Added MessageDigest::isStronger(). Now aria2 selects stronger hash
  1005. algorithm in Metalink properly
  1006. * src/MetalinkParserController.cc
  1007. * src/MetalinkParserController.h
  1008. * src/messageDigest.cc
  1009. * src/messageDigest.h
  1010. * test/MetalinkProcessorTest.cc
  1011. * test/metalink4.xml
  1012. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1013. Replaced null or control characters in file path with '_'. For
  1014. MinGW32 build, additional characters which is not allowed in
  1015. Windows kernel are also replaced. util::detectDirTraversal() now
  1016. returns true if given string contains null or control characters.
  1017. * src/DownloadContext.cc
  1018. * src/DownloadContext.h
  1019. * src/Metalink2RequestGroup.cc
  1020. * src/MetalinkParserController.cc
  1021. * src/bittorrent_helper.cc
  1022. * src/util.cc
  1023. * src/util.h
  1024. * test/UtilTest.cc
  1025. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1026. Discard metalink:file if its name attribute is empty string.
  1027. Removed FileEntry instantiation in
  1028. MetalinkParserController::setFileLengthOfEntry()
  1029. * src/MetalinkParserController.cc
  1030. * src/MetalinkParserStateV3Impl.cc
  1031. * src/MetalinkParserStateV4Impl.cc
  1032. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1033. Discard torrent file if path data in it contains directory
  1034. traversal directives. Discard metalink:file element in Metalink3
  1035. format if its name attribute contains directory traversal
  1036. directives. Ignore name attribute of metalink:signature element
  1037. in Metalink3 format if it contains directory traversal directives.
  1038. * src/MetalinkParserStateV3Impl.cc
  1039. * src/bittorrent_helper.cc
  1040. * src/message.h
  1041. * test/BittorrentHelperTest.cc
  1042. * test/Makefile.am
  1043. * test/MetalinkProcessorTest.cc
  1044. * test/metalink3-dirtraversal.xml
  1045. * test/test.xml
  1046. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1047. Removed useless comment
  1048. * src/MetalinkParserStateV4Impl.cc
  1049. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1050. Supported name attribute of metalink::metaurl element and
  1051. multi-file torrent with Metalink4. Files with same metaurl are
  1052. grouped and downloaded in one RequestGroup.
  1053. * src/BtDependency.cc
  1054. * src/FileEntry.h
  1055. * src/Metalink2RequestGroup.cc
  1056. * src/Metalink2RequestGroup.h
  1057. * src/MetalinkEntry.cc
  1058. * src/MetalinkEntry.h
  1059. * src/MetalinkHelper.cc
  1060. * src/MetalinkHelper.h
  1061. * src/MetalinkMetaurl.cc
  1062. * src/MetalinkMetaurl.h
  1063. * src/MetalinkParserController.cc
  1064. * src/RequestGroup.cc
  1065. * src/RequestGroup.h
  1066. * src/bittorrent_helper.cc
  1067. * test/BittorrentHelperTest.cc
  1068. * test/BtDependencyTest.cc
  1069. * test/MetalinkHelperTest.cc
  1070. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1071. Store name attribute of metalink:metaurl element in MetalinkMetaurl.
  1072. * src/MetalinkMetaurl.h
  1073. * src/MetalinkParserController.cc
  1074. * src/MetalinkParserController.h
  1075. * src/MetalinkParserStateMachine.cc
  1076. * src/MetalinkParserStateMachine.h
  1077. * src/MetalinkParserStateV4Impl.cc
  1078. * test/MetalinkProcessorTest.cc
  1079. * test/metalink4-dirtraversal.xml
  1080. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1081. Added MetalinkMetaurl class. It corresponds to metalink:metaurl
  1082. element.
  1083. * src/Makefile.am
  1084. * src/Metalink2RequestGroup.cc
  1085. * src/MetalinkEntry.cc
  1086. * src/MetalinkEntry.h
  1087. * src/MetalinkMetaurl.cc
  1088. * src/MetalinkMetaurl.h
  1089. * src/MetalinkParserController.cc
  1090. * src/MetalinkParserController.h
  1091. * src/MetalinkParserStateMachine.cc
  1092. * src/MetalinkParserStateMachine.h
  1093. * src/MetalinkParserStateV4Impl.cc
  1094. * src/MetalinkParserStateV4Impl.h
  1095. * test/MetalinkProcessorTest.cc
  1096. 2010-02-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1097. Added Metalink4 support. Currently, name attribute of
  1098. metalink::metaurl is ignored and multi-file torrent cannot be used
  1099. with Metalink4.
  1100. * doc/aria2c.1.txt
  1101. * src/DownloadHandlerConstants.cc
  1102. * src/ExpatMetalinkProcessor.cc
  1103. * src/Makefile.am
  1104. * src/Metalink2RequestGroup.cc
  1105. * src/MetalinkEntry.cc
  1106. * src/MetalinkEntry.h
  1107. * src/MetalinkParserController.cc
  1108. * src/MetalinkParserController.h
  1109. * src/MetalinkParserState.h
  1110. * src/MetalinkParserStateImpl.cc
  1111. * src/MetalinkParserStateImpl.h
  1112. * src/MetalinkParserStateMachine.cc
  1113. * src/MetalinkParserStateMachine.h
  1114. * src/MetalinkParserStateV3Impl.cc
  1115. * src/MetalinkParserStateV3Impl.h
  1116. * src/MetalinkParserStateV4Impl.cc
  1117. * src/MetalinkParserStateV4Impl.h
  1118. * src/MetalinkResource.cc
  1119. * src/MetalinkResource.h
  1120. * src/Metalinker.cc
  1121. * src/RequestGroup.cc
  1122. * src/RequestGroup.h
  1123. * src/XML2SAXMetalinkProcessor.cc
  1124. * src/messageDigest.cc
  1125. * src/util.cc
  1126. * src/util.h
  1127. * test/Makefile.am
  1128. * test/MetalinkEntryTest.cc
  1129. * test/MetalinkParserControllerTest.cc
  1130. * test/MetalinkProcessorTest.cc
  1131. * test/MetalinkerTest.cc
  1132. * test/UtilTest.cc
  1133. * test/metalink4-attrs.xml
  1134. * test/metalink4-dirtraversal.xml
  1135. * test/metalink4.xml
  1136. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1137. Added aiFlags argument to getInterfaceAddress(). Use
  1138. AI_NUMERICHOST to find interface specified using
  1139. --bt-lpd-interface option to avoid time-consuming address lookup.
  1140. * src/BtSetup.cc
  1141. * src/SocketCore.cc
  1142. * src/SocketCore.h
  1143. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1144. Return SharedHandle<LpdMessage>(new LpdMessage()) if received data
  1145. is bad in LpdMessageReceiver.
  1146. * src/LpdMessage.h
  1147. * src/LpdMessageReceiver.cc
  1148. * src/LpdMessageReceiver.h
  1149. * src/LpdReceiveMessageCommand.cc
  1150. * test/LpdMessageReceiverTest.cc
  1151. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1152. Added --bt-lpd-interface option to specify the interface to use
  1153. for Local Peer Discovery. LpdMessageDispatcher object now has its
  1154. own socket. LpdMessageReceiver's socket is binded to multicast
  1155. address to only receive multicast packets.
  1156. * src/BtSetup.cc
  1157. * src/LpdMessageDispatcher.cc
  1158. * src/LpdMessageDispatcher.h
  1159. * src/LpdMessageReceiver.cc
  1160. * src/LpdMessageReceiver.h
  1161. * src/LpdReceiveMessageCommand.cc
  1162. * src/LpdReceiveMessageCommand.h
  1163. * src/OptionHandlerFactory.cc
  1164. * src/SocketCore.cc
  1165. * src/SocketCore.h
  1166. * src/prefs.cc
  1167. * src/prefs.h
  1168. * src/usage_text.h
  1169. * test/LpdMessageDispatcherTest.cc
  1170. * test/LpdMessageReceiverTest.cc
  1171. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1172. Put the portion of code to get interface addresses in
  1173. SocketCore::bindAddress() into newly added getInterfaceAddress().
  1174. * src/SocketCore.cc
  1175. * src/SocketCore.h
  1176. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1177. Rewritten util::parseInt() and parseUInt()
  1178. * src/util.cc
  1179. 2010-02-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1180. Fixed compile error with mingw32 cross compiler. Defined
  1181. a2_sockopt_t as void* for the target systems other than mingw32.
  1182. * src/SocketCore.cc
  1183. * src/a2netcompat.h
  1184. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1185. Removed 'always true' condition
  1186. * src/util.cc
  1187. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1188. Documented --bt-enable-lpd option in man page.
  1189. * doc/aria2c.1.txt
  1190. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1191. Added Local Peer Discovery. It is disabled by default. Use
  1192. --bt-enable-lpd to enable the function.
  1193. * src/BtConstants.h
  1194. * src/BtSetup.cc
  1195. * src/LpdDispatchMessageCommand.cc
  1196. * src/LpdDispatchMessageCommand.h
  1197. * src/LpdMessage.h
  1198. * src/LpdMessageDispatcher.cc
  1199. * src/LpdMessageDispatcher.h
  1200. * src/LpdMessageReceiver.cc
  1201. * src/LpdMessageReceiver.h
  1202. * src/LpdReceiveMessageCommand.cc
  1203. * src/LpdReceiveMessageCommand.h
  1204. * src/Makefile.am
  1205. * src/OptionHandlerFactory.cc
  1206. * src/Peer.cc
  1207. * src/Peer.h
  1208. * src/PeerInteractionCommand.cc
  1209. * src/SocketCore.cc
  1210. * src/SocketCore.h
  1211. * src/prefs.cc
  1212. * src/prefs.h
  1213. * src/usage_text.h
  1214. * src/util.cc
  1215. * src/util.h
  1216. * test/LpdMessageDispatcherTest.cc
  1217. * test/LpdMessageReceiverTest.cc
  1218. * test/Makefile.am
  1219. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1220. User-defined custom request headers specified by --header option
  1221. now override builtin headers if they have same name.
  1222. * src/HttpRequest.cc
  1223. * src/HttpRequest.h
  1224. * test/HttpRequestTest.cc
  1225. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1226. Rewirtten util::isNumber()
  1227. * src/util.cc
  1228. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1229. Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
  1230. because without it localized error messages are not printed
  1231. correctly.
  1232. * src/Platform.cc
  1233. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1234. Added unit tests for util::getContentDispositionFilename() from
  1235. http://greenbytes.de/tech/tc2231/ Fixed the function so that added
  1236. tests are passed.
  1237. * src/util.cc
  1238. * test/UtilTest.cc
  1239. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1240. Removed setlocale() for LC_CTYPE. It may affect isxdigit in
  1241. util.cc
  1242. * src/Platform.cc
  1243. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1244. Support RFC2231 "Parameter Value Character Set and Language
  1245. Information" in Content-Disposition header.
  1246. * src/HttpResponse.cc
  1247. * src/util.cc
  1248. * src/util.h
  1249. * test/UtilTest.cc
  1250. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1251. Print CXXFLAGS
  1252. * configure.ac
  1253. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1254. Small optimization for A2_WOULDBLOCK(e)
  1255. * src/SocketCore.cc
  1256. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1257. Removed test file
  1258. * test/CookieStorageTest.cc
  1259. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1260. Check both EAGAIN and EWOULDBLOCK
  1261. * src/SocketCore.cc
  1262. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1263. Removed ret == 0 checking for SSL_read(), SSL_write() and
  1264. SSL_peek() because the checks are done in the caller. In
  1265. SocketBuffer::send(), throw exception if nothing could be written
  1266. and socket error was not EWOULDBLOCK
  1267. * src/SocketBuffer.cc
  1268. * src/SocketCore.cc
  1269. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1270. Fixed error code handling so that it can handle Winsock2 error
  1271. code.
  1272. * src/SocketCore.cc
  1273. * src/SocketCore.h
  1274. 2010-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1275. Bump up version number to 1.9.0a
  1276. * configure.ac
  1277. * doc/aria2c.1.txt
  1278. 2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1279. Fixed the bug that aria2 doesn't handle return value if error
  1280. occurred before download begins.
  1281. * src/MultiUrlRequestInfo.cc
  1282. * src/main.cc
  1283. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1284. Removed SegmentManFactory class.
  1285. * src/AbstractSegmentManFactory.h
  1286. * src/DefaultSegmentManFactory.cc
  1287. * src/DefaultSegmentManFactory.h
  1288. * src/Makefile.am
  1289. * src/RequestGroup.cc
  1290. * src/RequestGroup.h
  1291. * src/SegmentManFactory.h
  1292. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1293. Destroyed digest context after getting calculated hash.
  1294. * src/Piece.cc
  1295. * src/Piece.h
  1296. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1297. Removed BitfieldManFactory class.
  1298. * src/BitfieldManFactory.cc
  1299. * src/BitfieldManFactory.h
  1300. * src/DefaultPieceStorage.cc
  1301. * src/Makefile.am
  1302. * src/PeerSessionResource.cc
  1303. * src/Piece.cc
  1304. * src/main.cc
  1305. * test/DefaultPieceStorageTest.cc
  1306. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1307. Removed unused methods from BitfieldMan class. Moved
  1308. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  1309. class.
  1310. * src/BitfieldMan.cc
  1311. * src/BitfieldMan.h
  1312. * src/BitfieldManFactory.cc
  1313. * src/BitfieldManFactory.h
  1314. * src/bitfield.h
  1315. * src/main.cc
  1316. * test/BitfieldManTest.cc
  1317. * test/DefaultPieceStorageTest.cc
  1318. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1319. Moved getFirstNMissingIndex to bitfield.h and made it return the
  1320. number of appended indexes.
  1321. * src/BitfieldMan.cc
  1322. * src/BitfieldMan.h
  1323. * src/Piece.cc
  1324. * src/Piece.h
  1325. * src/bitfield.h
  1326. * test/BitfieldManTest.cc
  1327. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1328. Added more tests.
  1329. * test/BitfieldManTest.cc
  1330. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1331. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  1332. unused block indexes at once instead of calling
  1333. getFirstMissingUnusedIndex() multiple times. Made use of it in
  1334. Piece class and DefaultBtRequestFactory class via Piece class.
  1335. * src/BitfieldMan.cc
  1336. * src/BitfieldMan.h
  1337. * src/DefaultBtRequestFactory.cc
  1338. * src/Piece.cc
  1339. * src/Piece.h
  1340. * test/BitfieldManTest.cc
  1341. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1342. Use std::make_pair(...)
  1343. * src/DHTMessageTracker.cc
  1344. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1345. Use std::make_pair(...)
  1346. * src/bittorrent_helper.cc
  1347. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1348. urlencode(removeFragment(...)) in parseUrl(...)
  1349. * src/Request.cc
  1350. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1351. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  1352. * src/AbstractCommand.cc
  1353. * src/AdaptiveURISelector.cc
  1354. * src/BtPieceMessage.cc
  1355. * src/BtPortMessage.cc
  1356. * src/CreateRequestCommand.cc
  1357. * src/DHTAbstractNodeLookupTask.cc
  1358. * src/DHTBucket.cc
  1359. * src/DHTGetPeersCommand.cc
  1360. * src/DHTMessageDispatcherImpl.cc
  1361. * src/DHTMessageFactoryImpl.cc
  1362. * src/DHTMessageTracker.cc
  1363. * src/DHTPeerAnnounceStorage.cc
  1364. * src/DHTRoutingTable.cc
  1365. * src/DHTSetup.cc
  1366. * src/DefaultBtAnnounce.cc
  1367. * src/DefaultBtInteractive.cc
  1368. * src/DefaultBtMessageDispatcher.cc
  1369. * src/DefaultBtMessageReceiver.cc
  1370. * src/DefaultBtProgressInfoFile.cc
  1371. * src/DefaultBtRequestFactory.cc
  1372. * src/DefaultPeerStorage.cc
  1373. * src/DefaultPieceStorage.cc
  1374. * src/DownloadCommand.cc
  1375. * src/DownloadEngine.cc
  1376. * src/EpollEventPoll.cc
  1377. * src/FileAllocationCommand.cc
  1378. * src/FileEntry.cc
  1379. * src/FtpNegotiationCommand.cc
  1380. * src/HandshakeExtensionMessage.cc
  1381. * src/HttpListenCommand.cc
  1382. * src/HttpServer.cc
  1383. * src/HttpSkipResponseCommand.cc
  1384. * src/IteratableChunkChecksumValidator.cc
  1385. * src/Logger.h
  1386. * src/MSEHandshake.cc
  1387. * src/MetalinkPostDownloadHandler.cc
  1388. * src/MultiDiskAdaptor.cc
  1389. * src/PeerAbstractCommand.cc
  1390. * src/PeerConnection.cc
  1391. * src/PeerListenCommand.cc
  1392. * src/PeerReceiveHandshakeCommand.cc
  1393. * src/RequestGroup.cc
  1394. * src/RequestGroupMan.cc
  1395. * src/SegmentMan.cc
  1396. * src/SelectEventPoll.cc
  1397. * src/ServerStat.cc
  1398. * src/SimpleBtMessage.cc
  1399. * src/SocketCore.cc
  1400. * src/TrackerWatcherCommand.cc
  1401. * src/UTMetadataDataExtensionMessage.cc
  1402. * src/UTMetadataRequestFactory.cc
  1403. * src/UTMetadataRequestTracker.cc
  1404. * src/XmlRpcMethod.cc
  1405. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1406. Changed log level from debug to info
  1407. * src/BtDependency.cc
  1408. * src/BtPostDownloadHandler.cc
  1409. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1410. Removed unused PeerSessionResource::_latency.
  1411. * src/BtConstants.h
  1412. * src/BtPieceMessage.cc
  1413. * src/Peer.cc
  1414. * src/Peer.h
  1415. * src/PeerSessionResource.cc
  1416. * src/PeerSessionResource.h
  1417. * test/PeerSessionResourceTest.cc
  1418. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1419. Fixed the bug that --file-allocation=falloc doesn't work with
  1420. single file download.
  1421. * src/AbstractSingleDiskAdaptor.cc
  1422. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1423. Release 1.8.2
  1424. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1425. Added Portuguese translation. Updated Ukrainian and Spanish
  1426. translation. Thanks to all translators.
  1427. * po/LINGUAS
  1428. * po/es.po
  1429. * po/pt.po
  1430. * po/uk.po
  1431. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1432. Remove fragment from redirected URI.
  1433. * src/Request.cc
  1434. * test/RequestTest.cc
  1435. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1436. Updated po templates.
  1437. * po/aria2.pot
  1438. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1439. Drop legacy ifdef for ares support and code cleanup.
  1440. * src/AsyncNameResolver.cc
  1441. * src/AsyncNameResolver.h
  1442. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1443. Call ares_library_init and ares_library_cleanup if they are
  1444. available. Some code cleanups.
  1445. * src/Platform.cc
  1446. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1447. Call ares_process_fd() each time after epoll to handle timeout.
  1448. * src/EpollEventPoll.cc
  1449. * src/EpollEventPoll.h
  1450. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1451. Suppressed type-cast compiler warning
  1452. * src/CookieStorage.cc
  1453. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1454. Fixed compile error on Mac OS X.
  1455. * src/CookieStorage.h
  1456. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1457. Removed cookietest.txt from Makefile.am
  1458. * test/Makefile.am
  1459. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1460. Updated version number in man page.
  1461. * doc/aria2c.1.txt
  1462. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1463. Rewritten help message for --allow-overwrite option.
  1464. * doc/aria2c.1.txt
  1465. * src/usage_text.h
  1466. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1467. Added bittorrent key to the response of tellStatus XML-RPC method.
  1468. The associated value of the key is a struct and contains data
  1469. retrieved from .torrent file, such as name, announce-list,
  1470. comment, etc.
  1471. * doc/aria2c.1.txt
  1472. * src/XmlRpcMethodImpl.cc
  1473. * src/XmlRpcMethodImpl.h
  1474. * test/XmlRpcMethodTest.cc
  1475. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1476. Removed parse(std::istream&) and parse(const std::string&) from
  1477. CookieParser.
  1478. * src/CookieParser.cc
  1479. * src/CookieParser.h
  1480. * test/CookieParserTest.cc
  1481. * test/cookietest.txt: Removed
  1482. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1483. Fixed the bug that cookie for domain a.b.c is not sent to the host
  1484. a.b.c if no other cookies are stored. Fixed the bug that
  1485. Cookie::markOriginServerOnly() is not called when cookies are
  1486. loaded from file/sqlite3 database.
  1487. * src/Cookie.h
  1488. * src/CookieStorage.cc
  1489. * src/NsCookieParser.cc
  1490. * src/Sqlite3MozCookieParser.cc
  1491. * test/CookieStorageTest.cc
  1492. * test/NsCookieParserTest.cc
  1493. * test/Sqlite3MozCookieParserTest.cc
  1494. * test/cookies.sqlite
  1495. * test/nscookietest.txt
  1496. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1497. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  1498. both _pieceStorage and _segmentMan are initialized or they are
  1499. not.
  1500. * src/RequestGroup.cc
  1501. * src/RequestGroup.h
  1502. * test/BtDependencyTest.cc
  1503. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1504. Bump up version number to 1.8.2
  1505. * configure.ac
  1506. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1507. Replaced "." with A2STR::DOT_C
  1508. * src/AbstractCommand.cc
  1509. * src/Cookie.cc
  1510. * src/DownloadContext.cc
  1511. * src/FtpConnection.cc
  1512. * src/RequestGroup.cc
  1513. * src/util.cc
  1514. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1515. Replaced isNumberAndDotsNotation() with isNumericHost().
  1516. isNumericHost() can handle IPv6 address.
  1517. * src/Cookie.cc
  1518. * src/CookieStorage.cc
  1519. * src/util.cc
  1520. * src/util.h
  1521. * test/CookieTest.cc
  1522. * test/UtilTest.cc
  1523. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1524. Included A2STR.h
  1525. * src/CookieStorage.cc
  1526. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1527. Rewritten Cookie storage.
  1528. * src/Cookie.cc
  1529. * src/Cookie.h
  1530. * src/CookieParser.cc
  1531. * src/CookieStorage.cc
  1532. * src/CookieStorage.h
  1533. * src/a2functional.h
  1534. * test/CookieParserTest.cc
  1535. * test/CookieStorageTest.cc
  1536. * test/CookieTest.cc
  1537. * test/HttpResponseTest.cc
  1538. * test/TestUtil.h
  1539. * test/a2functionalTest.cc
  1540. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1541. Handle redirected URI which is not properly percent encoded.
  1542. * src/Request.cc
  1543. * test/RequestTest.cc
  1544. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1545. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  1546. not found' in the N times(N is where --max-file-not-found=N, N>0)
  1547. in a row without single '200 OK' response.
  1548. * src/RequestGroup.cc.
  1549. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1550. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  1551. readout by 80 characters in mingw32 build. Catch exception in
  1552. DHTMessageReceiver::receiveMessage().
  1553. * src/AbstractDiskWriter.cc
  1554. * src/ConsoleStatCalc.cc
  1555. * src/DHTMessageReceiver.cc
  1556. * src/File.cc
  1557. * src/RequestGroupMan.cc
  1558. * src/a2io.h
  1559. * test/FileTest.cc
  1560. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1561. Fixed compile error with intel compiler
  1562. * src/XmlRpcMethodImpl.cc
  1563. * src/XmlRpcMethodImpl.h
  1564. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1565. Release 1.8.1
  1566. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1567. Updated Swedish, Russian and Italian translations. Thanks to all
  1568. translators.
  1569. * po/it.po
  1570. * po/ru.po
  1571. * po/sv.po
  1572. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1573. Fixed broken OptionParser::findByName().
  1574. * src/OptionParser.cc
  1575. * test/OptionParserTest.cc
  1576. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1577. Fixed test error without BitTorrent support.
  1578. * test/XmlRpcMethodTest.cc
  1579. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1580. Fixed compile error without GNUTLS/OpenSSL.
  1581. * src/util.cc
  1582. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1583. Changed compression level to Z_DEFAULT_COMPRESSION.
  1584. * src/GZipEncoder.cc
  1585. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1586. Added missing command line options: --http-no-cache,
  1587. --bt-save-metadata and --bt-metadata-only.
  1588. * doc/xmlrpc/aria2rpc
  1589. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1590. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  1591. client accepts gzip content encoding.
  1592. * src/A2STR.cc
  1593. * src/A2STR.h
  1594. * src/GZipEncoder.cc
  1595. * src/GZipEncoder.h
  1596. * src/HttpHeader.cc
  1597. * src/HttpHeader.h
  1598. * src/HttpServer.cc
  1599. * src/HttpServer.h
  1600. * src/HttpServerBodyCommand.cc
  1601. * src/HttpServerCommand.cc
  1602. * src/Makefile.am
  1603. * src/XmlRpcResponse.cc
  1604. * src/XmlRpcResponse.h
  1605. * test/GZipEncoderTest.cc
  1606. * test/Makefile.am
  1607. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1608. Added XML-RPC client sample code in Python.
  1609. * doc/aria2c.1.txt
  1610. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1611. Updated po templates.
  1612. * po/aria2.pot
  1613. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1614. Bump up version number to 1.8.1
  1615. * configure.ac
  1616. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1617. Added version number to man page. Updated copyright year in man
  1618. page.
  1619. * doc/aria2c.1.txt
  1620. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1621. Rewritten toTagString
  1622. * src/NameMatchOptionHandler.cc
  1623. * test/OptionHandlerTest.cc
  1624. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1625. Added dir and files key to the response struct of aria2.tellStatus
  1626. XML-RPC method. The value associated with files key is the list
  1627. of files. Its element is the same struct used in aria2.getFiles
  1628. XML-RPC method. Added uris key to the response struct of
  1629. aria2.getFiles XML-RPC method. The value associated with uris key
  1630. is the list of URIs. Its element is the same struct used in
  1631. aria2.getUris XML-RPC method.
  1632. * doc/aria2c.1.txt
  1633. * src/XmlRpcMethodImpl.cc
  1634. * test/XmlRpcMethodTest.cc
  1635. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1636. Added aria2.getSessionInfo XML-RPC method. This method returns a
  1637. struct containing Session ID, which is generated each time when
  1638. aria2 is invoked.
  1639. * doc/aria2c.1.txt
  1640. * doc/xmlrpc/aria2rpc
  1641. * src/DownloadEngine.cc
  1642. * src/DownloadEngine.h
  1643. * src/XmlRpcMethodFactory.cc
  1644. * src/XmlRpcMethodImpl.cc
  1645. * src/XmlRpcMethodImpl.h
  1646. * test/XmlRpcMethodTest.cc
  1647. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1648. Moved generateRandomKey() from bittorrent_helper to util.
  1649. * src/DHTBucket.cc
  1650. * src/DHTNode.cc
  1651. * src/bittorrent_helper.cc
  1652. * src/bittorrent_helper.h
  1653. * src/util.cc
  1654. * src/util.h
  1655. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1656. Updated doc about GID.
  1657. * doc/aria2c.1.txt
  1658. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1659. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  1660. accepts a negative integer. 'offset' == -1 points last download
  1661. in the waiting queue and 'offset' == -2 points the download before
  1662. the last download, and so on. The downloads in the response are in
  1663. reversed order.
  1664. * doc/aria2c.1.txt
  1665. * src/XmlRpcMethodImpl.cc
  1666. * src/XmlRpcMethodImpl.h
  1667. * test/XmlRpcMethodTest.cc
  1668. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1669. Added --human-readable option. This option, when true is given,
  1670. prints sizes and speed in human readable format(e.g., 1.2Ki,
  1671. 3.4Mi) in the console readout. The default value is true and it
  1672. looks exactly the same as aria2-1.8.0. So the 'new feature'
  1673. appears when false is given. In this case, sizes and speed are
  1674. printed without in bytes. No Ki, Mi units conversion is used.
  1675. This may be useful for a program to parse the output of aria2.
  1676. * doc/aria2c.1.txt
  1677. * src/ConsoleStatCalc.cc
  1678. * src/ConsoleStatCalc.h
  1679. * src/OptionHandlerFactory.cc
  1680. * src/main.cc
  1681. * src/prefs.cc
  1682. * src/prefs.h
  1683. * src/usage_text.h
  1684. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1685. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  1686. option accepts empty string "". When "" is given, it erases
  1687. previously defined proxy.
  1688. * doc/aria2c.1.txt
  1689. * src/OptionHandlerImpl.h
  1690. * src/usage_text.h
  1691. * test/OptionHandlerTest.cc
  1692. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1693. Code cleanup for proxy URI handling.
  1694. * src/AbstractCommand.cc
  1695. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1696. Added --bt-metadata-only option. If true is given to this option,
  1697. aria2 downloads metadata only. The file(s) described in metadata
  1698. will not be downloaded. This option has effect only when
  1699. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  1700. * doc/aria2c.1.txt
  1701. * src/OptionHandlerFactory.cc
  1702. * src/UTMetadataPostDownloadHandler.cc
  1703. * src/download_helper.cc
  1704. * src/prefs.cc
  1705. * src/prefs.h
  1706. * src/usage_text.h
  1707. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1708. Fixed memory leak. Commands stored in std::deque<Command*> are not
  1709. deleted when exception is thrown. Make sure that when passing
  1710. std::deque<Command*> to function to store Commands, handle
  1711. exception and delete these Commands.
  1712. * src/AbstractCommand.cc
  1713. * src/CheckIntegrityCommand.cc
  1714. * src/FileAllocationCommand.cc
  1715. * src/RequestGroup.cc
  1716. * src/TrackerWatcherCommand.cc
  1717. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1718. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  1719. * src/A2STR.cc
  1720. * src/A2STR.h
  1721. * src/FtpNegotiationCommand.cc
  1722. * src/HttpResponseCommand.cc
  1723. * src/util.cc
  1724. * src/util.h
  1725. * test/UtilTest.cc
  1726. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1727. Treat --dir="" as --dir="."
  1728. * src/FtpNegotiationCommand.cc
  1729. * src/HttpResponseCommand.cc
  1730. * src/Metalink2RequestGroup.cc
  1731. * src/UTMetadataPostDownloadHandler.cc
  1732. * src/bittorrent_helper.cc
  1733. * src/download_helper.cc
  1734. * src/util.cc
  1735. * src/util.h
  1736. * test/UtilTest.cc
  1737. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1738. Code clean up.
  1739. * src/main.cc
  1740. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1741. Reset GID to 1 when they reach maximum value. Rewritten
  1742. CUIDCounter::newID()
  1743. * src/CUIDCounter.h
  1744. * src/RequestGroup.cc
  1745. * src/RequestGroup.h
  1746. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1747. Documented --http-no-cache option in man page.
  1748. * doc/aria2c.1.txt
  1749. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1750. Added --http-no-cache option. When true is given, aria2 sends
  1751. Cache-Control: no-cache and Pragma: no-cache header to avoid
  1752. cached content. If false is given , these headers are not sent
  1753. and you can add Cache-Control header with a directive you like
  1754. using --header option.
  1755. * src/HttpRequest.cc
  1756. * src/HttpRequest.h
  1757. * src/HttpRequestCommand.cc
  1758. * src/OptionHandlerFactory.cc
  1759. * src/download_helper.cc
  1760. * src/prefs.cc
  1761. * src/prefs.h
  1762. * src/usage_text.h
  1763. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1764. Removed Logger from OptionParser. When OptionParser is used to
  1765. parse options at bootstrap, LogFactory is not configured yet
  1766. properly. When LogFactory is used in OptionParser, it initializes
  1767. itself to return a logger which has no ability to write log to the
  1768. disk.
  1769. * src/OptionParser.cc
  1770. * src/OptionParser.h
  1771. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1772. Added following sentance to the help message of --out option:
  1773. --out option is ignored when -Z is used.
  1774. * doc/aria2c.1.txt
  1775. * src/usage_text.h
  1776. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1777. Added --bt-save-metadata option to -i list options.
  1778. * doc/aria2c.1.txt
  1779. * src/download_helper.cc
  1780. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1781. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  1782. additional libraries.
  1783. * src/MultiUrlRequestInfo.cc
  1784. * src/NameResolver.cc
  1785. * src/SelectEventPoll.cc
  1786. * src/SelectEventPoll.h
  1787. * src/SocketCore.cc
  1788. * src/SocketCore.h
  1789. * src/a2netcompat.h
  1790. * src/daemon.cc
  1791. * src/main.cc
  1792. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1793. Fixed typo.
  1794. * src/DHTMessageReceiver.cc
  1795. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1796. Fixed the bug that causes segmentation fault if unknown option is
  1797. put in aria2.conf file. BUG#2928303
  1798. * src/OptionParser.cc
  1799. * src/OptionParser.h
  1800. * src/option_processing.cc
  1801. * test/OptionParserTest.cc
  1802. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1803. Ignore port message with port=0.
  1804. * src/BtPortMessage.cc
  1805. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1806. Run autoupdate
  1807. * configure.ac
  1808. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1809. Updated autoconf/automake auxiliary files.
  1810. * INSTALL
  1811. * config.guess
  1812. * config.sub
  1813. * depcomp
  1814. * install-sh
  1815. * m4/intldir.m4
  1816. * missing
  1817. * mkinstalldirs
  1818. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1819. Removed unused function.
  1820. * src/SharedHandle.h
  1821. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1822. Find pooled socket using all cached addresses.
  1823. * src/DNSCache.h
  1824. * src/DownloadEngine.cc
  1825. * src/DownloadEngine.h
  1826. * src/InitiateConnectionCommand.cc
  1827. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1828. Updated copyright year.
  1829. * src/version_usage.cc
  1830. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1831. Pool connection if _contentEncodingDecoder is used and server
  1832. supports persistent connection.
  1833. * src/HttpDownloadCommand.cc
  1834. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1835. Updated doc.
  1836. * src/DownloadCommand.cc
  1837. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1838. Untabify. Fixed one line in copyright which is longer than 80
  1839. columns.
  1840. * src
  1841. * test
  1842. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1843. Release 1.8.0
  1844. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1845. Updated po templates.
  1846. * po/aria2.pot
  1847. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1848. Documented --bt-save-metadata option in man page.
  1849. * doc/aria2c.1.txt
  1850. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1851. Fixed usage of --bt-save-metadata option.
  1852. * src/usage_text.h
  1853. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1854. Updated po templates.
  1855. * po/aria2.pot
  1856. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1857. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  1858. causes name resolution error when none of network interface has
  1859. IPv4 address.
  1860. * src/main.cc
  1861. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1862. Bump up version number to 1.8.0.
  1863. * configure.ac
  1864. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1865. Use info hash as a filename when saving BitTorrent metadata.
  1866. * src/UTMetadataPostDownloadHandler.cc
  1867. * test/UTMetadataPostDownloadHandlerTest.cc
  1868. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1869. Documented system.multicall XML-RPC method in man page.
  1870. * doc/aria2c.1.txt
  1871. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1872. Added signal handler for SIGHUP to save .aria2 file when terminal
  1873. is closed. The handler is the same one for SIGINT and SIGTERM.
  1874. * src/MultiUrlRequestInfo.cc
  1875. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1876. Defined method name in XmlRpcMethod subclasses.
  1877. * src/XmlRpcMethodFactory.cc
  1878. * src/XmlRpcMethodImpl.cc
  1879. * src/XmlRpcMethodImpl.h
  1880. * test/XmlRpcMethodTest.cc
  1881. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1882. Added system.multicall XML-RPC method.
  1883. * src/XmlRpcMethod.cc
  1884. * src/XmlRpcMethod.h
  1885. * src/XmlRpcMethodFactory.cc
  1886. * src/XmlRpcMethodImpl.cc
  1887. * src/XmlRpcMethodImpl.h
  1888. * test/XmlRpcMethodTest.cc
  1889. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1890. Check structure depth when decoding.
  1891. * src/bencode.cc
  1892. * src/bencode.h
  1893. * test/BencodeTest.cc
  1894. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1895. Documented tellStopped XML-RPC method in man page.
  1896. * doc/aria2c.1.txt
  1897. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1898. Added tellStopped XML-RPC method to aria2rpc.
  1899. * doc/xmlrpc/aria2rpc
  1900. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1901. Added tellStopped XML-RPC method. This method returns stopped
  1902. download in the specified range. It takes same parameters with
  1903. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  1904. * src/XmlRpcMethodFactory.cc
  1905. * src/XmlRpcMethodImpl.cc
  1906. * src/XmlRpcMethodImpl.h
  1907. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1908. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  1909. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  1910. when conducting unit tests because they fail if networking
  1911. interface is not configured with IPv4 address.
  1912. * src/NameResolver.cc
  1913. * src/SocketCore.cc
  1914. * src/SocketCore.h
  1915. * src/a2netcompat.h
  1916. * test/AllTest.cc
  1917. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1918. Fixed unit test error
  1919. * test/UTMetadataPostDownloadHandlerTest.cc
  1920. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1921. Defined static string constants for efficiency.
  1922. * src/XmlRpcMethodImpl.cc
  1923. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1924. Added --bt-save-metadata option. When true is given, it saves
  1925. metadata as .torrent file. This option has effect only when
  1926. BitTorrent Magnet URI is used. The filename is name in metadata
  1927. with suffix .torrent. The directory to be saved is the same
  1928. directory where download file is saved. If the same file already
  1929. exists, metdata is not saved.
  1930. * src/OptionHandlerFactory.cc
  1931. * src/UTMetadataPostDownloadHandler.cc
  1932. * src/UTMetadataPostDownloadHandler.h
  1933. * src/message.h
  1934. * src/prefs.cc
  1935. * src/prefs.h
  1936. * src/usage_text.h
  1937. * test/UTMetadataDataExtensionMessageTest.cc
  1938. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1939. Added util::saveAs() function. Use it in Signature::save().
  1940. * src/Signature.cc
  1941. * src/util.cc
  1942. * src/util.h
  1943. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1944. Upcase info hash in Magnet URI.
  1945. * doc/aria2c.1.txt
  1946. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1947. Refactored RequestGroupMan::changeReservedGroupPosition()
  1948. * src/RequestGroupMan.cc
  1949. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1950. Updated the description for aria2.addTorrent XML-RPC method.
  1951. * doc/aria2c.1.txt
  1952. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1953. Added changePosition to aria2rpc.
  1954. * doc/xmlrpc/aria2rpc
  1955. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1956. Documented changePosition XML-RPC method in man page.
  1957. * doc/aria2c.1.txt
  1958. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1959. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  1960. pos and how. This method changes the position of download denoted
  1961. by gid. If how is POS_SET, it moves the download to a position
  1962. relative to the beginning of the queue. If how is POS_CUR, it
  1963. moves the download to a position relative to the current
  1964. position. If how is POS_END, it moves the download to a position
  1965. relative to the end of the queue. If the destination position is
  1966. less than 0 or beyond the end of the queue, it moves the download
  1967. to the beginning or the end of the queue respectively. Returns
  1968. the destination position.
  1969. * src/RequestGroupMan.cc
  1970. * src/RequestGroupMan.h
  1971. * src/XmlRpcMethodFactory.cc
  1972. * src/XmlRpcMethodImpl.cc
  1973. * src/XmlRpcMethodImpl.h
  1974. * test/RequestGroupManTest.cc
  1975. * test/XmlRpcMethodTest.cc
  1976. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1977. Added getOption and getGlobalOption to aria2rpc.
  1978. * doc/xmlrpc/aria2rpc
  1979. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1980. Documented getOption and getGlobalOption XML-RPC method in man
  1981. page
  1982. * doc/aria2c.1.txt
  1983. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1984. Added getOption and getGlobalOption XML-RPC method. getOption
  1985. takes GID as a parameter and returns its options as struct.
  1986. getGlobalOption takes no parameter and returns global
  1987. options. Because global option is used as a template for the
  1988. option of newly added downloads, it includes options returned by
  1989. getOption.
  1990. * src/Option.h
  1991. * src/XmlRpcMethodFactory.cc
  1992. * src/XmlRpcMethodImpl.cc
  1993. * src/XmlRpcMethodImpl.h
  1994. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1995. Sort _optionHandlers in OptionParser by name in ascending order.
  1996. Use vector instead of deque for efficiency.
  1997. * src/OptionHandler.h
  1998. * src/OptionHandlerFactory.h
  1999. * src/OptionParser.cc
  2000. * src/OptionParser.h
  2001. * src/version_usage.cc
  2002. * test/OptionParserTest.cc
  2003. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2004. Code cleanup
  2005. * src/XmlRpcMethod.cc
  2006. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2007. Documented about followedBy and belongsTo in man page.
  2008. * doc/aria2c.1.txt
  2009. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2010. Added following 2 keys, followedBy and belongsTo, to the response
  2011. of tellStatus.
  2012. followedBy: List of GIDs which are generated by the consequence of
  2013. this download. For example, when aria2 downloaded Metalink file,
  2014. it generates downloads described in it(see *--follow-metalink*
  2015. option). This value is useful to track these auto generated
  2016. downloads. If there is no such downloads, this key will not be
  2017. included in the response.
  2018. belongsTo: GID of a parent download. Some downloads are a part of
  2019. another download. For example, if a file in Metalink has
  2020. BitTorrent resource, the download of .torrent is a part of that
  2021. file. If this download has no parent, this key will not be
  2022. included in the response.
  2023. * src/BtPostDownloadHandler.cc
  2024. * src/DownloadResult.h
  2025. * src/Metalink2RequestGroup.cc
  2026. * src/MetalinkPostDownloadHandler.cc
  2027. * src/RequestGroup.cc
  2028. * src/RequestGroup.h
  2029. * src/UTMetadataPostDownloadHandler.cc
  2030. * src/XmlRpcMethodImpl.cc
  2031. * src/XmlRpcMethodImpl.h
  2032. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2033. Assigned BObject in BDE() to avoid segmentation fault when calling
  2034. methods of BDE::none().
  2035. * src/BDE.cc
  2036. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2037. Show info hash in Magnet URI in upper case letters in -S output.
  2038. * src/bittorrent_helper.cc
  2039. * test/BittorrentHelperTest.cc
  2040. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2041. Removed old useless comment
  2042. * src/MultiUrlRequestInfo.cc
  2043. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2044. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  2045. not properly used in configure script and failed to detect gnutls.
  2046. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  2047. and the initialization of pkg-config is done in first occurrence
  2048. of PKG_CHECK_MODULES which is not executed because it is inside of
  2049. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  2050. * configure.ac
  2051. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2052. Release 1.7.2
  2053. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2054. Fixed the bug that RequestGroupMan::downloadFinished() returns
  2055. true even if all downloads haven't finished, especially when
  2056. PostDownloadHandler is involved. Changed the condition so that it
  2057. only returns true if both _requestGroups and _reservedGroups are
  2058. empty.
  2059. * src/RequestGroupMan.cc
  2060. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2061. Log listening port for BitTorrent/DHT in notice level.
  2062. * src/DHTConnectionImpl.cc
  2063. * src/PeerListenCommand.cc
  2064. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2065. Updated po templates.
  2066. * po/aria2.pot
  2067. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2068. Bump up version number to 1.7.2
  2069. * configure.ac
  2070. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2071. Changed default value of --enable-dht from 'false' to 'true'.
  2072. * doc/aria2c.1.txt
  2073. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2074. Enabled DHT by default because of Magnet URI support. To disable
  2075. DHT, use --enable-dht=false
  2076. * src/OptionHandlerFactory.cc
  2077. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2078. Print Magnet URI in -S output.
  2079. * src/AnnounceList.cc
  2080. * src/bittorrent_helper.cc
  2081. * src/bittorrent_helper.h
  2082. * test/BittorrentHelperTest.cc
  2083. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2084. Added --bt-prioritize-piece option to aria2rpc.
  2085. * doc/xmlrpc/aria2rpc
  2086. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2087. Refer Magnet URI in --help. Made some cosmetic changes.
  2088. * src/version_usage.cc
  2089. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2090. Updated -T and -M option.
  2091. * doc/aria2c.1.txt
  2092. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2093. Fixed typo
  2094. * doc/aria2c.1.txt
  2095. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2096. Fixed the bug that line separator is missing in horizontal bar.
  2097. * doc/xmlrpc/aria2mon
  2098. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2099. Updated usage text for --metalink-file option.
  2100. * src/usage_text.h
  2101. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2102. If '-' is given as an argument to --metalink-file option, aria2
  2103. reads Metalink file from stdin.
  2104. * src/OptionHandlerFactory.cc
  2105. * src/OptionHandlerImpl.h
  2106. * src/a2io.h
  2107. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2108. Fixed the bug that aria2 listens wrong port if --interface option
  2109. is used.
  2110. * src/SocketCore.cc
  2111. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2112. Fixed the bug that query parameter in magnet URI is not decoded.
  2113. * src/magnet.cc
  2114. * test/MagnetTest.cc
  2115. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2116. Specified defaultSize as an argument for easy testing.
  2117. * src/util.cc
  2118. * src/util.h
  2119. * test/UtilTest.cc
  2120. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2121. Release 1.7.1
  2122. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2123. Bump up version number to 1.7.1
  2124. * configure.ac
  2125. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2126. Fixed the bug --bt-prioritize-piece=tail is not working.
  2127. * src/util.cc
  2128. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2129. Release 1.7.0
  2130. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2131. Updated po templates.
  2132. * po/aria2.pot
  2133. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2134. Updated help message for --bt-prioritize-piece. Some cosmetic
  2135. changes.
  2136. * doc/aria2c.1.txt
  2137. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2138. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  2139. * src/usage_text.h
  2140. * src/util.cc
  2141. * test/UtilTest.cc
  2142. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2143. Updated Russian, Ukrainian, German and French translations.
  2144. Thanks to all translators involved.
  2145. * po/de.po
  2146. * po/fr.po
  2147. * po/ru.po
  2148. * po/uk.po
  2149. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2150. Mentioned about pkg-config
  2151. * README
  2152. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2153. Fixed typo. Referred --index-out option in BitTorrent notes.
  2154. * README
  2155. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2156. Store all addresses found by getifaddrs() and getaddrinfo(). In
  2157. bind, try all addresses until success
  2158. * src/SocketCore.cc
  2159. * src/SocketCore.h
  2160. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2161. Updated po templates.
  2162. * po/aria2.pot
  2163. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2164. Bump up version number to 1.7.0
  2165. * configure.ac
  2166. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2167. Fixed compile error if ENABLE_BITTORRENT is undefined.
  2168. * src/DefaultPieceStorage.cc
  2169. * src/DefaultPieceStorage.h
  2170. * src/PieceStorage.h
  2171. * src/UnknownLengthPieceStorage.cc
  2172. * src/UnknownLengthPieceStorage.h
  2173. * test/MockPieceStorage.h
  2174. * test/ProtocolDetectorTest.cc
  2175. * test/XmlRpcMethodTest.cc
  2176. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2177. Documented in man page that if getifaddrs() is missing,
  2178. --interface option doesn't accept interface name.
  2179. * doc/aria2c.1.txt
  2180. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2181. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  2182. * src/DefaultBtAnnounce.cc
  2183. * src/DefaultBtAnnounce.h
  2184. * test/DefaultBtAnnounceTest.cc
  2185. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2186. Fixed the bug that connection is always dropped if handshake
  2187. message in extension protocol don't have metadata_size.
  2188. src/HandshakeExtensionMessage.cc
  2189. * src/HandshakeExtensionMessage.cc
  2190. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2191. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  2192. text saying DHT is recommended when Magnet URI is provided.
  2193. * doc/aria2c.1.txt
  2194. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2195. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  2196. URI is supplied. Notify user that they should consider enabling
  2197. DHT if they use Magnet URI.
  2198. * src/RequestGroup.cc
  2199. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2200. Added --disable-ipv6 option to disable IPv6.
  2201. * doc/aria2c.1.txt
  2202. * src/InitiateConnectionCommand.cc
  2203. * src/NameResolver.cc
  2204. * src/NameResolver.h
  2205. * src/OptionHandlerFactory.cc
  2206. * src/main.cc
  2207. * src/prefs.cc
  2208. * src/prefs.h
  2209. * src/usage_text.h
  2210. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2211. Updated usage text for --bt-prioritize-piece option.
  2212. * doc/aria2c.1.txt
  2213. * src/usage_text.h
  2214. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2215. In configure script, if --with-PACKAGE and --enable-FEATURE are
  2216. given and PACKAGE is missing in the system or FEATURE cannot be
  2217. enabled, print error message and stop the script.
  2218. * configure.ac
  2219. * m4/aria2_arg.m4
  2220. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2221. Halt metadata download immediately when metadata download is done.
  2222. Don't wait unresponsive tracker.
  2223. * src/ByteArrayDiskWriter.h
  2224. * src/DefaultBtInteractive.cc
  2225. * src/DefaultExtensionMessageFactory.cc
  2226. * src/DefaultExtensionMessageFactory.h
  2227. * src/PeerInteractionCommand.cc
  2228. * src/UTMetadataDataExtensionMessage.cc
  2229. * src/UTMetadataDataExtensionMessage.h
  2230. * src/UTMetadataRequestExtensionMessage.cc
  2231. * test/UTMetadataDataExtensionMessageTest.cc
  2232. * test/UTMetadataRequestExtensionMessageTest.cc
  2233. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2234. Documented --interface option in man page.
  2235. * doc/aria2c.1.txt
  2236. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2237. Try resolved address in the order received from the resolver.
  2238. * src/DNSCache.h
  2239. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2240. Added debug logs.
  2241. * src/SocketCore.cc
  2242. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2243. Fixed type of tail to uint64_t
  2244. * src/util.cc
  2245. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2246. Added --interface option. This feature binds sockets to given
  2247. interface. You can specify interface name, IP address and
  2248. hostname.
  2249. * configure.ac
  2250. * src/OptionHandlerFactory.cc
  2251. * src/SocketCore.cc
  2252. * src/SocketCore.h
  2253. * src/main.cc
  2254. * src/message.h
  2255. * src/prefs.cc
  2256. * src/prefs.h
  2257. * src/usage_text.h
  2258. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2259. Updated man page for bt-prioritize-piece option in -i list.
  2260. * doc/aria2c.1.txt
  2261. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2262. Added bt-prioritize-piece option to -i list.
  2263. * src/download_helper.cc
  2264. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2265. Removed --http-auth-scheme option from man page.
  2266. * doc/aria2c.1.txt
  2267. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2268. Removed --http-auth-scheme option since it doesn't do nothing.
  2269. * src/OptionHandlerFactory.cc
  2270. * src/prefs.cc
  2271. * src/prefs.h
  2272. * src/usage_text.h
  2273. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2274. Adjusted the number of peer info which get_peers reply message can
  2275. carry.
  2276. * src/DHTGetPeersReplyMessage.cc
  2277. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2278. Added extension_message_test_helper.h to aria2c_SOURCES.
  2279. * test/Makefile.am
  2280. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2281. Documented --bt-prioritize-piece option in man page.
  2282. * doc/aria2c.1.txt
  2283. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2284. Added option --bt-prioritize-piece. This option instruct aria2 to
  2285. try to download first and last pieces of each file first. The
  2286. argument can contain 2 keywords:head and tail. To include both
  2287. keywords, they must be separated by comma. These keywords can take
  2288. one parameter, SIZE. For example , if head=SIZE is specified,
  2289. pieces in the range of first SIZE bytes of each file get higher
  2290. priority. tail=SIZE means the range of last SIZE bytes of each
  2291. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  2292. * src/DefaultPieceStorage.h
  2293. * src/Makefile.am
  2294. * src/OptionHandlerFactory.cc
  2295. * src/OptionHandlerImpl.h
  2296. * src/PriorityPieceSelector.cc
  2297. * src/PriorityPieceSelector.h
  2298. * src/RequestGroup.cc
  2299. * src/prefs.cc
  2300. * src/prefs.h
  2301. * src/usage_text.h
  2302. * src/util.cc
  2303. * src/util.h
  2304. * test/Makefile.am
  2305. * test/MockPieceSelector.h
  2306. * test/PriorityPieceSelectorTest.cc
  2307. * test/UtilTest.cc
  2308. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2309. Fixed typo
  2310. * src/HttpRequest.h
  2311. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2312. In Magnet URI with tr parameter, put each announce URI in separate
  2313. tier.
  2314. * src/bittorrent_helper.cc
  2315. * test/BittorrentHelperTest.cc
  2316. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2317. Renamed ExtensionMessage::getBencodedData() as
  2318. ExtensionMessage::getPayload()
  2319. * src/BtExtendedMessage.cc
  2320. * src/ExtensionMessage.h
  2321. * src/HandshakeExtensionMessage.cc
  2322. * src/HandshakeExtensionMessage.h
  2323. * src/UTMetadataDataExtensionMessage.cc
  2324. * src/UTMetadataDataExtensionMessage.h
  2325. * src/UTMetadataRejectExtensionMessage.cc
  2326. * src/UTMetadataRejectExtensionMessage.h
  2327. * src/UTMetadataRequestExtensionMessage.cc
  2328. * src/UTMetadataRequestExtensionMessage.h
  2329. * src/UTPexExtensionMessage.cc
  2330. * src/UTPexExtensionMessage.h
  2331. * test/HandshakeExtensionMessageTest.cc
  2332. * test/MockExtensionMessage.h
  2333. * test/UTMetadataDataExtensionMessageTest.cc
  2334. * test/UTMetadataRejectExtensionMessageTest.cc
  2335. * test/UTMetadataRequestExtensionMessageTest.cc
  2336. * test/UTPexExtensionMessageTest.cc
  2337. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2338. Updated man page for BitTorrent Magnet URI.
  2339. * doc/aria2c.1.txt
  2340. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2341. Call DownloadContext::setOwnerRequestGroup() in
  2342. RequestGroup::setDownloadContext().
  2343. * src/BtDependency.cc
  2344. * src/RequestGroup.cc
  2345. * src/RequestGroup.h
  2346. * src/download_helper.cc
  2347. * test/DefaultBtMessageDispatcherTest.cc
  2348. * test/DefaultExtensionMessageFactoryTest.cc
  2349. * test/HandshakeExtensionMessageTest.cc
  2350. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2351. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  2352. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  2353. from metadata, use new metadata2Torrent() function.
  2354. * src/BtDependency.cc
  2355. * src/UTMetadataPostDownloadHandler.cc
  2356. * src/bittorrent_helper.cc
  2357. * src/bittorrent_helper.h
  2358. * test/BittorrentHelperTest.cc
  2359. * test/BtDependencyTest.cc
  2360. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2361. Use createRequestGroupForUri to create the download for torrent
  2362. file.
  2363. * src/Metalink2RequestGroup.cc
  2364. * test/Metalink2RequestGroupTest.cc
  2365. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2366. Fixed typo
  2367. * src/DownloadContext.h
  2368. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2369. Use createRequestGroupForBitTorrent()
  2370. * src/BtPostDownloadHandler.cc
  2371. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2372. Added remove().
  2373. * src/Option.cc
  2374. * src/Option.h
  2375. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2376. Removed options which is only valid for URIs specified in
  2377. command-line. If they are left, because op is used as a template
  2378. for new RequestGroup(such as created in XML-RPC command,
  2379. BtPostDownloadHandler etc), they causes unintentional effect.
  2380. * src/main.cc
  2381. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2382. Refer to option value of PREF_OUT only in download_helper.
  2383. * src/FtpNegotiationCommand.cc
  2384. * src/HttpResponseCommand.cc
  2385. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2386. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  2387. * src/download_helper.cc
  2388. * src/download_helper.h
  2389. * src/XmlRpcMethodImpl.cc
  2390. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2391. Updated man page for changeOption XML-RPC method.
  2392. * doc/aria2c.1.txt
  2393. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2394. Added --bt-max-peers option to changeOption XML-RPC method.
  2395. * src/XmlRpcMethod.cc
  2396. * src/XmlRpcMethodImpl.cc
  2397. * test/XmlRpcMethodTest.cc
  2398. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2399. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  2400. * test/XmlRpcMethodTest.cc
  2401. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2402. Removed redundant DownloadContext::hasAttribute(...) calls.
  2403. * src/ConsoleStatCalc.cc
  2404. * src/RequestGroup.cc
  2405. * src/XmlRpcMethodImpl.cc
  2406. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2407. Changed the number of tracker request attempt from 5 to 2.
  2408. * src/TrackerWatcherCommand.cc
  2409. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2410. Use host and protocol in original URI, because URI selector
  2411. selects URI based on original URI, not redirected one.
  2412. * src/Request.cc
  2413. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2414. Fixed the bug which causes segmentation fault with tellWaiting
  2415. XML-RPC method when BitTorrent download is waiting. The key of
  2416. BtRegistry is changed from info hash to GID, because it is
  2417. registered per RequestGroup, not info hash.
  2418. * src/BtRegistry.cc
  2419. * src/BtRegistry.h
  2420. * src/BtSetup.cc
  2421. * src/ConsoleStatCalc.cc
  2422. * src/InitiatorMSEHandshakeCommand.cc
  2423. * src/PeerInitiateConnectionCommand.cc
  2424. * src/PeerInteractionCommand.cc
  2425. * src/PeerInteractionCommand.h
  2426. * src/PeerReceiveHandshakeCommand.cc
  2427. * src/RequestGroup.cc
  2428. * src/XmlRpcMethodImpl.cc
  2429. * test/BtRegistryTest.cc
  2430. * test/XmlRpcMethodTest.cc
  2431. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2432. Updated man page for changeOption XML-RPC method.
  2433. * doc/aria2c.1.txt
  2434. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2435. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  2436. method.
  2437. * src/XmlRpcMethod.cc
  2438. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2439. Documented about BitTorrent Magnet URI in man page.
  2440. * doc/aria2c.1.txt
  2441. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2442. Fixed the bug that trackers in BitTorrent Magnet URI are not
  2443. inherited to generated RequestGroup.
  2444. * src/UTMetadataPostDownloadHandler.cc
  2445. * test/UTMetadataPostDownloadHandlerTest.cc
  2446. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2447. Prepended "[METADATA]" before dn.
  2448. * src/bittorrent_helper.cc
  2449. * test/BittorrentHelperTest.cc
  2450. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2451. Rewritten Magnet URI parser.
  2452. * src/Makefile.am
  2453. * src/ProtocolDetector.cc
  2454. * src/bittorrent_helper.cc
  2455. * src/bittorrent_helper.h
  2456. * src/download_helper.cc
  2457. * src/magnet.cc
  2458. * src/magnet.h
  2459. * test/BittorrentHelperTest.cc
  2460. * test/MagnetTest.cc
  2461. * test/Makefile.am
  2462. * test/ProtocolDetectorTest.cc
  2463. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2464. Use hton64
  2465. * src/base32.cc
  2466. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2467. Added Base32 encoded BitTorrent Magnet Link support.
  2468. * src/Makefile.am
  2469. * src/base32.cc
  2470. * src/base32.h
  2471. * src/bittorrent_helper.cc
  2472. * test/Base32Test.cc
  2473. * test/BittorrentHelperTest.cc
  2474. * test/Makefile.am
  2475. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2476. Added BitTorrent Magnet Link support. Base32 encoded link is not
  2477. supported yet. Fixed typo in method name in RequestGroup. In
  2478. metadataGetMode, don't show "Your share ratio was ..." message.
  2479. * src/DefaultBtInteractive.cc
  2480. * src/DefaultBtInteractive.h
  2481. * src/DownloadHandlerFactory.cc
  2482. * src/DownloadHandlerFactory.h
  2483. * src/HandshakeExtensionMessage.cc
  2484. * src/Makefile.am
  2485. * src/Metalink2RequestGroup.cc
  2486. * src/PeerInteractionCommand.cc
  2487. * src/RequestGroup.cc
  2488. * src/RequestGroup.h
  2489. * src/UTMetadataPostDownloadHandler.cc
  2490. * src/UTMetadataPostDownloadHandler.h
  2491. * src/download_helper.cc
  2492. * test/HandshakeExtensionMessageTest.cc
  2493. * test/Makefile.am
  2494. * test/UTMetadataPostDownloadHandlerTest.cc
  2495. * test/UTMetadataRejectExtensionMessageTest.cc
  2496. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2497. In metadataGetMode, don't show SEEDING.
  2498. * src/ConsoleStatCalc.cc
  2499. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2500. Fixed ut_metadata data handling. Implemented
  2501. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  2502. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  2503. metadata_size is received.
  2504. * src/DefaultExtensionMessageFactory.cc
  2505. * src/DefaultExtensionMessageFactory.h
  2506. * src/HandshakeExtensionMessage.cc
  2507. * src/HandshakeExtensionMessage.h
  2508. * src/UTMetadataDataExtensionMessage.cc
  2509. * src/UTMetadataDataExtensionMessage.h
  2510. * src/UTMetadataRequestExtensionMessage.cc
  2511. * src/UTMetadataRequestFactory.cc
  2512. * src/UTMetadataRequestFactory.h
  2513. * src/UTMetadataRequestTracker.cc
  2514. * src/UTMetadataRequestTracker.h
  2515. * test/DefaultExtensionMessageFactoryTest.cc
  2516. * test/HandshakeExtensionMessageTest.cc
  2517. * test/MockBtMessage.h
  2518. * test/UTMetadataDataExtensionMessageTest.cc
  2519. * test/UTMetadataRequestExtensionMessageTest.cc
  2520. * test/UTMetadataRequestFactoryTest.cc
  2521. * test/UTMetadataRequestTrackerTest.cc
  2522. * test/extension_message_test_helper.h
  2523. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2524. Drop connection if ut_metadata reject message is received.
  2525. * src/UTMetadataRejectExtensionMessage.cc
  2526. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2527. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  2528. get high enough in that mode.
  2529. * src/ActivePeerConnectionCommand.cc
  2530. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2531. Added BitTorrent magnet link support to ProtocolDetector.
  2532. * src/ProtocolDetector.cc
  2533. * src/ProtocolDetector.h
  2534. * test/ProtocolDetectorTest.cc
  2535. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2536. Don't inject validator into BtMessage in metadataGetMode because
  2537. most of the checks depends on the total length of download but it
  2538. is unknown. Delegate metadataGetMode to BtMessage.
  2539. * src/DefaultBtMessageFactory.cc
  2540. * src/DefaultBtMessageFactory.h
  2541. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2542. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  2543. * src/DefaultPieceStorage.h
  2544. * src/PieceStorage.h
  2545. * src/UnknownLengthPieceStorage.h
  2546. * test/MockPieceStorage.h
  2547. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2548. Added markTotalLengthIsKnown().
  2549. * src/DownloadContext.h
  2550. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2551. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  2552. missing. If metadata is missing, always use DHT when it is ready.
  2553. * src/BtSetup.cc
  2554. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2555. Added parseMagnetLink(). Hex encoded info hash is supported.
  2556. Base32 encoded info hash is not supported yet.
  2557. * src/bittorrent_helper.cc
  2558. * src/bittorrent_helper.h
  2559. * test/BittorrentHelperTest.cc
  2560. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2561. Added FromHex()
  2562. * src/util.cc
  2563. * src/util.h
  2564. * test/UtilTest.cc
  2565. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2566. Added _metadataGetMode member variable. It toggles the action when
  2567. messages are received: usually they almost do nothing if
  2568. _metadataGetMode is true.
  2569. * src/AbstractBtMessage.cc
  2570. * src/AbstractBtMessage.h
  2571. * src/BtAllowedFastMessage.cc
  2572. * src/BtBitfieldMessage.cc
  2573. * src/BtCancelMessage.cc
  2574. * src/BtChokeMessage.cc
  2575. * src/BtHaveAllMessage.cc
  2576. * src/BtHaveMessage.cc
  2577. * src/BtInterestedMessage.cc
  2578. * src/BtNotInterestedMessage.cc
  2579. * src/BtPieceMessage.cc
  2580. * src/BtRejectMessage.cc
  2581. * src/BtRequestMessage.cc
  2582. * src/BtUnchokeMessage.cc
  2583. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2584. Added bencode::decode overload functions. They have extra argument
  2585. 'end', passed by reference. 'end' points to the beyond the last
  2586. position of data used in decoding process.
  2587. * src/bencode.cc
  2588. * src/bencode.h
  2589. * test/BencodeTest.cc
  2590. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2591. Initial support of Extension for Peers to Send Metadata
  2592. Files(BEP9). Currently aria2 only serves metadata and cannot get
  2593. metadata from swarm.
  2594. * src/BtConstants.h
  2595. * src/DefaultBtInteractive.cc
  2596. * src/DefaultExtensionMessageFactory.cc
  2597. * src/DefaultExtensionMessageFactory.h
  2598. * src/ExtensionMessage.h
  2599. * src/ExtensionMessageRegistry.h
  2600. * src/HandshakeExtensionMessage.cc
  2601. * src/HandshakeExtensionMessage.h
  2602. * src/Makefile.am
  2603. * src/PeerConnection.h
  2604. * src/PeerInteractionCommand.cc
  2605. * src/UTMetadataDataExtensionMessage.cc
  2606. * src/UTMetadataDataExtensionMessage.h
  2607. * src/UTMetadataExtensionMessage.cc
  2608. * src/UTMetadataExtensionMessage.h
  2609. * src/UTMetadataRejectExtensionMessage.cc
  2610. * src/UTMetadataRejectExtensionMessage.h
  2611. * src/UTMetadataRequestExtensionMessage.cc
  2612. * src/UTMetadataRequestExtensionMessage.h
  2613. * src/bittorrent_helper.cc
  2614. * src/bittorrent_helper.h
  2615. * test/BittorrentHelperTest.cc
  2616. * test/DefaultExtensionMessageFactoryTest.cc
  2617. * test/HandshakeExtensionMessageTest.cc
  2618. * test/Makefile.am
  2619. * test/UTMetadataDataExtensionMessageTest.cc
  2620. * test/UTMetadataRejectExtensionMessageTest.cc
  2621. * test/UTMetadataRequestExtensionMessageTest.cc
  2622. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2623. Cancel segment in prepareForRetry() because there is a chance that
  2624. the command has segments.
  2625. * src/CreateRequestCommand.cc
  2626. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2627. Fixed the bug that slow server is not knocked down in favor of
  2628. faster one.
  2629. * src/AbstractCommand.cc
  2630. * src/DefaultPieceStorage.cc
  2631. * src/DefaultPieceStorage.h
  2632. * src/PieceStorage.h
  2633. * src/UnknownLengthPieceStorage.cc
  2634. * src/UnknownLengthPieceStorage.h
  2635. * test/MockPieceStorage.h
  2636. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2637. Fixed the bug that Request object is not added to
  2638. _inFlightRequests in findFasterRequest().
  2639. * src/FileEntry.cc
  2640. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2641. Changed the strategry of how to increase the number of outstanding
  2642. requests. Now the number is doubled if there are no outstanding
  2643. requests after receiving messages.
  2644. * src/BtConstants.h
  2645. * src/DefaultBtInteractive.cc
  2646. * src/DefaultBtInteractive.h
  2647. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2648. Check socket for reading if there are outstanding requests.
  2649. * src/PeerInteractionCommand.cc
  2650. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2651. Moved frequently called methods to header file so they get
  2652. inlined.
  2653. * src/RequestSlot.cc
  2654. * src/RequestSlot.h
  2655. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2656. Copied in_addr instead of just casting from char* which might
  2657. violate strict aliasing rules.
  2658. * src/AsyncNameResolver.cc
  2659. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2660. Use dynamic_pointer_cast
  2661. * test/BtPieceMessageTest.cc
  2662. * test/BtRequestMessageTest.cc
  2663. * test/DefaultBtRequestFactoryTest.cc
  2664. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2665. Added testSetUrl20()
  2666. * test/RequestTest.cc
  2667. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2668. Code cleanup
  2669. * src/bittorrent_helper.cc
  2670. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2671. Use C++ style cast
  2672. * src/AsyncNameResolver.cc
  2673. * src/Base64.h
  2674. * src/BtBitfieldMessage.cc
  2675. * src/BtHandshakeMessage.cc
  2676. * src/DefaultBtMessageFactory.cc
  2677. * src/DefaultBtProgressInfoFile.cc
  2678. * src/EpollEventPoll.cc
  2679. * src/ExpatMetalinkProcessor.cc
  2680. * src/IteratableChecksumValidator.cc
  2681. * src/IteratableChunkChecksumValidator.cc
  2682. * src/MessageDigestHelper.cc
  2683. * src/Platform.cc
  2684. * src/RequestGroupMan.cc
  2685. * src/SingleFileAllocationIterator.cc
  2686. * src/Sqlite3MozCookieParser.cc
  2687. * src/XML2SAXMetalinkProcessor.cc
  2688. * src/Xml2XmlRpcRequestProcessor.cc
  2689. * src/util.cc
  2690. * src/util.h
  2691. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2692. Fixed integer potential alignment problem.
  2693. * src/bitfield.h
  2694. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2695. Applied a patch from tizianomueller to fix sigbus errors on Linux
  2696. sparc. I modified the patch to eliminate a cast to uint32_t* and
  2697. include file ordering.
  2698. * src/PeerListProcessor.h
  2699. * src/bittorrent_helper.cc
  2700. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2701. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  2702. * src/Request.cc
  2703. * src/util.cc
  2704. * src/util.h
  2705. * test/RequestTest.cc
  2706. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2707. Rewritten util::uitos()
  2708. * src/util.h
  2709. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2710. Code cleanup
  2711. * src/Request.cc
  2712. * src/Request.h
  2713. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2714. Rewritten Request::parseUrl()
  2715. * src/Request.cc
  2716. * test/RequestTest.cc
  2717. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2718. Removed unused macro SAFE_CHARS
  2719. * src/Request.cc
  2720. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2721. Updated doc
  2722. * src/DHTRoutingTableDeserializer.cc
  2723. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2724. Release 1.6.3
  2725. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2726. Removed unused function.
  2727. * test/DHTPeerAnnounceStorageTest.cc
  2728. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2729. Only decrement cols if cols > 0
  2730. * src/ConsoleStatCalc.cc
  2731. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2732. Updated Polish, Catalan, French, Italian, Russian and Japanese
  2733. translations. Thanks to all translators.
  2734. * po/ca.po
  2735. * po/fr.po
  2736. * po/it.po
  2737. * po/ja.po
  2738. * po/pl.po
  2739. * po/ru.po
  2740. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2741. Updated translation template
  2742. * po
  2743. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2744. Fixed compile error without ssl library.
  2745. * src/util.cc
  2746. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2747. Logged received nodes in get_peers reply message.
  2748. * src/DHTAbstractNodeLookupTask.cc
  2749. * src/DHTAbstractNodeLookupTask.h
  2750. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2751. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  2752. error occurred in DHTMessageDispatcherImpl::sendMessage().
  2753. * src/DHTMessageDispatcherImpl.cc
  2754. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2755. Don't reuse URI if Request pool is not empty.
  2756. * src/CreateRequestCommand.cc
  2757. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2758. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  2759. receive get_peers request for torrent which the client is now
  2760. downloading.
  2761. * src/BtSetup.cc
  2762. * src/DHTPeerAnnounceEntry.cc
  2763. * src/DHTPeerAnnounceEntry.h
  2764. * src/DHTPeerAnnounceStorage.cc
  2765. * src/DHTPeerAnnounceStorage.h
  2766. * src/RequestGroup.cc
  2767. * test/DHTPeerAnnounceEntryTest.cc
  2768. * test/DHTPeerAnnounceStorageTest.cc
  2769. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2770. Fixed the bug that in Windows environment new blank line is
  2771. inserted when console readout is updated.
  2772. * src/ConsoleStatCalc.cc
  2773. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2774. Throw exception if binding listening port is failed. Removed
  2775. RequestGroupMan::getInitialCommand(). Use
  2776. fillRequestGroupFromReserver() instead. Delete commands for
  2777. RequestGroup which has errors when it is being added.
  2778. * src/BtSetup.cc
  2779. * src/DownloadEngine.cc
  2780. * src/DownloadEngine.h
  2781. * src/DownloadEngineFactory.cc
  2782. * src/MultiUrlRequestInfo.cc
  2783. * src/RequestGroupMan.cc
  2784. * src/RequestGroupMan.h
  2785. * test/RequestGroupManTest.cc
  2786. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2787. Fixed the bug that when downloading more than one torrent,
  2788. listening port is not reported properly to tracker for 2nd or
  2789. later torrents.
  2790. * src/BtSetup.cc
  2791. * src/PeerListenCommand.cc
  2792. * src/PeerListenCommand.h
  2793. * src/RequestGroup.cc
  2794. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2795. Bump up version number to 1.6.3
  2796. * configure.ac
  2797. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2798. Removed Util.cc from POTFILES.in
  2799. * po/POTFILES.in
  2800. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2801. Updated man page for previous change.
  2802. * doc/aria2c.1.txt
  2803. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2804. If user name is embedded but password is missing in URI, first
  2805. resolve password using .netrc. If password is found in .netrc,
  2806. then use it as password. If not, use the password specified in
  2807. --ftp-passwd.
  2808. * src/AuthConfigFactory.cc
  2809. * src/Request.cc
  2810. * src/Request.h
  2811. * test/AuthConfigFactoryTest.cc
  2812. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2813. Fixed typo
  2814. * doc/aria2c.1.txt
  2815. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2816. Fixed typo
  2817. * src/usage_text.h
  2818. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2819. Added missing bitfield.cc
  2820. * src/bitfield.cc
  2821. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2822. Renamed Util.{cc,h} as util.{cc,h}
  2823. * src/Util.cc
  2824. * src/Util.h
  2825. * src/util.cc
  2826. * src/util.h
  2827. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2828. Moved static functions in Util class to namespace util.
  2829. * src
  2830. * test
  2831. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2832. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  2833. Moved generateRandomKey to bittorrent_helper.cc.
  2834. * src/DHTBucket.cc
  2835. * src/DHTGetPeersMessage.cc
  2836. * src/DHTGetPeersReplyMessage.cc
  2837. * src/DHTMessage.cc
  2838. * src/DHTNode.cc
  2839. * src/DHTTokenTracker.cc
  2840. * src/DHTUtil.cc: Removed.
  2841. * src/DHTUtil.h: Removed.
  2842. * src/Makefile.am
  2843. * src/Util.cc
  2844. * src/Util.h
  2845. * src/bitfield.h
  2846. * src/bittorrent_helper.cc
  2847. * src/bittorrent_helper.h
  2848. * test/ARC4Test.cc
  2849. * test/BNodeTest.cc
  2850. * test/DHTAnnouncePeerMessageTest.cc
  2851. * test/DHTAnnouncePeerReplyMessageTest.cc
  2852. * test/DHTFindNodeMessageTest.cc
  2853. * test/DHTFindNodeReplyMessageTest.cc
  2854. * test/DHTGetPeersMessageTest.cc
  2855. * test/DHTGetPeersReplyMessageTest.cc
  2856. * test/DHTPingMessageTest.cc
  2857. * test/DHTPingReplyMessageTest.cc
  2858. * test/DHTTokenTrackerTest.cc
  2859. * test/DHTUtilTest.cc: Removed.
  2860. * test/Makefile.am
  2861. * test/UtilTest.cc
  2862. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2863. Removed the call to trim() because trim() is called for each
  2864. element in split().
  2865. * src/CookieParser.cc
  2866. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2867. Replaced Util::slice() with split()
  2868. * src/AbstractCommand.cc
  2869. * src/CookieParser.cc
  2870. * src/File.cc
  2871. * src/HttpHeaderProcessor.cc
  2872. * src/HttpRequest.cc
  2873. * src/Metalink2RequestGroup.cc
  2874. * src/MetalinkParserController.cc
  2875. * src/Netrc.cc
  2876. * src/NsCookieParser.cc
  2877. * src/ParameterizedStringParser.cc
  2878. * src/ServerStatMan.cc
  2879. * src/UriListParser.cc
  2880. * src/Util.cc
  2881. * src/Util.h
  2882. * src/bittorrent_helper.cc
  2883. * test/UtilTest.cc
  2884. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2885. Use request->getDir() instead of "/" for embedded user/pass in
  2886. URI.
  2887. * src/AuthConfigFactory.cc
  2888. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2889. Fixed wrong insertion point for BasicCred.
  2890. * src/AuthConfigFactory.cc
  2891. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2892. Allowed non-regular file in LocalFilePathOptionHandler
  2893. * src/OptionHandlerImpl.h
  2894. * src/message.h
  2895. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2896. Fixed the bug that Netrc::parse() cannot recognize comment line.
  2897. * src/Netrc.cc
  2898. * src/Util.h
  2899. * test/NetrcTest.cc
  2900. * test/sample.netrc
  2901. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2902. Fixed typo
  2903. * src/BtDependency.cc
  2904. * src/BtRejectMessage.cc
  2905. * src/FtpConnection.cc
  2906. * src/HttpHeaderProcessor.h
  2907. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2908. Fixed lintian report in man page
  2909. * doc/aria2c.1.txt
  2910. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2911. Release 1.6.2
  2912. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2913. Updated Ukrainian translation. Thanks to all translators.
  2914. * po/uk.po
  2915. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2916. Updated translation template
  2917. * po
  2918. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2919. Bump up version number to 1.6.2
  2920. * configure.ac
  2921. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2922. Updated licence message in -v output.
  2923. * src/version_usage.cc
  2924. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2925. Replaced aria2 with aria2c in help message.
  2926. * src/version_usage.cc
  2927. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2928. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  2929. * src/version_usage.cc
  2930. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2931. Quoted localedir
  2932. * src/Makefile.am
  2933. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2934. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  2935. utime. Check header for utime.h.
  2936. * configure.ac
  2937. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2938. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  2939. * configure.ac
  2940. * src/daemon.cc
  2941. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2942. Don't set localedir manually. Leave it to autoconf.
  2943. * configure.ac
  2944. * src/Makefile.am
  2945. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2946. Added --install to ACLOCAL_AMFLAGS.
  2947. Removed m4 from SUBDIRS.
  2948. Updated automake 1.11 and autoconf 2.64.
  2949. Replaced some obsolute macros with new one.
  2950. * Makefile.am
  2951. * configure.ac
  2952. * m4/aria2_arg.m4
  2953. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2954. Removed Makefile.am in m4 directory.
  2955. * configure.ac
  2956. * m4/ChangeLog
  2957. * m4/Makefile.am
  2958. * m4/Makefile.in
  2959. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2960. Removed unused m4 macros.
  2961. * m4/intldir.m4
  2962. * m4/inttypes.m4
  2963. * m4/isc-posix.m4
  2964. * m4/libgnutls-extra.m4
  2965. * m4/ulonglong.m4
  2966. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2967. Fixed the bug that causes segmentation fault if
  2968. req->getCurrentUrl() contains printf formatting characters such as
  2969. %d. The statement that causes this bug is useless and removed.
  2970. * src/AbstractCommand.cc
  2971. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2972. * Release 1.6.1
  2973. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2974. Updated Simplified Chinese translation. Thanks to translators.
  2975. * po/zh_CN.po
  2976. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2977. Updated translation template
  2978. * po
  2979. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2980. Bump up version number to 1.6.1
  2981. * configure.ac
  2982. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2983. Changed interval from 120 to 60 for dropping inactive peer.
  2984. * src/DefaultBtInteractive.cc
  2985. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2986. Updated man page for --user-agent and --peer-id-prefix option.
  2987. * doc/aria2c.1.txt
  2988. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2989. Code clean up
  2990. * src/BtPostDownloadHandler.cc
  2991. * src/ContentTypeRequestGroupCriteria.cc
  2992. * src/ContentTypeRequestGroupCriteria.h
  2993. * src/DownloadHandlerConstants.cc
  2994. * src/DownloadHandlerConstants.h
  2995. * src/DownloadHandlerFactory.cc
  2996. * src/MetalinkPostDownloadHandler.cc
  2997. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2998. Don't save control file when aria2 exists while checking piece
  2999. hash(behavior of -V option). If control file doesn't exist when
  3000. aria2 launched, the completed length in saved control file will be
  3001. 0 byte and this confuses user. disableSaveControlFile() is called
  3002. in RequestGroup::processCheckIntegrityEntry().
  3003. enableSaveControlFile() will be called after hash checking is
  3004. done. See CheckIntegrityCommand.
  3005. * src/CheckIntegrityCommand.cc
  3006. * src/RequestGroup.cc
  3007. * src/RequestGroup.h
  3008. * src/RequestGroupMan.cc
  3009. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3010. Included version number in Peer ID and client version. Peer ID
  3011. now starts with "aria2/VERSION-", where VERSION is
  3012. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  3013. * src/DefaultBtInteractive.cc
  3014. * src/OptionHandlerFactory.cc
  3015. * src/bittorrent_helper.cc
  3016. * src/bittorrent_helper.h
  3017. * src/main.cc
  3018. * src/usage_text.h
  3019. * test/BittorrentHelperTest.cc
  3020. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3021. Fixed memory leak.
  3022. * src/DownloadCommand.cc
  3023. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3024. Removed server, port, user and passwd key from options before
  3025. XMLRPC::Client.call since they are not options of aria2.
  3026. * doc/xmlrpc/aria2mon
  3027. * doc/xmlrpc/aria2rpc
  3028. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3029. Included version number in user-agent string.
  3030. * src/OptionHandlerFactory.cc
  3031. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3032. Fixed the bug that the option values changed by XML-RPC
  3033. method(changeOption and changeGlobalOption) are overwritten to the
  3034. previous value by the next these request which doesn't contain
  3035. that option value. Supporse max-download-limit is initially 0. You
  3036. changed this value to 100K by changeOption. Then you issue
  3037. changeOption request to change max-upload-limit to 50K. This
  3038. second request doesn't contain xml-download-limit, so it is back
  3039. to initial value, 0. Another improvement is that exception is
  3040. thrown when changeOption and changeGlobalOption request contains
  3041. option name which doesn't allowed in each request.
  3042. * src/DownloadEngine.h
  3043. * src/XmlRpcMethod.cc
  3044. * src/XmlRpcMethod.h
  3045. * src/XmlRpcMethodImpl.cc
  3046. * src/download_helper.cc
  3047. * src/download_helper.h
  3048. * test/XmlRpcMethodTest.cc
  3049. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3050. Added missing MetalinkParserStateImpl.{cc,h}
  3051. * src/MetalinkParserStateImpl.cc
  3052. * src/MetalinkParserStateImpl.h
  3053. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3054. Put all MetalinkParserState subclasses into
  3055. MetalinkParserStateImpl.cc. Use stack to track element structure.
  3056. * src/FileMetalinkParserState.cc: Removed
  3057. * src/FileMetalinkParserState.h: Removed
  3058. * src/FilesMetalinkParserState.cc: Removed
  3059. * src/FilesMetalinkParserState.h: Removed
  3060. * src/FinMetalinkParserState.cc: Removed
  3061. * src/FinMetalinkParserState.h: Removed
  3062. * src/HashMetalinkParserState.cc: Removed
  3063. * src/HashMetalinkParserState.h: Removed
  3064. * src/InitialMetalinkParserState.cc: Removed
  3065. * src/InitialMetalinkParserState.h: Removed
  3066. * src/LanguageMetalinkParserState.cc: Removed
  3067. * src/LanguageMetalinkParserState.h: Removed
  3068. * src/Makefile.am
  3069. * src/MetalinkMetalinkParserState.cc: Removed
  3070. * src/MetalinkMetalinkParserState.h: Removed
  3071. * src/MetalinkParserState.h
  3072. * src/MetalinkParserStateMachine.cc
  3073. * src/MetalinkParserStateMachine.h
  3074. * src/OSMetalinkParserState.cc: Removed
  3075. * src/OSMetalinkParserState.h: Removed
  3076. * src/PieceHashMetalinkParserState.cc: Removed
  3077. * src/PieceHashMetalinkParserState.h: Removed
  3078. * src/PiecesMetalinkParserState.cc: Removed
  3079. * src/PiecesMetalinkParserState.h: Removed
  3080. * src/ResourcesMetalinkParserState.cc: Removed
  3081. * src/ResourcesMetalinkParserState.h: Removed
  3082. * src/SignatureMetalinkParserState.cc: Removed
  3083. * src/SignatureMetalinkParserState.h: Removed
  3084. * src/SizeMetalinkParserState.cc: Removed
  3085. * src/SizeMetalinkParserState.h: Removed
  3086. * src/SkipTagMetalinkParserState.cc: Removed
  3087. * src/SkipTagMetalinkParserState.h: Removed
  3088. * src/URLMetalinkParserState.cc: Removed
  3089. * src/URLMetalinkParserState.h: Removed
  3090. * src/VerificationMetalinkParserState.cc: Removed
  3091. * src/VerificationMetalinkParserState.h: Removed
  3092. * src/VersionMetalinkParserState.cc: Removed
  3093. * src/VersionMetalinkParserState.h: Removed
  3094. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3095. Move all functions in PeerMessageUtil to bittorrent_helper.
  3096. * src/BtBitfieldMessage.cc
  3097. * src/BtBitfieldMessageValidator.h
  3098. * src/BtExtendedMessage.cc
  3099. * src/BtHandshakeMessage.cc
  3100. * src/BtHandshakeMessageValidator.h
  3101. * src/BtPieceMessage.cc
  3102. * src/BtPieceMessageValidator.h
  3103. * src/BtPortMessage.cc
  3104. * src/DHTFindNodeReplyMessage.cc
  3105. * src/DHTGetPeersReplyMessage.cc
  3106. * src/DHTMessageFactoryImpl.cc
  3107. * src/DHTRoutingTableDeserializer.cc
  3108. * src/DHTRoutingTableSerializer.cc
  3109. * src/DHTTokenTracker.cc
  3110. * src/DefaultBtMessageFactory.cc
  3111. * src/IndexBtMessage.cc
  3112. * src/IndexBtMessage.h
  3113. * src/IndexBtMessageValidator.h
  3114. * src/Makefile.am
  3115. * src/PeerMessageUtil.cc: Removed.
  3116. * src/PeerMessageUtil.h: Removed.
  3117. * src/RangeBtMessage.cc
  3118. * src/RangeBtMessage.h
  3119. * src/RangeBtMessageValidator.h
  3120. * src/UTPexExtensionMessage.cc
  3121. * src/ZeroBtMessage.cc
  3122. * src/ZeroBtMessage.h
  3123. * src/bittorrent_helper.cc
  3124. * src/bittorrent_helper.h
  3125. * test/BittorrentHelperTest.cc
  3126. * test/BtAllowedFastMessageTest.cc
  3127. * test/BtBitfieldMessageTest.cc
  3128. * test/BtCancelMessageTest.cc
  3129. * test/BtChokeMessageTest.cc
  3130. * test/BtExtendedMessageTest.cc
  3131. * test/BtHandshakeMessageTest.cc
  3132. * test/BtHaveAllMessageTest.cc
  3133. * test/BtHaveMessageTest.cc
  3134. * test/BtHaveNoneMessageTest.cc
  3135. * test/BtInterestedMessageTest.cc
  3136. * test/BtNotInterestedMessageTest.cc
  3137. * test/BtPieceMessageTest.cc
  3138. * test/BtPortMessageTest.cc
  3139. * test/BtRejectMessageTest.cc
  3140. * test/BtRequestMessageTest.cc
  3141. * test/BtSuggestPieceMessageTest.cc
  3142. * test/BtUnchokeMessageTest.cc
  3143. * test/DHTFindNodeReplyMessageTest.cc
  3144. * test/DHTGetPeersReplyMessageTest.cc
  3145. * test/DHTMessageFactoryImplTest.cc
  3146. * test/DHTRoutingTableDeserializerTest.cc
  3147. * test/DHTRoutingTableSerializerTest.cc
  3148. * test/DefaultBtMessageFactoryTest.cc
  3149. * test/DefaultExtensionMessageFactoryTest.cc
  3150. * test/Makefile.am
  3151. * test/PeerListProcessorTest.cc
  3152. * test/PeerMessageUtilTest.cc: Removed.
  3153. * test/UTPexExtensionMessageTest.cc
  3154. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3155. Limit the size of values list when sending get_peers reply.
  3156. * src/DHTGetPeersReplyMessage.cc
  3157. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3158. Updated banner
  3159. * doc/xmlrpc/aria2rpc
  3160. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3161. Added missing help message for remove command.
  3162. * doc/xmlrpc/aria2rpc
  3163. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3164. Generated configure and config.h.in
  3165. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  3166. Add check for fork(), which is missing on MinGW
  3167. * src/daemon.cc
  3168. * configure.ac
  3169. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3170. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  3171. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  3172. Util::httpGMT().
  3173. * src/Util.cc
  3174. * src/Util.h
  3175. * test/UtilTest.cc
  3176. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3177. * Release 1.6.0
  3178. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3179. Fixed a path to xmlrpc/README.txt
  3180. * doc/Makefile.am
  3181. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3182. Added XML-RPC in -v Configuration output.
  3183. * src/FeatureConfig.cc
  3184. * src/FeatureConfig.h
  3185. * test/FeatureConfigTest.cc
  3186. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3187. Updated Bulgarian, Russian, Slovak and Japanese
  3188. translations. Thanks to all translators.
  3189. * po/bg.po
  3190. * po/ja.po
  3191. * po/ru.po
  3192. * po/sk.po
  3193. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3194. Removed --retry-wait option from aria2rpc
  3195. * doc/xmlrpc/aria2rpc
  3196. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3197. Removed --retry-wait option from man page.
  3198. * doc/aria2c.1.txt
  3199. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3200. Removed --retry-wait option since the current architecture doesn't
  3201. allow sleep for particular URI.
  3202. * src/AbstractCommand.cc
  3203. * src/OptionHandlerFactory.cc
  3204. * src/download_helper.cc
  3205. * src/prefs.cc
  3206. * src/prefs.h
  3207. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3208. Removed Retry-After header support. Since the current architecture
  3209. doesn't allow sleep for particular URI.
  3210. * src/HttpSkipResponseCommand.cc
  3211. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3212. Updated the help message for --daemon option.
  3213. * doc/aria2c.1.txt
  3214. * src/usage_text.h
  3215. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3216. Added our own daemon() function for systems which desn't have
  3217. daemon(3).
  3218. * configure.ac
  3219. * src/Makefile.am
  3220. * src/daemon.cc
  3221. * src/daemon.h
  3222. * src/option_processing.cc
  3223. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3224. Simplified File::getCurrentDir()
  3225. * src/File.cc
  3226. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3227. Use exit() instead of _exit
  3228. * src/RequestGroupMan.cc
  3229. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3230. Replaced "CATEGORY" with "TAGS".
  3231. * src/usage_text.h
  3232. * doc/aria2c.1.txt
  3233. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3234. Updated the help message for --help option.
  3235. * src/usage_text.h
  3236. * doc/aria2c.1.txt
  3237. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3238. Updated man page for added help tags.
  3239. * doc/aria2c.1.txt
  3240. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3241. Added help category #file. Added #file tag to the options related
  3242. to downloaded file.
  3243. * src/OptionHandlerFactory.cc
  3244. * src/help_tags.h
  3245. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3246. Added help categories: #cookie and #hook. Added #https tag to
  3247. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  3248. * src/OptionHandlerFactory.cc
  3249. * src/help_tags.h
  3250. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3251. Made MSG_NOT_FILE translatable.
  3252. * src/message.h
  3253. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3254. Updated man page for --help option.
  3255. * doc/aria2c.1.txt
  3256. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3257. Updated doc.
  3258. * src/XmlRpcMethod.h
  3259. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3260. Help category now starts with "#" to distinguish a category from
  3261. keyword search. For example, "http" categroy is now "#http". You
  3262. can type "--help=#http" to get explanation of options related to
  3263. http. If '#' is omitted, then the argument is treated as a keyword
  3264. and aria2 searches options whose name includes the keyword and
  3265. print matched ones. For example, "--help=http" will show options
  3266. whose name includes "http".
  3267. * src/OptionHandlerFactory.cc
  3268. * src/help_tags.h
  3269. * src/usage_text.h
  3270. * src/version_usage.cc
  3271. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3272. Documented missing experimental tag and newly added xml-rpc tag in
  3273. man page.
  3274. * doc/aria2c.1.txt
  3275. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3276. Added xml-rpc help tag. Tagged xml-rpc related options with
  3277. xml-rpc tag.
  3278. * src/OptionHandlerFactory.cc
  3279. * src/help_tags.h
  3280. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3281. Updated message when a path is not a file. Updated common message
  3282. for wrong option.
  3283. * src/OptionHandlerException.cc
  3284. * src/message.h
  3285. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3286. Use File::isFile() instead of File::exists(). Updated message when
  3287. a path is not a file.
  3288. * src/OptionHandlerImpl.cc
  3289. * src/message.h
  3290. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3291. Fixed the bug that server performence profile is not updated when
  3292. aria2c was terminated by emergency shutdown.
  3293. * src/TrackerWatcherCommand.cc
  3294. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3295. Use LocalFilePathOptionHandler for -T and -M option.
  3296. Updated message of MSG_FILE_NOT_EXIST.
  3297. * src/OptionHandlerFactory.cc
  3298. * src/message.h
  3299. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3300. Added LocalFilePathOptionHandler which check whether the specified
  3301. file path does exist or not.
  3302. * src/OptionHandlerImpl.cc
  3303. * src/message.h
  3304. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3305. Updated wiki page URI.
  3306. * README
  3307. * doc/aria2c.1.txt
  3308. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3309. Added README.txt for xmlrpc directory.
  3310. * doc/Makefile.am
  3311. * doc/xmlrpc/README.txt
  3312. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3313. Bump up version number to 1.6.0.
  3314. * configure.ac
  3315. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3316. Added XML-RPC client scripts written in ruby.
  3317. * doc/Makefile.am
  3318. * doc/xmlrpc/aria2mon
  3319. * doc/xmlrpc/aria2rpc
  3320. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3321. Added support for IPv6 literal address in URI. Now aria2 can
  3322. handle URI such as http://[::1]/
  3323. * src/HttpRequest.cc
  3324. * src/HttpRequest.h
  3325. * src/Request.cc
  3326. * src/Request.h
  3327. * test/HttpRequestTest.cc
  3328. * test/OptionHandlerTest.cc
  3329. * test/RequestTest.cc
  3330. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3331. Fixed the bug that HTTP request header for XML-RPC request is not
  3332. parsed properly.
  3333. * src/HttpHeader.cc
  3334. * src/HttpHeaderProcessor.cc
  3335. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3336. Fixed the bug that XML-RPC authorization might be done before HTTP
  3337. request header is fully received.
  3338. * src/HttpServerCommand.cc
  3339. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3340. Documented --xml-rpc-listen-all option in man page.
  3341. * doc/aria2c.1.txt
  3342. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3343. Added --xml-rpc-listen-all option. If true is given to this
  3344. option, aria2 listens incoming XML-RPC requests on all network
  3345. interfaces. If false is given, listens only on local loopback
  3346. interface. The default value is false.
  3347. * src/HttpListenCommand.cc
  3348. * src/OptionHandlerFactory.cc
  3349. * src/SocketCore.cc
  3350. * src/SocketCore.h
  3351. * src/prefs.cc
  3352. * src/prefs.h
  3353. * src/usage_text.h
  3354. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3355. * Release 1.5.2
  3356. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3357. Updated Ukrainian and Russian translations. Thanks to all
  3358. translators.
  3359. * po/ru.po
  3360. * po/uk.po
  3361. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3362. Bump up version number to 1.5.2
  3363. * configure.ac
  3364. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3365. Get comment, comment.utf-8, created by and creation date from
  3366. .torrent file and print them in -S output.
  3367. * src/bittorrent_helper.cc
  3368. * src/bittorrent_helper.h
  3369. * test/BittorrentHelperTest.cc
  3370. * test/test.torrent
  3371. * test/utf8.torrent
  3372. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3373. Show exact file size along in -S option output.
  3374. * src/Util.h
  3375. * src/bittorrent_helper.cc
  3376. * test/UtilTest.cc
  3377. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3378. Avoided unnecessary memory allocation in
  3379. BitfieldMan::getCompletedLength().
  3380. * src/BitfieldMan.cc
  3381. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3382. Fixed the bug that download fails if
  3383. SocketCore::establishConnection() throws exception and aria2
  3384. doesn't try another address.
  3385. * src/AbstractCommand.cc
  3386. * src/InitiateConnectionCommand.cc
  3387. * src/message.h
  3388. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3389. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  3390. detected properly.
  3391. * m4/sqlite3.m4
  3392. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3393. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  3394. because it causes compile error if PARAMS macro is defined.
  3395. * src/XmlRpcElements.cc
  3396. * src/XmlRpcElements.h
  3397. * src/XmlRpcRequestParserStateImpl.cc
  3398. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3399. * Release 1.5.1
  3400. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3401. Bump up version number to 1.5.1
  3402. * configure.ac
  3403. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3404. Fixed compile error without BitTorrent support
  3405. * src/DefaultBtProgressInfoFile.cc
  3406. * src/DownloadEngine.cc
  3407. * src/DownloadEngine.h
  3408. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3409. Added missing '=' in Download Results
  3410. * src/RequestGroupMan.cc
  3411. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3412. Fixed compiler warning
  3413. * src/DefaultBtProgressInfoFile.cc
  3414. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3415. Fixed compiler warning on 32bit systems.
  3416. * src/DownloadCommand.cc
  3417. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3418. Call flush from ServerStatMan::save()
  3419. * src/ServerStatMan.cc
  3420. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3421. Check stream status after file is opened.
  3422. * src/CookieStorage.cc
  3423. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3424. Rewritten Signature::save()
  3425. * src/Signature.cc
  3426. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3427. Rewritten RequestGroupMan::saveServerStat()
  3428. * src/RequestGroupMan.cc
  3429. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3430. Rewritten stream error handling
  3431. * src/DHTAutoSaveCommand.cc
  3432. * src/DHTRoutingTableDeserializer.cc
  3433. * src/DHTRoutingTableSerializer.cc
  3434. * src/DHTSetup.cc
  3435. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3436. Check stream status after file is opened.
  3437. * src/DefaultBtProgressInfoFile.cc
  3438. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3439. Rewritten stream error handling
  3440. * src/DefaultBtProgressInfoFile.cc
  3441. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3442. Make sure that stream is closed before renaming file. Unit test
  3443. fails on mingw32 in the previous implementation.
  3444. * src/CookieStorage.cc
  3445. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3446. Fixed the unit test error without sqlite3
  3447. * test/CookieStorageTest.cc
  3448. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3449. Fixed the undefined reference error
  3450. * test/HttpResponseTest.cc
  3451. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3452. * Release 1.5.0
  3453. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3454. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  3455. Ukrainian translations. Thanks to all translators.
  3456. * po/ru.po
  3457. * po/it.po
  3458. * po/da.po
  3459. * po/bg.po
  3460. * po/ja.po
  3461. * po/uk.po
  3462. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3463. Added missing src/Logger.cc
  3464. * src/Logger.cc
  3465. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3466. Rewritten Logger to avoiding constly virtual call.
  3467. * src/LogFactory.cc
  3468. * src/LogFactory.h
  3469. * src/Logger.h
  3470. * src/Makefile.am
  3471. * src/Makefile.in
  3472. * src/NullLogger.h: Removed.
  3473. * src/SimpleLogger.cc
  3474. * src/SimpleLogger.h
  3475. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3476. Updated doc
  3477. * src/main.cc
  3478. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3479. Updated debug log message
  3480. * src/AbstractCommand.cc
  3481. * src/message.h
  3482. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3483. Avoid to create zombie process when commands specified in
  3484. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  3485. X and NetBSD.
  3486. * src/main.cc
  3487. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3488. Fixed typo
  3489. * src/usage_text.h
  3490. * doc/aria2c.1.txt
  3491. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3492. Documented 'errorCode' of tellStatus in man page.
  3493. * doc/aria2c.1.txt
  3494. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3495. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  3496. This key is only available for stopped/completed downloads and its
  3497. value is the error code defined in EXIT STATUS in man page.
  3498. * src/XmlRpcMethodImpl.cc
  3499. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3500. Fixed the bug that session download length is not updated when
  3501. PeerStat is not fastest one.
  3502. * src/SegmentMan.cc
  3503. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3504. Updated doc.
  3505. * doc/aria2c.1.txt
  3506. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3507. Updated doc.
  3508. * src/AbstractCommand.cc
  3509. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3510. Handle the case when DownloadContext has no FileEntry.
  3511. * src/XmlRpcMethodImpl.cc
  3512. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3513. Handle the situation where struct option.name is char *.
  3514. * configure.ac
  3515. * src/OptionParser.cc
  3516. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3517. Code cleanup
  3518. * src/AbstractCommand.cc
  3519. * src/DownloadCommand.cc
  3520. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3521. Use option of each download to create AuthConfig instead of global
  3522. option.
  3523. * src/AuthConfigFactory.cc
  3524. * src/AuthConfigFactory.h
  3525. * src/FtpNegotiationCommand.cc
  3526. * src/HttpRequest.cc
  3527. * src/HttpRequest.h
  3528. * src/HttpRequestCommand.cc
  3529. * src/HttpSkipResponseCommand.cc
  3530. * src/MultiUrlRequestInfo.cc
  3531. * test/AuthConfigFactoryTest.cc
  3532. * test/FtpConnectionTest.cc
  3533. * test/HttpRequestTest.cc
  3534. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3535. Don't call prepareForRetry(1) if all segments are ignored in
  3536. SegmentMan.
  3537. * src/AbstractCommand.cc
  3538. * src/BitfieldMan.cc
  3539. * src/BitfieldMan.h
  3540. * src/SegmentMan.cc
  3541. * src/SegmentMan.h
  3542. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3543. Removed FileEntry::getAssociatedUris()
  3544. * src/FileEntry.h
  3545. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3546. Updated doc: TODO1.5 -> TODO
  3547. * src/FileEntry.cc
  3548. * src/HttpResponseCommand.cc
  3549. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3550. Added assertion fileEntries.size() == 1 if BitTorrent is not
  3551. involved.
  3552. * src/RequestGroup.cc
  3553. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3554. Eliminated duplicated filterBitfield initialization code.
  3555. * src/BitfieldMan.cc
  3556. * src/BitfieldMan.h
  3557. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3558. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  3559. relatively naive approach, though). For DownloadFailureException,
  3560. we handle the case when req is null properly.
  3561. * src/AbstractCommand.cc
  3562. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3563. Added function returning suffix of control file to
  3564. DefaultBtProgressInfoFile.
  3565. * src/DefaultBtProgressInfoFile.cc
  3566. * src/DefaultBtProgressInfoFile.h
  3567. * src/RequestGroup.cc
  3568. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3569. Documented getVersion in man page.
  3570. * doc/aria2c.1.txt
  3571. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3572. Documented type of offset and num for tellWaiting xml-rpc method.
  3573. * doc/aria2c.1.txt
  3574. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3575. Implemented getVersion xml-rpc method. This method returns struct
  3576. which has 2 key-value pairs: "version" key is associated to the
  3577. version of aria2, such as "1.5.0". "enabledFeatures" key is
  3578. associated to the list of enabled features, such as "Async DNS",
  3579. "BitTorrent".
  3580. * src/FeatureConfig.h
  3581. * src/XmlRpcMethodFactory.cc
  3582. * src/XmlRpcMethodImpl.cc
  3583. * src/XmlRpcMethodImpl.h
  3584. * test/XmlRpcMethodTest.cc
  3585. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3586. Removed TLS1.1 protocol support when aria2 is built with gnutls
  3587. for compatibility issue.
  3588. * src/SocketCore.cc
  3589. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3590. Fixed compile error with openSSL
  3591. * src/bittorrent_helper.cc
  3592. * src/messageDigest.h
  3593. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3594. Removed bad code: setting certificate type priority to key
  3595. exchange priority.
  3596. * src/SocketCore.cc
  3597. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3598. Disconnect seeder if client is also in seed state.
  3599. * src/BtBitfieldMessage.cc
  3600. * src/BtHaveAllMessage.cc
  3601. * src/BtHaveMessage.cc
  3602. * src/message.h
  3603. * test/BtBitfieldMessageTest.cc
  3604. * test/BtHaveAllMessageTest.cc
  3605. * test/BtHaveMessageTest.cc
  3606. * test/MockPieceStorage.h
  3607. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3608. Keep CreateRequestCommand in queue when no segment is available so
  3609. that they can pick up pieces which slow BitTorrent peers are
  3610. downloading.
  3611. * src/AbstractCommand.cc
  3612. * src/CreateRequestCommand.cc
  3613. * src/CreateRequestCommand.h
  3614. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3615. --bt-stop-timeout now only checks download speed.
  3616. * src/BtStopDownloadCommand.cc
  3617. * src/BtStopDownloadCommand.h
  3618. * src/BtSetup.cc
  3619. * src/usage_text.h
  3620. * doc/aria2c.1.txt
  3621. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3622. Fixed compile error regarding BUFSIZE.
  3623. * src/DownloadCommand.cc
  3624. * src/DownloadCommand.h
  3625. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3626. Documented tellWaiting xml-rpc method in man page.
  3627. * doc/aria2c.1.txt
  3628. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3629. Bump up version number to 1.5.0
  3630. * configure.ac
  3631. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3632. Removed resolved TODO1.5
  3633. * src/AbstractCommand.cc
  3634. * src/DownloadCommand.cc
  3635. * src/RequestGroup.cc
  3636. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3637. Release pooled and in-flight Request objectsand URIResult objects
  3638. in FileEntry after download completed.
  3639. * src/DownloadContext.cc
  3640. * src/DownloadContext.h
  3641. * src/FileEntry.cc
  3642. * src/FileEntry.h
  3643. * src/RequestGroup.cc
  3644. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3645. Set manual and source attribute in aria2c.1.txt
  3646. * doc/aria2c.1.txt
  3647. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3648. Documented that the default value of --use-head is 'false' in man
  3649. page.
  3650. * doc/aria2c.1.txt
  3651. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3652. Added bt-stop-timeout option to -i list.
  3653. * doc/aria2c.1.txt
  3654. * src/download_helper.cc
  3655. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3656. Fixed typo
  3657. * doc/aria2c.1.txt
  3658. * src/usage_text.h
  3659. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3660. Removed peer-id-prefix option from -i list.
  3661. * doc/aria2c.1.txt
  3662. * src/download_helper.cc
  3663. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3664. Fixed typo
  3665. * doc/aria2c.1.txt
  3666. * src/usage_text.h
  3667. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3668. Documented --bt-stop-timeout option in man page.
  3669. * doc/aria2c.1.txt
  3670. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3671. Updated README regarding multi-file torrent web-seeding.
  3672. * doc/README.txt
  3673. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3674. Updated man page regarding multi-file torrent web-seeding.
  3675. * doc/aria2c.1.txt
  3676. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3677. Updated doc
  3678. * src/version_usage.cc
  3679. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3680. Winsock select() doesn't work if no socket is in FD_SET. To
  3681. overcome this problem, a dummy socket is added to FD_SET and it is
  3682. given to select().
  3683. * src/SelectEventPoll.cc
  3684. * src/SelectEventPoll.h
  3685. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3686. Disabled --use-head option by default because --use-head=true
  3687. causes problems on some web sites.
  3688. * src/OptionHandlerFactory.cc
  3689. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3690. Print URL List in -S option for torrent.
  3691. * src/bittorrent_helper.cc
  3692. * src/bittorrent_helper.h
  3693. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3694. Allocate buffer in ctor of DownloadCommand.
  3695. * src/DownloadCommand.cc
  3696. * src/DownloadCommand.h
  3697. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3698. Removed DiskAdaptor::onDownloadComplete()
  3699. * src/DirectDiskAdaptor.cc
  3700. * src/DirectDiskAdaptor.h
  3701. * src/DiskAdaptor.h
  3702. * src/MultiDiskAdaptor.cc
  3703. * src/MultiDiskAdaptor.h
  3704. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3705. Committed missing BtStopDownloadCommand.{cc,h}
  3706. * src/BtStopDownloadCommand.cc
  3707. * src/BtStopDownloadCommand.h
  3708. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3709. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  3710. download if the download speed is 0 and the number of seeder is 0
  3711. in consecutive SEC seconds. By default, this function is disabled.
  3712. * src/BtSetup.cc
  3713. * src/Makefile.am
  3714. * src/OptionHandlerFactory.cc
  3715. * src/prefs.cc
  3716. * src/prefs.h
  3717. * src/usage_text.h
  3718. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3719. Removed the call to DiskAdaptor::onDownloadComplete() from
  3720. BtCheckIntegrityEntry and DefaultPieceStorage.
  3721. * src/BtCheckIntegrityEntry.cc
  3722. * src/DefaultPieceStorage.cc
  3723. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3724. Commented out throw statements when number of piece is 0 to
  3725. download 0 length torrent.
  3726. * src/bittorrent_helper.cc
  3727. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3728. Call RequestGroup::createNextCommandWithAdj() from
  3729. BtFileAllocationEntry if at least one FileEntry has URI. The
  3730. static function hasAssociatedUri in RequestGroup.cc is renamed as
  3731. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  3732. * src/BtFileAllocationEntry.cc
  3733. * src/FileEntry.h
  3734. * src/RequestGroup.cc
  3735. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3736. Generate peer ID after SimpleRandomizer is initialized.
  3737. * src/main.cc
  3738. * src/option_processing.cc
  3739. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3740. Removed unused method argument.
  3741. * src/CreateRequestCommand.cc
  3742. * src/RequestGroup.cc
  3743. * src/RequestGroup.h
  3744. * src/RequestGroupMan.cc
  3745. * src/TrackerWatcherCommand.cc
  3746. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3747. Made URI reusing function work.
  3748. * src/CreateRequestCommand.cc
  3749. * src/FileEntry.cc
  3750. * src/FileEntry.h
  3751. * test/FileEntryTest.cc
  3752. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3753. Add formerly fastest PeerStat's sessionDownloadLength to new
  3754. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  3755. bytes in a session.
  3756. * src/PeerStat.cc
  3757. * src/SegmentMan.cc
  3758. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3759. If pipelining is enabled, we can always pool socket.
  3760. * src/HttpDownloadCommand.cc
  3761. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3762. In a single file download, file size becomes known just after
  3763. downloading, set total length to FileEntry object when download
  3764. completed.
  3765. * src/DownloadCommand.cc
  3766. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3767. Use std::vector::reserve() for fileEntries and pieceHashes in
  3768. bittorrent_helper
  3769. * src/bittorrent_helper.cc
  3770. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3771. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  3772. Removed hidden option PREF_RESET_URI.
  3773. * src/AbstractCommand.cc
  3774. * src/OptionHandlerFactory.cc
  3775. * src/prefs.cc
  3776. * src/prefs.h
  3777. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3778. Removed unused variable/function.
  3779. * src/PeerStat.h
  3780. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3781. Show first URL in Download Results if file path is not available.
  3782. * src/FileEntry.h
  3783. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3784. Throw exception if file path doesn't exist in FTP URL.
  3785. * src/InitiateConnectionCommandFactory.cc
  3786. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3787. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  3788. * src/BitfieldMan.cc
  3789. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3790. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  3791. of PeerStat in SegmentMan. peerStats is used for calculating
  3792. download speed. Therefore all active PeerStats should be in
  3793. there. Another one is _fastestPeerStats and it only contains
  3794. fastest PeerStat for each hostname/protocol pair. They are used
  3795. for updating ServerStat.
  3796. * src/DownloadCommand.cc
  3797. * src/Request.h
  3798. * src/RequestGroupMan.cc
  3799. * src/SegmentMan.cc
  3800. * src/SegmentMan.h
  3801. * test/SegmentManTest.cc
  3802. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3803. Try all available addresses returned by DNS until it gets
  3804. connected in HTTP(S)/FTP download
  3805. * src/AbstractCommand.cc
  3806. * src/AbstractCommand.h
  3807. * src/AbstractProxyRequestCommand.cc
  3808. * src/AbstractProxyRequestCommand.h
  3809. * src/DNSCache.h
  3810. * src/DownloadEngine.cc
  3811. * src/DownloadEngine.h
  3812. * src/FtpInitiateConnectionCommand.cc
  3813. * src/FtpInitiateConnectionCommand.h
  3814. * src/FtpNegotiationCommand.cc
  3815. * src/FtpNegotiationCommand.h
  3816. * src/HttpInitiateConnectionCommand.cc
  3817. * src/HttpInitiateConnectionCommand.h
  3818. * src/HttpRequestCommand.cc
  3819. * src/HttpRequestCommand.h
  3820. * src/InitiateConnectionCommand.cc
  3821. * src/InitiateConnectionCommand.h
  3822. * test/DNSCacheTest.cc
  3823. * test/Makefile.am
  3824. * test/SimpleDNSCacheTest.cc
  3825. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3826. Updated doc
  3827. * src/download_helper.cc
  3828. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3829. Refactored fieldMan ctor.
  3830. * src/BitfieldMan.cc
  3831. * src/BitfieldMan.h
  3832. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3833. Don't print "No files to download." message if -S is given.
  3834. * src/main.cc
  3835. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3836. Set referer and method to newly created Request object.
  3837. * src/CreateRequestCommand.cc
  3838. * src/FileEntry.cc
  3839. * src/FileEntry.h
  3840. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3841. Removed ctor of AbstractCommand which doesn't take FileEntry.
  3842. * src/AbstractCommand.cc
  3843. * src/AbstractCommand.h
  3844. * src/CreateRequestCommand.cc
  3845. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3846. Get proxy download working
  3847. * src/AbstractProxyRequestCommand.cc
  3848. * src/AbstractProxyRequestCommand.h
  3849. * src/AbstractProxyResponseCommand.cc
  3850. * src/AbstractProxyResponseCommand.h
  3851. * src/FtpInitiateConnectionCommand.cc
  3852. * src/FtpTunnelRequestCommand.cc
  3853. * src/FtpTunnelRequestCommand.h
  3854. * src/FtpTunnelResponseCommand.cc
  3855. * src/FtpTunnelResponseCommand.h
  3856. * src/HttpInitiateConnectionCommand.cc
  3857. * src/HttpProxyRequestCommand.cc
  3858. * src/HttpProxyRequestCommand.h
  3859. * src/HttpProxyResponseCommand.cc
  3860. * src/HttpProxyResponseCommand.h
  3861. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3862. Use SegmentMan::getSegment(cuid) for single file download.
  3863. * src/AbstractCommand.cc
  3864. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3865. Fixed bufSize calculation
  3866. * src/DownloadCommand.cc
  3867. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3868. Don't append "/" if base URI ends with "/".
  3869. * src/bittorrent_helper.cc
  3870. * test/url-list-multiFile.torrent
  3871. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3872. HTTP pipelining is now working. Fixed Segmention fault in
  3873. BitfieldMan's copy ctor.
  3874. * src/AbstractCommand.cc
  3875. * src/BitfieldMan.cc
  3876. * src/BitfieldMan.h
  3877. * src/DownloadCommand.cc
  3878. * src/HttpDownloadCommand.cc
  3879. * src/HttpRequest.cc
  3880. * src/SegmentMan.cc
  3881. * src/SegmentMan.h
  3882. * test/BitfieldManTest.cc
  3883. * test/SegmentManTest.cc
  3884. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3885. Removed ServerHost. Same functionality is implemented using
  3886. FileEntry's in-flight Request objects.
  3887. * src/AbstractCommand.cc
  3888. * src/BtDependency.cc
  3889. * src/CreateRequestCommand.cc
  3890. * src/FileEntry.cc
  3891. * src/FileEntry.h
  3892. * src/FtpNegotiationCommand.cc
  3893. * src/HttpResponseCommand.cc
  3894. * src/Makefile.am
  3895. * src/Metalink2RequestGroup.cc
  3896. * src/RequestGroup.cc
  3897. * src/RequestGroup.h
  3898. * src/ServerHost.cc: Removed
  3899. * src/ServerHost.h: Removed
  3900. * test/BtDependencyTest.cc
  3901. * test/FileEntryTest.cc
  3902. * test/RequestGroupTest.cc
  3903. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3904. Rewritten PeerStat handling. In the previous implementation,
  3905. faster command tries to find slower command. In this new
  3906. implementation, slower command tries to find faster command.
  3907. PeerStat is now created in each HTTP/FTP request to get download
  3908. rate correctly. If the download range is small, the download rate
  3909. tends to small and this will occur at the later stage of download.
  3910. * src/AbstractCommand.cc
  3911. * src/DownloadCommand.cc
  3912. * src/FileEntry.cc
  3913. * src/FileEntry.h
  3914. * src/Request.cc
  3915. * src/Request.h
  3916. * src/RequestGroup.h
  3917. * src/RequestGroupMan.cc
  3918. * src/SegmentMan.cc
  3919. * src/SegmentMan.h
  3920. * test/SegmentManTest.cc
  3921. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3922. Removed _uris from RequestGroup. All functions that refer to _uris
  3923. were moved to FileEntry. Exit status code are now defined in
  3924. DownloadResultCode.h.
  3925. * src/AbstractCommand.cc
  3926. * src/AdaptiveURISelector.cc
  3927. * src/AdaptiveURISelector.h
  3928. * src/AutoSaveCommand.cc
  3929. * src/BtPostDownloadHandler.cc
  3930. * src/CheckIntegrityDispatcherCommand.cc
  3931. * src/CookieStorage.cc
  3932. * src/DHTAutoSaveCommand.cc
  3933. * src/DHTBucketRefreshCommand.cc
  3934. * src/DHTEntryPointNameResolveCommand.cc
  3935. * src/DHTInteractionCommand.cc
  3936. * src/DHTPeerAnnounceCommand.cc
  3937. * src/DHTTokenUpdateCommand.cc
  3938. * src/DlAbortEx.h
  3939. * src/DlRetryEx.h
  3940. * src/DownloadCommand.cc
  3941. * src/DownloadContext.h
  3942. * src/DownloadFailureException.h
  3943. * src/DownloadResult.h
  3944. * src/DownloadResultCode.h
  3945. * src/FeedbackURISelector.cc
  3946. * src/FeedbackURISelector.h
  3947. * src/FileEntry.cc
  3948. * src/FileEntry.h
  3949. * src/FtpNegotiationCommand.cc
  3950. * src/HttpListenCommand.cc
  3951. * src/HttpResponseCommand.cc
  3952. * src/HttpServerResponseCommand.cc
  3953. * src/HttpSkipResponseCommand.cc
  3954. * src/InOrderURISelector.cc
  3955. * src/InOrderURISelector.h
  3956. * src/Makefile.am
  3957. * src/Makefile.in
  3958. * src/Metalink2RequestGroup.cc
  3959. * src/MultiUrlRequestInfo.cc
  3960. * src/MultiUrlRequestInfo.h
  3961. * src/OptionHandlerFactory.cc
  3962. * src/PeerListenCommand.cc
  3963. * src/RecoverableException.h
  3964. * src/RequestGroup.cc
  3965. * src/RequestGroup.h
  3966. * src/RequestGroupMan.cc
  3967. * src/RequestGroupMan.h
  3968. * src/TimedHaltCommand.cc
  3969. * src/TrackerWatcherCommand.cc
  3970. * src/URIResult.cc
  3971. * src/URIResult.h
  3972. * src/URISelector.h
  3973. * src/XmlRpcMethodImpl.cc
  3974. * src/bittorrent_helper.cc
  3975. * src/bittorrent_helper.h
  3976. * src/download_helper.cc
  3977. * src/main.cc
  3978. * src/option_processing.cc
  3979. * test/BtDependencyTest.cc
  3980. * test/BtPostDownloadHandlerTest.cc
  3981. * test/CookieStorageTest.cc
  3982. * test/DefaultBtMessageDispatcherTest.cc
  3983. * test/DownloadHandlerFactoryTest.cc
  3984. * test/DownloadHelperTest.cc
  3985. * test/FeedbackURISelectorTest.cc
  3986. * test/FileEntryTest.cc
  3987. * test/InOrderURISelectorTest.cc
  3988. * test/Metalink2RequestGroupTest.cc
  3989. * test/MetalinkPostDownloadHandlerTest.cc
  3990. * test/RequestGroupManTest.cc
  3991. * test/RequestGroupTest.cc
  3992. * test/XmlRpcMethodTest.cc
  3993. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3994. Removed MockBtContext.h
  3995. * test/Makefile.am
  3996. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3997. Removed _currentRequest from StreamCheckIntegrityEntry and
  3998. StreamFileAllocationEntry.
  3999. * src/AbstractCommand.cc
  4000. * src/HttpResponseCommand.cc
  4001. * src/RequestGroup.cc
  4002. * src/StreamCheckIntegrityEntry.cc
  4003. * src/StreamCheckIntegrityEntry.h
  4004. * src/StreamFileAllocationEntry.cc
  4005. * src/StreamFileAllocationEntry.h
  4006. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4007. Rewritten DownloadContext and removed SingleFileDownloadContext
  4008. and BtContext and its derived classes. BitTorrent specific
  4009. attributes are now set by DownloadContext::setAttribute() with key
  4010. bittorrent::BITTORRENT.
  4011. * src/AbstractBtMessage.cc
  4012. * src/AbstractBtMessage.h
  4013. * src/AbstractCommand.cc
  4014. * src/AbstractCommand.h
  4015. * src/AbstractProxyRequestCommand.cc
  4016. * src/AbstractProxyResponseCommand.cc
  4017. * src/ActivePeerConnectionCommand.cc
  4018. * src/ActivePeerConnectionCommand.h
  4019. * src/AnnounceList.cc
  4020. * src/BtCheckIntegrityEntry.cc
  4021. * src/BtConstants.h
  4022. * src/BtContext.h: Removed
  4023. * src/BtDependency.cc
  4024. * src/BtExtendedMessage.cc
  4025. * src/BtPieceMessage.cc
  4026. * src/BtPieceMessage.h
  4027. * src/BtPostDownloadHandler.cc
  4028. * src/BtRegistry.cc
  4029. * src/BtRegistry.h
  4030. * src/BtSetup.cc
  4031. * src/CheckIntegrityCommand.cc
  4032. * src/CheckIntegrityEntry.cc
  4033. * src/ChecksumCheckIntegrityEntry.cc
  4034. * src/ConsoleStatCalc.cc
  4035. * src/ContentTypeRequestGroupCriteria.cc
  4036. * src/DHTGetPeersCommand.cc
  4037. * src/DHTGetPeersCommand.h
  4038. * src/DHTPeerLookupTask.cc
  4039. * src/DHTPeerLookupTask.h
  4040. * src/DHTTaskFactory.h
  4041. * src/DHTTaskFactoryImpl.cc
  4042. * src/DHTTaskFactoryImpl.h
  4043. * src/DefaultBtAnnounce.cc
  4044. * src/DefaultBtAnnounce.h
  4045. * src/DefaultBtContext.cc: Removed
  4046. * src/DefaultBtContext.h: Removed
  4047. * src/DefaultBtInteractive.cc
  4048. * src/DefaultBtInteractive.h
  4049. * src/DefaultBtMessageDispatcher.cc
  4050. * src/DefaultBtMessageDispatcher.h
  4051. * src/DefaultBtMessageFactory.cc
  4052. * src/DefaultBtMessageFactory.h
  4053. * src/DefaultBtMessageReceiver.cc
  4054. * src/DefaultBtMessageReceiver.h
  4055. * src/DefaultBtProgressInfoFile.cc
  4056. * src/DefaultBtRequestFactory.cc
  4057. * src/DefaultBtRequestFactory.h
  4058. * src/DefaultExtensionMessageFactory.cc
  4059. * src/DefaultExtensionMessageFactory.h
  4060. * src/DefaultPeerStorage.cc
  4061. * src/DefaultPeerStorage.h
  4062. * src/DefaultPieceStorage.cc
  4063. * src/DefaultSegmentManFactory.cc
  4064. * src/DiskAdaptor.cc
  4065. * src/DiskAdaptor.h
  4066. * src/DownloadContext.cc
  4067. * src/DownloadContext.h
  4068. * src/DownloadEngine.cc
  4069. * src/DownloadEngineFactory.cc
  4070. * src/DownloadHandler.cc
  4071. * src/DownloadResult.h
  4072. * src/FileAllocationCommand.cc
  4073. * src/FileAllocationDispatcherCommand.cc
  4074. * src/FileAllocationEntry.cc
  4075. * src/FileEntry.h
  4076. * src/FillRequestGroupCommand.cc
  4077. * src/FtpDownloadCommand.cc
  4078. * src/FtpFinishDownloadCommand.cc
  4079. * src/FtpInitiateConnectionCommand.cc
  4080. * src/FtpNegotiationCommand.cc
  4081. * src/FtpTunnelRequestCommand.cc
  4082. * src/FtpTunnelResponseCommand.cc
  4083. * src/HandshakeExtensionMessage.cc
  4084. * src/HandshakeExtensionMessage.h
  4085. * src/HaveEraseCommand.cc
  4086. * src/HttpDownloadCommand.cc
  4087. * src/HttpInitiateConnectionCommand.cc
  4088. * src/HttpProxyRequestCommand.cc
  4089. * src/HttpProxyResponseCommand.cc
  4090. * src/HttpRequest.cc
  4091. * src/HttpRequest.h
  4092. * src/HttpRequestCommand.cc
  4093. * src/HttpResponseCommand.cc
  4094. * src/HttpServerBodyCommand.cc
  4095. * src/HttpServerCommand.cc
  4096. * src/HttpSkipResponseCommand.cc
  4097. * src/InitiateConnectionCommandFactory.cc
  4098. * src/InitiatorMSEHandshakeCommand.cc
  4099. * src/InitiatorMSEHandshakeCommand.h
  4100. * src/IteratableChecksumValidator.cc
  4101. * src/IteratableChecksumValidator.h
  4102. * src/IteratableChunkChecksumValidator.cc
  4103. * src/MSEHandshake.cc
  4104. * src/MSEHandshake.h
  4105. * src/Makefile.am
  4106. * src/Makefile.in
  4107. * src/Metalink2RequestGroup.cc
  4108. * src/MetalinkPostDownloadHandler.cc
  4109. * src/MultiDiskAdaptor.cc
  4110. * src/MultiDiskAdaptor.h
  4111. * src/MultiFileAllocationIterator.cc
  4112. * src/MultiUrlRequestInfo.cc
  4113. * src/PeerChokeCommand.cc
  4114. * src/PeerChokeCommand.h
  4115. * src/PeerInitiateConnectionCommand.cc
  4116. * src/PeerInitiateConnectionCommand.h
  4117. * src/PeerInteractionCommand.cc
  4118. * src/PeerInteractionCommand.h
  4119. * src/PeerReceiveHandshakeCommand.cc
  4120. * src/PieceHashCheckIntegrityEntry.cc
  4121. * src/RealtimeCommand.cc
  4122. * src/ReceiverMSEHandshakeCommand.cc
  4123. * src/RequestGroup.cc
  4124. * src/RequestGroup.h
  4125. * src/RequestGroupEntry.cc
  4126. * src/RequestGroupMan.cc
  4127. * src/SeedCheckCommand.cc
  4128. * src/SeedCheckCommand.h
  4129. * src/SegmentMan.cc
  4130. * src/ShareRatioSeedCriteria.h
  4131. * src/SingleFileDownloadContext.cc: Removed
  4132. * src/SingleFileDownloadContext.h: Removed
  4133. * src/SleepCommand.cc
  4134. * src/StreamCheckIntegrityEntry.cc
  4135. * src/TrackerWatcherCommand.cc
  4136. * src/TrackerWatcherCommand.h
  4137. * src/UnknownLengthPieceStorage.cc
  4138. * src/Util.cc
  4139. * src/Util.h
  4140. * src/XmlRpcMethodImpl.cc
  4141. * src/bittorrent_helper.cc
  4142. * src/bittorrent_helper.h
  4143. * src/download_helper.cc
  4144. * src/main.cc
  4145. * src/option_processing.cc
  4146. * test/BitfieldManTest.cc
  4147. * test/BittorrentHelperTest.cc
  4148. * test/BtCancelMessageTest.cc
  4149. * test/BtChokeMessageTest.cc
  4150. * test/BtDependencyTest.cc
  4151. * test/BtPieceMessageTest.cc
  4152. * test/BtPostDownloadHandlerTest.cc
  4153. * test/BtRegistryTest.cc
  4154. * test/BtRejectMessageTest.cc
  4155. * test/BtRequestMessageTest.cc
  4156. * test/DHTPeerAnnounceStorageTest.cc
  4157. * test/DefaultBtAnnounceTest.cc
  4158. * test/DefaultBtContextTest.cc: Removed
  4159. * test/DefaultBtMessageDispatcherTest.cc
  4160. * test/DefaultBtMessageFactoryTest.cc
  4161. * test/DefaultBtProgressInfoFileTest.cc
  4162. * test/DefaultBtRequestFactoryTest.cc
  4163. * test/DefaultExtensionMessageFactoryTest.cc
  4164. * test/DefaultPeerStorageTest.cc
  4165. * test/DefaultPieceStorageTest.cc
  4166. * test/DirectDiskAdaptorTest.cc
  4167. * test/DownloadContextTest.cc
  4168. * test/DownloadHandlerFactoryTest.cc
  4169. * test/DownloadHelperTest.cc
  4170. * test/HandshakeExtensionMessageTest.cc
  4171. * test/HttpRequestTest.cc
  4172. * test/HttpResponseTest.cc
  4173. * test/IteratableChecksumValidatorTest.cc
  4174. * test/IteratableChunkChecksumValidatorTest.cc
  4175. * test/MSEHandshakeTest.cc
  4176. * test/Makefile.am
  4177. * test/Makefile.in
  4178. * test/Metalink2RequestGroupTest.cc
  4179. * test/MetalinkPostDownloadHandlerTest.cc
  4180. * test/MockBtContext.h: Removed
  4181. * test/MockDHTTaskFactory.h
  4182. * test/MockDownloadContext.h: Removed
  4183. * test/MockPieceStorage.h
  4184. * test/MultiDiskAdaptorTest.cc
  4185. * test/MultiFileAllocationIteratorTest.cc
  4186. * test/RequestGroupManTest.cc
  4187. * test/RequestGroupTest.cc
  4188. * test/SegmentManTest.cc
  4189. * test/ShareRatioSeedCriteriaTest.cc
  4190. * test/SingleFileDownloadContextTest.cc: Removed
  4191. * test/UtilTest.cc
  4192. * test/XmlRpcMethodTest.cc
  4193. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4194. Added experimental support of WEB-Seeding for multi-file torrent.
  4195. Due to fundamental changes in file handling in HTTP/FTP code, many
  4196. functions are not working: PeerStat, ServerHost, proxy..etc
  4197. * src/AbstractCommand.cc
  4198. * src/AbstractCommand.h
  4199. * src/BitfieldMan.cc
  4200. * src/BitfieldMan.h
  4201. * src/CreateRequestCommand.cc
  4202. * src/CreateRequestCommand.h
  4203. * src/DefaultPieceStorage.cc
  4204. * src/DefaultPieceStorage.h
  4205. * src/DownloadCommand.cc
  4206. * src/DownloadCommand.h
  4207. * src/DownloadContext.cc
  4208. * src/DownloadContext.h
  4209. * src/FileEntry.cc
  4210. * src/FileEntry.h
  4211. * src/FtpDownloadCommand.cc
  4212. * src/FtpDownloadCommand.h
  4213. * src/FtpFinishDownloadCommand.cc
  4214. * src/FtpFinishDownloadCommand.h
  4215. * src/FtpInitiateConnectionCommand.cc
  4216. * src/FtpInitiateConnectionCommand.h
  4217. * src/FtpNegotiationCommand.cc
  4218. * src/FtpNegotiationCommand.h
  4219. * src/FtpTunnelResponseCommand.cc
  4220. * src/HttpDownloadCommand.cc
  4221. * src/HttpDownloadCommand.h
  4222. * src/HttpInitiateConnectionCommand.cc
  4223. * src/HttpInitiateConnectionCommand.h
  4224. * src/HttpProxyResponseCommand.cc
  4225. * src/HttpRequest.cc
  4226. * src/HttpRequest.h
  4227. * src/HttpRequestCommand.cc
  4228. * src/HttpRequestCommand.h
  4229. * src/HttpResponseCommand.cc
  4230. * src/HttpResponseCommand.h
  4231. * src/HttpSkipResponseCommand.cc
  4232. * src/HttpSkipResponseCommand.h
  4233. * src/InitiateConnectionCommand.cc
  4234. * src/InitiateConnectionCommand.h
  4235. * src/InitiateConnectionCommandFactory.cc
  4236. * src/InitiateConnectionCommandFactory.h
  4237. * src/Makefile.am
  4238. * src/PieceStorage.h
  4239. * src/RequestGroup.cc
  4240. * src/RequestGroup.h
  4241. * src/RequestGroupMan.cc
  4242. * src/SegmentMan.cc
  4243. * src/SegmentMan.h
  4244. * src/SingleFileDownloadContext.h
  4245. * src/StreamFileAllocationEntry.cc
  4246. * src/TrackerWatcherCommand.cc
  4247. * src/UnknownLengthPieceStorage.cc
  4248. * src/UnknownLengthPieceStorage.h
  4249. * src/array_fun.h
  4250. * src/bitfield.h
  4251. * src/download_helper.cc
  4252. * test/DownloadContextTest.cc
  4253. * test/Makefile.am
  4254. * test/MockDownloadContext.h
  4255. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4256. Added tellWaiting XML-RPC method.
  4257. * src/SingleFileDownloadContext.cc
  4258. * src/XmlRpcMethodFactory.cc
  4259. * src/XmlRpcMethodImpl.cc
  4260. * src/XmlRpcMethodImpl.h
  4261. * test/XmlRpcMethodTest.cc
  4262. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4263. Updated CookieStorageTest
  4264. * test/CookieStorageTest.cc
  4265. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4266. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  4267. handle excepion inside these functions.
  4268. * src/LibgnutlsTLSContext.cc
  4269. * src/LibgnutlsTLSContext.h
  4270. * src/LibsslTLSContext.cc
  4271. * src/LibsslTLSContext.h
  4272. * src/MultiUrlRequestInfo.cc
  4273. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4274. Added comment
  4275. * src/RequestGroup.cc
  4276. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4277. In CookieStorage::load() and saveNsFormat(), handle exception
  4278. inside the functions. When saving Cookies, first write temporary
  4279. file and after successful writes, then renames it to final
  4280. destination.
  4281. * src/CookieStorage.cc
  4282. * src/CookieStorage.h
  4283. * src/MultiUrlRequestInfo.cc
  4284. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4285. The default value of --dir option is the absolute path to the
  4286. current directory. If getcwd() is failed, then it is ".", which is
  4287. the same value with old implementation. This change is necessary
  4288. because after daemon() call, the current working directory is
  4289. changed to /.
  4290. * src/File.cc
  4291. * src/File.h
  4292. * src/OptionHandlerFactory.cc
  4293. * src/option_processing.cc
  4294. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4295. Call daemon() with arguments(0,0), which means daemon() changes
  4296. current working directory to / and redirects stdin, stdout and
  4297. stderr to /dev/null.
  4298. * src/option_processing.cc
  4299. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4300. Small performance optimizations.
  4301. * src/RequestGroupMan.cc
  4302. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4303. Added _xmlRpc member variable to RequestGroupMan to reduce the
  4304. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  4305. * src/RequestGroupMan.cc
  4306. * src/RequestGroupMan.h
  4307. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4308. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  4309. setNoWiat(true) if newly created command calls
  4310. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  4311. * src/HttpListenCommand.cc
  4312. * src/HttpServerBodyCommand.cc
  4313. * src/HttpServerCommand.cc
  4314. * src/HttpServerResponseCommand.cc
  4315. * src/InitiateConnectionCommand.cc
  4316. * src/RequestGroup.cc
  4317. * src/StreamFileAllocationEntry.cc
  4318. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4319. Removed include vector
  4320. * src/BtRegistry.h
  4321. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4322. Rewritten BtRegistry
  4323. * src/BtRegistry.cc
  4324. * src/BtRegistry.h
  4325. * src/BtSetup.cc
  4326. * src/ConsoleStatCalc.cc
  4327. * src/PeerInteractionCommand.cc
  4328. * src/PeerReceiveHandshakeCommand.cc
  4329. * src/ReceiverMSEHandshakeCommand.cc
  4330. * src/RequestGroup.cc
  4331. * src/XmlRpcMethodImpl.cc
  4332. * test/BtRegistryTest.cc
  4333. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4334. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  4335. * src/DefaultBtProgressInfoFile.cc
  4336. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4337. Throw an exception if position is less than 0.
  4338. * src/XmlRpcMethodImpl.cc
  4339. * test/XmlRpcMethodTest.cc
  4340. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4341. Use writeFilePath() in ConsoleStatCalc.cc
  4342. * src/ConsoleStatCalc.cc
  4343. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4344. Receive the return value as const reference from
  4345. DownloadContext::getFileEntries().
  4346. * src/DefaultPieceStorage.cc
  4347. * src/RequestGroupMan.cc
  4348. * src/XmlRpcMethodImpl.cc
  4349. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4350. DownloadContext now has _fileEntries so that
  4351. DownloadContext::getFileEntries() can returns its const reference.
  4352. * src/DefaultBtContext.cc
  4353. * src/DefaultBtContext.h
  4354. * src/DownloadContext.cc
  4355. * src/DownloadContext.h
  4356. * src/SingleFileDownloadContext.cc
  4357. * src/SingleFileDownloadContext.h
  4358. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4359. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  4360. writeFilePath() function template from RequestGroupMan.cc to
  4361. FileEntry.h
  4362. * src/FileEntry.h
  4363. * src/RequestGroupMan.cc
  4364. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4365. Documented 'position' parameter is starting from 0 in man page.
  4366. * doc/aria2c.1.txt
  4367. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4368. Updated doc.
  4369. * src/MSEHandshake.cc
  4370. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4371. Removed _acceptFeatures and its accessor functions from
  4372. RequestGroup since they are not used practically.
  4373. * src/HttpRequestCommand.cc
  4374. * src/RequestGroup.cc
  4375. * src/RequestGroup.h
  4376. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4377. Removed member _maxTries from RequestGroup class to avoid
  4378. duplicate option value. Those classes who refer this variable
  4379. should use option value of PREF_MAX_TRIES directly.
  4380. * src/AbstractCommand.cc
  4381. * src/RequestGroup.cc
  4382. * src/RequestGroup.h
  4383. * src/TrackerWatcherCommand.cc
  4384. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4385. * Release 1.4.1
  4386. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4387. Fixed compiler warnings on netbsd
  4388. * src/DHTConnectionImpl.cc
  4389. * src/PeerListenCommand.cc
  4390. * src/PeerSessionResource.cc
  4391. * src/SegmentMan.cc
  4392. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4393. Updated Ukrainian translation. Thanks to all translators.
  4394. * po/uk.po
  4395. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4396. Bump up version number to 1.4.1.
  4397. * configure.ac
  4398. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4399. Added unit tests for strjoin, strconcat and strappend.
  4400. * test/a2functionalTest.cc
  4401. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4402. Rewritten strconcat and strappend using operator+ instead of
  4403. append().
  4404. * src/a2functional.h
  4405. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4406. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  4407. is enabled.
  4408. * src/Makefile.am
  4409. * test/Makefile.am
  4410. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4411. Added countSeeder() function which counts seeder in the given
  4412. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  4413. * src/ConsoleStatCalc.cc
  4414. * src/Peer.h
  4415. * src/XmlRpcMethodImpl.cc
  4416. * test/PeerTest.cc
  4417. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4418. Documented missing seeder in getPeers xml-rpc method.
  4419. Documented uploadLength and numSeeders.
  4420. * doc/aria2c.1.txt
  4421. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4422. Added uploadLength and numSeeders to the response of tellStatus
  4423. xml-rpc method. Assert that PeerStorage instance is not null
  4424. instead of checking if statement. It should be non-null in this
  4425. context.
  4426. * src/XmlRpcMethodImpl.cc
  4427. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4428. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  4429. * src/XmlRpcResponse.cc
  4430. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4431. Avoid intermediate object during string concatenation.
  4432. * src/HttpRequest.cc
  4433. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4434. Added strjoin function template. Use it in pathJoin()
  4435. * src/Util.h
  4436. * src/a2functional.h
  4437. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4438. Avoid intermediate object during string concatenation. Replaced
  4439. post-increment unary operator with pre-increment one in for loop.
  4440. * src/AdaptiveURISelector.cc
  4441. * src/AnnounceList.cc
  4442. * src/AuthConfig.h
  4443. * src/BtBitfieldMessage.cc
  4444. * src/BtExtendedMessage.cc
  4445. * src/BtHandshakeMessage.cc
  4446. * src/BtPieceMessage.cc
  4447. * src/BtPortMessage.cc
  4448. * src/Cookie.cc
  4449. * src/DHTAnnouncePeerMessage.cc
  4450. * src/DHTAutoSaveCommand.cc
  4451. * src/DHTGetPeersReplyMessage.cc
  4452. * src/DHTNode.cc
  4453. * src/DHTQueryMessage.cc
  4454. * src/DHTResponseMessage.cc
  4455. * src/DHTUnknownMessage.cc
  4456. * src/DefaultBtAnnounce.cc
  4457. * src/DefaultBtContext.cc
  4458. * src/DefaultBtInteractive.cc
  4459. * src/DefaultBtProgressInfoFile.cc
  4460. * src/DefaultPeerStorage.cc
  4461. * src/DownloadEngine.cc
  4462. * src/FeatureConfig.cc
  4463. * src/File.cc
  4464. * src/FtpConnection.cc
  4465. * src/FtpNegotiationCommand.cc
  4466. * src/HandshakeExtensionMessage.cc
  4467. * src/HttpConnection.cc
  4468. * src/HttpRequest.cc
  4469. * src/HttpResponseCommand.cc
  4470. * src/HttpServer.cc
  4471. * src/IndexBtMessage.cc
  4472. * src/Metalink2RequestGroup.cc
  4473. * src/OptionHandlerImpl.h
  4474. * src/PStringBuildVisitor.cc
  4475. * src/Peer.cc
  4476. * src/PeerListenCommand.cc
  4477. * src/Piece.cc
  4478. * src/RangeBtMessage.cc
  4479. * src/Request.cc
  4480. * src/Request.h
  4481. * src/RequestGroup.cc
  4482. * src/RequestGroupMan.cc
  4483. * src/ServerStat.cc
  4484. * src/ServerStatMan.cc
  4485. * src/UTPexExtensionMessage.cc
  4486. * src/Util.cc
  4487. * src/a2functional.h
  4488. * src/download_helper.cc
  4489. * src/messageDigest.cc
  4490. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4491. Unchoke a peer randomly at first and second choke round in seed
  4492. state.
  4493. * src/BtSeederStateChoke.cc
  4494. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  4495. Added (sock_t) to quiet compiler warnings in MinGW
  4496. * src/SocketCore.cc
  4497. * src/SocketCore.h
  4498. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4499. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  4500. * src/EpollEventPoll.h
  4501. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  4502. Added fork() emulation using CreateProcess() in MinGW
  4503. * src/RequestGroupMan.cc
  4504. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4505. * Release 1.4.0
  4506. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4507. Added utf8.torrent to EXTRA_DIST
  4508. * test/Makefile.am
  4509. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4510. Fixed docs of aria2.addMetalink xml-rpc method.
  4511. * doc/aria2c.1.txt
  4512. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4513. Added Slovak translation. Updated Ukrainian and Brazilian
  4514. Portuguese translation. Thanks to all translators.
  4515. * po/sk.po
  4516. * po/uk.po
  4517. * po/pt_BR.po
  4518. * po/LINGUAS
  4519. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4520. Added test case for XmlRpcProcessor to fail to parse malformed
  4521. document.
  4522. * test/XmlRpcRequestProcessorTest.cc
  4523. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4524. Removed *.gmo files in po because they are generated on 'make
  4525. dist'
  4526. * po/*.gmo
  4527. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4528. Documented max-concurrent-downloads of changeGlobalOption method
  4529. in man page.
  4530. * doc/aria2c.1.txt
  4531. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4532. Added max-concurrent-downloads option to changeGlobalOption
  4533. xml-rpc method. Rewritten loop conditional in
  4534. RequestGroupMan::fillRequestGroupFromReserver().
  4535. * src/RequestGroupMan.cc
  4536. * src/RequestGroupMan.h
  4537. * src/XmlRpcMethod.cc
  4538. * src/XmlRpcMethodImpl.cc
  4539. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4540. Documented position parameter in man page.
  4541. * doc/aria2c.1.txt
  4542. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4543. Added 'position' parameter to addUri, addTorrent and addMetalink
  4544. xml-rpc method.
  4545. * src/RequestGroupMan.cc
  4546. * src/RequestGroupMan.h
  4547. * src/XmlRpcMethodImpl.cc
  4548. * test/XmlRpcMethodTest.cc
  4549. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4550. Removed Peer.cc from compile source list when --disable-bittorrent
  4551. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  4552. takes Peer.
  4553. * src/DefaultPieceStorage.cc
  4554. * src/DefaultPieceStorage.h
  4555. * src/Makefile.am
  4556. * src/PieceStorage.h
  4557. * src/UnknownLengthPieceStorage.cc
  4558. * src/UnknownLengthPieceStorage.h
  4559. * test/MockPieceStorage.h
  4560. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4561. Implemented getter methods in header files to give them more
  4562. chance of optimization.
  4563. Return const reference for SharadHandle if possible.
  4564. * src/AbstractAuthResolver.cc
  4565. * src/AbstractAuthResolver.h
  4566. * src/AbstractBtMessage.cc
  4567. * src/AbstractBtMessage.h
  4568. * src/AbstractSingleDiskAdaptor.cc
  4569. * src/AbstractSingleDiskAdaptor.h
  4570. * src/AsyncNameResolver.cc
  4571. * src/AsyncNameResolver.h
  4572. * src/BNode.cc
  4573. * src/BNode.h
  4574. * src/BitfieldMan.cc
  4575. * src/BitfieldMan.h
  4576. * src/BtAbortOutstandingRequestEvent.h
  4577. * src/BtExtendedMessage.cc
  4578. * src/BtExtendedMessage.h
  4579. * src/BtSeederStateChoke.cc
  4580. * src/BtSeederStateChoke.h
  4581. * src/Cookie.cc
  4582. * src/Cookie.h
  4583. * src/DHTBucket.cc
  4584. * src/DHTBucket.h
  4585. * src/DHTConnectionImpl.cc
  4586. * src/DHTConnectionImpl.h
  4587. * src/DHTFindNodeReplyMessage.cc
  4588. * src/DHTFindNodeReplyMessage.h
  4589. * src/DHTGetPeersReplyMessage.cc
  4590. * src/DHTGetPeersReplyMessage.h
  4591. * src/DHTInteractionCommand.cc
  4592. * src/DHTMessage.cc
  4593. * src/DHTMessage.h
  4594. * src/DHTMessageDispatcherImpl.cc
  4595. * src/DHTMessageEntry.cc
  4596. * src/DHTMessageReceiver.cc
  4597. * src/DHTMessageReceiver.h
  4598. * src/DHTMessageTrackerEntry.cc
  4599. * src/DHTMessageTrackerEntry.h
  4600. * src/DHTPeerAnnounceEntry.cc
  4601. * src/DHTPeerAnnounceEntry.h
  4602. * src/DHTPeerLookupTask.cc
  4603. * src/DHTPeerLookupTask.h
  4604. * src/DHTRoutingTableDeserializer.cc
  4605. * src/DHTRoutingTableDeserializer.h
  4606. * src/DefaultBtAnnounce.cc
  4607. * src/DefaultBtAnnounce.h
  4608. * src/DefaultBtMessageDispatcher.cc
  4609. * src/DefaultBtMessageDispatcher.h
  4610. * src/DefaultBtRequestFactory.cc
  4611. * src/DefaultBtRequestFactory.h
  4612. * src/DiskAdaptor.cc
  4613. * src/DiskAdaptor.h
  4614. * src/DownloadContext.cc
  4615. * src/DownloadContext.h
  4616. * src/DownloadEngine.cc
  4617. * src/DownloadEngine.h
  4618. * src/EpollEventPoll.cc
  4619. * src/EpollEventPoll.h
  4620. * src/FtpConnection.cc
  4621. * src/FtpConnection.h
  4622. * src/HttpConnection.cc
  4623. * src/HttpConnection.h
  4624. * src/HttpHeader.cc
  4625. * src/HttpHeader.h
  4626. * src/HttpRequest.cc
  4627. * src/HttpRequest.h
  4628. * src/HttpResponse.cc
  4629. * src/HttpResponse.h
  4630. * src/LibsslTLSContext.cc
  4631. * src/LibsslTLSContext.h
  4632. * src/MSEHandshake.cc
  4633. * src/MSEHandshake.h
  4634. * src/MetalinkEntry.cc
  4635. * src/MetalinkEntry.h
  4636. * src/MetalinkParserController.cc
  4637. * src/MetalinkParserController.h
  4638. * src/MetalinkParserStateMachine.cc
  4639. * src/MetalinkParserStateMachine.h
  4640. * src/MultiDiskAdaptor.cc
  4641. * src/MultiDiskAdaptor.h
  4642. * src/NetrcAuthResolver.cc
  4643. * src/NetrcAuthResolver.h
  4644. * src/Peer.cc
  4645. * src/Peer.h
  4646. * src/PeerSessionResource.cc
  4647. * src/PeerSessionResource.h
  4648. * src/Piece.cc
  4649. * src/Piece.h
  4650. * src/PieceStatMan.cc
  4651. * src/PieceStatMan.h
  4652. * src/Request.cc
  4653. * src/Request.h
  4654. * src/RequestGroup.cc
  4655. * src/RequestGroup.h
  4656. * src/RequestGroupMan.cc
  4657. * src/RequestGroupMan.h
  4658. * src/RequestSlot.cc
  4659. * src/RequestSlot.h
  4660. * src/SegmentMan.cc
  4661. * src/SegmentMan.h
  4662. * src/SelectEventPoll.cc
  4663. * src/SelectEventPoll.h
  4664. * src/ServerStat.cc
  4665. * src/ServerStat.h
  4666. * src/Signature.cc
  4667. * src/Signature.h
  4668. * src/URIResult.cc
  4669. * src/URIResult.h
  4670. * src/UTPexExtensionMessage.cc
  4671. * src/UTPexExtensionMessage.h
  4672. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4673. Fixed compile error without BitTorrent and Metalink support.
  4674. * src/XmlRpcMethod.cc
  4675. * src/XmlRpcMethodFactory.cc
  4676. * src/XmlRpcMethodImpl.cc
  4677. * src/XmlRpcMethodImpl.h
  4678. * test/XmlRpcMethodTest.cc
  4679. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4680. Rewritten the help message for --allow-overwrite option.
  4681. * doc/aria2c.1.txt
  4682. * src/usage_text.h
  4683. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4684. Fixed typo
  4685. * doc/aria2c.1.txt
  4686. * src/usage_text.h
  4687. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4688. Updated README for 1.4.0 release. Use new table syntax of
  4689. asciidoc.
  4690. * README
  4691. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4692. Documented --xml-rpc-max-request-size option in man page.
  4693. * doc/aria2c.1.txt
  4694. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4695. Moved C_* constants from BtContext to DefaultBtContext.
  4696. * src/BtContext.cc: Removed.
  4697. * src/BtContext.h
  4698. * src/DefaultBtContext.cc
  4699. * src/DefaultBtContext.h
  4700. * src/Makefile.am
  4701. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4702. Use name.utf-8 and path.utf-8 key in higher priority than name and
  4703. path key respectively when persing .torrent file.
  4704. * src/BtContext.cc
  4705. * src/BtContext.h
  4706. * src/DefaultBtContext.cc
  4707. * test/DefaultBtContextTest.cc
  4708. * test/utf8.torrent
  4709. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4710. Added --xml-rpc-max-request-size option to limit the size of
  4711. XML-RPC request.
  4712. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4713. Documented XML-RPC API in man page.
  4714. * doc/aria2c.1.txt
  4715. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4716. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  4717. will break strict-aliasing rules
  4718. * src/PeerConnection.cc
  4719. * test/DHTRoutingTableSerializerTest.cc
  4720. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4721. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  4722. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  4723. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  4724. PKG_CHECK_MODULES macro uses latter name.
  4725. * m4/sqlite3.m4
  4726. * src/Makefile.am
  4727. * test/Makefile.am
  4728. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4729. Fixed typo
  4730. * configure.ac
  4731. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4732. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  4733. presence of libgnutls using pkg-config first. If it fails, fall
  4734. back to old macro libgnutls.m4.
  4735. * configure.ac
  4736. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4737. Use s itself instead of !s.bad()
  4738. * src/CookieStorage.cc
  4739. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4740. Documented --on-download-* option and --save-cookies option in man
  4741. page.
  4742. * doc/aria2c.1.txt
  4743. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4744. Set possible values for --load-cookie option to "/path/to/file".
  4745. * src/OptionHandlerFactory.cc
  4746. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4747. Added --save-cookies option.
  4748. * src/Cookie.cc
  4749. * src/Cookie.h
  4750. * src/CookieStorage.cc
  4751. * src/CookieStorage.h
  4752. * src/MultiUrlRequestInfo.cc
  4753. * src/OptionHandlerFactory.cc
  4754. * src/prefs.cc
  4755. * src/prefs.h
  4756. * src/usage_text.h
  4757. * test/CookieStorageTest.cc
  4758. * test/CookieTest.cc
  4759. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4760. Removed tellAll XML-RPC command because its reponse tends to be
  4761. big if stopped/waiting downloads pile up.
  4762. * src/XmlRpcMethodFactory.cc
  4763. * src/XmlRpcMethodImpl.cc
  4764. * src/XmlRpcMethodImpl.h
  4765. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4766. Added the ability to execute command when download starts and
  4767. stops. You can also specify command for particular cases such as
  4768. complete/error download. Added --on-download-start,
  4769. --on-download-stop, --on-download-complete and --on-download-error
  4770. option.
  4771. * src/OptionHandlerFactory.cc
  4772. * src/RequestGroupMan.cc
  4773. * src/prefs.cc
  4774. * src/prefs.h
  4775. * src/usage_text.h
  4776. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4777. Fixed test error
  4778. * test/BencodeTest.cc
  4779. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4780. Added unit tests.
  4781. * test/XmlRpcMethodTest.cc
  4782. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4783. Made exception message more verbose.
  4784. * src/bencode.cc
  4785. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4786. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  4787. space in console readout. Also they are now shown in MiB/s if
  4788. speed > 1024KiB/s.
  4789. * src/ConsoleStatCalc.cc
  4790. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4791. Added SEED to console output, which represents the number of
  4792. seeders currently the client is connecting to.
  4793. * src/ConsoleStatCalc.cc
  4794. * src/ConsoleStatCalc.h
  4795. * src/DownloadEngine.cc
  4796. * src/NullStatCalc.h
  4797. * src/StatCalc.h
  4798. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4799. Added source filename(__FILE__) and line number(__LINE__) to
  4800. exception message.
  4801. * src/AbstractCommand.cc
  4802. * src/AbstractDiskWriter.cc
  4803. * src/AbstractProxyResponseCommand.cc
  4804. * src/BDE.h
  4805. * src/BtAllowedFastMessage.cc
  4806. * src/BtHandshakeMessageValidator.h
  4807. * src/BtHaveAllMessage.cc
  4808. * src/BtHaveNoneMessage.cc
  4809. * src/BtPieceMessage.cc
  4810. * src/BtRejectMessage.cc
  4811. * src/ChunkedDecoder.cc
  4812. * src/CookieStorage.cc
  4813. * src/DHTAnnouncePeerMessage.cc
  4814. * src/DHTEntryPointNameResolveCommand.cc
  4815. * src/DHTMessageFactoryImpl.cc
  4816. * src/DHTMessageTracker.cc
  4817. * src/DHTRoutingTableDeserializer.cc
  4818. * src/DHTRoutingTableSerializer.cc
  4819. * src/DHTSetup.cc
  4820. * src/DHTTokenTracker.cc
  4821. * src/DefaultBtAnnounce.cc
  4822. * src/DefaultBtContext.cc
  4823. * src/DefaultBtInteractive.cc
  4824. * src/DefaultBtMessageFactory.cc
  4825. * src/DefaultBtProgressInfoFile.cc
  4826. * src/DefaultExtensionMessageFactory.cc
  4827. * src/DlAbortEx.h
  4828. * src/DlRetryEx.h
  4829. * src/DownloadCommand.cc
  4830. * src/DownloadEngineFactory.cc
  4831. * src/DownloadFailureException.h
  4832. * src/Exception.cc
  4833. * src/Exception.h
  4834. * src/ExpatMetalinkProcessor.cc
  4835. * src/ExpatXmlRpcRequestProcessor.cc
  4836. * src/FallocFileAllocationIterator.cc
  4837. * src/FatalException.h
  4838. * src/FtpConnection.cc
  4839. * src/FtpFinishDownloadCommand.cc
  4840. * src/FtpInitiateConnectionCommand.cc
  4841. * src/FtpNegotiationCommand.cc
  4842. * src/GZipDecoder.cc
  4843. * src/HandshakeExtensionMessage.cc
  4844. * src/HttpConnection.cc
  4845. * src/HttpHeaderProcessor.cc
  4846. * src/HttpInitiateConnectionCommand.cc
  4847. * src/HttpResponse.cc
  4848. * src/HttpResponseCommand.cc
  4849. * src/HttpServer.cc
  4850. * src/HttpSkipResponseCommand.cc
  4851. * src/InitiateConnectionCommandFactory.cc
  4852. * src/IteratableChunkChecksumValidator.cc
  4853. * src/LibgcryptARC4Context.h
  4854. * src/LibgcryptARC4Decryptor.h
  4855. * src/LibgcryptARC4Encryptor.h
  4856. * src/LibgcryptDHKeyExchange.h
  4857. * src/LibgnutlsTLSContext.cc
  4858. * src/LibsslARC4Context.h
  4859. * src/LibsslARC4Decryptor.h
  4860. * src/LibsslARC4Encryptor.h
  4861. * src/LibsslDHKeyExchange.h
  4862. * src/LibsslTLSContext.cc
  4863. * src/MSEHandshake.cc
  4864. * src/MessageDigestHelper.cc
  4865. * src/MetalinkHelper.cc
  4866. * src/MultiDiskAdaptor.cc
  4867. * src/NameMatchOptionHandler.h
  4868. * src/NameResolver.cc
  4869. * src/Netrc.cc
  4870. * src/NsCookieParser.cc
  4871. * src/OptionHandlerException.cc
  4872. * src/OptionHandlerException.h
  4873. * src/OptionHandlerImpl.h
  4874. * src/OptionParser.cc
  4875. * src/ParameterizedStringParser.cc
  4876. * src/PeerAbstractCommand.cc
  4877. * src/PeerConnection.cc
  4878. * src/PeerMessageUtil.cc
  4879. * src/PeerReceiveHandshakeCommand.cc
  4880. * src/Platform.cc
  4881. * src/ReceiverMSEHandshakeCommand.cc
  4882. * src/RecoverableException.h
  4883. * src/RequestGroup.cc
  4884. * src/SimpleLogger.cc
  4885. * src/SocketCore.cc
  4886. * src/Sqlite3MozCookieParser.cc
  4887. * src/UTPexExtensionMessage.cc
  4888. * src/Util.cc
  4889. * src/XML2SAXMetalinkProcessor.cc
  4890. * src/Xml2XmlRpcRequestProcessor.cc
  4891. * src/XmlRpcMethodImpl.cc
  4892. * src/bencode.cc
  4893. * src/download_helper.cc
  4894. * src/messageDigest.h
  4895. * test/ExceptionTest.cc
  4896. * test/TestUtil.cc
  4897. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4898. Bump up version number to 1.4.0
  4899. * configure.ac
  4900. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4901. Added 2files.metalink to EXTRA_DIST
  4902. * test/Makefile.am
  4903. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4904. Added missing 2files.metalink
  4905. * test/2files.metalink
  4906. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4907. Show "[MEMORY]" prefix before filename in download summary if it
  4908. is downloaded into memory.
  4909. * src/DownloadResult.h
  4910. * src/RequestGroup.cc
  4911. * src/RequestGroupMan.cc
  4912. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4913. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  4914. * src/ExpatXmlRpcRequestProcessor.cc
  4915. * src/Xml2XmlRpcRequestProcessor.cc
  4916. * src/message.h
  4917. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4918. Defined const BDEs to avoid duplicate instantiation.
  4919. Defined MSG_GID_NOT_PROVIDED.
  4920. * src/XmlRpcMethodImpl.cc
  4921. * src/message.h
  4922. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4923. Code cleanup
  4924. * src/Xml2XmlRpcRequestProcessor.cc
  4925. * src/Xml2XmlRpcRequestProcessor.h
  4926. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4927. Defined ENABLE_XML_RPC
  4928. * configure.ac
  4929. * configure
  4930. * config.h.in
  4931. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4932. Added ExpatXmlRpcRequestProcessor
  4933. * src/ExpatXmlRpcRequestProcessor.cc
  4934. * src/ExpatXmlRpcRequestProcessor.h
  4935. * src/Makefile.am
  4936. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4937. Added tests for addTorrent and addMetalink command.
  4938. * test/TestUtil.cc
  4939. * test/TestUtil.h
  4940. * test/XmlRpcMethodTest.cc
  4941. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4942. Corrected the description of --file-allocation option.
  4943. * doc/aria2c.1.txt
  4944. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4945. Added tellAll command.
  4946. * src/XmlRpcMethodFactory.cc
  4947. * src/XmlRpcMethodImpl.cc
  4948. * src/XmlRpcMethodImpl.h
  4949. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4950. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  4951. * src/XmlRpcMethodImpl.cc
  4952. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4953. Added changeGlobalOption command. Currently,
  4954. max-overall-download-limit and max-overall-upload-limit option are
  4955. available.
  4956. * src/RequestGroupMan.h
  4957. * src/XmlRpcMethod.cc
  4958. * src/XmlRpcMethod.h
  4959. * src/XmlRpcMethodFactory.cc
  4960. * src/XmlRpcMethodImpl.cc
  4961. * src/XmlRpcMethodImpl.h
  4962. * test/XmlRpcMethodTest.cc
  4963. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4964. Added changeOption command. Currently, max-download-limit,
  4965. max-upload-limit option are available in this command.
  4966. * src/RequestGroup.h
  4967. * src/XmlRpcMethod.cc
  4968. * src/XmlRpcMethod.h
  4969. * src/XmlRpcMethodFactory.cc
  4970. * src/XmlRpcMethodImpl.cc
  4971. * src/XmlRpcMethodImpl.h
  4972. * test/XmlRpcMethodTest.cc
  4973. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4974. Added purgeDownloadResult command.
  4975. * src/RequestGroupMan.cc
  4976. * src/RequestGroupMan.h
  4977. * src/XmlRpcMethodFactory.cc
  4978. * src/XmlRpcMethodImpl.cc
  4979. * src/XmlRpcMethodImpl.h
  4980. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4981. Refactored.
  4982. * src/XmlRpcMethod.cc
  4983. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4984. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  4985. XmlRpcResponse.
  4986. * src/HttpServerBodyCommand.cc
  4987. * src/Makefile.am
  4988. * src/XmlRpcMethod.cc
  4989. * src/XmlRpcMethod.h
  4990. * src/XmlRpcMethodImpl.cc
  4991. * src/XmlRpcResponse.cc
  4992. * src/XmlRpcResponse.h
  4993. * test/XmlRpcMethodTest.cc
  4994. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4995. In XML-RPC option struct, header and index-out option can take
  4996. array as value.
  4997. * src/XmlRpcMethod.cc
  4998. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4999. Removed unused option member from PeerConnection.
  5000. * src/InitiatorMSEHandshakeCommand.cc
  5001. * src/PeerConnection.cc
  5002. * src/PeerConnection.h
  5003. * src/PeerInteractionCommand.cc
  5004. * src/PeerReceiveHandshakeCommand.cc
  5005. * src/ReceiverMSEHandshakeCommand.cc
  5006. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5007. Added "seeder" key to getPeers response.
  5008. * src/XmlRpcMethodImpl.cc
  5009. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5010. Added addMetalink XML-RPC command.
  5011. * src/XmlRpcMethodFactory.cc
  5012. * src/XmlRpcMethodImpl.cc
  5013. * src/XmlRpcMethodImpl.h
  5014. * src/download_helper.cc
  5015. * src/download_helper.h
  5016. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5017. Fixed the bug that POU peers are never choked in seeding.
  5018. * src/BtSeederStateChoke.cc
  5019. * src/BtSeederStateChoke.h
  5020. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5021. Added web-seeding URI handling in addTorrent command.
  5022. * src/XmlRpcMethodImpl.cc
  5023. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5024. Added "length" key to getFiles response.
  5025. * src/XmlRpcMethodImpl.cc
  5026. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5027. Moved --no-netrc option from ftp option section to http/ftp option
  5028. section.
  5029. * doc/aria2c.1.txt
  5030. * src/OptionHandlerFactory.cc
  5031. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5032. Removed garbage "\" character before '
  5033. * doc/aria2c.1.txt
  5034. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5035. Removed garbage "\" character before http.
  5036. * doc/aria2c.1.txt
  5037. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5038. Documented additional options that can be specified in -i list.
  5039. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  5040. and --xml-rpc-passwd. Removed --enable-http-server and
  5041. --http-server-listen-port.
  5042. * doc/aria2c.1.txt
  5043. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5044. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  5045. * src/DefaultPeerStorage.cc
  5046. * src/DefaultPeerStorage.h
  5047. * src/PeerStorage.h
  5048. * src/XmlRpcMethodImpl.cc
  5049. * test/MockPeerStorage.h
  5050. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5051. Put a call to Socket::isReadable() in try block.
  5052. * src/HttpServerBodyCommand.cc
  5053. * src/HttpServerCommand.cc
  5054. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5055. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  5056. exception , so it is now in try block.
  5057. * src/HttpServerResponseCommand.cc
  5058. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5059. Added "amChoking" and "peerChoking" key in getPeers response.
  5060. * src/XmlRpcMethodImpl.cc
  5061. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5062. Added test case for zero-length filter.
  5063. * test/BitfieldManTest.cc
  5064. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5065. getFiles command now returns file data for finished/stopped
  5066. downloads.
  5067. * src/XmlRpcMethodImpl.cc
  5068. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5069. DownloadResult now has the list of FileEntry. The download
  5070. summary displays the path of first selected file and the number of
  5071. remaining files for multi-file torrent.
  5072. * src/DownloadResult.h
  5073. * src/RequestGroup.cc
  5074. * src/RequestGroupMan.cc
  5075. * test/RequestGroupTest.cc
  5076. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5077. Fixed segmentation fault error when no file is selected in
  5078. multi-file torrent.
  5079. * src/BitfieldMan.cc
  5080. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5081. Escaped <,>,& character in XML-RPC response.
  5082. * src/XmlRpcMethod.cc
  5083. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5084. Throw DlAbortEx instead of FatalException during parsing options
  5085. because we don't want for aria2 to quit when bad option is passed
  5086. via XML-RPC.
  5087. * src/OptionHandlerException.cc
  5088. * src/OptionHandlerException.h
  5089. * src/OptionHandlerImpl.h
  5090. * src/OptionParser.cc
  5091. * src/OptionParser.h
  5092. * src/PStringSegment.cc
  5093. * src/ParameterizedStringParser.cc
  5094. * src/download_helper.cc
  5095. * test/ParameterizedStringParserTest.cc
  5096. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5097. Selecting files are now done in
  5098. DefaultBtContext::setFileFileter().
  5099. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  5100. functions are removed because they are no longer used. Creating
  5101. filter in BitfieldMan is done in new funtion
  5102. PieceStorage::setupFileFilter()
  5103. * src/BtContext.cc
  5104. * src/BtContext.h
  5105. * src/DefaultBtContext.cc
  5106. * src/DefaultBtContext.h
  5107. * src/DefaultPieceStorage.cc
  5108. * src/DefaultPieceStorage.h
  5109. * src/DiskAdaptor.cc
  5110. * src/DiskAdaptor.h
  5111. * src/PieceStorage.h
  5112. * src/RequestGroup.cc
  5113. * src/UnknownLengthPieceStorage.h
  5114. * src/XmlRpcMethodImpl.cc
  5115. * test/DefaultBtContextTest.cc
  5116. * test/MockBtContext.h
  5117. * test/MockPieceStorage.h
  5118. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5119. Fixed compile error on Mac OS X
  5120. * src/HttpServer.cc
  5121. * src/XmlRpcMethod.h
  5122. * src/XmlRpcMethodImpl.cc
  5123. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5124. Use std::binary_search instead of std::find
  5125. * src/DefaultPieceStorage.cc
  5126. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5127. Removed unnecessary BDE() call; leave them to implicit conversion.
  5128. * src/XmlRpcMethodImpl.cc
  5129. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5130. Return connections and gid in string
  5131. * src/XmlRpcMethodImpl.cc
  5132. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5133. Renamed addURI as addUri
  5134. * src/XmlRpcMethodFactory.cc
  5135. * src/XmlRpcMethodImpl.cc
  5136. * src/XmlRpcMethodImpl.h
  5137. * test/XmlRpcMethodTest.cc
  5138. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5139. Renamed addTorrentFile as addTorrent
  5140. * src/XmlRpcMethodFactory.cc
  5141. * src/XmlRpcMethodImpl.cc
  5142. * src/XmlRpcMethodImpl.h
  5143. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5144. The information for files, URIs, peers are removed from the
  5145. reponse of TellaActive, TellStatus command because they tend to be
  5146. large. Instead they can be retrieved by the dedicated commands:
  5147. getFiles, getUris and getPeers respectively.
  5148. * src/XmlRpcMethodFactory.cc
  5149. * src/XmlRpcMethodImpl.cc
  5150. * src/XmlRpcMethodImpl.h
  5151. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5152. Removed --max-overall-upload-limit and
  5153. --max-overall-download-limit option from listRequestOptions.
  5154. * src/download_helper.cc
  5155. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5156. Log incoming host in HttpListenCommand.
  5157. * src/HttpListenCommand.cc
  5158. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5159. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  5160. --xml-rpc-passwd option.
  5161. * src/HttpServer.cc
  5162. * src/HttpServer.h
  5163. * src/HttpServerCommand.cc
  5164. * src/OptionHandlerFactory.cc
  5165. * src/prefs.cc
  5166. * src/prefs.h
  5167. * src/usage_text.h
  5168. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5169. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  5170. processing 0 length request.
  5171. * src/HttpServerBodyCommand.cc
  5172. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5173. Removed --enable-http-server and --http-server-listen-port
  5174. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  5175. instead. The original feature for --enable-http-server that
  5176. reports download progress in HTML was officially removed. Persist
  5177. XML-RPC connection if client supports keep-alive.
  5178. * src/DownloadEngineFactory.cc
  5179. * src/HttpServerCommand.cc
  5180. * src/HttpServerResponseCommand.cc
  5181. * src/Makefile.am
  5182. * src/Makefile.in
  5183. * src/OptionHandlerFactory.cc
  5184. * src/RequestGroupMan.cc
  5185. * src/main.cc
  5186. * src/option_processing.cc
  5187. * src/prefs.cc
  5188. * src/prefs.h
  5189. * src/usage_text.h
  5190. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5191. Added "uris" key to the response of tellStatus command. Added
  5192. "connections" key to the response of tellStatus and tellActive
  5193. command.
  5194. * src/XmlRpcMethodImpl.cc
  5195. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5196. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  5197. Added TellStatusXmlRpcMethod. Remove command can now remove
  5198. waiting RequestGroup.
  5199. * src/RequestGroupMan.cc
  5200. * src/RequestGroupMan.h
  5201. * src/XmlRpcMethodFactory.cc
  5202. * src/XmlRpcMethodImpl.cc
  5203. * src/XmlRpcMethodImpl.h
  5204. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5205. Initialized _peerId
  5206. * src/Peer.cc
  5207. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5208. Return fault structure for error. FailXmlRpcMethod is renamed as
  5209. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  5210. in non-torrent download. Return single param value.
  5211. * src/XmlRpcMethod.cc
  5212. * src/XmlRpcMethodFactory.cc
  5213. * src/XmlRpcMethodImpl.cc
  5214. * src/XmlRpcMethodImpl.h
  5215. * test/XmlRpcMethodTest.cc
  5216. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5217. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  5218. command.
  5219. * src/RequestGroup.cc
  5220. * src/RequestGroup.h
  5221. * src/RequestGroupMan.cc
  5222. * src/XmlRpcMethodImpl.cc
  5223. * test/RequestGroupTest.cc
  5224. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5225. Added more options that can be specified in -i list and xml-rpc
  5226. add* command.
  5227. * src/download_helper.h
  5228. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5229. The available options in -i list should be listed in
  5230. listRequestOptions().
  5231. * src/download_helper.cc
  5232. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5233. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  5234. command.
  5235. * src/XmlRpcMethodImpl.cc
  5236. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5237. Now RequestGroup has its own copy of Option object. This will help
  5238. to give custom option for each RequestGroup.
  5239. addTorrentFile command now takes options.
  5240. * src/AbstractCommand.cc
  5241. * src/AbstractCommand.h
  5242. * src/AbstractProxyRequestCommand.cc
  5243. * src/ActivePeerConnectionCommand.cc
  5244. * src/ActivePeerConnectionCommand.h
  5245. * src/AdaptiveURISelector.cc
  5246. * src/BtCheckIntegrityEntry.cc
  5247. * src/BtDependency.cc
  5248. * src/BtDependency.h
  5249. * src/BtFileAllocationEntry.cc
  5250. * src/BtPostDownloadHandler.cc
  5251. * src/CheckIntegrityEntry.cc
  5252. * src/DownloadCommand.cc
  5253. * src/FtpDownloadCommand.cc
  5254. * src/FtpFinishDownloadCommand.cc
  5255. * src/FtpInitiateConnectionCommand.cc
  5256. * src/FtpNegotiationCommand.cc
  5257. * src/HttpInitiateConnectionCommand.cc
  5258. * src/HttpRequestCommand.cc
  5259. * src/HttpResponseCommand.cc
  5260. * src/HttpSkipResponseCommand.cc
  5261. * src/InitiateConnectionCommand.cc
  5262. * src/InitiateConnectionCommandFactory.cc
  5263. * src/InitiatorMSEHandshakeCommand.cc
  5264. * src/InitiatorMSEHandshakeCommand.h
  5265. * src/Metalink2RequestGroup.cc
  5266. * src/Metalink2RequestGroup.h
  5267. * src/MetalinkPostDownloadHandler.cc
  5268. * src/MultiUrlRequestInfo.cc
  5269. * src/MultiUrlRequestInfo.h
  5270. * src/PeerAbstractCommand.cc
  5271. * src/PeerInteractionCommand.cc
  5272. * src/PeerInteractionCommand.h
  5273. * src/PeerReceiveHandshakeCommand.cc
  5274. * src/PeerReceiveHandshakeCommand.h
  5275. * src/RequestGroup.cc
  5276. * src/RequestGroup.h
  5277. * src/TrackerWatcherCommand.cc
  5278. * src/TrackerWatcherCommand.h
  5279. * src/XmlRpcMethod.cc
  5280. * src/XmlRpcMethod.h
  5281. * src/XmlRpcMethodImpl.cc
  5282. * src/download_helper.cc
  5283. * src/download_helper.h
  5284. * src/main.cc
  5285. * test/BtDependencyTest.cc
  5286. * test/BtPostDownloadHandlerTest.cc
  5287. * test/DefaultBtMessageDispatcherTest.cc
  5288. * test/DownloadHandlerFactoryTest.cc
  5289. * test/DownloadHelperTest.cc
  5290. * test/Metalink2RequestGroupTest.cc
  5291. * test/MetalinkPostDownloadHandlerTest.cc
  5292. * test/RequestGroupManTest.cc
  5293. * test/RequestGroupTest.cc
  5294. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5295. Added tellActiveStatus xml-rpc command which reports download
  5296. status of active downloads.
  5297. * src/XmlRpcMethodFactory.cc
  5298. * src/XmlRpcMethodImpl.cc
  5299. * src/XmlRpcMethodImpl.h
  5300. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5301. Added addTorrentFile xml-rpc command which receives uploaded
  5302. torrent file and add download for it.
  5303. * src/RequestGroupMan.cc
  5304. * src/XmlRpcMethodFactory.cc
  5305. * src/XmlRpcMethodImpl.cc
  5306. * src/XmlRpcMethodImpl.h
  5307. * src/download_helper.cc
  5308. * src/download_helper.h
  5309. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5310. Added remove xml-rpc command which removes specified download.
  5311. There is a known issue: the removed unfinished downloads are
  5312. reported ERR when aria2 exits. They should be reported as INPR.
  5313. * src/RequestGroupMan.cc
  5314. * src/RequestGroupMan.h
  5315. * src/XmlRpcMethodFactory.cc
  5316. * src/XmlRpcMethodImpl.cc
  5317. * src/XmlRpcMethodImpl.h
  5318. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5319. If --enable-http-server is enabled, don't stop aria2 when all
  5320. download finished and don't quit when no files to download at
  5321. start up.
  5322. * src/RequestGroupMan.cc
  5323. * src/main.cc
  5324. * src/option_processing.cc
  5325. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5326. Added missing AM_CONDITIONAL
  5327. * configure.ac
  5328. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5329. Added xml-rpc functionality. Currently only addURI commad is
  5330. supported. To enable xml-rpc, run aria2 with
  5331. --enable-http-server. This option name is temporal and will be
  5332. changed. The feature that reports download progress in html format
  5333. is temporarily disabled.
  5334. * src/HttpServer.cc
  5335. * src/HttpServer.h
  5336. * src/HttpServerBodyCommand.cc
  5337. * src/HttpServerBodyCommand.h
  5338. * src/HttpServerCommand.cc
  5339. * src/HttpServerResponseCommand.cc
  5340. * src/Makefile.am
  5341. * src/OptionParser.cc
  5342. * src/OptionParser.h
  5343. * src/RequestGroupMan.cc
  5344. * src/RequestGroupMan.h
  5345. * src/XmlRpcMethod.cc
  5346. * src/XmlRpcMethod.h
  5347. * src/XmlRpcMethodFactory.cc
  5348. * src/XmlRpcMethodFactory.h
  5349. * src/XmlRpcMethodImpl.cc
  5350. * src/XmlRpcMethodImpl.h
  5351. * src/download_helper.cc
  5352. * src/download_helper.h
  5353. * test/Makefile.am
  5354. * test/XmlRpcMethodTest.cc
  5355. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5356. Added xml-rpc request parser. The supported value types are:
  5357. i4/int, string, double, struct, array, base64. Currently only
  5358. libxml2 version is provided.
  5359. * src/Xml2XmlRpcRequestProcessor.cc
  5360. * src/Xml2XmlRpcRequestProcessor.h
  5361. * src/XmlRpcElements.cc
  5362. * src/XmlRpcElements.h
  5363. * src/XmlRpcRequest.h
  5364. * src/XmlRpcRequestParserController.cc
  5365. * src/XmlRpcRequestParserController.h
  5366. * src/XmlRpcRequestParserState.h
  5367. * src/XmlRpcRequestParserStateImpl.cc
  5368. * src/XmlRpcRequestParserStateImpl.h
  5369. * src/XmlRpcRequestParserStateMachine.cc
  5370. * src/XmlRpcRequestParserStateMachine.h
  5371. * src/XmlRpcRequestProcessor.h
  5372. * test/XmlRpcRequestParserControllerTest.cc
  5373. * test/XmlRpcRequestProcessorTest.cc
  5374. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5375. * Release 1.3.3
  5376. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5377. Fixed compile error since r1202.
  5378. * src/ExpatMetalinkProcessor.cc
  5379. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5380. Updated Ukrainian, Russian and Simplified Chinese
  5381. translations. Thanks to all translators.
  5382. * po/ru.po
  5383. * po/uk.po
  5384. * po/zh_CN.po
  5385. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5386. Pass reference of Option object instead of pointer.
  5387. * src/download_helper.cc
  5388. * src/download_helper.h
  5389. * src/main.cc
  5390. * test/DownloadHelperTest.cc
  5391. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5392. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  5393. from option directly. Instead, get them from RequestGroup.
  5394. * src/ActivePeerConnectionCommand.cc
  5395. * src/ActivePeerConnectionCommand.h
  5396. * src/PeerReceiveHandshakeCommand.cc
  5397. * src/RequestGroup.h
  5398. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5399. Removed unused uploadLimitCheck and uploadLimit from
  5400. PeerAbstractCommand. Removed unused maxDownloadLimit from
  5401. PeerInteractionCommand.
  5402. * src/PeerAbstractCommand.cc
  5403. * src/PeerAbstractCommand.h
  5404. * src/PeerInteractionCommand.cc
  5405. * src/PeerInteractionCommand.h
  5406. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5407. Fixed broken file renaming feature since r1202.
  5408. * src/FtpNegotiationCommand.cc
  5409. * src/FtpNegotiationCommand.h
  5410. * src/HttpResponseCommand.cc
  5411. * src/RequestGroup.cc
  5412. * src/RequestGroup.h
  5413. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5414. Removed unused debug log
  5415. * src/SocketCore.cc
  5416. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5417. Generated configure and Makefile.in using autoconf 2.63 and
  5418. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  5419. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  5420. * configure.ac
  5421. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5422. Moved piece statistics stuff to new PieceStatMan class.
  5423. Refactored PieceSelector interface.
  5424. * src/DefaultPieceStorage.cc
  5425. * src/DefaultPieceStorage.h
  5426. * src/LongestSequencePieceSelector.cc
  5427. * src/LongestSequencePieceSelector.h
  5428. * src/Makefile.am
  5429. * src/PieceSelector.h
  5430. * src/PieceStatMan.cc
  5431. * src/PieceStatMan.h
  5432. * src/RarestPieceSelector.cc
  5433. * src/RarestPieceSelector.h
  5434. * src/RequestGroup.cc
  5435. * test/DefaultPieceStorageTest.cc
  5436. * test/InOrderPieceSelector.h
  5437. * test/Makefile.am
  5438. * test/PieceStatManTest.cc
  5439. * test/RarestPieceSelectorTest.cc
  5440. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5441. Added static member _protocolFamily to SocketCore. By default,
  5442. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  5443. address. Sometime SocketCore::bind() and
  5444. SocketCore::establishConnection() use difference protocl family
  5445. and latter cannot connect to former. To avoid this situation, we
  5446. limit protocol family to AF_INET for unit tests.
  5447. * src/SocketCore.cc
  5448. * src/SocketCore.h
  5449. * test/AllTest.cc
  5450. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5451. Avoid std::bad_alloc for negative bencode string length.
  5452. * src/bencode.cc
  5453. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5454. Supported segmented downloading with chunked transfer encoding and
  5455. content-length.
  5456. * src/DownloadCommand.cc
  5457. * src/HttpResponseCommand.cc
  5458. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5459. Bump up version number to 1.3.3
  5460. * configure.ac
  5461. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5462. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  5463. from 4096 to 65536 (for insanely large ftp login banners)
  5464. * src/FtpConnection.h
  5465. * test/FtpConnectionTest.cc
  5466. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5467. In DefaultBtContext::getActualBasePath(), return first
  5468. FileEntry::getPath() for single file torrent.
  5469. * src/DefaultBtContext.cc
  5470. * test/DefaultBtContextTest.cc
  5471. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5472. Removed directIOAllowed() from BinaryStream, DiskWriter,
  5473. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  5474. Removed _directIOAllowed member from DiskWriter.
  5475. * src/AbstractDiskWriter.cc
  5476. * src/AbstractDiskWriter.h
  5477. * src/AbstractSingleDiskAdaptor.cc
  5478. * src/AbstractSingleDiskAdaptor.h
  5479. * src/BinaryStream.h
  5480. * src/ByteArrayDiskWriter.h
  5481. * src/DefaultPieceStorage.cc
  5482. * src/DiskWriter.h
  5483. * src/MultiDiskAdaptor.cc
  5484. * src/MultiDiskAdaptor.h
  5485. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5486. Now the constructor of AbstractDiskWriter takes filename as an
  5487. argument and filename argument is removed from openFile(),
  5488. initAndOpenFile(), openExistingFile() interface. storeDir member
  5489. and its accessor functions are removed from DiskAdaptor because it
  5490. is not used anymore. size() member function of DefaultDiskWriter,
  5491. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  5492. opening file.
  5493. * src/AbstractDiskWriter.cc
  5494. * src/AbstractDiskWriter.h
  5495. * src/AbstractSingleDiskAdaptor.cc
  5496. * src/AbstractSingleDiskAdaptor.h
  5497. * src/ByteArrayDiskWriter.cc
  5498. * src/ByteArrayDiskWriter.h
  5499. * src/ByteArrayDiskWriterFactory.cc
  5500. * src/ByteArrayDiskWriterFactory.h
  5501. * src/DefaultDiskWriter.cc
  5502. * src/DefaultDiskWriter.h
  5503. * src/DefaultDiskWriterFactory.cc
  5504. * src/DefaultDiskWriterFactory.h
  5505. * src/DefaultPieceStorage.cc
  5506. * src/DirectDiskAdaptor.cc
  5507. * src/DirectDiskAdaptor.h
  5508. * src/DiskAdaptor.h
  5509. * src/DiskWriter.h
  5510. * src/DiskWriterFactory.h
  5511. * src/MessageDigestHelper.cc
  5512. * src/MultiDiskAdaptor.cc
  5513. * src/RequestGroup.cc
  5514. * src/UnknownLengthPieceStorage.cc
  5515. * src/Util.cc
  5516. * test/DefaultDiskWriterTest.cc
  5517. * test/DirectDiskAdaptorTest.cc
  5518. * test/FallocFileAllocationIteratorTest.cc
  5519. * test/MessageDigestHelperTest.cc
  5520. * test/MetalinkProcessorTest.cc
  5521. * test/MultiDiskAdaptorTest.cc
  5522. * test/MultiFileAllocationIteratorTest.cc
  5523. * test/SingleFileAllocationIteratorTest.cc
  5524. * test/UtilTest.cc
  5525. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5526. Fixed the bug that aria2 aborts when --select-file is used. This
  5527. bug was introduced in r1199.
  5528. * src/MultiDiskAdaptor.cc
  5529. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5530. Code cleanup
  5531. * test/MockPieceStorage.cc
  5532. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5533. Fixed the bug that read-only file with wrong file size will cause
  5534. error because it cannot be truncated to the correct size. Now if
  5535. file size is different than the expected one, re-open file in
  5536. writable mode.
  5537. * src/AbstractSingleDiskAdaptor.cc
  5538. * src/AbstractSingleDiskAdaptor.h
  5539. * src/BtCheckIntegrityEntry.cc
  5540. * src/DiskAdaptor.h
  5541. * src/MultiDiskAdaptor.h
  5542. * src/RequestGroup.cc
  5543. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5544. Fixed the bug that with --check-integrity option aria2 reports
  5545. downloaded file size is 0 even if some parts of file is correctly
  5546. downloaded. This bug is reproducible for the download that a file
  5547. includes last piece is missing. This bug doesn't reveal for
  5548. single-torrent with file allocation on.
  5549. * src/IteratableChecksumValidator.cc
  5550. * test/IteratableChecksumValidatorTest.cc
  5551. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5552. Avoid circular reference between RequestGroup and AdaptiveURISelector
  5553. * src/RequestGroupMan.cc
  5554. * src/AdaptiveURISelector.cc
  5555. * src/AdaptiveURISelector.h
  5556. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5557. * Release 1.3.2
  5558. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5559. Updated README
  5560. * README
  5561. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5562. Updated Ukrainian translations. Thanks to Alexander10.
  5563. * po/uk.po
  5564. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5565. Code cleanup
  5566. * src/MetalinkParserStateMachine.cc
  5567. * src/MetalinkParserStateMachine.h
  5568. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5569. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  5570. and expat simultaneously, MetalinkProcessor is now not base class
  5571. and it is directly implemented in XML2SAXMetalinkProcessor and
  5572. ExpatMetalinkProcessor.
  5573. * src/ExpatMetalinkProcessor.cc
  5574. * src/ExpatMetalinkProcessor.h
  5575. * src/Makefile.am
  5576. * src/MetalinkHelper.cc
  5577. * src/MetalinkProcessor.h
  5578. * src/MetalinkProcessorFactory.cc: Removed.
  5579. * src/MetalinkProcessorFactory.h: Removed
  5580. * src/XML2SAXMetalinkProcessor.cc
  5581. * src/XML2SAXMetalinkProcessor.h
  5582. * test/MetalinkProcessorTest.cc
  5583. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5584. Bump up version number to 1.3.2
  5585. * configure.ac
  5586. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5587. Added missing file.
  5588. * test/Makefile.am
  5589. * test/url-list-singleFileEndsWithSlash.torrent
  5590. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5591. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  5592. request.
  5593. * src/AnnounceList.cc
  5594. * src/AnnounceList.h
  5595. * src/BDE.cc: Added
  5596. * src/BDE.h: Added
  5597. * src/DHTAbstractMessage.cc
  5598. * src/DHTAbstractMessage.h
  5599. * src/DHTAnnouncePeerMessage.cc
  5600. * src/DHTAnnouncePeerMessage.h
  5601. * src/DHTAnnouncePeerReplyMessage.cc
  5602. * src/DHTAnnouncePeerReplyMessage.h
  5603. * src/DHTFindNodeMessage.cc
  5604. * src/DHTFindNodeMessage.h
  5605. * src/DHTFindNodeReplyMessage.cc
  5606. * src/DHTFindNodeReplyMessage.h
  5607. * src/DHTGetPeersMessage.cc
  5608. * src/DHTGetPeersMessage.h
  5609. * src/DHTGetPeersReplyMessage.cc
  5610. * src/DHTGetPeersReplyMessage.h
  5611. * src/DHTMessageFactory.h
  5612. * src/DHTMessageFactoryImpl.cc
  5613. * src/DHTMessageFactoryImpl.h
  5614. * src/DHTMessageReceiver.cc
  5615. * src/DHTMessageTracker.cc
  5616. * src/DHTMessageTracker.h
  5617. * src/DHTPingMessage.cc
  5618. * src/DHTPingMessage.h
  5619. * src/DHTPingReplyMessage.cc
  5620. * src/DHTPingReplyMessage.h
  5621. * src/DHTQueryMessage.cc
  5622. * src/DHTQueryMessage.h
  5623. * src/DHTResponseMessage.cc
  5624. * src/DHTResponseMessage.h
  5625. * src/DefaultBtAnnounce.cc
  5626. * src/DefaultBtContext.cc
  5627. * src/DefaultBtContext.h
  5628. * src/HandshakeExtensionMessage.cc
  5629. * src/Makefile.am
  5630. * src/PeerListProcessor.h
  5631. * src/UTPexExtensionMessage.cc
  5632. * src/bencode.cc
  5633. * src/bencode.h
  5634. * test/AnnounceListTest.cc
  5635. * test/BDETest.cc: Added
  5636. * test/BencodeTest.cc
  5637. * test/DHTAnnouncePeerMessageTest.cc
  5638. * test/DHTAnnouncePeerReplyMessageTest.cc
  5639. * test/DHTFindNodeMessageTest.cc
  5640. * test/DHTFindNodeReplyMessageTest.cc
  5641. * test/DHTGetPeersMessageTest.cc
  5642. * test/DHTGetPeersReplyMessageTest.cc
  5643. * test/DHTMessageFactoryImplTest.cc
  5644. * test/DHTMessageTrackerTest.cc
  5645. * test/DHTPingMessageTest.cc
  5646. * test/DHTPingReplyMessageTest.cc
  5647. * test/Makefile.am
  5648. * test/MockDHTMessageFactory.h
  5649. * test/PeerListProcessorTest.cc
  5650. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5651. Use url-list (web-seeding) only for single-file torrent. This is
  5652. basically the same behavior with Metalink file with torrent and
  5653. URIs.
  5654. * src/RequestGroup.cc
  5655. * src/DefaultBtContext.cc
  5656. * test/DefaultBtContextTest.cc
  5657. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5658. Rewritten expr
  5659. * src/array_fun.h
  5660. * test/array_funTest.cc
  5661. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5662. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  5663. * src/DefaultBtMessageDispatcher.cc
  5664. * src/a2algo.h
  5665. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5666. Removed ExtendedMessagingAware. Instead of using inheritance,
  5667. added ExtensionMessageRegistry and it is passed to
  5668. DefaultExtensionMessageFactory.
  5669. * src/DefaultBtInteractive.cc
  5670. * src/DefaultBtInteractive.h
  5671. * src/DefaultExtensionMessageFactory.cc
  5672. * src/DefaultExtensionMessageFactory.h
  5673. * src/ExtendedMessagingAware.h: Removed.
  5674. * src/ExtensionMessageFactory.h
  5675. * src/ExtensionMessageRegistry.h: Added.
  5676. * src/Makefile.am
  5677. * src/PeerInteractionCommand.cc
  5678. * test/DefaultExtensionMessageFactoryTest.cc
  5679. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5680. Fixed typo in log messages
  5681. * src/MSEHandshake.cc
  5682. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5683. Fixed the bug that prevents torrent download from finishing. The
  5684. bug doesn't reveal for all torrents. The torrents affected this
  5685. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  5686. of pieces.
  5687. * src/bitfield.h
  5688. * test/bitfieldTest.cc
  5689. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5690. Code cleanup
  5691. * src/PeerListProcessor.h
  5692. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5693. Removed RequestGroupAware
  5694. * src/AbstractCommand.cc
  5695. * src/AbstractCommand.h
  5696. * src/ActivePeerConnectionCommand.cc
  5697. * src/ActivePeerConnectionCommand.h
  5698. * src/DHTGetPeersCommand.cc
  5699. * src/DHTGetPeersCommand.h
  5700. * src/InitiatorMSEHandshakeCommand.cc
  5701. * src/InitiatorMSEHandshakeCommand.h
  5702. * src/Makefile.am
  5703. * src/PeerInitiateConnectionCommand.cc
  5704. * src/PeerInitiateConnectionCommand.h
  5705. * src/PeerInteractionCommand.cc
  5706. * src/PeerInteractionCommand.h
  5707. * src/RealtimeCommand.cc
  5708. * src/RealtimeCommand.h
  5709. * src/RequestGroupAware.cc: Removed
  5710. * src/RequestGroupAware.h: Removed
  5711. * src/SeedCheckCommand.cc
  5712. * src/SeedCheckCommand.h
  5713. * src/SleepCommand.cc
  5714. * src/TrackerWatcherCommand.cc
  5715. * src/TrackerWatcherCommand.h
  5716. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5717. Rewritten PeerListProcessor
  5718. * src/PeerListProcessor.h
  5719. * src/CompactPeerListProcessor.h: Removed
  5720. * src/CompactPeerListProcessor.cc: Removed
  5721. * src/DelegatingPeerListProcessor.cc: Removed.
  5722. * src/DefaultBtAnnounce.cc
  5723. * src/Makefile.am
  5724. * src/UTPexExtensionMessage.cc
  5725. * src/DefaultPeerListProcessor.h: Removed.
  5726. * src/DefaultPeerListProcessor.cc: Removed.
  5727. * src/DelegatingPeerListProcessor.h: Removed.
  5728. * test/Makefile.am
  5729. * test/PeerListProcessorTest.cc
  5730. * test/DefaultPeerListProcessorTest.cc: Removed.
  5731. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5732. Rewritten RequestGroupMan::calculateStat()
  5733. * src/RequestGroupMan.cc
  5734. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5735. Removed unnecessary virtual destructor for Request class.
  5736. * src/Request.cc
  5737. * src/Request.h
  5738. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5739. Avoid dynamic_pointer_cast.
  5740. * src/DHTGetPeersCommand.cc
  5741. * src/DHTGetPeersCommand.h
  5742. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5743. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  5744. BtEvent.
  5745. * src/AbstractBtEventListener.h: Removed.
  5746. * src/AbstractBtMessage.cc
  5747. * src/AbstractBtMessage.h
  5748. * src/BtAbortOutstandingRequestEvent.h
  5749. * src/BtCancelSendingPieceEvent.h
  5750. * src/BtChokedEvent.h: Removed.
  5751. * src/BtChokingEvent.h
  5752. * src/BtEvent.h: Removed
  5753. * src/BtEventListener.h: Removed.
  5754. * src/BtMessage.h
  5755. * src/BtPieceMessage.cc
  5756. * src/BtPieceMessage.h
  5757. * src/BtRequestMessage.cc
  5758. * src/BtRequestMessage.h
  5759. * src/DefaultBtMessageDispatcher.cc
  5760. * src/Makefile.am
  5761. * src/a2functional.h
  5762. * test/BtPieceMessageTest.cc
  5763. * test/BtRequestMessageTest.cc
  5764. * test/DefaultBtMessageDispatcherTest.cc
  5765. * test/MockBtMessage.h
  5766. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5767. Code cleanup
  5768. * src/RequestGroupMan.cc
  5769. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5770. Code cleanup
  5771. * src/DownloadCommand.cc
  5772. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5773. Fixed segmentation fault when GZipDecoder::decode() returns 0
  5774. byte.
  5775. * src/DownloadCommand.cc
  5776. * src/bitfield.h
  5777. * test/bitfieldTest.cc
  5778. Fixed the bug that causes infinite loop if broken web server
  5779. returns chunked response without last "0" chunk-size marker and
  5780. closes connection.
  5781. * src/DownloadCommand.cc
  5782. Instantiate properly configured HttpDownloadCommand for
  5783. non-resumable downlaods.
  5784. * src/HttpResponseCommand.cc
  5785. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5786. Rewritten array operation functions.
  5787. * src/BitfieldMan.cc
  5788. * src/array_fun.h
  5789. * test/array_funTest.cc
  5790. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5791. Removed unused variable 'query'
  5792. * src/Request.cc
  5793. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5794. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  5795. accidentally set to false in r1162.
  5796. * configure.ac
  5797. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5798. Code cleanup
  5799. * src/BNode.cc
  5800. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5801. Increase prefixLength for the bucket which doesn't own local node
  5802. ID when splitting bucket.
  5803. * src/DHTBucket.cc
  5804. * test/DHTBucketTest.cc
  5805. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5806. * Release 1.3.1
  5807. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5808. Bump up version number to 1.3.1
  5809. * configure.ac
  5810. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5811. Removed unused variable checkPoint. Also removed include directive
  5812. for TimeA2.h.
  5813. * src/SeedCheckCommand.h
  5814. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5815. Fixed the bug that upload limit exceeds the value specified in
  5816. --seed-ratio option depending on the timing of the execution of
  5817. SeedCheckCommand.
  5818. * src/SeedCheckCommand.cc
  5819. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5820. Fixed the bug that removed peer's session upload/download length
  5821. are counted twice in _cachedTransferStat before it is
  5822. re-calculated. This affected the calculation of shara ratio,
  5823. resulting aria2 wrongly determines that specified share ratio is
  5824. reached. Also fixed the typo in calculateStatFor function name.
  5825. * src/BtSetup.cc
  5826. * src/DefaultPeerStorage.cc
  5827. * src/ShareRatioSeedCriteria.h
  5828. * test/ShareRatioSeedCriteriaTest.cc
  5829. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5830. * Release 1.3.0
  5831. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5832. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  5833. Nynorsk translations. Thanks to all translators.
  5834. * po/es.po
  5835. * po/ja.po
  5836. * po/nn.po
  5837. * po/ru.po
  5838. * po/uk.po
  5839. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5840. Rewritten isInRange()
  5841. * src/DHTBucket.cc
  5842. * test/DHTBucketTest.cc
  5843. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5844. Fixed typo
  5845. * doc/aria2c.1.txt
  5846. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5847. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  5848. malloc/realloc is not used.
  5849. * src/configure.ac
  5850. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5851. BitfieldMan::getMissingIndexes family functions now takes unsigned
  5852. char* bitfield instead of stl container for efficiency.
  5853. PieceSelector::select now takes this
  5854. bitfield. RarestPieceSelector::select now also performs
  5855. efficiently for this change. bitfield namespace is introduced and
  5856. it has several helper functions to handle basic bitfield
  5857. operations such as test, count set bits, etc.
  5858. * src/BitfieldMan.cc
  5859. * src/BitfieldMan.h
  5860. * src/DefaultBtRequestFactory.cc
  5861. * src/DefaultPieceStorage.cc
  5862. * src/DefaultPieceStorage.h
  5863. * src/LongestSequencePieceSelector.cc
  5864. * src/LongestSequencePieceSelector.h
  5865. * src/Makefile.am
  5866. * src/Piece.cc
  5867. * src/Piece.h
  5868. * src/PieceSelector.h
  5869. * src/RarestPieceSelector.cc
  5870. * src/RarestPieceSelector.h
  5871. * src/Util.cc
  5872. * src/Util.h
  5873. * src/bitfield.h
  5874. * test/BitfieldManTest.cc
  5875. * test/LongestSequencePieceSelectorTest.cc
  5876. * test/Makefile.am
  5877. * test/RarestPieceSelectorTest.cc
  5878. * test/UtilTest.cc
  5879. * test/bitfieldTest.cc
  5880. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5881. Made accepted socket non-block.
  5882. * src/FtpNegotiationCommand.cc
  5883. * src/HttpListenCommand.cc
  5884. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5885. Guarded #ifdef HAVE_POSIX_FALLOCATE
  5886. * src/AbstractSingleDiskAdaptor.cc
  5887. * src/DefaultPieceStorage.cc
  5888. * src/DiskAdaptor.h
  5889. * src/DiskAdaptor.h
  5890. * src/MultiFileAllocationIterator.cc
  5891. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5892. Run
  5893. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  5894. in every 1 sec. The timeout of RequestSlot is 60s by default and
  5895. it doesn't need to be called every time when
  5896. DefaultBtInteractive::doInteractionProcessing() is called.
  5897. * src/DefaultBtInteractive.cc
  5898. * src/DefaultBtInteractive.h
  5899. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5900. Documented 'falloc' in man page.
  5901. * doc/aria2c.1.txt
  5902. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5903. Updated doc
  5904. * src/usage_text.h
  5905. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5906. Added 'falloc' parameter for --file-allocation option. 'falloc'
  5907. allocation mode uses posix_fallocate() system call to allocate
  5908. file on disk. If you are using newer file systems such as ext4
  5909. (with extents support), btrfs or xfs, 'falloc' is your best
  5910. choice. It allocates large(few GiB) files almost instantly. Don't
  5911. use 'falloc' with legacy file systems such as ext3 because it
  5912. takes almost same time as 'prealloc' and it blocks aria2 entirely
  5913. until allocation finishes. 'falloc' may not be available if your
  5914. system doesn't have posix_fallocate() system call.
  5915. * configure.ac
  5916. * src/AbstractDiskWriter.cc
  5917. * src/AbstractDiskWriter.h
  5918. * src/AbstractSingleDiskAdaptor.cc
  5919. * src/BinaryStream.h
  5920. * src/BtCheckIntegrityEntry.cc
  5921. * src/ByteArrayDiskWriter.h
  5922. * src/CheckIntegrityEntry.cc
  5923. * src/CheckIntegrityEntry.h
  5924. * src/DefaultPieceStorage.cc
  5925. * src/DiskAdaptor.cc
  5926. * src/DiskAdaptor.h
  5927. * src/DiskWriter.h
  5928. * src/FallocFileAllocationIterator.cc
  5929. * src/FallocFileAllocationIterator.h
  5930. * src/FileAllocationEntry.cc
  5931. * src/FileAllocationEntry.h
  5932. * src/Makefile.am
  5933. * src/MultiFileAllocationIterator.cc
  5934. * src/MultiFileAllocationIterator.h
  5935. * src/OptionHandlerFactory.cc
  5936. * src/RequestGroup.cc
  5937. * src/StreamCheckIntegrityEntry.cc
  5938. * src/prefs.cc
  5939. * src/prefs.h
  5940. * src/usage_text.h
  5941. * test/FallocFileAllocationIteratorTest.cc
  5942. * test/Makefile.am
  5943. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5944. Removed duplicate enableDirectIO() call.
  5945. * src/MultiFileAllocationIterator.cc
  5946. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5947. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  5948. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  5949. cost of std::rotate().
  5950. * src/RarestPieceSelector.cc
  5951. * src/RarestPieceSelector.h
  5952. * test/RarestPieceSelectorTest.cc
  5953. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5954. Updated usage doc for --bt-tracker-interval option.
  5955. * src/usage_text.h
  5956. * doc/aria2c.1.txt
  5957. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5958. Documented --bt-tracker-interval option in man page.
  5959. * doc/aria2c.1.txt
  5960. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5961. Added an option to specify the interval between tracker requests.
  5962. If non-zero value is specified, aria2 uses it and ignores the
  5963. interval value in the response of tracker. If zero is specified,
  5964. aria2 determines the inteval value based on the tarcker response
  5965. and download progress.
  5966. * src/DefaultBtAnnounce.cc
  5967. * src/DefaultBtAnnounce.h
  5968. * src/OptionHandlerFactory.cc
  5969. * src/RequestGroup.cc
  5970. * src/prefs.cc
  5971. * src/prefs.h
  5972. * src/usage_text.h
  5973. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5974. Added operator+=, operator-=, operator-
  5975. * src/TransferStat.cc
  5976. * src/TransferStat.h
  5977. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5978. Refactored RarestPieceSelector to reduce CPU load, especially for
  5979. addPieceStats.
  5980. * src/RarestPieceSelector.cc
  5981. * src/RarestPieceSelector.h
  5982. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5983. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  5984. getAllMissingBlockIndexes to reduce a call to
  5985. array_function_base::operator[].
  5986. * src/BitfieldMan.cc
  5987. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5988. Cached TransferStat/download speed to avoid to sum them up in each
  5989. call.
  5990. * src/DefaultPeerStorage.cc
  5991. * src/DefaultPeerStorage.h
  5992. * src/SegmentMan.cc
  5993. * src/SegmentMan.h
  5994. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5995. Typedefed cuid_t as int32_t in Command.h
  5996. * src/CUIDCounter.h
  5997. * src/Command.cc
  5998. * src/Command.h
  5999. * src/DownloadEngine.cc
  6000. * src/DownloadEngine.h
  6001. * src/PeerStat.h
  6002. * src/SegmentMan.cc
  6003. * src/SegmentMan.h
  6004. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6005. Reduced the number of calls to PeerStorage::calculateStat() and
  6006. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  6007. transfer rate.
  6008. * src/DefaultBtInteractive.cc
  6009. * src/DefaultBtMessageDispatcher.cc
  6010. * src/DefaultPeerStorage.cc
  6011. * src/DefaultPeerStorage.h
  6012. * src/DownloadCommand.cc
  6013. * src/DownloadEngine.cc
  6014. * src/PeerStorage.h
  6015. * src/SegmentMan.cc
  6016. * src/SegmentMan.h
  6017. * test/MockPeerStorage.h
  6018. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6019. Prepended _dir+"/" after joining path elements in torrent file.
  6020. * src/DefaultBtContext.cc
  6021. * test/DefaultBtContextTest.cc
  6022. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6023. Added missing IndexBtMessageValidator.h
  6024. * src/Makefile.am
  6025. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6026. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  6027. Chinese translations. Thank you for contributing our project.
  6028. * po/id.po
  6029. * po/it.po
  6030. * po/ru.po
  6031. * po/uk.po
  6032. * po/zh_CN.po
  6033. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6034. Updated README
  6035. * README
  6036. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6037. Bump up version number to 1.3.0
  6038. * configure.ac
  6039. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6040. Updated doc
  6041. * src/DefaultBtContext.h
  6042. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6043. Slice/joinPath for name of single torrent.
  6044. * src/DefaultBtContext.cc
  6045. * test/DefaultBtContextTest.cc
  6046. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6047. Updated man page: Documented --dry-run and --index-out
  6048. options. Changed the default value of --uri-selector and
  6049. --http-auth-challenge options. Removed --direct-file-mapping
  6050. option. Added example for --index-out
  6051. * doc/aria2c.1.txt
  6052. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6053. Updated TEXT_DRY_RUN
  6054. * src/usage_text.h
  6055. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6056. Changed the default value of --uri-selector option from 'inorder'
  6057. to 'feedback'
  6058. * src/OptionHandlerFactory.cc
  6059. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6060. Included current URI in exception message.
  6061. * src/AbstractCommand.cc
  6062. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6063. Renamed ServerStatURISelector as FeedbackURISelector.
  6064. * src/FeedbackURISelector.cc
  6065. * src/FeedbackURISelector.h
  6066. * src/Makefile.am
  6067. * src/RequestGroupMan.cc
  6068. * src/ServerStatURISelector.cc
  6069. * src/ServerStatURISelector.h
  6070. * test/FeedbackURISelectorTest.cc
  6071. * test/Makefile.am
  6072. * test/ServerStatURISelectorTest.cc
  6073. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6074. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  6075. all URIs are tested and their timeout is not reached.
  6076. * src/AdaptiveURISelector.cc
  6077. * src/AdaptiveURISelector.h
  6078. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6079. Changed the default value of --http-auth-challenge option to false.
  6080. * src/OptionHandlerFactory.cc
  6081. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6082. Reuse URIs when all unused URIs run out.
  6083. * src/OptionHandlerFactory.cc
  6084. * src/RequestGroup.cc
  6085. * src/prefs.cc
  6086. * src/prefs.h
  6087. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6088. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  6089. and BtRejectMessage are derived from RangeBtMessage class.
  6090. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  6091. derived from IndexBtMessage class. BtChokeMessage,
  6092. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  6093. BtNotInterestedMessage and BtUnchokeMessage are derived from
  6094. ZeroBtMessage class.
  6095. * src/AbstractBtMessage.cc
  6096. * src/AbstractBtMessage.h
  6097. * src/BtAllowedFastMessage.cc
  6098. * src/BtAllowedFastMessage.h
  6099. * src/BtAllowedFastMessageValidator.h: Removed
  6100. * src/BtBitfieldMessage.cc
  6101. * src/BtBitfieldMessage.h
  6102. * src/BtCancelMessage.cc
  6103. * src/BtCancelMessage.h
  6104. * src/BtCancelMessageValidator.h: Removed
  6105. * src/BtChokeMessage.cc
  6106. * src/BtChokeMessage.h
  6107. * src/BtExtendedMessage.cc
  6108. * src/BtExtendedMessage.h
  6109. * src/BtHandshakeMessage.cc
  6110. * src/BtHandshakeMessage.h
  6111. * src/BtHaveAllMessage.cc
  6112. * src/BtHaveAllMessage.h
  6113. * src/BtHaveMessage.cc
  6114. * src/BtHaveMessage.h
  6115. * src/BtHaveMessageValidator.h: Removed
  6116. * src/BtHaveNoneMessage.cc
  6117. * src/BtHaveNoneMessage.h
  6118. * src/BtInterestedMessage.cc
  6119. * src/BtInterestedMessage.h
  6120. * src/BtKeepAliveMessage.cc
  6121. * src/BtKeepAliveMessage.h
  6122. * src/BtNotInterestedMessage.cc
  6123. * src/BtNotInterestedMessage.h
  6124. * src/BtPieceMessage.cc
  6125. * src/BtPieceMessage.h
  6126. * src/BtPortMessage.cc
  6127. * src/BtPortMessage.h
  6128. * src/BtRejectMessage.cc
  6129. * src/BtRejectMessage.h
  6130. * src/BtRejectMessageValidator.h: Removed
  6131. * src/BtRequestMessage.cc
  6132. * src/BtRequestMessage.h
  6133. * src/BtRequestMessageValidator.h: Removed
  6134. * src/BtSuggestPieceMessage.cc
  6135. * src/BtSuggestPieceMessage.h
  6136. * src/BtSuggestPieceMessageValidator.h: Removed
  6137. * src/BtUnchokeMessage.cc
  6138. * src/BtUnchokeMessage.h
  6139. * src/DefaultBtMessageFactory.cc
  6140. * src/IndexBtMessage.cc
  6141. * src/IndexBtMessage.h
  6142. * src/IndexBtMessageValidator.h
  6143. * src/Makefile.am
  6144. * src/PeerMessageUtil.cc
  6145. * src/PeerMessageUtil.h
  6146. * src/RangeBtMessage.cc
  6147. * src/RangeBtMessage.h
  6148. * src/RangeBtMessageValidator.h
  6149. * src/SimpleBtMessage.cc
  6150. * src/SimpleBtMessage.h
  6151. * src/ZeroBtMessage.cc
  6152. * src/ZeroBtMessage.h
  6153. * test/BtRequestMessageTest.cc
  6154. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6155. Reverted usage_text.h to r1093 to avoid to lose translated
  6156. messages.
  6157. * src/usage_text.h
  6158. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6159. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  6160. declared as non-const previously is now const and defined in class
  6161. definition.
  6162. * src/AbstractBtMessage.cc
  6163. * src/AbstractBtMessage.h
  6164. * src/BtAllowedFastMessage.cc
  6165. * src/BtAllowedFastMessage.h
  6166. * src/BtBitfieldMessage.h
  6167. * src/BtCancelMessage.cc
  6168. * src/BtCancelMessage.h
  6169. * src/BtChokeMessage.cc
  6170. * src/BtChokeMessage.h
  6171. * src/BtExtendedMessage.cc
  6172. * src/BtExtendedMessage.h
  6173. * src/BtHandshakeMessage.cc
  6174. * src/BtHandshakeMessage.h
  6175. * src/BtHaveAllMessage.cc
  6176. * src/BtHaveAllMessage.h
  6177. * src/BtHaveMessage.cc
  6178. * src/BtHaveMessage.h
  6179. * src/BtHaveNoneMessage.cc
  6180. * src/BtHaveNoneMessage.h
  6181. * src/BtInterestedMessage.cc
  6182. * src/BtInterestedMessage.h
  6183. * src/BtKeepAliveMessage.cc
  6184. * src/BtKeepAliveMessage.h
  6185. * src/BtMessage.h
  6186. * src/BtNotInterestedMessage.cc
  6187. * src/BtNotInterestedMessage.h
  6188. * src/BtPieceMessage.h
  6189. * src/BtPortMessage.cc
  6190. * src/BtPortMessage.h
  6191. * src/BtRejectMessage.cc
  6192. * src/BtRejectMessage.h
  6193. * src/BtRequestMessage.cc
  6194. * src/BtRequestMessage.h
  6195. * src/BtSuggestPieceMessage.cc
  6196. * src/BtSuggestPieceMessage.h
  6197. * src/BtUnchokeMessage.cc
  6198. * src/BtUnchokeMessage.h
  6199. * src/SimpleBtMessage.cc
  6200. * src/SimpleBtMessage.h
  6201. * test/MockBtMessage.h
  6202. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6203. Use FileEntry::exists()
  6204. * src/MultiDiskAdaptor.cc
  6205. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6206. Added exists()
  6207. * src/FileEntry.cc
  6208. * src/FileEntry.h
  6209. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6210. Added missing prefix dir.
  6211. * src/download_helper.cc
  6212. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6213. Removed --direct-file-mapping option and CopyDiskAdaptor.
  6214. * src/CopyDiskAdaptor.cc: Removed
  6215. * src/CopyDiskAdaptor.h: Removed
  6216. * src/DefaultPieceStorage.cc
  6217. * src/Makefile.am
  6218. * src/OptionHandlerFactory.cc
  6219. * src/prefs.cc
  6220. * src/prefs.h
  6221. * src/usage_text.h
  6222. * test/CopyDiskAdaptorTest.cc: Removed
  6223. * test/Makefile.am
  6224. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6225. Rewritten isSameFileBeingDownloaded()
  6226. * src/RequestGroupMan.cc
  6227. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6228. Removed getName() from DownloadContext. getName() is declared in
  6229. BtContext.
  6230. * src/BtContext.h
  6231. * src/DownloadContext.h
  6232. * src/SingleFileDownloadContext.cc
  6233. * src/SingleFileDownloadContext.h
  6234. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  6235. in AbstractSingleDiskAdaptor.
  6236. * src/AbstractSingleDiskAdaptor.h
  6237. * src/DiskAdaptor.h
  6238. * src/MultiDiskAdaptor.h
  6239. * src/RequestGroup.cc
  6240. Removed setTopDir() and getTopDir() and getTopDirPath() from
  6241. MultiDiskAdaptor.
  6242. * src/DefaultPieceStorage.cc
  6243. * src/MultiDiskAdaptor.cc
  6244. * src/MultiDiskAdaptor.h
  6245. * test/MultiDiskAdaptorTest.cc
  6246. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6247. FileEntry::getPath() contains store(top level) directory to
  6248. simplify path handling operation. In the previous implementation,
  6249. store directory is concatenated to FileEntry::getPath() in
  6250. DownloadContext.
  6251. * src/BtDependency.cc
  6252. * src/BtPostDownloadHandler.cc
  6253. * src/CopyDiskAdaptor.cc
  6254. * src/DefaultBtContext.cc
  6255. * src/DirectDiskAdaptor.cc
  6256. * src/FileEntry.cc
  6257. * src/FileEntry.h
  6258. * src/FtpNegotiationCommand.cc
  6259. * src/HttpResponse.cc
  6260. * src/HttpResponseCommand.cc
  6261. * src/Metalink2RequestGroup.cc
  6262. * src/MultiDiskAdaptor.cc
  6263. * src/MultiDiskAdaptor.h
  6264. * src/MultiFileAllocationIterator.cc
  6265. * src/RequestGroup.cc
  6266. * src/SingleFileDownloadContext.cc
  6267. * src/SingleFileDownloadContext.h
  6268. * src/download_helper.cc
  6269. * test/BtDependencyTest.cc
  6270. * test/CopyDiskAdaptorTest.cc
  6271. * test/DefaultBtContextTest.cc
  6272. * test/DefaultBtProgressInfoFileTest.cc
  6273. * test/DirectDiskAdaptorTest.cc
  6274. * test/DownloadHelperTest.cc
  6275. * test/FileEntryTest.cc
  6276. * test/MultiDiskAdaptorTest.cc
  6277. * test/MultiFileAllocationIteratorTest.cc
  6278. * test/RequestGroupTest.cc
  6279. * test/SingleFileDownloadContextTest.cc
  6280. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6281. Fixed compiler warning
  6282. * src/download_helper.cc
  6283. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6284. Throw exception if same infohash torrent is now downloading.
  6285. * src/RequestGroup.cc
  6286. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6287. Added --dry-run option. In this mode, aria2 just checks whether
  6288. the remote file is available and doesn't download data. This
  6289. option has effect on HTTP/FTP downloads and BitTorrent downloads
  6290. are canceled in this mode.
  6291. * src/FtpNegotiationCommand.cc
  6292. * src/HttpResponseCommand.cc
  6293. * src/HttpResponseCommand.h
  6294. * src/OptionHandlerFactory.cc
  6295. * src/RequestGroup.cc
  6296. * src/RequestGroupMan.cc
  6297. * src/prefs.cc
  6298. * src/prefs.h
  6299. * src/usage_text.h
  6300. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6301. Fixed compiler waring
  6302. * test/UriListParserTest.cc
  6303. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6304. Parse options in -i list using OptionParser.
  6305. * src/UriListParser.cc
  6306. * src/UriListParser.h
  6307. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6308. Don't reset URI in retry to avoid additional round trips because
  6309. of redirects.
  6310. * src/AbstractCommand.cc
  6311. * src/OptionHandlerFactory.cc
  6312. * src/prefs.cc
  6313. * src/prefs.h
  6314. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6315. Declared hide() in OptionHandler.
  6316. * src/NameMatchOptionHandler.h
  6317. * src/OptionHandler.h
  6318. * src/OptionHandlerImpl.h
  6319. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6320. Updated doc
  6321. * src/Peer.h
  6322. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6323. Added log message in setStatusInternal()
  6324. * src/ServerStat.cc
  6325. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6326. Call ServerStat::setError() in AbstractCommand::onAbort() to
  6327. effectively exclude failed server.
  6328. * src/AbstractCommand.cc
  6329. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6330. Added --index-out option to specify each file path for torrent.
  6331. Here index shown in --show-files option is used to specify which
  6332. file path should be altered. For example, to change the file path
  6333. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  6334. option multiple times: --index-out=1=aria2.tar.bz2
  6335. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  6336. available. This option can be specified in -i list.
  6337. * src/DefaultBtContext.cc
  6338. * src/DefaultBtContext.h
  6339. * src/MultiDiskAdaptor.cc
  6340. * src/MultiDiskAdaptor.h
  6341. * src/MultiFileAllocationIterator.cc
  6342. * src/OptionHandlerFactory.cc
  6343. * src/OptionHandlerImpl.h
  6344. * src/Util.cc
  6345. * src/Util.h
  6346. * src/download_helper.cc
  6347. * src/prefs.cc
  6348. * src/prefs.h
  6349. * src/usage_text.h
  6350. * test/DefaultBtContextTest.cc
  6351. * test/MultiDiskAdaptorTest.cc
  6352. * test/MultiFileAllocationIteratorTest.cc
  6353. * test/UtilTest.cc
  6354. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6355. Use Util::pathJoin()
  6356. * src/MetalinkParserController.cc
  6357. * test/test.xml
  6358. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6359. Use Util::pathJoin()
  6360. * src/DefaultBtContext.cc
  6361. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6362. Added Util::pathJoin()
  6363. * src/Util.h
  6364. * test/UtilTest.cc
  6365. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6366. Applied basename function to remove directory element in
  6367. content-disposition value.
  6368. Return empty string if content-disposition value is ".." or ".".
  6369. * src/Util.cc
  6370. * test/UtilTest.cc
  6371. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6372. Added --max-overall-download-limit in man page.
  6373. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  6374. * doc/aria2c.1.txt
  6375. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6376. Added --max-overall-download-limit option. Now --max-upload-limit
  6377. option is not ignored when --max-overall-upload-limit option has
  6378. non-zero value. aria2 checks download(upload) speed in the order:
  6379. first checks overall speed limit and if it is not exceeded, then
  6380. checks speed limit per download. Thus you can specify both
  6381. value. For example, set --max-overall-download-limit=1M and
  6382. --max-download-limit=500K to prevent from one download from eating
  6383. all overall speed limit.
  6384. * src/DefaultBtInteractive.cc
  6385. * src/DefaultBtInteractive.h
  6386. * src/DefaultBtMessageDispatcher.cc
  6387. * src/DefaultBtMessageDispatcher.h
  6388. * src/DownloadCommand.cc
  6389. * src/DownloadCommand.h
  6390. * src/FtpNegotiationCommand.cc
  6391. * src/HttpResponseCommand.cc
  6392. * src/OptionHandlerFactory.cc
  6393. * src/PeerInteractionCommand.cc
  6394. * src/RequestGroup.cc
  6395. * src/RequestGroup.h
  6396. * src/RequestGroupMan.cc
  6397. * src/RequestGroupMan.h
  6398. * src/prefs.cc
  6399. * src/prefs.h
  6400. * src/usage_text.h
  6401. * test/DefaultBtMessageDispatcherTest.cc
  6402. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6403. Documented select-file option in Input File section.
  6404. Documented --http-auth-challenge option.
  6405. * doc/aria2c.1.txt
  6406. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6407. Now select-file can be specified in the uri list(-i list).
  6408. * src/BtContext.cc
  6409. * src/BtContext.h
  6410. * src/RequestGroup.cc
  6411. * src/Sequence.h
  6412. * src/download_helper.cc
  6413. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6414. Made the upper value of --max-concurrent-downloads options unlimited.
  6415. * src/OptionHandlerFactory.cc
  6416. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6417. Fixed the bug that disk writer is not created even if it shares
  6418. same piece with the preceding file if the length of previous file
  6419. is 0.
  6420. * src/MultiDiskAdaptor.cc
  6421. * test/MultiDiskAdaptorTest.cc
  6422. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6423. In BitTorrent, Open files in read-only mode for hash check. After
  6424. that, re-open file in read/write mode only when the download is
  6425. not finished.
  6426. * src/AbstractDiskWriter.cc
  6427. * src/AbstractDiskWriter.h
  6428. * src/AbstractSingleDiskAdaptor.cc
  6429. * src/AbstractSingleDiskAdaptor.h
  6430. * src/BtCheckIntegrityEntry.cc
  6431. * src/DiskAdaptor.h
  6432. * src/DiskWriter.h
  6433. * src/MultiDiskAdaptor.cc
  6434. * src/MultiDiskAdaptor.h
  6435. * src/RequestGroup.cc
  6436. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6437. Added --http-auth-challenge option. If it is set to true(by
  6438. default), aria2 sends HTTP authorization header only when it is
  6439. requested by the server. If false is set, then authorization
  6440. header is always sent to the server. This is useful for servers
  6441. that don't respond 401 code when authentication is required.
  6442. There is an exception: if username and password are embedded in
  6443. URI, authorization header is always sent to the server regardless
  6444. of this option.
  6445. * src/AuthConfigFactory.cc
  6446. * src/HttpSkipResponseCommand.cc
  6447. * src/OptionHandlerFactory.cc
  6448. * src/prefs.cc
  6449. * src/prefs.h
  6450. * src/usage_text.h
  6451. * test/AuthConfigFactoryTest.cc
  6452. * test/HttpRequestTest.cc
  6453. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6454. * Release 1.2.0
  6455. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6456. Updated Spanish, Ukrainian, Russian and Japanese translations.
  6457. Thanks to all translators.
  6458. * po/es.po
  6459. * po/ja.po
  6460. * po/ru.po
  6461. * po/uk.po
  6462. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6463. Call deleteSocketForReadCheck() before socket is closed.
  6464. * src/HttpListenCommand.cc
  6465. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6466. Defined virtual destructor for BObject.
  6467. * src/bencode.h
  6468. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6469. Rewritten BDE to make it efficient.
  6470. * src/bencode.cc
  6471. * src/bencode.h
  6472. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6473. Removed function throw list.
  6474. * src/bencode.cc
  6475. * src/bencode.h
  6476. * test/BencodeTest.cc
  6477. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6478. Enclosed all URLs in double quotes in command-line examples.
  6479. * doc/aria2c.1.txt
  6480. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6481. Updated reference/see also section.
  6482. * README
  6483. * doc/aria2c.1.txt
  6484. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6485. Reorganized man page based on man man-pages.
  6486. * doc/aria2c.1.txt
  6487. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6488. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  6489. because same documents are available in man page. Added
  6490. References section.
  6491. * README
  6492. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6493. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  6494. PERFORMANCE PROFILE section.
  6495. * doc/aria2c.1.txt
  6496. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6497. Rewritten the section for configuration file.
  6498. * README
  6499. * doc/aria2c.1.txt
  6500. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6501. Fixed the segmentation fault during execution of choking algorithm
  6502. in leecher state because of broken compare operator
  6503. implementation.
  6504. * src/BtLeecherStateChoke.cc
  6505. * src/BtLeecherStateChoke.h
  6506. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6507. Open file in binary mode.
  6508. * src/CookieStorage.cc
  6509. * src/DHTSetup.cc
  6510. * src/DHTUtil.cc
  6511. * src/Netrc.cc
  6512. * src/NsCookieParser.cc
  6513. * src/ProtocolDetector.cc
  6514. * src/RequestGroupMan.cc
  6515. * src/Signature.cc
  6516. * src/bencode.cc
  6517. * src/download_helper.cc
  6518. * src/option_processing.cc
  6519. * test/CookieParserTest.cc
  6520. * test/DefaultBtProgressInfoFileTest.cc
  6521. * test/FileTest.cc
  6522. * test/GZipDecoderTest.cc
  6523. * test/RequestGroupManTest.cc
  6524. * test/SignatureTest.cc
  6525. * test/SingleFileAllocationIteratorTest.cc
  6526. * test/UriListParserTest.cc
  6527. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6528. Removed operator[] because it is ambiguous with built-in []
  6529. operator.
  6530. * src/array_fun.h
  6531. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6532. Fixed compile error
  6533. * src/OptionParser.cc
  6534. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6535. Added missing call to arrayWrapperConst
  6536. * test/array_funTest.cc
  6537. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6538. Use array_wrapper instead of array_ptr.
  6539. * src/DHTRoutingTableDeserializer.cc
  6540. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6541. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  6542. * src/array_fun.h
  6543. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6544. Added array_wrapper template.
  6545. * src/array_fun.h
  6546. * test/array_funTest.cc
  6547. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6548. Use operator T* of array_ptr.
  6549. * src/OptionParser.cc
  6550. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6551. Use localhost instead of 127.0.0.1
  6552. * test/FtpConnectionTest.cc
  6553. * test/MSEHandshakeTest.cc
  6554. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6555. Added operator T*
  6556. * src/array_fun.h
  6557. * test/array_funTest.cc
  6558. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6559. Use dynamically allocated char array to detect memory access
  6560. violation.
  6561. * src/DHTRoutingTableDeserializer.cc
  6562. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6563. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  6564. defined.
  6565. * src/PeerMessageUtil.cc
  6566. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6567. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  6568. * configure.ac
  6569. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6570. Added a check to see struct sockaddr_in has sin_len member.
  6571. * configure.ac
  6572. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6573. Fixed buffer overrun.
  6574. * src/DHTRoutingTableDeserializer.cc
  6575. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6576. Added LL for long long int constant.
  6577. * test/FtpConnectionTest.cc
  6578. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6579. Casted to unsigned int to suppress compiler warning on netbsd.
  6580. * src/BtRuntime.h
  6581. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6582. Assign the value of tv.tv_sec to time_t timesec instead of giving
  6583. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  6584. type time_t.
  6585. * src/SimpleLogger.cc
  6586. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6587. Added test for FtpConnection::receiveSizeResponse().
  6588. * test/FtpConnectionTest.cc
  6589. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6590. Fix epoll error on the old kernel 2.6.8 or ealier.
  6591. * src/EpollEventPoll.cc
  6592. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6593. Use Util::parseLLInt instead of sscanf for portability. The
  6594. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  6595. * src/FtpConnection.cc
  6596. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6597. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  6598. block. It should not filter anything.
  6599. * src/BitfieldMan.cc
  6600. * src/ConsoleStatCalc.cc
  6601. * test/BitfieldManTest.cc
  6602. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6603. Fixed the bug that the boolean options that don't take arguments
  6604. don't work.
  6605. * src/OptionHandlerImpl.h
  6606. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6607. Fixed broken selected file BitTorrent download.
  6608. * src/MultiDiskAdaptor.cc
  6609. * test/MultiDiskAdaptorTest.cc
  6610. * test/MultiFileAllocationIteratorTest.cc
  6611. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6612. Fixed #define guard for EpollEventPoll
  6613. * src/EpollEventPoll.h
  6614. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6615. Wait 2 seconds. 1 second is sometimes not enough.
  6616. * test/TimeSeedCriteriaTest.cc
  6617. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6618. Use localhost instead of 127.0.0.1.
  6619. * test/DHTConnectionImplTest.cc
  6620. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6621. Suppressed compiler warning.
  6622. * src/AdaptiveURISelector.cc
  6623. * src/DefaultPieceStorage.cc
  6624. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6625. Defined virtual destructor.
  6626. * src/MetalinkParserState.h
  6627. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6628. Give NULL for second argument of getaddrinfo instead of "0".
  6629. * src/NameResolver.cc
  6630. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6631. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  6632. included strptime doesn't parse data for this format.
  6633. * src/FtpConnection.cc
  6634. * test/FtpConnectionTest.cc
  6635. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6636. Removed tests giving -1 for unsigned argument.
  6637. * test/SingleFileDownloadContextTest.cc
  6638. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6639. Don't use sha256 in tests because it might not be supported by the
  6640. SSL library.
  6641. * test/MetalinkProcessorTest.cc
  6642. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6643. Removed tests giving -1 for unsigned argument.
  6644. * test/AlphaNumberDecoratorTest
  6645. * test/BitfieldManTest.cc
  6646. * test/DefaultBtContextTest.cc
  6647. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6648. Fixed compile error without libcares when epoll is available.
  6649. * src/EpollEventPoll.cc
  6650. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6651. Included fstream instead of iostream.
  6652. * test/SignatureTest.cc
  6653. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6654. Removed #include <algorithm>
  6655. * test/RequestGroupTest.cc
  6656. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6657. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  6658. using RequestGroup::extractURIResult().
  6659. * src/AdaptiveURISelector.cc
  6660. * src/RequestGroup.cc
  6661. * src/RequestGroup.h
  6662. * test/RequestGroupTest.cc
  6663. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6664. Added tests for array_ptr.
  6665. * test/array_funTest.cc
  6666. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6667. Don't send ip parameter to a tracker if ip parameter is empty
  6668. string.
  6669. * src/DefaultBtAnnounce.cc
  6670. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6671. Adjusted line feed.
  6672. * src/version_usage.cc
  6673. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6674. Print tags, possible values when OptionHandlerException is caught.
  6675. * src/option_processing.cc
  6676. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6677. Changed the message for FatalException.
  6678. * src/OptionParser.cc
  6679. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6680. Documented --bt-external-ip option in man page. Updated man pages
  6681. for --proxy-method option.
  6682. * doc/aria2c.1.txt
  6683. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6684. Use GET method for FTP via HTTP proxy.
  6685. * src/FtpInitiateConnectionCommand.cc
  6686. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6687. Changed the default value of --proxy-method option from 'tunnel'
  6688. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  6689. option.
  6690. * src/AbstractCommand.cc
  6691. * src/AbstractCommand.h
  6692. * src/FtpInitiateConnectionCommand.cc
  6693. * src/HttpDownloadCommand.cc
  6694. * src/HttpInitiateConnectionCommand.cc
  6695. * src/HttpInitiateConnectionCommand.h
  6696. * src/OptionHandlerFactory.cc
  6697. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6698. Initialized _logger
  6699. * src/SelectEventPoll.cc
  6700. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6701. Defined a copy constructor for the same type.
  6702. * src/SharedHandle.h
  6703. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6704. Added OptionParser::parseArg() which internally uses getopt_long
  6705. to parse command-line options. All command-line options are now
  6706. configured by OptionHandler. No manual editing of struct option*
  6707. is required any more.
  6708. * src/NameMatchOptionHandler.h
  6709. * src/OptionHandler.h
  6710. * src/OptionHandlerFactory.cc
  6711. * src/OptionHandlerImpl.h
  6712. * src/OptionParser.cc
  6713. * src/OptionParser.h
  6714. * src/array_fun.h
  6715. * src/main.cc
  6716. * src/option_processing.cc
  6717. * test/OptionHandlerTest.cc
  6718. * test/OptionParserTest.cc
  6719. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6720. Fixed configure error with --disable-epoll
  6721. * configure.ac
  6722. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6723. Fixed compile error when HAVE_EPOLL is not defined.
  6724. Fixed linker error on bigendian systems.
  6725. * src/SocketCore.cc
  6726. * src/SocketCore.h
  6727. * test/DefaultBtProgressInfoFileTest.cc
  6728. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6729. Added --bt-external-ip option. You can specify the external IP
  6730. address to report to a BitTorrent tracker. Although this function
  6731. is named 'external', it can accept any kind of IP addresses.
  6732. * src/DefaultBtAnnounce.cc
  6733. * src/OptionHandlerFactory.cc
  6734. * src/option_processing.cc
  6735. * src/prefs.cc
  6736. * src/prefs.h
  6737. * src/usage_text.h
  6738. * test/DefaultBtAnnounceTest.cc
  6739. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6740. Extracted the algorithm to find the longest incremental sequence
  6741. as max_sequence template.
  6742. * src/LongestSequencePieceSelector.cc
  6743. * src/a2algo.h
  6744. * test/Makefile.am
  6745. * test/a2algoTest.cc
  6746. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6747. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  6748. * src/usage_text.h
  6749. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6750. Updated doc for --uri-selector, --http-server-listen-port and
  6751. --enable-http-server option. Documented --event-poll option.
  6752. * doc/aria2c.1.txt
  6753. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6754. Updated doc for --enable-http-server.
  6755. * src/usage_text.h
  6756. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6757. Documented --http-server-listen-port and --enable-http-server in
  6758. man page.
  6759. * doc/aria2c.1.txt
  6760. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6761. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  6762. translations. Thanks to all translators.
  6763. * po/es.po
  6764. * po/id.po
  6765. * po/it.po
  6766. * po/ru.po
  6767. * po/uk.po
  6768. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6769. Bump up version number to 1.2.0
  6770. * configure.ac
  6771. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6772. BtContext::getAnnounceTiers() now returns const reference.
  6773. * src/BtContext.h
  6774. * src/DefaultBtContext.cc
  6775. * src/DefaultBtContext.h
  6776. * test/MockBtContext.h
  6777. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6778. Change the number of retries for tracker request based on the
  6779. number of available tracker in a torrent file.
  6780. * src/TrackerWatcherCommand.cc
  6781. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6782. Added _maxTries property to RequestGroup and assign the option
  6783. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  6784. RequestGroup::getMaxTries() instead of
  6785. Option::getAsInt(PREF_MAX_TRIES).
  6786. * src/AbstractCommand.cc
  6787. * src/RequestGroup.cc
  6788. * src/RequestGroup.h
  6789. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6790. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  6791. Mandriva. I modified the patch: make RequestGroup have the
  6792. timeout value and AdaptiveURISelector directly modifies that
  6793. value.
  6794. * src/AbstractCommand.cc
  6795. * src/AdaptiveURISelector.cc
  6796. * src/AdaptiveURISelector.h
  6797. * src/FtpNegotiationCommand.cc
  6798. * src/RequestGroup.cc
  6799. * src/RequestGroup.h
  6800. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6801. Fixed compiler warning
  6802. * test/IteratableChecksumValidatorTest.cc
  6803. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6804. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  6805. integrated downloads. This PieceSelector subclass finds the
  6806. longest continuous sequence in the available missing pieces and
  6807. selects the last index of such sequence. This makes HTTP/FTP
  6808. connections less interrupted by the pieces obtained by BitTorrent
  6809. peers.
  6810. * src/DefaultPieceStorage.cc
  6811. * src/DefaultPieceStorage.h
  6812. * src/LongestSequencePieceSelector.cc
  6813. * src/LongestSequencePieceSelector.h
  6814. * src/Makefile.am
  6815. * src/PieceSelector.h
  6816. * src/RarestPieceSelector.h
  6817. * src/RequestGroup.cc
  6818. * test/BtDependencyTest.cc
  6819. * test/DefaultPieceStorageTest.cc
  6820. * test/IteratableChecksumValidatorTest.cc
  6821. * test/LongestSequencePieceSelectorTest.cc
  6822. * test/Makefile.am
  6823. * test/SegmentManTest.cc
  6824. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6825. Fixed the bug that the average speed is wrong in
  6826. http/ftp/BitTorrent integrated download. Only the download bytes
  6827. in BitTorrent were considered.
  6828. * src/RequestGroup.cc
  6829. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6830. Choose port for BitTorrent/DHT randomly from the specified range.
  6831. * src/DHTConnectionImpl.cc
  6832. * src/PeerListenCommand.cc
  6833. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6834. Send HTTP Authorization header only if it is requested by the
  6835. server(response 401). There are some exceptions. The authorization
  6836. header for proxy is always sent if it is available without request
  6837. by the server. If username/password is specified in the URI, it
  6838. is immediately sent to the server without request by the server.
  6839. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  6840. SharedHandle<AuthConfig>().
  6841. NetrcAuthResolver::resolveAuthConfig() returns
  6842. SharedHandle<AuthConfig>() if no AuthConfig is available.
  6843. * src/AbstractAuthResolver.cc
  6844. * src/AbstractProxyRequestCommand.cc
  6845. * src/AuthConfigFactory.cc
  6846. * src/AuthConfigFactory.h
  6847. * src/HttpConnection.cc
  6848. * src/HttpRequest.cc
  6849. * src/HttpRequest.h
  6850. * src/HttpResponse.cc
  6851. * src/HttpResponseCommand.cc
  6852. * src/HttpSkipResponseCommand.cc
  6853. * test/AuthConfigFactoryTest.cc
  6854. * test/HttpRequestTest.cc
  6855. * test/HttpResponseTest.cc
  6856. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6857. Remove leading "--" from help keyword and a substring after "="
  6858. from help keyword, so that one can query options by '-h--max-' or
  6859. '-hmax-peers=10'.
  6860. * src/option_processing.cc
  6861. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6862. Rewritten PStringVisitor and its implementation.
  6863. * src/PStringBuildVisitor.cc
  6864. * src/PStringBuildVisitor.h
  6865. * src/PStringDatum.h
  6866. * src/PStringNumLoop.h
  6867. * src/PStringSegment.cc
  6868. * src/PStringSegment.h
  6869. * src/PStringSelect.h
  6870. * src/PStringVisitor.h
  6871. * src/download_helper.cc
  6872. * test/PStringBuildVisitorTest.cc
  6873. * test/ParameterizedStringParserTest.cc
  6874. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6875. Persist connection between the built-in HTTP server and a client
  6876. if a client supports keep-alive. Fixed the bug that aria2 exits
  6877. when the HTTP server receives EOF from a client.
  6878. * src/HttpServer.cc
  6879. * src/HttpServer.h
  6880. * src/HttpServerCommand.cc
  6881. * src/HttpServerCommand.h
  6882. * src/HttpServerResponseCommand.cc
  6883. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6884. Added experimental built-in HTTP server. Currently, when a client
  6885. accesses to the server, it responds with the current download
  6886. progress. By default, it is disabled. To enable the server, give
  6887. --enable-http-server option. To change the default port number
  6888. for the server to listen to, use --http-server-listen-port option.
  6889. The response HTML is very simple and refreshes it self each 1
  6890. second. Because of this refresh, you see flicker in normal web
  6891. browser such as Firefox. I recommend to use console-based browser
  6892. such as elinks, w3m. To connect to the server, run 'elinks
  6893. http://localhost:6800/' while running aria2. Please replace port
  6894. number '6800'(which is default) with your preference.
  6895. * src/DownloadEngineFactory.cc
  6896. * src/HttpHeader.cc
  6897. * src/HttpHeader.h
  6898. * src/HttpHeaderProcessor.cc
  6899. * src/HttpHeaderProcessor.h
  6900. * src/HttpListenCommand.cc
  6901. * src/HttpListenCommand.h
  6902. * src/HttpServer.cc
  6903. * src/HttpServer.h
  6904. * src/HttpServerCommand.cc
  6905. * src/HttpServerCommand.h
  6906. * src/HttpServerResponseCommand.cc
  6907. * src/HttpServerResponseCommand.h
  6908. * src/Makefile.am
  6909. * src/OptionHandlerFactory.cc
  6910. * src/Util.cc
  6911. * src/Util.h
  6912. * src/help_tags.h
  6913. * src/option_processing.cc
  6914. * src/prefs.cc
  6915. * src/prefs.h
  6916. * src/usage_text.h
  6917. * test/HttpHeaderProcessorTest.cc
  6918. * test/UtilTest.cc
  6919. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6920. Removed.
  6921. * src/CheckIntegrityMan.cc
  6922. * src/FileAllocationMan.cc
  6923. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6924. Made (piece) hash check sequential for each RequestGroup because
  6925. simultaneous hash check is slower than sequential execution.
  6926. * src/CheckIntegrityCommand.cc
  6927. * src/CheckIntegrityDispatcherCommand.cc
  6928. * src/CheckIntegrityDispatcherCommand.h
  6929. * src/CheckIntegrityMan.h
  6930. * src/ConsoleStatCalc.cc
  6931. * src/DownloadCommand.cc
  6932. * src/DownloadEngine.cc
  6933. * src/DownloadEngine.h
  6934. * src/DownloadEngineFactory.cc
  6935. * src/Makefile.am
  6936. * src/Makefile.in
  6937. * src/RequestGroup.cc
  6938. * src/StatCalc.h
  6939. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6940. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  6941. SequentialDispatcherCommand.
  6942. * src/FileAllocationDispatcherCommand.cc
  6943. * src/SequentialDispatcherCommand.h
  6944. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6945. Rewritten FileAllocationDispatcherCommand using brand new
  6946. SequentialDispatcherCommand.
  6947. * src/DownloadEngineFactory.cc
  6948. * src/FileAllocationCommand.cc
  6949. * src/FileAllocationDispatcherCommand.cc
  6950. * src/FileAllocationDispatcherCommand.h
  6951. * src/Makefile.am
  6952. * src/SequentialDispatcherCommand.h
  6953. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6954. Replaced FileAllocationMan with
  6955. SequentialPicker<FileAllocationEntry>.
  6956. * src/BtCheckIntegrityEntry.cc
  6957. * src/ConsoleStatCalc.cc
  6958. * src/DownloadEngine.cc
  6959. * src/DownloadEngine.h
  6960. * src/DownloadEngineFactory.cc
  6961. * src/FileAllocationCommand.cc
  6962. * src/FileAllocationDispatcherCommand.cc
  6963. * src/FileAllocationMan.h
  6964. * src/Makefile.am
  6965. * src/SequentialPicker.h
  6966. * src/StatCalc.h
  6967. * src/StreamCheckIntegrityEntry.cc
  6968. * test/Makefile.am
  6969. * test/SequentialPickerTest.cc
  6970. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6971. Added doc for adaptive URI selector.
  6972. * doc/aria2c.1.txt
  6973. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6974. Added doc for adaptive URI selector.
  6975. * src/usage_text.h
  6976. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6977. Added doc for --bt-max-peers option.
  6978. * doc/aria2c.1.txt
  6979. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6980. Added doc for --bt-hash-check-seed option.
  6981. * doc/aria2c.1.txt
  6982. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6983. Documented exit codes.
  6984. * doc/aria2c.1.txt
  6985. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6986. Added --bt-max-peers option to specify the maximum number of peers
  6987. per torrent. 0 means unlimited number of peers.
  6988. * src/ActivePeerConnectionCommand.cc
  6989. * src/BtRuntime.h
  6990. * src/DefaultPeerStorage.cc
  6991. * src/DefaultPeerStorage.h
  6992. * src/OptionHandlerFactory.cc
  6993. * src/RequestGroup.cc
  6994. * src/option_processing.cc
  6995. * src/prefs.cc
  6996. * src/prefs.h
  6997. * src/usage_text.h
  6998. * test/DefaultPeerStorageTest.cc
  6999. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7000. Added --bt-hash-check-seed option. If true is given to this
  7001. option, after hash check using --check-integrity option and file
  7002. is complete, continue to seed file. If you want to check file and
  7003. download it only when it is damaged or incomplete, set this option
  7004. to false. This option has effect only on BitTorrent download.
  7005. The default value is true(This is the same behavior with the
  7006. previous release).
  7007. * src/BtCheckIntegrityEntry.cc
  7008. * src/OptionHandlerFactory.cc
  7009. * src/option_processing.cc
  7010. * src/prefs.cc
  7011. * src/prefs.h
  7012. * src/usage_text.h
  7013. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7014. Updated copyright year.
  7015. * src/version_usage.cc
  7016. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7017. Rewritten the usage text for --bt-request-peer-speed-limit option.
  7018. * doc/aria2c.1.txt
  7019. * src/usage_text.h
  7020. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7021. Made the max value of split option unlimited.
  7022. * doc/aria2c.1.txt
  7023. * src/OptionHandlerFactory.cc
  7024. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7025. Fixed compile warning/error.
  7026. * src/DownloadResult.h
  7027. * src/HttpDownloadCommand.cc
  7028. * src/ServerStat.cc
  7029. * test/RequestGroupTest.cc
  7030. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7031. Added --event-poll option to select the method for polling events.
  7032. The available methods are "select" and "epoll". "epoll" is
  7033. available on Linux only. The earlier release has the compile
  7034. option to choose from these methods.
  7035. * configure.ac
  7036. * src/RequestGroupMan.cc
  7037. * src/OptionHandlerFactory.cc
  7038. * src/EpollEventPoll.h
  7039. * src/StreamFileAllocationEntry.cc
  7040. * src/a2io.h
  7041. * src/SelectEventPoll.h
  7042. * src/option_processing.cc
  7043. * src/prefs.h
  7044. * src/EpollEventPoll.cc
  7045. * src/EventPoll.h
  7046. * src/SocketCore.h
  7047. * src/Makefile.am
  7048. * src/main.cc
  7049. * src/DownloadEngine.h
  7050. * src/SelectEventPoll.cc
  7051. * src/DownloadEngine.cc
  7052. * src/SocketCore.cc
  7053. * src/DownloadEngineFactory.cc
  7054. * src/Makefile.in
  7055. * src/prefs.cc
  7056. * src/usage_text.h
  7057. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7058. Included RecoverableException.h from main.cc
  7059. * src/main.cc
  7060. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7061. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  7062. now returns last error encountered in the HTTP/FTP downloads as a
  7063. exit status value. If all downloads finished successfully, aria2
  7064. returns 0. The error code is defined in src/DownloadResult.h.
  7065. The error occurred in the download currently in progress is not
  7066. reported as a last error. If no error has encountered but there
  7067. are in progress or waiting downloads, aria2 returns 7.
  7068. * src/AbstractCommand.cc
  7069. * src/DlAbortEx.h
  7070. * src/DlRetryEx.h
  7071. * src/DownloadCommand.cc
  7072. * src/DownloadFailureException.h
  7073. * src/DownloadResult.h
  7074. * src/FtpNegotiationCommand.cc
  7075. * src/HttpSkipResponseCommand.cc
  7076. * src/Makefile.am
  7077. * src/MultiUrlRequestInfo.cc
  7078. * src/MultiUrlRequestInfo.h
  7079. * src/RecoverableException.h
  7080. * src/RequestGroup.cc
  7081. * src/RequestGroup.h
  7082. * src/RequestGroupMan.cc
  7083. * src/RequestGroupMan.h
  7084. * src/URIResult.cc
  7085. * src/URIResult.h
  7086. * src/main.cc
  7087. * src/option_processing.cc
  7088. * test/RequestGroupTest.cc
  7089. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7090. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  7091. patch adds AdaptiveURISelector, which selects one of the bests
  7092. mirrors for first and reserved connections. For supplementary
  7093. ones, it returns mirrors which has not been tested yet, and if
  7094. each of them already tested, returns mirrors which has to be
  7095. tested again. Otherwise, it doesn't return anymore mirrors.
  7096. * src/AdaptiveURISelector.cc
  7097. * src/AdaptiveURISelector.h
  7098. * src/FtpNegotiationCommand.cc
  7099. * src/HttpResponseCommand.cc
  7100. * src/Makefile.am
  7101. * src/Makefile.in
  7102. * src/OptionHandlerFactory.cc
  7103. * src/RequestGroup.cc
  7104. * src/RequestGroup.h
  7105. * src/RequestGroupMan.cc
  7106. * src/ServerStat.cc
  7107. * src/ServerStat.h
  7108. * src/ServerStatMan.cc
  7109. * src/SpeedCalc.cc
  7110. * src/URISelector.h
  7111. * src/prefs.cc
  7112. * src/prefs.h
  7113. * test/RequestGroupManTest.cc
  7114. * test/ServerStatManTest.cc
  7115. * test/ServerStatTest.cc
  7116. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7117. Fixed unit test error.
  7118. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  7119. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7120. * Release 1.1.2
  7121. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7122. Updated Russian translation. Thanks to the translators.
  7123. * po/ru.po
  7124. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7125. Added the description of --use-head option to man page.
  7126. * doc/aria2c.1.txt
  7127. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7128. Bump up version number to 1.1.2
  7129. * configure.ac
  7130. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7131. Added --use-head option to toggle whether HEAD method should be
  7132. used in the first HTTP request. By default aria2 uses HEAD method
  7133. as the first request. When the server doesn't recognize HEAD, then
  7134. give aria2 --use-head=false to force aria2 to use GET method
  7135. instead.
  7136. * src/OptionHandlerFactory.cc
  7137. * src/RequestGroupMan.cc
  7138. * src/option_processing.cc
  7139. * src/prefs.cc
  7140. * src/prefs.h
  7141. * src/usage_text.h
  7142. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7143. Fixed the bug that BitTorrent download doesn't finish when REJECT
  7144. message is received before CHOKE message. The old implementation
  7145. doen't clear the use-bit of the piece when recieved REJECT
  7146. message.
  7147. * src/DefaultBtMessageDispatcher.cc
  7148. * test/DefaultBtMessageDispatcherTest.cc
  7149. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7150. * Release 1.1.1
  7151. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7152. Bump up version number to 1.1.1.
  7153. * configure.ac
  7154. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7155. Fixed the bug that --summary-interval=0 doesn't work. The summary
  7156. is printed repeatedly.
  7157. * src/ConsoleStatCalc.cc
  7158. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7159. * Release 1.1.0
  7160. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7161. Added ifdef clause for conditional compilation.
  7162. * src/main.cc
  7163. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7164. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  7165. translations. Thanks to all translators.
  7166. * po/ja.po
  7167. * po/ru.po
  7168. * po/uk.po
  7169. * po/zh_CN.po
  7170. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7171. Added the preceding ">>> " before the message "Printing the
  7172. contents of file..." to make the output more readable.
  7173. * src/main.cc
  7174. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7175. Added try-catch block in the loop in showFiles() to continue the
  7176. operation even if the exception occurred in one file.
  7177. * src/main.cc (showFiles)
  7178. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7179. Made messages in showFiles() translatable.
  7180. * po/aria2.pot
  7181. * src/main.cc
  7182. * src/message.h
  7183. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7184. Print the contents of Torrent/Metalink files are printed without
  7185. -T/-M options.
  7186. * src/main.cc
  7187. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7188. Escaped '--' with '\--'
  7189. * README
  7190. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7191. Updated "How to build" section in README. Mentioned about
  7192. --with-ca-bundle compile option.
  7193. * README
  7194. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7195. Bump up version number to 1.1.0.
  7196. * configure.ac
  7197. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7198. Added a note for --dht-listen-port option.
  7199. * doc/aria2c.1.txt
  7200. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7201. Update doc for --realtime-chunk-checksum option.
  7202. * doc/aria2c.1.txt
  7203. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7204. Update doc for --realtime-chunk-checksum option.
  7205. * src/usage_text.h
  7206. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7207. Updated French, Japanese, Russian and Ukrainian translations.
  7208. Thanks to all translators.
  7209. * po/fr.po
  7210. * po/ja.po
  7211. * po/ru.po
  7212. * po/uk.po
  7213. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7214. Renamed aria2c.pot to aria2.pot
  7215. * po/aria2.pot
  7216. * po/aria2c.pot: Removed.
  7217. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7218. Removed MetaEntry.h
  7219. * src/Makefile.am
  7220. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7221. Rename file by appending digits if a local file exists and its
  7222. file size is larger than that of remote file with --continue
  7223. option. The old implementation just throws exception in such case.
  7224. * src/RequestGroup.cc
  7225. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7226. Fixed the bug that download progress summary is not printed in the
  7227. interval specified by the option.
  7228. * src/ConsoleStatCalc.cc
  7229. * src/ConsoleStatCalc.h
  7230. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7231. Fixed compiler warning
  7232. * src/Cookie.cc
  7233. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7234. Fixed the cookie implementation based on RFC2965.
  7235. Now if a value in domain field is not started with dot, then
  7236. prepend dot. That means a cookie with domain=sf.net is sent to
  7237. wiki.sf.net.
  7238. * src/Cookie.cc
  7239. * test/CookieParserTest.cc
  7240. * test/CookieStorageTest.cc
  7241. * test/CookieTest.cc
  7242. * test/NsCookieParserTest.cc
  7243. * test/Sqlite3MozCookieParserTest.cc
  7244. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7245. Fixed the bug that causes corrupted downloads if HTTP pipelining
  7246. is enabled and the server doesn't support keep-alive.
  7247. * src/AbstractCommand.cc
  7248. * src/DownloadCommand.cc
  7249. * src/HttpDownloadCommand.cc
  7250. * src/HttpDownloadCommand.h
  7251. * src/HttpResponseCommand.cc
  7252. * src/Request.cc
  7253. * src/Request.h
  7254. * test/RequestTest.cc
  7255. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7256. Removed Dictionary/List/Data and its related classes.
  7257. * src/BencodeVisitor.cc: Removed.
  7258. * src/BencodeVisitor.h: Removed.
  7259. * src/Data.cc: Removed.
  7260. * src/Data.h: Removed.
  7261. * src/Dictionary.cc: Removed.
  7262. * src/Dictionary.h: Removed.
  7263. * src/List.cc: Removed.
  7264. * src/List.h: Removed.
  7265. * src/Makefile.am
  7266. * src/MetaEntry.h: Removed.
  7267. * src/MetaEntryVisitor.h: Removed.
  7268. * src/MetaFileUtil.cc: Removed.
  7269. * src/MetaFileUtil.h: Removed.
  7270. * test/BencodeVisitorTest.cc: Removed.
  7271. * test/DataTest.cc: Removed.
  7272. * test/DictionaryTest.cc: Removed.
  7273. * test/ListTest.cc: Removed.
  7274. * test/Makefile.am
  7275. * test/MetaFileUtilTest.cc: Removed.
  7276. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7277. Removed include of MetaEntry.h
  7278. * test/DHTMessageTrackerEntryTest.cc
  7279. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7280. Use BDE instead of Dictionary/List/Data.
  7281. * src/AnnounceList.cc
  7282. * src/AnnounceList.h
  7283. * test/AnnounceListTest.cc
  7284. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7285. Use BDE instead of Dictionary/List/Data.
  7286. * src/DHTAbstractMessage.cc
  7287. * src/DHTAbstractMessage.h
  7288. * src/DHTAnnouncePeerMessage.cc
  7289. * src/DHTAnnouncePeerMessage.h
  7290. * src/DHTAnnouncePeerReplyMessage.cc
  7291. * src/DHTAnnouncePeerReplyMessage.h
  7292. * src/DHTFindNodeMessage.cc
  7293. * src/DHTFindNodeMessage.h
  7294. * src/DHTFindNodeReplyMessage.cc
  7295. * src/DHTFindNodeReplyMessage.h
  7296. * src/DHTGetPeersMessage.cc
  7297. * src/DHTGetPeersMessage.h
  7298. * src/DHTGetPeersReplyMessage.cc
  7299. * src/DHTGetPeersReplyMessage.h
  7300. * src/DHTMessageFactory.h
  7301. * src/DHTMessageFactoryImpl.cc
  7302. * src/DHTMessageFactoryImpl.h
  7303. * src/DHTMessageReceiver.cc
  7304. * src/DHTMessageTracker.cc
  7305. * src/DHTMessageTracker.h
  7306. * src/DHTPingMessage.cc
  7307. * src/DHTPingMessage.h
  7308. * src/DHTPingReplyMessage.cc
  7309. * src/DHTPingReplyMessage.h
  7310. * src/DHTQueryMessage.cc
  7311. * src/DHTQueryMessage.h
  7312. * src/DHTResponseMessage.cc
  7313. * src/DHTResponseMessage.h
  7314. * test/DHTAnnouncePeerMessageTest.cc
  7315. * test/DHTAnnouncePeerReplyMessageTest.cc
  7316. * test/DHTFindNodeMessageTest.cc
  7317. * test/DHTFindNodeReplyMessageTest.cc
  7318. * test/DHTGetPeersMessageTest.cc
  7319. * test/DHTGetPeersReplyMessageTest.cc
  7320. * test/DHTMessageFactoryImplTest.cc
  7321. * test/DHTMessageTrackerTest.cc
  7322. * test/DHTPingMessageTest.cc
  7323. * test/DHTPingReplyMessageTest.cc
  7324. * test/MockDHTMessageFactory.h
  7325. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7326. Added tests the case where length < 0 is specified.
  7327. * test/BencodeTest.cc
  7328. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7329. Fixed memory leak in decoderawstring()
  7330. * src/bencode.cc
  7331. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7332. Added missing #ifdef guard. Added uc() function for String and
  7333. removeKey() for Dict.
  7334. * src/bencode.cc
  7335. * src/bencode.h
  7336. * test/BencodeTest.cc
  7337. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7338. Use BDE instead of Dictionary/List/Data.
  7339. * src/HandshakeExtensionMessage.cc
  7340. * src/HandshakeExtensionMessage.h
  7341. * test/HandshakeExtensionMessageTest.cc
  7342. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7343. Added --max-overall-upload-limit option. This option limits the
  7344. overall upload speed. Stated in help message that the existing
  7345. --max-upload-limit option limits the upload speed per each
  7346. torrent. Man page is also updated.
  7347. * doc/aria2c.1.txt
  7348. * src/DefaultBtMessageDispatcher.cc
  7349. * src/DefaultBtMessageDispatcher.h
  7350. * src/OptionHandlerFactory.cc
  7351. * src/PeerInteractionCommand.cc
  7352. * src/option_processing.cc
  7353. * src/prefs.cc
  7354. * src/prefs.h
  7355. * src/usage_text.h
  7356. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7357. Use BDE instead of Dictionary/List/Data classes.
  7358. * src/CompactPeerListProcessor.cc
  7359. * src/CompactPeerListProcessor.h
  7360. * src/DefaultBtAnnounce.cc
  7361. * src/DefaultBtContext.cc
  7362. * src/DefaultBtContext.h
  7363. * src/DefaultPeerListProcessor.cc
  7364. * src/DefaultPeerListProcessor.h
  7365. * src/DelegatingPeerListProcessor.cc
  7366. * src/DelegatingPeerListProcessor.h
  7367. * src/PeerListProcessor.h
  7368. * src/UTPexExtensionMessage.cc
  7369. * src/Util.h
  7370. * src/message.h
  7371. * test/DefaultBtContextTest.cc
  7372. * test/DefaultPeerListProcessorTest.cc
  7373. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7374. Added bencode helper functions and BDE class.
  7375. They will replace MetaFileUtil and Dictionary/List/Data classes.
  7376. * src/Makefile.am
  7377. * src/bencode.cc
  7378. * src/bencode.h
  7379. * test/BencodeTest.cc
  7380. * test/Makefile.am
  7381. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7382. Fixed the bug that bad URI is sent to the tracker when the announe
  7383. URI in torrent file includes query.
  7384. * src/DefaultBtAnnounce.cc
  7385. * test/DefaultBtAnnounceTest.cc
  7386. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7387. Added Option::blank().
  7388. Use !Option::blank(name) instead of Option::defined(name) for
  7389. the options that take filename.
  7390. * src/MultiUrlRequestInfo.cc
  7391. * src/Option.cc
  7392. * src/Option.h
  7393. * src/main.cc
  7394. * src/option_processing.cc
  7395. * test/OptionTest.cc
  7396. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7397. Documented the default value of --check-certificate option in man
  7398. page.
  7399. * doc/aria2c.1.txt
  7400. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7401. Enabled --check-certificate by default. Added compile
  7402. time(configure) option --with-ca-bundle to specify CA bundle.
  7403. Warn if --check-certificate=true and --ca-certificate is not
  7404. specified or loading CA certificate is failed.
  7405. * configure.ac
  7406. * src/MultiUrlRequestInfo.cc
  7407. * src/OptionHandlerFactory.cc
  7408. * src/message.h
  7409. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7410. Mentioned https tag in help option.
  7411. * doc/aria2c.1.txt
  7412. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7413. Added `https' tag to help option category. Added https tag to
  7414. --ca-certificate, --certificate, --check-certificate and
  7415. --private-key option.
  7416. * src/OptionHandlerFactory.cc
  7417. * src/help_tags.h
  7418. * src/option_processing.cc
  7419. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7420. Changed the package name from `aria2c' to `aria2' in order to fix
  7421. the packaging issue in Debian and Fedora. The name of the
  7422. executable is not changed.
  7423. * configure.ac
  7424. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7425. Fixed typos
  7426. * src/usage_text.h
  7427. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7428. Fixed typos and updated doc.
  7429. * README
  7430. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7431. Fixed typos
  7432. * doc/aria2c.1.txt
  7433. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7434. Fixed typos
  7435. * src/usage_text.h
  7436. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7437. Print a message when no files to download.
  7438. * src/download_helper.cc
  7439. * src/main.cc
  7440. * src/message.h
  7441. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7442. RFC3986 complied Percent-Encoding(urlencode).
  7443. Use uppercase hexadecimal digits for encoded text instead of lowercase
  7444. ones.
  7445. * src/Request.cc
  7446. * src/Util.cc
  7447. * src/Util.h
  7448. * test/BtHandshakeMessageTest.cc
  7449. * test/DefaultBtAnnounceTest.cc
  7450. * test/DefaultBtContextTest.cc
  7451. * test/RequestTest.cc
  7452. * test/UtilTest.cc
  7453. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7454. Fixed the bug that prevents aria2 from downloading 0-length files
  7455. via HTTP/FTP.
  7456. * src/DefaultBtContext.cc
  7457. * src/DefaultBtContext.h
  7458. * src/DownloadContext.h
  7459. * src/FtpNegotiationCommand.cc
  7460. * src/HttpResponseCommand.cc
  7461. * src/HttpResponseCommand.h
  7462. * src/RequestGroup.cc
  7463. * src/SingleFileDownloadContext.cc
  7464. * src/SingleFileDownloadContext.h
  7465. * test/BtPostDownloadHandlerTest.cc
  7466. * test/MetalinkPostDownloadHandlerTest.cc
  7467. * test/MockBtContext.h
  7468. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7469. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  7470. * src/option_processing.cc
  7471. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7472. Applied aria2-1.0.1-mingw.patch.
  7473. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  7474. mingw.
  7475. Collected 4th and 5th argument types for getsockopt and setsockopt.
  7476. * src/SocketCore.cc
  7477. * src/a2netcompat.h
  7478. * test/SocketCoreTest.cc
  7479. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7480. * Release 1.0.1
  7481. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7482. Updated Ukrainian and Norwegian Nynorsk translations.
  7483. Thanks to all translators.
  7484. * po/nn.po
  7485. * po/uk.po
  7486. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7487. Don't show download result when -S option is used.
  7488. * src/main.cc
  7489. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7490. Bump up version number to 1.0.1
  7491. * configure.ac
  7492. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7493. Closed files after the test cases in MultiDiskWriterTest::
  7494. testResetDiskWriterEntries(). This will fix the unit test error
  7495. in mingw32 build.
  7496. * test/MultiDiskWriterTest.cc
  7497. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7498. Use HEAD method to get file size from HTTP server for segmented
  7499. downloading.
  7500. The request to the BitTorrent Tracker always uses GET method because
  7501. the response of the tracker is small and it doesn't need segmented
  7502. download.
  7503. * src/FtpNegotiationCommand.cc
  7504. * src/HttpRequest.cc
  7505. * src/HttpResponseCommand.cc
  7506. * src/HttpSkipResponseCommand.cc
  7507. * src/RequestGroup.cc
  7508. * src/RequestGroup.h
  7509. * src/TrackerWatcherCommand.cc
  7510. * test/HttpRequestTest.cc
  7511. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7512. Fixed the bug that causes floating exception when -T option is used and
  7513. no URIs are given.
  7514. * src/download_helper.cc
  7515. * test/DownloadHelperTest.cc
  7516. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  7517. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  7518. errors in MinGW:
  7519. Closed file after saving server stats (RequestGroupMan.cc)
  7520. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  7521. Ignored case & handled 2-digit years (strptime.c)
  7522. Added missing suseconds_t definition (a2time.h)
  7523. Fixed socket CLOSE() define (SocketCore.cc)
  7524. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  7525. Changed utime() test values from x000 to x00000 as MinGW failed on
  7526. values less than timezone offset from Unix epoch
  7527. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  7528. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  7529. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  7530. handle negative dates (CookieParserTest.cc)
  7531. * src/a2time.h
  7532. * src/FtpConnection.cc
  7533. * src/RequestGroupMan.cc
  7534. * src/SocketCore.cc
  7535. * src/strptime.c
  7536. * test/CookieParserTest.cc
  7537. * test/CopyDiskAdaptorTest.cc
  7538. * test/FileTest.cc
  7539. * test/FtpConnectionTest.cc
  7540. * test/MultiDiskAdaptorTest.cc
  7541. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7542. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  7543. * doc/aria2c.1.txt
  7544. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7545. * Release 1.0.0
  7546. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7547. Added '~' to reserved characters.
  7548. * src/Util.cc
  7549. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7550. Do not urlencode Request::url in setUrl() because we want unmodified
  7551. URL using Request::getUrl()
  7552. * src/Request.cc
  7553. * src/Request.h
  7554. * test/RequestTest.cc
  7555. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7556. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  7557. Thanks to all translators.
  7558. * po/bg.po
  7559. * po/fr.po
  7560. * po/ja.po
  7561. * po/ru.po
  7562. * po/uk.po
  7563. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7564. Bump up version number to 1.0.0
  7565. * configure.ac
  7566. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7567. Added nosqlite3 build to build_test.sh.
  7568. Renamed noxml as expat.
  7569. * build_test.sh
  7570. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7571. Updated INPUT FILE section.
  7572. * doc/aria2c.1.txt
  7573. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7574. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  7575. on big endian systems because test .aria2 files are made for little
  7576. endian systems.
  7577. * test/DefaultBtProgressInfoFileTest.cc
  7578. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7579. Dropped ares support.
  7580. * README
  7581. * configure.ac
  7582. * m4/libares.m4: Removed.
  7583. * src/AsyncNameResolver.cc
  7584. * src/Makefile.am
  7585. * test/Makefile.am
  7586. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7587. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  7588. Removed const qualifier from DiskWriter::size().
  7589. * src/AbstractDiskWriter.cc
  7590. * src/AbstractDiskWriter.h
  7591. * src/ByteArrayDiskWriter.cc
  7592. * src/ByteArrayDiskWriter.h
  7593. * src/DiskWriter.h
  7594. * test/ByteArrayDiskWriterTest.cc
  7595. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7596. Fixed the bug that causes segmentation fault/bus error during executing
  7597. choking algorithm while seeding. This is caused by improper
  7598. implementation of compare function which returns inconsistent results
  7599. depending on the timing of last unchoke.
  7600. * src/BtSeederStateChoke.cc
  7601. * src/BtSeederStateChoke.h
  7602. * src/DefaultPeerStorage.cc
  7603. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7604. Removed TODO
  7605. * TODO
  7606. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7607. Added a section that explains how to pass argument to options that
  7608. takes optional arguments with its short form.
  7609. * doc/aria2c.1.txt
  7610. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7611. Added -u for the short form of --max-upload-limit option.
  7612. * doc/aria2c.1.txt
  7613. * src/option_processing.cc
  7614. * src/usage_text.h
  7615. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7616. Added -V for the short form of --check-integrity option.
  7617. Now the argument of --check-integrity option is optional:
  7618. if it is omitted, it is evaluated as true.
  7619. * doc/aria2c.1.txt
  7620. * src/option_processing.cc
  7621. * src/usage_text.h
  7622. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7623. Made the default value of --ftp-pasv option set to true and it can take
  7624. true/false values.
  7625. * src/OptionHandlerFactory.cc
  7626. * src/option_processing.cc
  7627. * src/usage_text.h
  7628. * doc/aria2c.1.txt
  7629. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7630. Given custom random number generator to std::random_shuffle.
  7631. * src/AnnounceList.cc
  7632. * src/BtLeecherStateChoke.cc
  7633. * src/BtSeederStateChoke.cc
  7634. * src/DefaultBtRequestFactory.cc
  7635. * src/MetalinkEntry.cc
  7636. * src/RarestPieceSelector.cc
  7637. * src/SimpleRandomizer.cc
  7638. * src/SimpleRandomizer.h
  7639. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7640. Now the default value of --enable-direct-io is true.
  7641. * src/OptionHandlerFactory.cc
  7642. * doc/aria2c.1.txt
  7643. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7644. Erase peer before executing onReturningPeer and onErasingPeer
  7645. because choking algorithm called from onReturningPeer doesn't
  7646. like erasing peer in the active peer list.
  7647. * src/DefaultPeerStorage.cc
  7648. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7649. Instead of creating special filename in createDownloadResult() if
  7650. inMemoryDownload() is true, now it is done in getFilePath().
  7651. * src/RequestGroup.cc
  7652. * test/RequestGroupTest.cc
  7653. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7654. Print "[MEMORY]" and filename if a file is not saved in disk and just
  7655. processed in memory. This is the fix for previous comment out.
  7656. * src/MemoryBufferPreDownloadHandler.cc
  7657. * src/RequestGroup.cc
  7658. * src/RequestGroup.h
  7659. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7660. Commented out the code which sets virtual directory path "[MEMORY]"
  7661. propagate directory to store to following RequestGroup.
  7662. * src/MemoryBufferPreDownloadHandler.cc
  7663. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7664. Bump up version number to 1.0.0b
  7665. * configure.ac
  7666. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7667. Added input_uris.txt to EXTRA_DIST
  7668. * test/Makefile.am
  7669. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7670. Removed PeerObject.h from Makefile.am
  7671. * src/Makefile.am
  7672. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7673. Avoid slow seeding
  7674. * src/PeerInteractionCommand.cc
  7675. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7676. Updated usage for -i option.
  7677. * src/usage_text.h (TEXT_INPUT_FILE)
  7678. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7679. Added INPUT FILE section to man page.
  7680. Escaped fake URLs.
  7681. * doc/aria2c.1.txt
  7682. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7683. Fixed wrong note position for -o option.
  7684. * doc/aria2c.1.txt
  7685. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7686. Fixed compile error without SSL/XML library.
  7687. * src/DefaultBtProgressInfoFile.cc
  7688. * src/DefaultBtProgressInfoFile.h
  7689. * src/FileMetalinkParserState.cc
  7690. * src/RequestGroup.h
  7691. * src/SocketCore.cc
  7692. * src/SocketCore.h
  7693. * src/VerificationMetalinkParserState.cc
  7694. * src/download_helper.h
  7695. * src/main.cc
  7696. * test/DefaultBtProgressInfoFileTest.cc
  7697. * test/DownloadHelperTest.cc
  7698. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7699. Rewritten URI handling functions. They are now provided as a testable
  7700. functions.
  7701. * src/Makefile.am
  7702. * src/RequestGroup.cc
  7703. * src/RequestGroup.h
  7704. * src/download_helper.cc
  7705. * src/download_helper.h
  7706. * src/main.cc
  7707. * test/DownloadHelperTest.cc
  7708. * test/Makefile.am
  7709. * test/input_uris.txt
  7710. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7711. Quickly terminate commands when ctrl-c is pressed.
  7712. * src/DownloadEngine.cc
  7713. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7714. Quickly terminate idle commands when download finished.
  7715. * src/AbstractCommand.cc
  7716. * src/DownloadCommand.cc
  7717. * src/DownloadEngine.cc
  7718. * src/DownloadEngine.h
  7719. * src/SleepCommand.cc
  7720. * src/SleepCommand.h
  7721. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7722. Added the ability to specify output filename and directory in input
  7723. file.
  7724. Additional parameters are added in the following line of URIs
  7725. with proceeding white space(s), 1 parameter in 1 line.
  7726. The parameter names are the same with the command-line option name
  7727. without proceeding "--". Not all the options are available here:
  7728. at the moment, 'dir' and 'out' options are avialable.
  7729. Please note that out option has no effect against Metalink or BitTorrent
  7730. downloads.
  7731. Example input file:
  7732. http://host/foo-1.1.tar.bz2
  7733. out=foo.tar.bz2
  7734. dir=/tmp/downloads
  7735. http://host/thundermonkey-2.0.tar.bz2
  7736. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  7737. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  7738. thundermonkey-2.0.tar.bz2 is saved as
  7739. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  7740. * src/BtPostDownloadHandler.cc
  7741. * src/Metalink2RequestGroup.cc
  7742. * src/Metalink2RequestGroup.h
  7743. * src/MetalinkPostDownloadHandler.cc
  7744. * src/UriListParser.cc
  7745. * src/UriListParser.h
  7746. * src/main.cc
  7747. * test/Metalink2RequestGroupTest.cc
  7748. * test/UriListParserTest.cc
  7749. * test/filelist1.txt
  7750. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7751. Fixed error when SSL library is not found.
  7752. * configure.ac
  7753. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7754. Cross referenced among -s, -C and -j options.
  7755. Updated usage of -C and -s options.
  7756. * src/usage_text.h
  7757. * doc/aria2c.1.txt
  7758. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7759. Fixed bad cast in 32bit platforms.
  7760. * test/DefaultPieceStorageTest.cc
  7761. (DefaultPieceStorageTest::testGetCompletedLength)
  7762. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7763. Fixed unit test fails on 32bit platforms.
  7764. * test/CookieParserTest.cc
  7765. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7766. Show an average download speed in Download results.
  7767. * src/BtFileAllocationEntry.cc
  7768. * src/DefaultPieceStorage.cc
  7769. * src/DownloadContext.cc
  7770. * src/DownloadContext.h
  7771. * src/DownloadResult.h
  7772. * src/RequestGroup.cc
  7773. * src/RequestGroupMan.cc
  7774. * src/StreamFileAllocationEntry.cc
  7775. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7776. Fixed the bug that metalink file is not processed if Content-Type
  7777. field has a paramter.
  7778. * src/HttpResponse.cc
  7779. * src/HttpResponse.h
  7780. * test/HttpResponseTest.cc
  7781. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7782. Removed unused code.
  7783. * src/DefaultBtAnnounce.cc
  7784. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7785. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  7786. the value larger than DefaultPieceStorage::getTotalLength() when
  7787. in flight pieces are involved.
  7788. * src/DefaultPieceStorage.cc
  7789. * test/DefaultPieceStorageTest.cc
  7790. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7791. Bump up version number to 1.0.0a.
  7792. * configure.ac
  7793. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7794. Updated configure.ac
  7795. * configure.ac
  7796. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7797. Added usege for proxy.
  7798. * doc/aria2c.1.txt
  7799. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7800. Added usage for --ca-certificate, --certificate, --private-key and
  7801. --check-certificate options.
  7802. * doc/aria2c.1.txt
  7803. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7804. Updated man page
  7805. * doc/aria2c.1.txt
  7806. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7807. Added --no-proxy option. It receives comman separated hostname or
  7808. domains to which proxy should not be used.
  7809. aria2 honors the environment variable no_proxy to override no-proxy
  7810. value in configuration file. The user can override the environment
  7811. variable no_proxy with --no-proxy command-line option.
  7812. * src/AbstractCommand.cc
  7813. * src/OptionHandlerFactory.cc
  7814. * src/option_processing.cc
  7815. * src/prefs.cc
  7816. * src/prefs.h
  7817. * src/usage_text.h
  7818. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7819. Added the ability to verify peer in SSL/TLS using given CA certificates.
  7820. The CA certificates are specified in --ca-certificate option.
  7821. By default, the verification is disabled. Use --check-certificate
  7822. option to enable it.
  7823. * src/HttpRequestCommand.cc
  7824. * src/LibgnutlsTLSContext.cc
  7825. * src/LibgnutlsTLSContext.h
  7826. * src/LibsslTLSContext.cc
  7827. * src/LibsslTLSContext.h
  7828. * src/MultiUrlRequestInfo.cc
  7829. * src/OptionHandlerFactory.cc
  7830. * src/SocketCore.cc
  7831. * src/SocketCore.h
  7832. * src/a2functional.h
  7833. * src/message.h
  7834. * src/option_processing.cc
  7835. * src/prefs.cc
  7836. * src/prefs.h
  7837. * src/usage_text.h
  7838. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7839. Added client certificate authentication for SSL/TLS.
  7840. Currently a private key must be decrypted for use with aria2.
  7841. If a user accidentally gives encrypted file to aria2 then following
  7842. thing happens:
  7843. If encrypted private key is given to aria2, it behaves differently
  7844. depending on the ssl library it uses. If aria2 built with openssl then
  7845. openssl prompts the user for password. If aria2 build with gnutls then
  7846. aria2 exists with error at start up.
  7847. * src/DownloadEngineFactory.cc
  7848. * src/MultiUrlRequestInfo.cc
  7849. * src/OptionHandlerFactory.cc
  7850. * src/option_processing.cc
  7851. * src/prefs.cc
  7852. * src/prefs.h
  7853. * src/usage_text.h
  7854. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7855. Introduced TLSContext that holds TLS related data that can be shared
  7856. with multiple SSL connections.
  7857. * src/DownloadEngineFactory.cc
  7858. * src/LibgnutlsTLSContext.cc
  7859. * src/LibgnutlsTLSContext.h
  7860. * src/LibsslTLSContext.cc
  7861. * src/LibsslTLSContext.h
  7862. * src/Makefile.am
  7863. * src/SocketCore.cc
  7864. * src/SocketCore.h
  7865. * src/TLSContext.h
  7866. * src/message.h
  7867. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7868. Fixed the bug that the DiskWriter of the first FileEntry whose
  7869. `needsFileAllocation' property is false is not created
  7870. even if it shares a piece with next FileEntry which `requested' property
  7871. is true.
  7872. Fixed the bug that zero-length file is not created if pre file
  7873. allocation is not done.
  7874. * src/MultiDiskAdaptor.cc
  7875. * src/MultiDiskAdaptor.h
  7876. * test/MultiDiskAdaptorTest.cc
  7877. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7878. Added the ability to pool proxy connection.
  7879. The conneciton in FTP with proxy-method=GET is not pooled.
  7880. Proxy-Connection header will not be sent when sending CONNECT method.
  7881. * src/DownloadEngine.cc
  7882. * src/DownloadEngine.h
  7883. * src/FtpFinishDownloadCommand.cc
  7884. * src/FtpInitiateConnectionCommand.cc
  7885. * src/FtpNegotiationCommand.cc
  7886. * src/HttpDownloadCommand.cc
  7887. * src/HttpInitiateConnectionCommand.cc
  7888. * src/HttpRequest.cc
  7889. * src/HttpRequest.h
  7890. * src/HttpResponse.cc
  7891. * src/HttpSkipResponseCommand.cc
  7892. * test/HttpRequestTest.cc
  7893. * test/HttpResponseTest.cc
  7894. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7895. Handle date before epoch.
  7896. To create *bad* Time object, call Time::null().
  7897. * src/CookieParser.cc
  7898. * src/FtpConnection.cc
  7899. * src/FtpConnection.h
  7900. * src/FtpNegotiationCommand.cc
  7901. * src/RequestGroup.cc
  7902. * src/TimeA2.cc
  7903. * src/TimeA2.h
  7904. * test/CookieParserTest.cc
  7905. * test/FtpConnectionTest.cc
  7906. * test/TimeTest.cc
  7907. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7908. Added support for following envrionment variables: http_proxy,
  7909. https_proxy, ftp_proxy and all_proxy.
  7910. Each variable is equivalent to the aria2 option whose name is the
  7911. variable name with '_' replaced with '-'.
  7912. They overrides options specified in aria2.conf file.
  7913. The envrionment variables can be overrode using command-line option.
  7914. * src/option_processing.cc
  7915. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7916. Renamed --http-proxy-method as --proxy-method.
  7917. * src/AbstractCommand.cc
  7918. * src/FtpInitiateConnectionCommand.cc
  7919. * src/HttpInitiateConnectionCommand.cc
  7920. * src/OptionHandlerFactory.cc
  7921. * src/option_processing.cc
  7922. * src/prefs.cc
  7923. * src/prefs.h
  7924. * src/usage_text.h
  7925. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7926. Deprecated --http-proxy-user and --http-proxy-passwd options.
  7927. Added --https-proxy, --ftp-proxy and --all-proxy options.
  7928. Above 3 options and --http-proxy option can handle proxy in URL format
  7929. like: http://user:passwd@host:port.
  7930. If a proxy requires user/password, they must be specified in a URL.
  7931. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  7932. instead.
  7933. * src/AbstractCommand.cc
  7934. * src/AbstractCommand.h
  7935. * src/AbstractProxyRequestCommand.cc
  7936. * src/AbstractProxyRequestCommand.h
  7937. * src/AuthConfigFactory.cc
  7938. * src/AuthConfigFactory.h
  7939. * src/FtpFinishDownloadCommand.cc
  7940. * src/FtpInitiateConnectionCommand.cc
  7941. * src/FtpInitiateConnectionCommand.h
  7942. * src/FtpNegotiationCommand.cc
  7943. * src/FtpTunnelRequestCommand.cc
  7944. * src/FtpTunnelRequestCommand.h
  7945. * src/HttpDownloadCommand.cc
  7946. * src/HttpInitiateConnectionCommand.cc
  7947. * src/HttpInitiateConnectionCommand.h
  7948. * src/HttpProxyRequestCommand.cc
  7949. * src/HttpProxyRequestCommand.h
  7950. * src/HttpRequest.cc
  7951. * src/HttpRequest.h
  7952. * src/HttpRequestCommand.cc
  7953. * src/HttpRequestCommand.h
  7954. * src/HttpSkipResponseCommand.cc
  7955. * src/InitiateConnectionCommand.cc
  7956. * src/InitiateConnectionCommand.h
  7957. * src/OptionHandlerFactory.cc
  7958. * src/OptionHandlerImpl.h
  7959. * src/Request.cc
  7960. * src/option_processing.cc
  7961. * src/prefs.cc
  7962. * src/prefs.h
  7963. * src/usage_text.h
  7964. * test/AuthConfigFactoryTest.cc
  7965. * test/HttpRequestTest.cc
  7966. * test/OptionHandlerTest.cc
  7967. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7968. Execute choking algorithm when unchoked and interested peer is
  7969. disconected.
  7970. * src/DefaultPeerStorage.cc
  7971. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7972. Added testcase for BtNotInterestedMessage from unchoked peer.
  7973. * test/BtNotInterestedMessageTest.cc
  7974. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7975. Execute choking algorithm when BtInterestedMessage arrives from
  7976. unchoked peer.
  7977. * src/BtInterestedMessage.cc
  7978. * src/BtInterestedMessage.h
  7979. * src/DefaultBtMessageFactory.cc
  7980. * test/BtInterestedMessageTest.cc
  7981. * test/MockPeerStorage.h
  7982. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7983. AuthConfigFactory is now part of DownloadEngine.
  7984. * src/AbstractProxyRequestCommand.cc
  7985. * src/AuthConfigFactory.h
  7986. * src/DownloadEngine.cc
  7987. * src/DownloadEngine.h
  7988. * src/FtpConnection.cc
  7989. * src/FtpConnection.h
  7990. * src/FtpNegotiationCommand.cc
  7991. * src/HttpConnection.cc
  7992. * src/HttpRequest.cc
  7993. * src/HttpRequest.h
  7994. * src/HttpRequestCommand.cc
  7995. * src/HttpResponse.cc
  7996. * src/HttpResponseCommand.cc
  7997. * src/HttpSkipResponseCommand.cc
  7998. * src/MultiUrlRequestInfo.cc
  7999. * src/main.cc
  8000. * test/FtpConnectionTest.cc
  8001. * test/HttpRequestTest.cc
  8002. * test/HttpResponseTest.cc
  8003. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8004. Corrected catched exception type.
  8005. * src/ServerStatMan.cc
  8006. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8007. DNSCache is now part of DownloadEngine.
  8008. * src/DNSCache.h
  8009. * src/DownloadEngine.cc
  8010. * src/DownloadEngine.h
  8011. * src/InitiateConnectionCommand.cc
  8012. * src/MultiUrlRequestInfo.cc
  8013. * test/Makefile.am
  8014. * test/Makefile.in
  8015. * test/SimpleDNSCacheTest.cc
  8016. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8017. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  8018. DownloadEngine.
  8019. * src/ActivePeerConnectionCommand.cc
  8020. * src/BtSetup.cc
  8021. * src/CUIDCounter.h
  8022. * src/DHTSetup.cc
  8023. * src/DownloadCommand.cc
  8024. * src/DownloadEngine.cc
  8025. * src/DownloadEngine.h
  8026. * src/DownloadEngineFactory.cc
  8027. * src/FileAllocationDispatcherCommand.cc
  8028. * src/InitiatorMSEHandshakeCommand.cc
  8029. * src/PeerInitiateConnectionCommand.cc
  8030. * src/PeerInteractionCommand.cc
  8031. * src/PeerListenCommand.cc
  8032. * src/RequestGroup.cc
  8033. * src/StreamFileAllocationEntry.cc
  8034. * src/TrackerWatcherCommand.cc
  8035. * src/main.cc
  8036. * test/RequestGroupManTest.cc
  8037. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8038. Implemented commented code in BtSeederStateChoke
  8039. * src/BtSeederStateChoke.cc
  8040. * src/Peer.cc
  8041. * src/Peer.h
  8042. * src/PeerInteractionCommand.cc
  8043. * src/PeerSessionResource.cc
  8044. * src/PeerSessionResource.h
  8045. * test/MockBtMessageDispatcher.h
  8046. * test/PeerSessionResourceTest.cc
  8047. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8048. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  8049. its object.
  8050. * src/AbstractBtMessage.cc
  8051. * src/ActivePeerConnectionCommand.cc
  8052. * src/ActivePeerConnectionCommand.h
  8053. * src/BtContextAwareCommand.cc
  8054. * src/BtContextAwareCommand.h
  8055. * src/BtExtendedMessage.cc
  8056. * src/BtExtendedMessage.h
  8057. * src/BtInterestedMessage.cc
  8058. * src/BtInterestedMessage.h
  8059. * src/BtNotInterestedMessage.cc
  8060. * src/BtNotInterestedMessage.h
  8061. * src/BtRegistry.cc
  8062. * src/BtRegistry.h
  8063. * src/BtSeederStateChoke.cc
  8064. * src/BtSetup.cc
  8065. * src/DHTGetPeersCommand.cc
  8066. * src/DHTGetPeersCommand.h
  8067. * src/DHTPeerAnnounceEntry.cc
  8068. * src/DHTPeerAnnounceEntry.h
  8069. * src/DHTPeerAnnounceStorage.cc
  8070. * src/DHTPeerAnnounceStorage.h
  8071. * src/DHTPeerLookupTask.cc
  8072. * src/DHTPeerLookupTask.h
  8073. * src/DHTSetup.cc
  8074. * src/DHTSetup.h
  8075. * src/DHTTaskFactory.h
  8076. * src/DHTTaskFactoryImpl.cc
  8077. * src/DHTTaskFactoryImpl.h
  8078. * src/DefaultBtAnnounce.cc
  8079. * src/DefaultBtInteractive.cc
  8080. * src/DefaultBtInteractive.h
  8081. * src/DefaultBtMessageDispatcher.cc
  8082. * src/DefaultBtMessageDispatcher.h
  8083. * src/DefaultBtMessageFactory.cc
  8084. * src/DefaultBtMessageFactory.h
  8085. * src/DefaultBtMessageReceiver.cc
  8086. * src/DefaultBtProgressInfoFile.cc
  8087. * src/DefaultBtProgressInfoFile.h
  8088. * src/DefaultBtRequestFactory.cc
  8089. * src/DefaultBtRequestFactory.h
  8090. * src/DefaultExtensionMessageFactory.cc
  8091. * src/DefaultExtensionMessageFactory.h
  8092. * src/DefaultPeerStorage.cc
  8093. * src/DefaultPeerStorage.h
  8094. * src/DownloadEngine.cc
  8095. * src/DownloadEngine.h
  8096. * src/InitiatorMSEHandshakeCommand.cc
  8097. * src/InitiatorMSEHandshakeCommand.h
  8098. * src/MSEHandshake.cc
  8099. * src/MSEHandshake.h
  8100. * src/Makefile.am
  8101. * src/Makefile.in
  8102. * src/PeerChokeCommand.cc
  8103. * src/PeerChokeCommand.h
  8104. * src/PeerInitiateConnectionCommand.cc
  8105. * src/PeerInitiateConnectionCommand.h
  8106. * src/PeerInteractionCommand.cc
  8107. * src/PeerInteractionCommand.h
  8108. * src/PeerObject.h
  8109. * src/PeerReceiveHandshakeCommand.cc
  8110. * src/PeerReceiveHandshakeCommand.h
  8111. * src/ReceiverMSEHandshakeCommand.cc
  8112. * src/RequestGroup.cc
  8113. * src/RequestGroup.h
  8114. * src/RequestGroupMan.cc
  8115. * src/RequestGroupMan.h
  8116. * src/SeedCheckCommand.cc
  8117. * src/SeedCheckCommand.h
  8118. * src/ShareRatioSeedCriteria.h
  8119. * src/SimpleBtMessage.cc
  8120. * src/TrackerWatcherCommand.cc
  8121. * src/TrackerWatcherCommand.h
  8122. * src/UTPexExtensionMessage.cc
  8123. * src/UTPexExtensionMessage.h
  8124. * test/BtCancelMessageTest.cc
  8125. * test/BtChokeMessageTest.cc
  8126. * test/BtExtendedMessageTest.cc
  8127. * test/BtInterestedMessageTest.cc
  8128. * test/BtNotInterestedMessageTest.cc
  8129. * test/BtPieceMessageTest.cc
  8130. * test/BtPortMessageTest.cc
  8131. * test/BtRegistryTest.cc
  8132. * test/BtRejectMessageTest.cc
  8133. * test/BtRequestMessageTest.cc
  8134. * test/DHTPeerAnnounceEntryTest.cc
  8135. * test/DHTPeerAnnounceStorageTest.cc
  8136. * test/DefaultBtMessageDispatcherTest.cc
  8137. * test/DefaultBtMessageFactoryTest.cc
  8138. * test/DefaultBtProgressInfoFileTest.cc
  8139. * test/DefaultBtRequestFactoryTest.cc
  8140. * test/DefaultExtensionMessageFactoryTest.cc
  8141. * test/MSEHandshakeTest.cc
  8142. * test/MockDHTTaskFactory.h
  8143. * test/ShareRatioSeedCriteriaTest.cc
  8144. * test/UTPexExtensionMessageTest.cc
  8145. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8146. Fixed compiler warning.
  8147. * test/UtilTest.cc
  8148. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8149. Treat Cookie object as session cookie if expiry = 0 is given.
  8150. With this change, you can specify session scoped cookies in an external
  8151. file setting expiry value to 0.
  8152. * src/Cookie.cc
  8153. * src/Cookie.h
  8154. * test/CookieParserTest.cc
  8155. * test/CookieStorageTest.cc
  8156. * test/CookieTest.cc
  8157. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8158. Changed signature of DHTMessageFactory::createResponseMessage().
  8159. Removed unused validateIDMatch.
  8160. * src/DHTMessageFactory.h
  8161. * src/DHTMessageFactoryImpl.cc
  8162. * src/DHTMessageFactoryImpl.h
  8163. * src/DHTMessageTracker.cc
  8164. * test/DHTMessageFactoryImplTest.cc
  8165. * test/MockDHTMessageFactory.h
  8166. Dropped DHT message coming from same ID of localhost.
  8167. * src/DHTMessageReceiver.cc
  8168. Rejected adding node whose ID is the same as localhost's.
  8169. * src/DHTRoutingTable.cc
  8170. * test/BtPortMessageTest.cc
  8171. * test/DHTRoutingTableTest.cc
  8172. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8173. Pool connection when redirection occurs with Content-Length = 0.
  8174. * src/HttpSkipResponseCommand.cc
  8175. * src/HttpSkipResponseCommand.h
  8176. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8177. Fixed the bug that causes time out when redirection occurs with
  8178. content-length 0.
  8179. * src/HttpResponseCommand.cc
  8180. * src/HttpSkipResponseCommand.cc
  8181. * src/HttpSkipResponseCommand.h
  8182. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8183. Now each status legends is shown only when it appears in Download
  8184. Result. If Download Result has no item, then status legend will not
  8185. be printed.
  8186. * src/RequestGroupMan.cc
  8187. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8188. Removed duplicate creation of OptionHandlers.
  8189. * src/option_processing.cc
  8190. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8191. Fixed the bug that causes segmentation fault when accessing files which
  8192. don't exist or are not included in --select-file option while
  8193. validating chunk checksum.
  8194. * src/MultiDiskAdaptor.cc
  8195. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8196. Fixed compiler warning.
  8197. * test/UtilTest.cc
  8198. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8199. Included cstdlib. This fixed the compile error with g++-4.3.2.
  8200. * src/IteratableChecksumValidator.cc
  8201. * src/IteratableChunkChecksumValidator.cc
  8202. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8203. * Release 0.16.2
  8204. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8205. Added Serbian translation. Updated Ukrainian translation.
  8206. Thanks to all translators.
  8207. * po/sr.po
  8208. * po/uk.po
  8209. * po/LINGUAS
  8210. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8211. Bump up version number to 0.16.2
  8212. * configure.ac
  8213. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8214. Added length equality test to operator== to drop a piece message
  8215. whose length does not match to the requested one.
  8216. * src/RequestSlot.cc
  8217. * test/DefaultBtMessageDispatcherTest.cc
  8218. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8219. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  8220. recieved.
  8221. In this fix, if a request larger than 16KiB length is received, aria2
  8222. disconnects the peer.
  8223. * src/BtConstants.h
  8224. * src/PeerMessageUtil.cc
  8225. * src/PeerMessageUtil.h
  8226. * test/BtRequestMessageTest.cc
  8227. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8228. * Release 0.16.1
  8229. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8230. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  8231. * doc/aria2c.1.txt
  8232. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8233. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  8234. Updated French, Simplified Chinese and Japanese translations.
  8235. Thanks to all translators.
  8236. en@quot and en@boldquot are also added.
  8237. * po/LINGUAS
  8238. * po/fr.po
  8239. * po/ja.po
  8240. * po/uk.po
  8241. * po/vi.po
  8242. * po/zh_CN.po
  8243. * po/zh_TW.po
  8244. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8245. Bump up version number to 0.16.1.
  8246. * configure.ac
  8247. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8248. Updated README.
  8249. * README
  8250. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8251. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  8252. not to replace '--' with em dash character.
  8253. * doc/aria2c.1.txt
  8254. * doc/makeman
  8255. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8256. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  8257. every SEC seconds.
  8258. * src/DownloadEngineFactory.cc
  8259. * src/OptionHandlerFactory.cc
  8260. * src/option_processing.cc
  8261. * src/usage_text.h
  8262. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8263. Fixed compile warning on linux-amd64
  8264. * src/FtpConnection.cc
  8265. * src/IteratableChunkChecksumValidator.cc
  8266. * src/MultiDiskAdaptor.cc
  8267. Fixed the bug that unit test fails on linux-amd64
  8268. * test/UtilTest.cc
  8269. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8270. Added --dht-file-path option to change the path to dht.dat, which is a
  8271. serialized DHT routing table.
  8272. * src/OptionHandlerFactory.cc
  8273. * src/option_processing.cc
  8274. * src/usage_text.h
  8275. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8276. Fixed possible underflow.
  8277. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  8278. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8279. Fixed the bug that last character in URI is not encoded.
  8280. * src/Request.cc
  8281. * test/RequestTest.cc
  8282. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8283. Fixed the bug that referer header field contains fragment.
  8284. Now Request class removes fragment part of URI and encodes it
  8285. in Request::setUri() and setReferer().
  8286. * src/Request.h
  8287. * src/Request.cc
  8288. * test/RequestTest.cc
  8289. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8290. Added missing m4 macros.
  8291. * m4/cppunit.m4
  8292. * m4/libgcrypt.m4
  8293. * m4/libgnutls-extra.m4
  8294. * m4/libgnutls.m4
  8295. * m4/libxml2.m4
  8296. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8297. Fixed compile error with gcc-4.4(snapshot)
  8298. * src/File.cc
  8299. * src/FtpConnection.cc
  8300. * src/OptionHandlerImpl.h
  8301. * src/Util.cc
  8302. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8303. Removed assert()
  8304. * src/SocketBuffer.cc (SocketBuffer::send)
  8305. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8306. Changed the type of _numNewConnection to unsigned int.
  8307. * src/ActivePeerConnectionCommand.cc
  8308. * src/ActivePeerConnectionCommand.h
  8309. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8310. * Release 0.16.0
  8311. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8312. Updated doc
  8313. * README
  8314. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8315. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  8316. translations. Thanks to all translators.
  8317. * po/bg.po
  8318. * po/de.po
  8319. * po/fr.po
  8320. * po/ja.po
  8321. * po/zh_CN.po
  8322. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8323. Bump up version number to 0.16.0.
  8324. * configure.ac
  8325. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8326. Casted entry->maxConnections to int32_t for std::min<T> with T =
  8327. int32_t.
  8328. Changed the type of count to int32_t.
  8329. * src/Metalink2RequestGroup.cc
  8330. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8331. Added test for Time::elapsed(time_t).
  8332. * test/TimeTest.cc
  8333. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8334. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  8335. Util::difftv() should be used instead.
  8336. * src/TimeA2.cc
  8337. * src/TimeA2.h
  8338. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8339. Made socket for dht connections non-blocking
  8340. * src/DHTAbstractMessage.cc
  8341. * src/DHTAbstractMessage.h
  8342. * src/DHTConnection.h
  8343. * src/DHTConnectionImpl.cc
  8344. * src/DHTConnectionImpl.h
  8345. * src/DHTMessage.h
  8346. * src/DHTMessageDispatcherImpl.cc
  8347. * src/DHTMessageDispatcherImpl.h
  8348. * src/DHTUnknownMessage.cc
  8349. * src/DHTUnknownMessage.h
  8350. * src/SocketCore.cc
  8351. * src/SocketCore.h
  8352. * test/MockDHTMessage.h
  8353. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8354. Changed the type of offset to int.
  8355. * src/ParameterizedStringParser.cc
  8356. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8357. Made getAsInt() return int32_t
  8358. * src/Option.h
  8359. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8360. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  8361. build.
  8362. * configure.ac
  8363. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8364. Use sqlite3_open if sqlite3_open_v2 is not available.
  8365. * src/Sqlite3MozCookieParser.cc
  8366. * src/Sqlite3MozCookieParser.h
  8367. * m4/sqlite3.m4
  8368. * test/Sqlite3MozCookieParserTest.cc
  8369. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8370. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  8371. * src/BtPieceMessage.cc
  8372. * src/DHTPeerAnnounceStorage.cc
  8373. * src/DefaultPieceStorage.cc
  8374. * src/DownloadCommand.cc
  8375. * src/DownloadEngine.cc
  8376. * src/FtpConnection.cc
  8377. * src/PeerConnection.cc
  8378. * src/PeerMessageUtil.cc
  8379. * src/RequestGroup.cc
  8380. * src/RequestGroupMan.cc
  8381. * src/SimpleBtMessage.cc
  8382. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8383. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  8384. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  8385. * src/AbstractDiskWriter.cc
  8386. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8387. Don't set Request::supportsPersistentConnection() in HttpConnection
  8388. since this code is also used in AbstractProxyResponseCommand.
  8389. Moved those code to HttpResponse.
  8390. * src/HttpResponse.cc
  8391. * src/HttpResponse.h
  8392. * src/HttpConnection.cc
  8393. * src/HttpConnection.h
  8394. * src/HttpResponseCommand.cc
  8395. * test/HttpResponseTest.cc
  8396. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8397. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  8398. The configuration is minimum: no torrent, no metalink, so there may be
  8399. other compile error on their code.
  8400. * src/a2netcompat.h
  8401. * src/File.cc
  8402. * src/File.h
  8403. * src/SocketCore.cc
  8404. * src/SocketCore.h
  8405. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8406. Made a socket of incoming peer non-blocking.
  8407. * src/PeerListenCommand.cc
  8408. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8409. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  8410. whole message data is not sent in one send() call.
  8411. * src/BtPieceMessage.cc
  8412. * src/BtPieceMessage.h
  8413. * src/PeerConnection.cc
  8414. * src/PeerConnection.h
  8415. * src/SimpleBtMessage.cc
  8416. * src/SimpleBtMessage.h
  8417. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8418. Fixed the bug that aria2 downloads faster than max-download-limit when
  8419. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  8420. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  8421. , instead of sum of them.
  8422. * src/ActivePeerConnectionCommand.cc
  8423. * src/DefaultBtInteractive.cc
  8424. * src/DownloadCommand.cc
  8425. * src/PeerInteractionCommand.cc
  8426. * src/PeerReceiveHandshakeCommand.cc
  8427. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8428. Fixed the bug that HTTPS download fails.
  8429. * src/AbstractCommand.cc
  8430. * src/AbstractCommand.h
  8431. * src/DownloadCommand.cc
  8432. * src/FtpConnection.cc
  8433. * src/HttpConnection.cc
  8434. * src/HttpRequestCommand.cc
  8435. * src/HttpResponseCommand.cc
  8436. * src/HttpSkipResponseCommand.cc
  8437. * src/MSEHandshake.cc
  8438. * src/PeerConnection.cc
  8439. * src/SocketCore.cc
  8440. * src/SocketCore.h
  8441. Fixed the bug that aria2 doesn't download whole content body and cannot
  8442. reuse connection if chunked transfer encoding and gzip content encoding
  8443. are set.
  8444. * src/DownloadCommand.cc
  8445. * src/HttpSkipResponseCommand.cc
  8446. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8447. Updated man page.
  8448. * doc/aria2c.1.txt
  8449. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8450. When error occurred while aria2 was parsing an .aria2.conf file, print
  8451. the usage of the option that caused error.
  8452. * src/option_processing.cc
  8453. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8454. Fixed compile error on OptionHandlerException
  8455. * src/Makefile.am
  8456. * src/OptionHandlerException.cc
  8457. * src/OptionHandlerException.h
  8458. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8459. Moved message of the error to OptionHandlerException.h
  8460. * src/NameMatchOptionHandler.h
  8461. * src/OptionHandlerException.h
  8462. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8463. When error occurs while aria2 is parsing an command-line option, print
  8464. the usage of the option.
  8465. * src/Makefile.am
  8466. * src/NameMatchOptionHandler.h
  8467. * src/OptionHandlerException.h
  8468. * src/option_processing.cc
  8469. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8470. Reverted previous change.
  8471. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  8472. username is not in URI.
  8473. * src/HttpRequest.cc
  8474. * src/Request.cc
  8475. * test/HttpRequestTest.cc
  8476. * test/RequestTest.cc
  8477. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8478. Now colon is required for username and password in FTP URL, like:
  8479. ftp://username:password@host.
  8480. If colon is not there, aria2 don't parse it as a username. For example,
  8481. aria2 don't retrieve username from ftp://username@host.
  8482. This fix was made in order to login FTP server via non-transparent ftp
  8483. proxy.
  8484. * src/Request.cc
  8485. * test/RequestTest.cc
  8486. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8487. Use netrc for HTTP.
  8488. Now FTP user/password is sent in Authorization header when
  8489. --ftp-via-http-proxy=get is given.
  8490. * src/AuthConfigFactory.cc
  8491. * src/HttpRequest.cc
  8492. * src/HttpRequest.h
  8493. * src/NetrcAuthResolver.cc
  8494. * src/NetrcAuthResolver.h
  8495. * src/OptionHandlerFactory.cc
  8496. * src/option_processing.cc
  8497. * src/prefs.cc
  8498. * src/prefs.h
  8499. * test/AuthConfigFactoryTest.cc
  8500. * test/HttpRequestTest.cc
  8501. * test/NetrcAuthResolverTest.cc
  8502. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8503. Issue PWD command first and get working directory and use it as a prefix
  8504. for CWD command.
  8505. * src/DownloadEngine.cc
  8506. * src/DownloadEngine.h
  8507. * src/FtpConnection.cc
  8508. * src/FtpConnection.h
  8509. * src/FtpFinishDownloadCommand.cc
  8510. * src/FtpInitiateConnectionCommand.cc
  8511. * src/FtpNegotiationCommand.cc
  8512. * src/FtpNegotiationCommand.h
  8513. * test/FtpConnectionTest.cc
  8514. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8515. Removed default user/pass for FTP user/pass, since it should not have
  8516. precedence over netrc configuration by default.
  8517. * src/OptionHandlerFactory.cc
  8518. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8519. Added debug log for socket event.
  8520. * src/AbstractCommand.cc
  8521. * src/PeerAbstractCommand.cc
  8522. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8523. Log microseconds.
  8524. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  8525. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8526. Replaced HelpItem.cc with OptionHandler.cc.
  8527. * po/POTFILES.in
  8528. Updated po files with 'make update-po'
  8529. * po/aria2c.pot
  8530. * po/*.po
  8531. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8532. Removed possible values from the text.
  8533. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  8534. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8535. Removed unused preferences:
  8536. PREF_NO_PREALLOCATION
  8537. PREF_STDOUT_LOG
  8538. PREF_TRACKER_MAX_TRIES
  8539. PREF_DIRECT_DOWNLOAD_TIMEOUT
  8540. PREF_MIN_SEGMENT_SIZE
  8541. * src/option_processing.cc
  8542. * src/prefs.cc
  8543. * src/prefs.h
  8544. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8545. Integrated HelpItem into OptionParser to ease the workload for adding
  8546. new options. Removed default value from usage text.
  8547. * src/HelpItem.cc: Removed.
  8548. * src/HelpItem.h: Removed.
  8549. * src/HelpItemFactory.cc: Removed.
  8550. * src/HelpItemFactory.h: Removed.
  8551. * src/Makefile.am
  8552. * src/Makefile.in
  8553. * src/NameMatchOptionHandler.h
  8554. * src/OptionHandler.cc
  8555. * src/OptionHandler.h
  8556. * src/OptionHandlerFactory.cc
  8557. * src/OptionHandlerImpl.h
  8558. * src/OptionParser.cc
  8559. * src/OptionParser.h
  8560. * src/TagContainer.cc: Removed.
  8561. * src/TagContainer.h: Removed.
  8562. * src/TaggedItem.cc: Removed.
  8563. * src/TaggedItem.h: Removed.
  8564. * src/main.cc
  8565. * src/option_processing.cc
  8566. * src/usage_text.h
  8567. * src/version_usage.cc
  8568. * test/HelpItemTest.cc: Removed.
  8569. * test/Makefile.am
  8570. * test/Makefile.in
  8571. * test/OptionHandlerTest.cc
  8572. * test/OptionParserTest.cc
  8573. * test/TagContainerTest.cc: Removed.
  8574. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8575. Moved `TransferStat stat = ...' to inside the `if' clause.
  8576. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  8577. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8578. Fixed the bug that a block in a piece is requested when same block is
  8579. already requested to the same peer in end game mode.
  8580. * src/BtRequestFactory.h
  8581. * src/DefaultBtInteractive.cc
  8582. * src/DefaultBtRequestFactory.cc
  8583. * src/DefaultBtRequestFactory.h
  8584. * src/DefaultPieceStorage.cc
  8585. * src/DefaultPieceStorage.h
  8586. * src/PieceStorage.h
  8587. * src/UnknownLengthPieceStorage.cc
  8588. * src/UnknownLengthPieceStorage.h
  8589. * test/DefaultBtRequestFactoryTest.cc
  8590. * test/DefaultPieceStorageTest.cc
  8591. * test/MockBtRequestFactory.h
  8592. * test/MockPieceStorage.h
  8593. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8594. Removed _uploadLength and _downloadLength from PeerSessionResource
  8595. and use PeerStat::_sessionUploadLength and
  8596. PeerStat::_sessionDownloadLength.
  8597. * src/PeerSessionResource.cc
  8598. * src/PeerSessionResource.h
  8599. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8600. Fixed the bug that prefixLength of split bucket which doesn't include
  8601. local node ID is incremented.
  8602. * src/DHTBucket.cc
  8603. * src/DHTBucket.h
  8604. * test/DHTBucketTest.cc
  8605. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8606. Added cookies.sqlite to EXTRA_DIST
  8607. * test/Makefile.am
  8608. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8609. Added Turkish translation. Updated French, German, Russian and
  8610. Simplified Chinese translations. Thanks to all translators.
  8611. * po/LINGUAS
  8612. * po/de.po
  8613. * po/fr.po
  8614. * po/ru.po
  8615. * po/tr.po
  8616. * po/zh_CN.po
  8617. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8618. Added deliminating text to the beginning of the log so that one can find
  8619. where the log starts easily.
  8620. * src/main.cc
  8621. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8622. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  8623. to fix compile error when async DNS is not enabled by configuration.
  8624. * src/AbstractCommand.cc
  8625. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8626. If establishing conneciton to a server is failed, then mark error on
  8627. its ServerStat.
  8628. Added the cause of error to log when error event occurred.
  8629. Moved message string to message.h for translation.
  8630. * src/AbstractCommand.cc
  8631. * src/AbstractCommand.h
  8632. * src/FtpNegotiationCommand.cc
  8633. * src/HttpRequestCommand.cc
  8634. * src/PeerAbstractCommand.cc
  8635. * src/message.h
  8636. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8637. Added the function to get error message from socket.
  8638. * src/SocketCore.cc
  8639. * src/SocketCore.h
  8640. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8641. Added convenient method RequestGroupMan::getOrCreateServerStat()
  8642. * src/RequestGroupMan.cc
  8643. * src/RequestGroupMan.h
  8644. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8645. If error event is received in epoll, then abort download immediately.
  8646. * src/AbstractCommand.cc
  8647. * src/Command.cc
  8648. * src/Command.h
  8649. * src/DownloadEngine.cc
  8650. * src/PeerAbstractCommand.cc
  8651. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8652. Added usage message for --uri-selector, --server-stat-of,
  8653. --server-stat-in, --server-stat-timeout options.
  8654. * src/HelpItemFactory.cc
  8655. * src/usage_text.h
  8656. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8657. Added upper limit of FTP response buffer. The current implementation
  8658. uses 4096bytes as a limit.
  8659. * src/FtpConnection.cc
  8660. * src/FtpConnection.h
  8661. * test/FtpConnectionTest.cc
  8662. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8663. Use non-blocking socket for TCP communication to avoid possible
  8664. blocking due to buffer full.
  8665. * src/AbstractProxyRequestCommand.cc
  8666. * src/FtpConnection.cc
  8667. * src/FtpConnection.h
  8668. * src/FtpNegotiationCommand.cc
  8669. * src/FtpNegotiationCommand.h
  8670. * src/HttpConnection.cc
  8671. * src/HttpConnection.h
  8672. * src/HttpRequestCommand.cc
  8673. * src/InitiatorMSEHandshakeCommand.cc
  8674. * src/InitiatorMSEHandshakeCommand.h
  8675. * src/MSEHandshake.cc
  8676. * src/MSEHandshake.h
  8677. * src/Makefile.am
  8678. * src/PeerConnection.cc
  8679. * src/PeerConnection.h
  8680. * src/PeerInteractionCommand.cc
  8681. * src/PeerListenCommand.cc
  8682. * src/ReceiverMSEHandshakeCommand.cc
  8683. * src/ReceiverMSEHandshakeCommand.h
  8684. * src/SocketBuffer.cc
  8685. * src/SocketBuffer.h
  8686. * src/SocketCore.cc
  8687. * src/SocketCore.h
  8688. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8689. Call setStatusRealtime() in constructor.
  8690. * src/RealtimeCommand.cc
  8691. * src/RealtimeCommand.h
  8692. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8693. Call Download::setNoWait(true) to execute newly created command without
  8694. a pause.
  8695. * src/AbstractCommand.cc
  8696. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8697. Added --max-file-not-found=NUM option. If aria2 receives `file not
  8698. found' error from HTTP/FTP server NUM times without getting single
  8699. bytes of data, then force the download to fail.
  8700. Basically aria2 tris all URIs available. So if long list of URIs are
  8701. specified in Metalink, then aria2 will take a long time to fail
  8702. eventually if all URIs are outdated. This option eases this situation
  8703. to limit the number of servers to try.
  8704. * src/FtpNegotiationCommand.cc
  8705. * src/HelpItemFactory.cc
  8706. * src/HttpResponseCommand.cc
  8707. * src/OptionHandlerFactory.cc
  8708. * src/PeerStat.h
  8709. * src/RequestGroup.cc
  8710. * src/RequestGroup.h
  8711. * src/SegmentMan.cc
  8712. * src/SegmentMan.h
  8713. * src/option_processing.cc
  8714. * src/prefs.cc
  8715. * src/prefs.h
  8716. * src/usage_text.h
  8717. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8718. Fixed the bug that bulkReceiveResponse() reads all received data as a
  8719. response even if more than one response is in it.
  8720. * src/FtpConnection.cc
  8721. * src/FtpConnection.h
  8722. * test/FtpConnectionTest.cc
  8723. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8724. Merged from stable-0.15
  8725. * m4/libcares.m4
  8726. Use pkg-config
  8727. * m4/sqlite3.m4
  8728. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8729. Removed unnecessary if statement.
  8730. * src/DefaultPieceStorage.cc (initPieceStorage)
  8731. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8732. Added --connect-timeout option to specify connect timeout in seconds.
  8733. This option is in effect for HTTP/FTP/proxy server. The timeout for
  8734. connecting to BitTorrent peer is not controlled by this option.
  8735. * src/AbstractProxyRequestCommand.cc
  8736. * src/FtpNegotiationCommand.cc
  8737. * src/HelpItemFactory.cc
  8738. * src/HttpRequestCommand.cc
  8739. * src/OptionHandlerFactory.cc
  8740. * src/option_processing.cc
  8741. * src/prefs.cc
  8742. * src/prefs.h
  8743. * src/usage_text.h
  8744. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8745. Added help message for -R option.
  8746. * src/HelpItemFactory.cc
  8747. * src/usage_text.h
  8748. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8749. Added the message that the time is in local time zone.
  8750. * src/RequestGroup.cc
  8751. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8752. Implemented the ability to get timestamp from remote FTP server using
  8753. MDTM command described in RFC3659.
  8754. * src/FtpConnection.cc
  8755. * src/FtpConnection.h
  8756. * src/FtpNegotiationCommand.cc
  8757. * src/FtpNegotiationCommand.h
  8758. * test/FtpConnectionTest.cc
  8759. * test/Makefile.am
  8760. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8761. Implemented the ability to get timestamp from remote HTTP server and
  8762. apply it to local file. To enable this feature, --remote-time option
  8763. is added. No usage text has been written yet.
  8764. If several servers returns difference timestamp, then aria2 uses latest
  8765. one.
  8766. * src/CopyDiskAdaptor.cc
  8767. * src/CopyDiskAdaptor.h
  8768. * src/DirectDiskAdaptor.cc
  8769. * src/DirectDiskAdaptor.h
  8770. * src/DiskAdaptor.h
  8771. * src/File.cc
  8772. * src/File.h
  8773. * src/HttpHeader.cc
  8774. * src/HttpHeader.h
  8775. * src/HttpResponse.cc
  8776. * src/HttpResponse.h
  8777. * src/HttpResponseCommand.cc
  8778. * src/HttpResponseCommand.h
  8779. * src/MultiDiskAdaptor.cc
  8780. * src/MultiDiskAdaptor.h
  8781. * src/OptionHandlerFactory.cc
  8782. * src/RequestGroup.cc
  8783. * src/RequestGroup.h
  8784. * src/RequestGroupMan.cc
  8785. * src/option_processing.cc
  8786. * src/prefs.cc
  8787. * src/prefs.h
  8788. * test/CopyDiskAdaptorTest.cc
  8789. * test/FileTest.cc
  8790. * test/Makefile.am
  8791. * test/Makefile.in
  8792. * test/MultiDiskAdaptorTest.cc
  8793. * test/TestUtil.cc
  8794. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8795. Fixed the bug that DiskWriterEntry is not created when its
  8796. FileEntry.isRequested() is false and it doesn't share a piece with
  8797. other FileEntries that are requested. This bug causes segmentation fault
  8798. in the end.
  8799. * src/MultiDiskAdaptor.cc
  8800. * src/MultiDiskAdaptor.h
  8801. * src/MultiFileAllocationIterator.cc
  8802. * test/MultiDiskAdaptorTest.cc
  8803. * test/MultiFileAllocationIteratorTest.cc
  8804. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8805. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  8806. called if the number of file entries are greater than max open files.
  8807. * src/AbstractSingleDiskAdaptor.cc
  8808. * src/AbstractSingleDiskAdaptor.h
  8809. * src/DiskAdaptor.h
  8810. * src/MultiDiskAdaptor.cc
  8811. * src/MultiDiskAdaptor.h
  8812. * test/MultiDiskAdaptorTest.cc
  8813. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8814. Added a constuctor that receives struct timeval.
  8815. Added operator<.
  8816. * src/TimeA2.cc
  8817. * src/TimeA2.h
  8818. * test/TimeTest.cc
  8819. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8820. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  8821. * src/CookieParser.cc
  8822. * test/CookieParserTest.cc
  8823. * test/HttpResponseTest.cc
  8824. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8825. Implmented the functions to parse date.
  8826. * src/TimeA2.cc
  8827. * src/TimeA2.h
  8828. * test/TimeTest.cc
  8829. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8830. Added "Firefox3 Cookie" feature to FeatureConfig
  8831. * src/FeatureConfig.cc
  8832. * src/FeatureConfig.h
  8833. * test/FeatureConfigTest.cc
  8834. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8835. Bump up version number to 0.16.0b
  8836. * configure.ac
  8837. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8838. Use pkg-config if is is available.
  8839. * m4/openssl.m4
  8840. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8841. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  8842. * src/BtAnnounce.h
  8843. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8844. If an error occurred with a URI, remove identical URI from remaining
  8845. URI list because it is likely that same error occurred in the end and it
  8846. is waste of time.
  8847. * src/AbstractCommand.cc
  8848. * src/RequestGroup.cc
  8849. * src/RequestGroup.h
  8850. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8851. Removed wrong comment.
  8852. * src/DefaultPeerStorage.cc
  8853. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8854. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  8855. Added return value of getpid() to argument of srand() to achieve more
  8856. randomized value.
  8857. * src/SimpleRandomizer.cc
  8858. * src/SimpleRandomizer.h
  8859. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8860. Contact tracker frequently when the number of connections are 0 and
  8861. download is not finished yet.
  8862. * src/ActivePeerConnectionCommand.cc
  8863. * src/BtAnnounce.h
  8864. * src/DefaultBtAnnounce.cc
  8865. * src/DefaultBtAnnounce.h
  8866. * test/MockBtAnnounce.h
  8867. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8868. Moved threshold values to UTPexExtensionMessage.
  8869. * src/DefaultBtInteractive.cc
  8870. * src/Peer.cc
  8871. * src/Peer.h
  8872. * src/UTPexExtensionMessage.cc
  8873. * src/UTPexExtensionMessage.h
  8874. * test/UTPexExtensionMessageTest.cc
  8875. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8876. Added _incoming member to Peer class and made it true if the peer
  8877. initiated connection. Don't add those peer to UTPex message.
  8878. If extended handshake is received, assign _incoming to false.
  8879. * src/DefaultBtInteractive.cc
  8880. * src/HandshakeExtensionMessage.cc
  8881. * src/Peer.cc
  8882. * src/Peer.h
  8883. * src/PeerListenCommand.cc
  8884. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8885. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  8886. Encoding Decoder. Removed size threshold for turning off on the fly
  8887. inflation because resulting file may or may not be inflated depending
  8888. on the file size and I think it is not expected by users.
  8889. This change fixes segmentation fault when Metalink file contains gzipped
  8890. file and its filesize is provided.
  8891. * src/HttpResponseCommand.cc
  8892. * src/HttpResponseCommand.h
  8893. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8894. Made Cookie immutable.
  8895. * src/Cookie.cc
  8896. * src/Cookie.h
  8897. * src/CookieParser.cc
  8898. * src/CookieParser.h
  8899. * src/CookieStorage.cc
  8900. * test/CookieParserTest.cc
  8901. * test/CookieStorageTest.cc
  8902. * test/NsCookieParserTest.cc
  8903. * test/Sqlite3MozCookieParserTest.cc
  8904. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8905. Removed CookieBox, CookieBoxFactory.
  8906. * src/CookieBox.cc
  8907. * src/CookieBox.h
  8908. * src/CookieBoxFactory.cc
  8909. * src/CookieBoxFactory.h
  8910. * src/Makefile.am
  8911. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8912. Use CookieStorage class instead of CookieBox class.
  8913. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  8914. * src/AbstractProxyRequestCommand.cc
  8915. * src/CookieStorage.cc
  8916. * src/DownloadEngine.cc
  8917. * src/DownloadEngine.h
  8918. * src/HttpConnection.cc
  8919. * src/HttpConnection.h
  8920. * src/HttpRequest.cc
  8921. * src/HttpRequest.h
  8922. * src/HttpRequestCommand.cc
  8923. * src/HttpResponse.cc
  8924. * src/HttpResponseCommand.cc
  8925. * src/HttpSkipResponseCommand.cc
  8926. * src/Makefile.am
  8927. * src/MultiUrlRequestInfo.cc
  8928. * src/Request.cc
  8929. * src/Request.h
  8930. * src/main.cc
  8931. * test/AllTest.cc
  8932. * test/CookieStorageTest.cc
  8933. * test/CookieTest.cc
  8934. * test/HttpRequestTest.cc
  8935. * test/HttpResponseTest.cc
  8936. * test/Makefile.am
  8937. * test/NsCookieParserTest.cc
  8938. * test/Sqlite3MozCookieParserTest.cc
  8939. * test/nscookietest.txt
  8940. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8941. Updated
  8942. * test/Cookies.sqlite
  8943. * test/nscookietest.txt
  8944. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8945. Added tests for CookieStorage::load()
  8946. * test/CookieStorageTest.cc
  8947. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8948. Added CookieStorage class which is based on RFC2109 and manages cookies
  8949. more strictly than CookieBox and CookieBoxFactory class.
  8950. * src/CookieStorage.cc
  8951. * src/CookieStorage.h
  8952. * src/Cookie.cc
  8953. * src/Cookie.h
  8954. * test/CookieStorageTest.cc
  8955. * test/CookieTest.cc
  8956. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8957. Fixed the bug that commands are created more than the number of pieces.
  8958. * src/RequestGroup.cc
  8959. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8960. Fixed infinite loop bug in FTP when SIZE command failed.
  8961. * src/FtpNegotiationCommand.cc
  8962. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8963. Removed DirectDiskAdaptorTest.h
  8964. * test/Makefile.am
  8965. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8966. Fixed chunk checksum validation cannot detect trailing garbage data.
  8967. BUG#2074141
  8968. * src/AbstractSingleDiskAdaptor.cc
  8969. * src/AbstractSingleDiskAdaptor.h
  8970. * src/CheckIntegrityEntry.cc
  8971. * src/CheckIntegrityEntry.h
  8972. * src/DiskAdaptor.h
  8973. * src/MultiDiskAdaptor.cc
  8974. * src/MultiDiskAdaptor.h
  8975. * src/RequestGroup.cc
  8976. * test/DirectDiskAdaptorTest.cc
  8977. * test/MultiDiskAdaptorTest.cc
  8978. * test/TestUtil.cc
  8979. * test/TestUtil.h
  8980. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8981. Bump up version number of dht.dat file to 3. In version 3 format, time
  8982. is stored in 64bit, network byte order.
  8983. New build can load old format(version 2) but it saves the file in new
  8984. format. It means once you used new build, your dht.dat becomes
  8985. incompatible with older build.
  8986. * src/DHTRoutingTableDeserializer.cc
  8987. * src/DHTRoutingTableSerializer.cc
  8988. * test/DHTRoutingTableSerializerTest.cc
  8989. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8990. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  8991. * test/Makefile.am
  8992. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8993. Bump up version number of .aria2 control file to 0001.
  8994. New aria2 can still load version 0000 file but it saves the file in
  8995. version 0001 format. It means that new aria2 can resume download
  8996. started by old aria2 but the opposite is not true.
  8997. * src/DefaultBtProgressInfoFile.cc
  8998. * src/DefaultBtProgressInfoFile.h
  8999. * test/DefaultBtProgressInfoFileTest.cc
  9000. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9001. Added ntoh64 and hton64 as inline functions.
  9002. * src/Util.cc
  9003. * test/UtilTest.cc
  9004. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9005. Added sqlite3 depenency and Firefox3 cookie support.
  9006. * README
  9007. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9008. State that firefox3 cookie is supported explicitly in the usage.
  9009. * src/usage_text.h
  9010. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9011. Externalized message.
  9012. * src/RequestGroupMan.cc
  9013. * src/message.h
  9014. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9015. Save temporary file first and rename to the destination on success.
  9016. Added test cases.
  9017. * src/RequestGroupMan.cc
  9018. * test/RequestGroupManTest.cc
  9019. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9020. Fixed the bug that the number of connected peer is exceeding the limit
  9021. (55 by default) in seeding mode.
  9022. Multiplied 0.8 to _maxUploadSpeedLimit.
  9023. * src/ActivePeerConnectionCommand.cc
  9024. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9025. Clear table item.
  9026. * src/Dictionary.cc
  9027. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9028. Fixed error handling of lseek.
  9029. * src/AbstractDiskWriter.cc
  9030. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9031. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  9032. style cookie file.
  9033. * src/usage_text.h
  9034. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9035. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  9036. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  9037. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  9038. * src/Util.cc
  9039. * src/Util.h
  9040. * src/CookieParser.cc
  9041. * test/UtilTest.cc
  9042. * test/CookieParserTest.cc
  9043. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9044. Separate the implementation to load old mozilla format of cookie to
  9045. NsCookieParser class.
  9046. * src/CookieBoxFactory.cc
  9047. * src/CookieBoxFactory.h
  9048. * src/NsCookieParser.cc
  9049. * src/NsCookieParser.h
  9050. * test/NsCookieParserTest.cc
  9051. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9052. Made parse() const
  9053. * src/Sqlite3MozCookieParser.cc
  9054. * src/Sqlite3MozCookieParser.h
  9055. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9056. Added firefox3 cookie support based on the patch submitted by
  9057. tizianomueller.
  9058. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  9059. this functionality.
  9060. * configure.ac
  9061. * m4/sqlite3.m4
  9062. * src/CookieBoxFactory.cc
  9063. * src/CookieBoxFactory.h
  9064. * src/Makefile.am
  9065. * src/Makefile.in
  9066. * src/Sqlite3MozCookieParser.cc
  9067. * src/Sqlite3MozCookieParser.h
  9068. * src/main.cc
  9069. * test/CookieBoxFactoryTest.cc
  9070. * test/Makefile.am
  9071. * test/Makefile.in
  9072. * test/Sqlite3MozCookieParserTest.cc
  9073. * test/badcookies.sqlite
  9074. * test/cookies.sqlite
  9075. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9076. Added Danish and Greek translations.
  9077. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  9078. Great thanks to all translators.
  9079. * po/LINGUAS
  9080. * po/el.po
  9081. * po/da.po
  9082. * po/es.po
  9083. * po/ca.po
  9084. * po/nn.po
  9085. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9086. Fixed man page: --follow-bittorrent should be --follow-torrent
  9087. * doc/aria2c.1.txt
  9088. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9089. Fixed: numCommand is less than the value specified in -C option.
  9090. * src/RequestGroup.cc
  9091. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9092. Fixed occasional assertion failure in PieceSegment.
  9093. Calling PieceStorage::getMissingPiece(size_t) was missing after
  9094. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  9095. creation of duplicate segments and one of the segment was finished then
  9096. assertion failure was caused.
  9097. * src/SegmentMan.cc
  9098. * test/SegmentManTest.cc
  9099. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9100. Added options to load/save the server's performance/status to a file
  9101. and the timeout to drop their data.
  9102. --server-stat-of=FILE specifies the file to which performance data
  9103. is saved.
  9104. --server-stat-if=FILE specifies the file to read previously saved
  9105. by --server-stat-of option. Might be used with --uri-selector=feedback.
  9106. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  9107. TIMEOUT is specified in seconds and the default value is 24hours.
  9108. * src/MultiUrlRequestInfo.cc
  9109. * src/OptionHandlerFactory.cc
  9110. * src/RequestGroupMan.cc
  9111. * src/RequestGroupMan.h
  9112. * src/ServerStatMan.cc
  9113. * src/ServerStatMan.h
  9114. * src/option_processing.cc
  9115. * src/prefs.cc
  9116. * src/prefs.h
  9117. * test/ServerStatManTest.cc
  9118. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9119. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  9120. * src/ServerStatMan.cc
  9121. * src/ServerStatMan.h
  9122. * test/ServerStatManTest.cc
  9123. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9124. Implemented ServerStatMan::load(...) function and its test case.
  9125. * src/ServerStat.cc
  9126. * src/ServerStat.h
  9127. * src/ServerStatMan.cc
  9128. * test/ServerStatManTest.cc
  9129. * test/ServerStatTest.cc
  9130. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9131. Use time_t instead of int32_t. Use int64_t where milli second is
  9132. expected.
  9133. * src/TimeA2.cc
  9134. * src/TimeA2.h
  9135. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9136. Implemented ServerStatMan::save(...) function and its test case.
  9137. * src/ServerStat.cc
  9138. * src/ServerStat.h
  9139. * src/ServerStatMan.cc
  9140. * src/ServerStatMan.h
  9141. * test/ServerStatManTest.cc
  9142. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9143. Now aria2 uses name attribute in Metalink as local filename in
  9144. BitTorrent downloads. BUG#2033999
  9145. * src/BtContext.h
  9146. * src/BtDependency.cc
  9147. * src/DefaultBtContext.cc
  9148. * src/DefaultBtContext.h
  9149. * src/SingleFileDownloadContext.cc
  9150. * src/SingleFileDownloadContext.h
  9151. * test/BtDependencyTest.cc
  9152. * test/DefaultBtContextTest.cc
  9153. * test/MockBtContext.h
  9154. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9155. Added AC_C_BIGENDIAN
  9156. * src/configure.ac
  9157. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9158. Limited numCommand less than or equal to the number of piece.
  9159. * src/RequestGroup.cc
  9160. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9161. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  9162. directive.
  9163. * test/DefaultPieceStorageTest.cc
  9164. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9165. Fixed memory leak in test code
  9166. * test/AnnounceListTest.cc
  9167. * test/DefaultPeerListProcessorTest.cc
  9168. * test/DefaultPeerStorageTest.cc
  9169. * test/MetaFileUtilTest.cc
  9170. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9171. Fixed wrong argument passing to BitfieldMan::isBitSet()
  9172. * src/DefaultPieceStorage.cc
  9173. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9174. Initialized _directIOAllowed
  9175. * src/MultiDiskAdaptor.cc
  9176. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9177. Fixed memory leak
  9178. * src/GZipDecoder.cc
  9179. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9180. Fixed memory leak
  9181. * src/MetalinkParserStateMachine.cc
  9182. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9183. Fixed memory leak
  9184. * src/Dictionary.cc
  9185. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9186. Fixed memory leak
  9187. * src/IteratableChunkChecksumValidator.h
  9188. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9189. Fixed unmatched malloc/free.
  9190. * src/IteratableChunkChecksumValidator.cc
  9191. * src/IteratableChecksumValidator.cc
  9192. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9193. Removed max chunk size check. This change fixes BUG#2040169
  9194. * src/ChunkedDecoder.cc
  9195. * src/ChunkedDecoder.h
  9196. * test/ChunkedDecoderTest.cc
  9197. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9198. Implemented download speed based URI selection algorithm.
  9199. Introduced new option --uri-selector.
  9200. If --uri-selector=feedback is given, aria2 uses download speed observed
  9201. in the previous downloads and chooses fastest server in the URI list.
  9202. Currently at most 10 URIs are considered to introduce randomeness for
  9203. finding better servers. The speed is average download speed in the
  9204. downloads.
  9205. On the other hand, if --uri-selector=inorder is given, which is default,
  9206. URI is tried in order in URI list.
  9207. The usage text for the new option has not been written yet.
  9208. * src/AbstractCommand.cc
  9209. * src/DownloadCommand.cc
  9210. * src/DownloadEngine.cc
  9211. * src/DownloadEngineFactory.cc
  9212. * src/InOrderURISelector.cc
  9213. * src/InOrderURISelector.h
  9214. * src/OptionHandlerFactory.cc
  9215. * src/PeerStat.h
  9216. * src/RequestGroup.cc
  9217. * src/RequestGroup.h
  9218. * src/RequestGroupMan.cc
  9219. * src/RequestGroupMan.h
  9220. * src/SegmentMan.cc
  9221. * src/SegmentMan.h
  9222. * src/ServerStat.cc
  9223. * src/ServerStat.h
  9224. * src/ServerStatMan.cc
  9225. * src/ServerStatMan.h
  9226. * src/ServerStatURISelector.cc
  9227. * src/ServerStatURISelector.h
  9228. * src/URISelector.h
  9229. * src/option_processing.cc
  9230. * src/prefs.cc
  9231. * src/prefs.h
  9232. * test/InOrderURISelectorTest.cc
  9233. * test/RequestGroupManTest.cc
  9234. * test/ServerStatManTest.cc
  9235. * test/ServerStatURISelectorTest.cc
  9236. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9237. * Release 0.15.1+2
  9238. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9239. Bump up version number to 0.15.1+2
  9240. * configure.ac
  9241. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9242. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  9243. * m4/aria2_arg.m4
  9244. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9245. * Release 0.15.1+1
  9246. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9247. Bump up version number to 0.15.1+1
  9248. * configure.ac
  9249. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9250. Fixed the bug that causes segmentaion fault when resuming download
  9251. using metalink without size tag. Reproducible only using HTTP URI.
  9252. * src/HttpResponseCommand.cc
  9253. * src/FtpNegotiationCommand.cc
  9254. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9255. * Release 0.15.1
  9256. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9257. Updated Bulgarian and French translations, thanks to all translators.
  9258. * po/bg.po
  9259. * po/fr.po
  9260. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9261. Bump up version number to 0.15.1
  9262. * configure.ac
  9263. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9264. Avoid repeated call of gettimeofday() when calculating speed.
  9265. * src/SpeedCalc.cc
  9266. * src/SpeedCalc.h
  9267. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9268. Removed writable check when socket's send buffer is full in BitTorrent
  9269. downloads to lower CPU usage.
  9270. * src/PeerInteractionCommand.cc
  9271. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9272. Fixed broken gzip inflation.
  9273. Turn off segmented downloading if gzip content is smaller than or equal
  9274. to 1MiB and inflate the data on the fly, because HTTP response header
  9275. doesn't contain the length of inflated file we can't determin where
  9276. the chunk of data should be written.
  9277. On the other hand, if gzip content is larger than 1MB, then turn off
  9278. on the fly inflation, because some servers returns "content-type: gzip"
  9279. for *.tgz, *.gz files.
  9280. * src/DownloadCommand.cc
  9281. * src/HttpResponseCommand.cc
  9282. * src/HttpResponseCommand.h
  9283. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9284. Applied tizianomueller's patch to fix compile error.
  9285. * test/BitfieldManTest.cc
  9286. * test/BtRequestMessageTest.cc
  9287. * test/DefaultBtContextTest.cc
  9288. * test/DefaultDiskWriterTest.cc
  9289. * test/DefaultPieceStorageTest.cc
  9290. * test/HttpHeaderProcessorTest.cc
  9291. * test/HttpResponseTest.cc
  9292. * test/Metalink2RequestGroupTest.cc
  9293. * test/MetalinkParserControllerTest.cc
  9294. * test/MetalinkProcessorTest.cc
  9295. * test/PeerSessionResourceTest.cc
  9296. * test/UtilTest.cc
  9297. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9298. * Release 0.15.0
  9299. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9300. Reordered src files in POTFILES.in so that usage text appears first.
  9301. * po/POTFILES.in
  9302. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9303. Bump up version number to 0.15.0
  9304. * configure.ac
  9305. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9306. Added Bulgarian translation.
  9307. Updated Catalan, Spanish, French and Japanese translations.
  9308. Thanks to all translators.
  9309. * po/LINGUAS
  9310. * po/bg.po
  9311. * po/ca.po
  9312. * po/es.po
  9313. * po/fr.po
  9314. * po/ja.po
  9315. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9316. Updated feature list. Added libz for dependency section.
  9317. Added a description about unit testing using CppUnit.
  9318. * README
  9319. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9320. Added a test for libz. Quoted where it is necessary.
  9321. * build_test.sh
  9322. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9323. Added GZip to `Enabled Features' list.
  9324. * src/FeatureConfig.cc
  9325. * src/FeatureConfig.h
  9326. * test/FeatureConfigTest.cc
  9327. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9328. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  9329. the transfer has not yet started.
  9330. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  9331. * src/SegmentMan.cc
  9332. * src/SegmentMan.h
  9333. * test/SegmentManTest.cc
  9334. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9335. Cache last calculated average download/upload speed.
  9336. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  9337. cached value.
  9338. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  9339. * src/PeerStat.h
  9340. * src/SpeedCalc.cc
  9341. * src/SpeedCalc.h
  9342. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9343. Call parseUrl directly.
  9344. * src/Request.cc (resetUrl)
  9345. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9346. Supported absolute/relative path in Location header field.
  9347. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  9348. * src/HttpHeader.cc
  9349. * src/HttpHeader.h
  9350. * src/HttpResponse.cc
  9351. * src/HttpSkipResponseCommand.cc
  9352. * src/Request.cc
  9353. * test/HttpHeaderTest.cc
  9354. * test/HttpResponseTest.cc
  9355. * test/RequestTest.cc
  9356. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9357. Changed help text for --load-cookie option.
  9358. * doc/aria2c.1.txt
  9359. * src/usage_text.h
  9360. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9361. Regenerated test/Makefile.in to remove stale ChangeLog.
  9362. * test/Makefile.in
  9363. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9364. Updated po files.
  9365. * po/aria2c.pot
  9366. * po/*.po
  9367. * po/*.gmo
  9368. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9369. Bump up version number to 0.15.0b
  9370. * configure.ac
  9371. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9372. Externalize messages.
  9373. * src/RequestGroupMan.cc
  9374. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  9375. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9376. Use File::exists() instead of File::isFile() to allow non-regular file
  9377. such as block special files.
  9378. * src/AbstractDiskWriter.cc
  9379. * src/MultiDiskWriter.cc
  9380. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9381. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  9382. * src/gai_strerror.h
  9383. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9384. Fixed compile error. Thanks gknauf for the patch.
  9385. * src/asctime_r.c
  9386. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9387. Included asctime_r.h from a2time.h.
  9388. * src/a2time.h
  9389. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9390. Added a message "aria2 doesn't verify signature" to log message when
  9391. signature file is saved.
  9392. * src/RequestGroupMan.cc
  9393. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9394. Added the ability to save signature when download is completed if
  9395. signature is available. The filename of signature file is the path to
  9396. download file followed by ".sig". If it already exists, then signature
  9397. will not be saved.
  9398. * src/RequestGroupMan.cc
  9399. * src/Signature.cc
  9400. * test/SignatureTest.cc
  9401. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9402. Updated the descriptions for --bt-seed-unverified.
  9403. * doc/aria2c.1
  9404. * doc/aria2c.1.html
  9405. * doc/aria2c.1.txt
  9406. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9407. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  9408. that this is not going to verify files using piece hashes.
  9409. * src/HelpItemFactory.cc
  9410. * src/OptionHandlerFactory.cc
  9411. * src/RequestGroup.cc
  9412. * src/option_processing.cc
  9413. * src/prefs.cc
  9414. * src/prefs.h
  9415. * src/usage_text.h
  9416. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9417. Added the ability to retrieve signature from Metalink file.
  9418. A retrieved signature is stored in Signature class and it is held by
  9419. DownloadContext class. Note that aria2 doesn't verify signature.
  9420. * src/DownloadContext.cc
  9421. * src/DownloadContext.h
  9422. * src/Makefile.am
  9423. * src/Makefile.in
  9424. * src/Metalink2RequestGroup.cc
  9425. * src/MetalinkEntry.cc
  9426. * src/MetalinkEntry.h
  9427. * src/MetalinkParserController.cc
  9428. * src/MetalinkParserController.h
  9429. * src/MetalinkParserStateMachine.cc
  9430. * src/MetalinkParserStateMachine.h
  9431. * src/Signature.cc
  9432. * src/Signature.h
  9433. * src/SignatureMetalinkParserState.cc
  9434. * src/SignatureMetalinkParserState.h
  9435. * src/VerificationMetalinkParserState.cc
  9436. * src/VerificationMetalinkParserState.h
  9437. * test/Metalink2RequestGroupTest.cc
  9438. * test/MetalinkParserControllerTest.cc
  9439. * test/MetalinkProcessorTest.cc
  9440. * test/test.xml
  9441. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9442. Close DiskAdaptor after renaming file.
  9443. * src/RequestGroup.cc
  9444. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9445. Corrected indentation
  9446. * src/DefaultBtProgressInfoFile.cc
  9447. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9448. Moved the calls of std::ios::exceptions() inside of try-catch block
  9449. because if an error occurred in constructor of std::fstream, then
  9450. exception is thrown immediately when std::ios::exceptions() is called
  9451. which results unhandled exception and aria2c aborts.
  9452. * src/DefaultBtProgressInfoFile.cc
  9453. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9454. Added the test for the previous change in DefaultBtContext.cc
  9455. * test/DefaultBtContextTest.cc
  9456. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9457. Fixed the bug that causes infinite loop when the number of pieces are
  9458. fewer than allowed fast set size which is 10 by default.
  9459. * src/DefaultBtContext.cc
  9460. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9461. Updated the descriptions for -j, -s. Added --bt-seed.
  9462. * doc/aria2c.1
  9463. * doc/aria2c.1.html
  9464. * doc/aria2c.1.txt
  9465. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9466. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  9467. aria2 seeds previously downloaded files without validating piece hashs.
  9468. * src/HelpItemFactory.cc
  9469. * src/OptionHandlerFactory.cc
  9470. * src/RequestGroup.cc
  9471. * src/option_processing.cc
  9472. * src/prefs.cc
  9473. * src/prefs.h
  9474. * src/usage_text.h
  9475. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9476. Updated DESCRIPTION of man page.
  9477. * doc/aria2c.1
  9478. * doc/aria2c.1.html
  9479. * doc/aria2c.1.txt
  9480. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9481. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  9482. Don't define `struct addrinfo' when __sun is defined.
  9483. * src/getaddrinfo.h
  9484. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9485. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  9486. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  9487. second argument is of type `struct _stati64'. Otherwise it is defined as
  9488. `struct stat'.
  9489. * src/AbstractDiskWriter.cc
  9490. * src/File.cc
  9491. * src/File.h
  9492. * src/a2io.h
  9493. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9494. Fixed the compile error in hurd-i386
  9495. See the original bug report:
  9496. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  9497. * src/a2io.h
  9498. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9499. Code cleanup.
  9500. * src/PeerAbstractCommand.cc
  9501. * src/PeerAbstractCommand.h
  9502. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9503. Removed TransferEncoding.
  9504. * src/DownloadCommand.cc
  9505. * src/DownloadCommand.h
  9506. * src/HttpResponseCommand.cc
  9507. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9508. Updated po files.
  9509. * po/aria2c.pot
  9510. * po/*.po
  9511. * po/*.gmo
  9512. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9513. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  9514. * src/A2STR.cc
  9515. * src/A2STR.h
  9516. * src/ChunkedDecoder.cc
  9517. * src/ChunkedDecoder.h
  9518. * src/ChunkedEncoding.cc: Removed
  9519. * src/ChunkedEncoding.h: Removed
  9520. * src/DownloadCommand.cc
  9521. * src/DownloadCommand.h
  9522. * src/HttpDownloadCommand.cc
  9523. * src/HttpResponse.cc
  9524. * src/HttpResponse.h
  9525. * src/HttpResponseCommand.cc
  9526. * src/HttpSkipResponseCommand.cc
  9527. * src/HttpSkipResponseCommand.h
  9528. * src/Makefile.am
  9529. * src/TransferEncoding.h: Removed
  9530. * test/ChunkedDecoderTest.cc
  9531. * test/ChunkedEncodingTest.cc: Removed
  9532. * test/HttpResponseTest.cc
  9533. * test/Makefile.am
  9534. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9535. Use append instead of insert.
  9536. * src/GZipDecoder.cc
  9537. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9538. Updated doc
  9539. * src/Decoder.h
  9540. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9541. Updated usage text for -s option.
  9542. * src/usage_text.h
  9543. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9544. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  9545. * src/Request.cc
  9546. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9547. Cleaned up configure.ac.
  9548. * configure.ac
  9549. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9550. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  9551. AC_ARG_ENABLE.
  9552. * configure.ac
  9553. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9554. Added gzip, deflate decoding support in HTTP using libz. If compiled
  9555. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  9556. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  9557. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  9558. fly and writes decoded data to a local disk.
  9559. * README
  9560. * README.html
  9561. * configure.ac
  9562. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  9563. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  9564. * m4/libz.m4
  9565. * src/Decoder.h
  9566. * src/DownloadCommand.cc
  9567. * src/DownloadCommand.h
  9568. * src/Exception.h
  9569. * src/GZipDecoder.cc
  9570. * src/GZipDecoder.h
  9571. * src/HttpHeader.cc
  9572. * src/HttpHeader.h
  9573. * src/HttpRequest.cc
  9574. * src/HttpRequest.h
  9575. * src/HttpResponse.cc
  9576. * src/HttpResponse.h
  9577. * src/HttpResponseCommand.cc
  9578. * src/Makefile.am
  9579. * test/GZipDecoderTest.cc
  9580. * test/HttpRequestTest.cc
  9581. * test/HttpResponseTest.cc
  9582. * test/Makefile.am
  9583. * test/Makefile.in
  9584. * test/gzip_decode_test.gz
  9585. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9586. Clarified usage of -j option.
  9587. * src/usage_text.h
  9588. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9589. Disabled getting size from the response of RETR.
  9590. If SIZE command failed, then disable resuming and segmented downloading.
  9591. * src/FtpConnection.cc
  9592. * src/FtpConnection.h
  9593. * src/FtpNegotiationCommand.cc
  9594. * src/FtpNegotiationCommand.h
  9595. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9596. Use digits to find first byte of file size, which makes the intention
  9597. of the code clearer.
  9598. * src/FtpConnection.cc
  9599. Don't call validateTotalLength() when size is 0.
  9600. * src/FtpNegotiationCommand.cc
  9601. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9602. Updated po files.
  9603. * po/aria2c.pot
  9604. * po/*.gmo
  9605. * po/*.po
  9606. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9607. Clarified usage text for --split option.
  9608. * src/usage_text.h
  9609. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9610. Bump up version number to 0.15.0dev. "dev" means "development"
  9611. version, which means I started the development of the next release!
  9612. * src/configure.ac
  9613. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9614. If FTP server returns negative response with REST raw command and
  9615. requested range is not 0, throw exception. If requested range is 0,
  9616. continue download a file from 0 byte.
  9617. * src/FtpNegotiationCommand.cc
  9618. * src/FtpNegotiationCommand.h
  9619. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9620. Supported FTP server which don't recognize SIZE raw command.
  9621. If SIZE raw command is failed, aria2 will try to get file size
  9622. from the response of RETR raw command. If both attempts are failed,
  9623. then resuming and segmented downloading are disabled.
  9624. * src/FtpConnection.cc
  9625. * src/FtpConnection.h
  9626. * src/FtpNegotiationCommand.cc
  9627. * src/FtpNegotiationCommand.h
  9628. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9629. * Release 0.14.0+1
  9630. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9631. Bump up version number to 0.14.0+1
  9632. * src/configure.ac
  9633. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9634. Fixed the code that refers static member variable from non-static
  9635. context.
  9636. * src/DefaultPeerStorage.cc
  9637. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9638. * Release 0.14.0
  9639. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9640. Added build test script
  9641. * build_test.sh
  9642. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9643. Updated ja.po
  9644. * src/ja.po
  9645. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9646. Bump up version number to 0.14.0
  9647. * src/configure.ac
  9648. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9649. Updated ja.po and fr.po. Great thanks for french translators and
  9650. Sebastien WILLEMIJNS.
  9651. * po/fr.po
  9652. * po/ja.po
  9653. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9654. Added configure option to enable/disable epoll support.
  9655. * configure.ac
  9656. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9657. Updated man page.
  9658. * doc/aria2c.1.txt
  9659. * doc/aria2c.1
  9660. * doc/aria2c.1.html
  9661. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9662. Added missing default value '5' to the usage of --split option.
  9663. * src/HelpItemFactory.cc
  9664. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9665. Filled up pieces based on the number of missing blocks, rather than
  9666. simplay the number of piece * block length.
  9667. * src/BtRequestFactory.h
  9668. * src/DefaultBtInteractive.cc
  9669. * src/DefaultBtInteractive.h
  9670. * src/DefaultBtRequestFactory.cc
  9671. * src/DefaultBtRequestFactory.h
  9672. * src/Piece.cc
  9673. * src/Piece.h
  9674. * test/BitfieldManTest.cc
  9675. * test/DefaultBtRequestFactoryTest.cc
  9676. * test/MockBtRequestFactory.h
  9677. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9678. Made _epEvents a member variable.
  9679. * src/DownloadEngine.cc
  9680. * src/DownloadEngine.h
  9681. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9682. Cancel download if http redirect is bounded more than 20 times.
  9683. * src/AbstractCommand.cc
  9684. * src/HttpSkipResponseCommand.cc
  9685. * src/Request.cc
  9686. * src/Request.h
  9687. * test/RequestTest.cc
  9688. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9689. Fixed unhandled exception(removed keyword `new').
  9690. * src/SocketCore.cc (initEPOLL)
  9691. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9692. Removed visit(const MetaEntry*)
  9693. * src/MetaEntryVisitor.h:
  9694. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  9695. and made them virtual.
  9696. * src/BencodeVisitor.h
  9697. * src/BencodeVisitor.cc
  9698. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9699. Updated po files.
  9700. * po/aria2c.pot
  9701. * po/*.po
  9702. * po/*.gmo
  9703. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9704. Moved the call setWriteCheckSocket inside the previous clause to reduce
  9705. the number of socket to watch out.
  9706. * src/PeerInteractionCommand.cc
  9707. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9708. When there is not enough space in disk when writing a chunk of data,
  9709. aria2 now prints the message to the console to warn user and aborts
  9710. its download. Not all downloads are canceled because some downloads
  9711. may use another disk or partition. BUG#1640332
  9712. * src/AbstractDiskWriter.cc
  9713. * src/PeerAbstractCommand.cc
  9714. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  9715. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  9716. setHaltRequested(true) to cancel download.
  9717. * src/PeerInteractionCommand.h
  9718. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9719. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  9720. socket from int to sock_t as sockets are unsigned in Windows.
  9721. For AsyncNameResolver, DownloadEngine, I did additional modification
  9722. for the portion of the code changed according to epoll support.
  9723. I defined sock_t in a2netcompat.h to use sock_t without including
  9724. SocketCore.h.
  9725. * src/AsyncNameResolver.cc
  9726. * src/AsyncNameResolver.h
  9727. * src/DownloadEngine.cc
  9728. * src/DownloadEngine.h
  9729. * src/SocketCore.cc
  9730. * src/SocketCore.h
  9731. * src/a2netcompat.h
  9732. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9733. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  9734. changes in the patch were applied.
  9735. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  9736. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  9737. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  9738. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9739. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  9740. a2io.h and common.h were modified.
  9741. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  9742. MinGW.
  9743. * src/common.h: Changed off_t to 64 bit in MinGW.
  9744. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9745. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  9746. only a2netcompat.h is modified.
  9747. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  9748. directives.
  9749. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9750. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  9751. only gai_strerror.h is modified.
  9752. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  9753. winsock errors in MinGW.
  9754. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9755. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  9756. follow sources are applied.
  9757. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  9758. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  9759. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  9760. I included locale.h from Platform.cc.
  9761. * src/main.cc: Moved common setup/teardown code to Platform class.
  9762. * test/AllTest.cc: Use Platform class.
  9763. Set locale to C in AllTest.cc to prevent the messages to be localized.
  9764. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9765. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  9766. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  9767. * test/HttpRequestTest.cc: Casted to off_t where it should.
  9768. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9769. Applied Ross's aria2-0.13.2+1-mingw.patch and
  9770. aria2-0.13.2+1-mingw-2.patch.
  9771. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  9772. systems which don't have termious.h. I moved the directive inside of
  9773. if(isTTY) { ... clause so that line is wiped out without termious.h.
  9774. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  9775. anyway.
  9776. * src/asctime_r.h
  9777. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  9778. I added 2nd argument to the prototype declaration.
  9779. * src/StringFormat.cc: Get rid of vasprintf.
  9780. * src/getaddrinfo.h: Fixed constants.
  9781. * configure.ac: Added the check for asctime_r function.
  9782. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  9783. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9784. Added writable test for Socket when the sending message is in progress.
  9785. Usually the sending message is piece message. Without wriable check,
  9786. upload latency is dropped to more than 1sec.
  9787. * src/PeerInteractionCommand.cc
  9788. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9789. Create only requested files and files which shares a piece with
  9790. requested file in multi-torrent downloads. Directory structures are
  9791. also created in the same rule.
  9792. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  9793. DiskWriterEntry as in the previous implementation.
  9794. * src/MultiDiskWriter.cc
  9795. * src/MultiFileAllocationIterator.cc
  9796. * src/MultiFileAllocationIterator.h
  9797. * test/MultiFileAllocationIteratorTest.cc
  9798. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9799. Commented out -lprofiler
  9800. * src/Makefile.am
  9801. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9802. Bump up version number to 0.14.0b.
  9803. * src/configure.ac
  9804. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9805. Actively establish connection to peers in seeding, when peer cache
  9806. is not full and max upload speed limit is not reached.
  9807. * src/ActivePeerConnectionCommand.cc
  9808. * src/ActivePeerConnectionCommand.h
  9809. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9810. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  9811. to make room more fleshy, recently found peers.
  9812. Peer::_badConditionStartTime is not used anymore. Consider to remove
  9813. it.
  9814. * src/DefaultPeerStorage.cc
  9815. * test/DefaultPeerStorageTest.cc
  9816. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9817. Returns cached data only when the previous receiveHandshake() is called
  9818. with peek = true.
  9819. * src/PeerConnection.cc (receiveHandshake)
  9820. * src/PeerConnection.h (receiveHandshake)
  9821. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9822. Changed default value of -s option from 1 to 5.
  9823. Also max value of -s option is changed from 5 to 16.
  9824. * src/HelpItemFactory.cc
  9825. * src/OptionHandlerFactory.cc
  9826. * src/option_processing.cc
  9827. * src/usage_text.h
  9828. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9829. Changed -s options behavior. Now it means the number of connections
  9830. made simultaneously in each http/ftp download.
  9831. If 1 URL is specified, the behavior is the same with old implementation.
  9832. If -s N is given and more than N URLs are specified, first N URLs are
  9833. used and remaining URLs are used for backup. If less than N URLs are
  9834. specified, some of URLs are used more than once so that totally N
  9835. connections are made simultaneously.
  9836. * src/main.cc
  9837. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9838. Included missing iosfwd or ostream header.
  9839. * src/RequestGroupMan.cc
  9840. * src/TaggedItem.cc
  9841. * src/TaggedItem.h
  9842. * src/Util.cc
  9843. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9844. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  9845. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  9846. * src/HttpConnection.cc: Included missing sstream.
  9847. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9848. Added --bt-max-open-files option.
  9849. * src/DefaultPieceStorage.cc
  9850. * src/HelpItemFactory.cc
  9851. * src/MultiDiskAdaptor.cc
  9852. * src/MultiDiskAdaptor.h
  9853. * src/OptionHandlerFactory.cc
  9854. * src/option_processing.cc
  9855. * src/prefs.cc
  9856. * src/prefs.h
  9857. * src/usage_text.h
  9858. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9859. Fixed the bug that aria2 aborts when a path to a directory is given
  9860. in command-line.
  9861. * src/ProtocolDetector.cc
  9862. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9863. Limited the number files opened in each BitTorrent download. The default
  9864. value is 100. The option to change this value will be added.
  9865. * src/MultiDiskAdaptor.cc
  9866. * src/MultiDiskAdaptor.h
  9867. * src/MultiFileAllocationIterator.cc
  9868. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9869. Fixed the bug that HTTP downloads don't start with old libraries.
  9870. * src/HttpHeaderProcessor.cc
  9871. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9872. Use empty() instead of size() > 0.
  9873. * src/HttpConnection.cc
  9874. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9875. Drop connection if the incoming peer ID is the same with localhost's
  9876. one. The previous implementation drops connection when incoming peer's
  9877. IP address is the same with localhost's one.
  9878. * src/PeerListenCommand.cc
  9879. * src/DefaultBtInteractive.cc
  9880. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9881. Returns cached data without checking whether socket is readable
  9882. if the cache is available.
  9883. * src/PeerConnection.cc (receiveHandshake)
  9884. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9885. Included stdint.h
  9886. * src/common.h
  9887. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9888. Removed duplicate HAVE_GETTIMEOFDAY
  9889. * src/Makefile.am
  9890. * src/Makefile.in
  9891. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9892. Use interval as a minInterval when minInterval is not supplied.
  9893. * src/DefaultBtAnnounce.cc
  9894. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9895. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  9896. attempt is failed, then 2nd attempt get kicked out more quickly.
  9897. And it is now static const member of DefaultBtAnnounce.
  9898. * src/DefaultBtAnnounce.h
  9899. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9900. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  9901. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  9902. * src/ActivePeerConnectionCommand.cc
  9903. * src/BtConstants.h
  9904. * src/BtRuntime.h
  9905. * src/DHTGetPeersCommand.cc
  9906. * src/DefaultBtAnnounce.cc
  9907. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  9908. BtRuntime::MAX_PEERS.
  9909. * src/DefaultPeerStorage.h
  9910. * src/InitiatorMSEHandshakeCommand.cc
  9911. * src/PeerInitiateConnectionCommand.cc
  9912. * src/PeerInteractionCommand.cc
  9913. * src/PeerReceiveHandshakeCommand.cc
  9914. * src/TrackerWatcherCommand.cc
  9915. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9916. Always Connect to _numNewConnection
  9917. * src/ActivePeerConnectionCommand.cc
  9918. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9919. Made `begin' unsigned int.
  9920. * src/GrowSegment.h
  9921. * src/Piece.cc
  9922. * src/Piece.h
  9923. * src/PiecedSegment.cc
  9924. * src/PiecedSegment.h
  9925. * src/Segment.h
  9926. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9927. Calculate piece hash when data is arrived if the data is arrived in
  9928. order. This removes additional read operation for hash calculation.
  9929. If the data is arrived in out of order, the hash is calucated when the
  9930. piece is completed. This is the same behavior as the old implementation.
  9931. * src/BtPieceMessage.cc
  9932. * src/DefaultBtProgressInfoFile.cc
  9933. * src/DefaultPieceStorage.cc
  9934. * src/DownloadCommand.cc
  9935. * src/DownloadCommand.h
  9936. * src/DownloadEngine.cc
  9937. * src/GrowSegment.cc
  9938. * src/GrowSegment.h
  9939. * src/Piece.cc
  9940. * src/Piece.h
  9941. * src/PiecedSegment.cc
  9942. * src/PiecedSegment.h
  9943. * src/Segment.h
  9944. * test/PieceTest.cc
  9945. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9946. Try to keep the ordering of outgoing piece message.
  9947. * src/DefaultBtMessageDispatcher.cc
  9948. (DefaultBtMessageDispatcher::sendMessages)
  9949. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9950. Fixed busy loop when error/hup epoll events occur.
  9951. * src/AbstractCommand.cc
  9952. * src/PeerAbstractCommand.cc
  9953. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9954. Added --bt-request-peer-speed-limit option, which was a constant
  9955. SLOW_SPEED_THRESHOLD.
  9956. * src/ActivePeerConnectionCommand.cc
  9957. * src/ActivePeerConnectionCommand.h
  9958. * src/BtConstants.h
  9959. * src/HelpItemFactory.cc
  9960. * src/OptionHandlerFactory.cc
  9961. * src/PeerReceiveHandshakeCommand.cc
  9962. * src/option_processing.cc
  9963. * src/prefs.cc
  9964. * src/prefs.h
  9965. * src/usage_text.h
  9966. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9967. Removed repeated call of getTopDirPath(). Instead, call it once and
  9968. cache the result.
  9969. * src/MultiDiskAdaptor.cc
  9970. * src/MultiDiskAdaptor.h
  9971. (mkdir, openFile, initAndOpenFile, openExistingFile)
  9972. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9973. Fixed compile error on debian etch.
  9974. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  9975. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  9976. it is undefined.
  9977. * src/Util.cc (ULLONG_MAX)
  9978. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9979. Added epoll support. Use epoll if it is available. If not, use select.
  9980. When async dns is enabled in compile time, epoll support is enabled
  9981. only when aria2 is built with c-ares. This condition statement is
  9982. defined in a2io.h.
  9983. Currently aria2 supports both c-ares and ares, but ares is maintained
  9984. for quite a while and debian already has c-ares package, ares support
  9985. will be dropped in the future version.
  9986. * configure.ac
  9987. * src/AbstractCommand.cc
  9988. * src/AsyncNameResolver.cc
  9989. * src/AsyncNameResolver.h
  9990. * src/Command.cc
  9991. * src/Command.h
  9992. * src/DownloadEngine.cc
  9993. * src/DownloadEngine.h
  9994. * src/PeerAbstractCommand.cc
  9995. * src/SocketCore.cc
  9996. * src/SocketCore.h
  9997. * src/a2io.h
  9998. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9999. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  10000. directive.
  10001. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10002. Do not do write operation to /dev/null file.
  10003. * src/LogFactory.cc
  10004. * src/SimpleLogger.cc
  10005. Replaced vasprintf with vsnprintf
  10006. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  10007. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10008. * src/BtRequestMessage.cc
  10009. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  10010. for segmentation fault caused by previous commit.
  10011. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10012. Reduced the usage of gettimeofday().
  10013. * src/DefaultBtMessageDispatcher.cc
  10014. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  10015. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  10016. * src/RequestSlot.cc
  10017. * src/RequestSlot.h
  10018. (RequestSlot::isTimeout)
  10019. Made RequestSlot have a reference to Piece object to avoid find
  10020. Piece repeatedly.
  10021. * src/DefaultBtMessageDispatcher.cc
  10022. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  10023. * src/RequestSlot.cc
  10024. * src/RequestSlot.h
  10025. (RequestSlot::getPiece)
  10026. * test/DefaultBtMessageDispatcherTest.cc
  10027. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10028. * src/TimeA2.cc
  10029. * src/TimeA2.h
  10030. (Time::difference): New function.
  10031. (Time::elapsed): Done optimization.
  10032. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10033. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  10034. directive.
  10035. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10036. * src/option_processing.cc: Added missing `defined' keyword to #if
  10037. directive.
  10038. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10039. Bump up version number to 0.13.2+1
  10040. * src/configure.ac
  10041. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10042. Refactored broken outstanding piece handling.
  10043. * src/DefaultPieceStorage.cc
  10044. * src/DefaultPieceStorage.h
  10045. * src/Piece.cc
  10046. * src/Piece.h
  10047. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10048. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  10049. name collision of static variable and predefined macro.
  10050. * src/BtContext.cc
  10051. * src/BtContext.h
  10052. * src/CookieBoxFactory.cc
  10053. * src/CookieBoxFactory.h
  10054. * src/CookieParser.cc
  10055. * src/CookieParser.h
  10056. * src/DefaultBtContext.cc
  10057. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10058. * src/RequestGroup.cc
  10059. (RequestGroup::createInitialCommand): Use empty() instead of size().
  10060. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10061. * Release 0.13.2
  10062. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10063. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  10064. * po/fr.po
  10065. * po/ja.po
  10066. * po/aria2c.pot
  10067. * po/*.po
  10068. * po/*.gmo
  10069. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10070. Bump up version number to 0.13.2
  10071. * src/configure.ac
  10072. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10073. Refactord.
  10074. * src/RequestGroupMan.cc
  10075. (removeStoppedGroup)
  10076. (fillRequestGroupFromReserver)
  10077. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10078. Fixed compile error on Ubuntu.
  10079. * src/BtPieceMessage.cc
  10080. * src/MessageDigestHelper.cc
  10081. * src/Util.cc
  10082. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10083. Fixed compile error when configured with --disable-bittorrent
  10084. * test/DownloadHandlerFactoryTest.cc
  10085. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10086. Done make update-po
  10087. * po/aria2c.pot
  10088. * po/*.po
  10089. * po/*.gmo
  10090. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10091. Bump up version number to 0.13.2rc.
  10092. * src/configure.ac
  10093. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10094. Made option name bold. Updated SYNOPSIS to make it more readable.
  10095. * doc/aria2c.1.txt
  10096. * doc/aria2c.1
  10097. * doc/aria2c.1.html
  10098. * src/version_usage.cc
  10099. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10100. Refactored. Use std::string instead of size and char*.
  10101. * Data.cc
  10102. * Data.h
  10103. * test/Data.cc
  10104. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10105. Added trimSelf(). Rewritten trim() to use trimSelf().
  10106. * Util.cc
  10107. * Util.h
  10108. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10109. * src/ChunkChecksum.h (getChecksum): Return const reference.
  10110. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10111. Fixed compile error when configured with --disable-metalink.
  10112. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  10113. * test/FeatureConfigTest.cc
  10114. * test/DownloadHandlerFactoryTest.cc
  10115. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10116. Fixed compile error when configured with --without-gnutls
  10117. --without-openssl
  10118. * src/main.cc
  10119. * test/DefaultBtProgressInfoFileTest.cc
  10120. * test/SegmentManTest.cc
  10121. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10122. Fixed compile error with OpenSSL.
  10123. * src/IteratableChunkChecksumValidator.cc
  10124. * src/LibsslDHKeyExchange.h
  10125. * src/MessageDigestHelper.cc
  10126. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10127. Revert the default value of --max-concurrent-downloads to 5.
  10128. Revert the default value of --metalink-servers to 5.
  10129. Man pages was also updated.
  10130. * src/option_processing.cc
  10131. * doc/aria2c.1.txt
  10132. * doc/aria2c.1.html
  10133. * doc/aria2c.1
  10134. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10135. Returns const reference:
  10136. DownloadContext::getPieceHash, DownloadContext::getName,
  10137. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  10138. BtContext::getInfoHashAsString,
  10139. * src/BtContext.h
  10140. * src/DefaultBtContext.cc
  10141. * src/DefaultBtContext.h
  10142. * src/DownloadContext.h
  10143. * src/SingleFileDownloadContext.h
  10144. * test/MockBtContext.h
  10145. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10146. * src/RequestGroup.h (getDir): Removed.
  10147. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10148. Returns const reference. The internal urlencode function was optimized
  10149. a little bit.
  10150. * src/Request.cc
  10151. * src/Request.h
  10152. * src/HttpRequest.cc
  10153. * src/HttpRequest.h
  10154. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10155. Defined option name and possible values as std::string to reduce
  10156. temporary string object creation in runtime.
  10157. * src/HelpItemFactory.cc
  10158. * src/LogFactory.cc
  10159. * src/Option.cc
  10160. * src/OptionHandlerFactory.cc
  10161. * src/option_processing.cc
  10162. * src/prefs.cc
  10163. * src/prefs.h
  10164. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10165. Return const reference.
  10166. * src/DownloadHandlerConstants.cc
  10167. * src/DownloadHandlerConstants.h
  10168. (getMetalinkExtensions)
  10169. (getMetalinkContentTypes)
  10170. (getBtExtensions)
  10171. (getBtContentTypes)
  10172. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10173. * src/HttpHeader.cc (get): Rewritten.
  10174. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10175. Make HttpHeader::getFirst(...) return const reference.
  10176. * src/HttpHeader.cc
  10177. * src/HttpHeader.h
  10178. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10179. Use Option::getAsBool(...) instead of Option::get(...) and compare
  10180. it with V_TRUE.
  10181. * src/DefaultPieceStorage.cc
  10182. * src/DownloadCommand.cc
  10183. * src/FtpNegotiationCommand.cc
  10184. * src/HttpRequest.cc
  10185. * src/InitiateConnectionCommand.cc
  10186. * src/RequestGroup.cc
  10187. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10188. Made Option::get(...) return const reference of std::string.
  10189. * src/Option.cc
  10190. * src/Option.h
  10191. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10192. Replaced std:copy with insert.
  10193. * src/DefaultBtMessageDispatcher.cc
  10194. * src/DefaultPieceStorage.cc
  10195. * src/DownloadEngineFactory.cc
  10196. * src/RequestGroup.cc
  10197. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10198. Included SocketCore.h to fix compiler warning.
  10199. * src/InitiateConnectionCommand.cc
  10200. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10201. Put piece selection strategy algorithm to RarestPieceSelector class,
  10202. Added a switch to choose whether randomized selection so that unit
  10203. tests emit same results in, possibly, win32.
  10204. * src/DefaultPieceStorage.cc
  10205. * src/DefaultPieceStorage.h
  10206. * src/RarestPieceSelector.cc
  10207. * src/RarestPieceSelector.h
  10208. * test/DefaultPieceStorageTest.cc
  10209. * test/RarestPieceSelectorTest.cc
  10210. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10211. Don't pool connection if HTTP proxy is enabled.
  10212. * src/FtpFinishDownloadCommand.cc
  10213. * src/FtpNegotiationCommand.cc
  10214. * src/HttpSkipResponseCommand.cc
  10215. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10216. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  10217. * src/AbstractCommand.cc
  10218. * src/AbstractCommand.h
  10219. * src/ActivePeerConnectionCommand.cc
  10220. * src/FtpInitiateConnectionCommand.cc
  10221. * src/HttpInitiateConnectionCommand.cc
  10222. * src/InitiateConnectionCommandFactory.cc
  10223. * src/PeerAbstractCommand.cc
  10224. * src/PeerAbstractCommand.h
  10225. * src/PeerInitiateConnectionCommand.cc
  10226. * src/TrackerWatcherCommand.cc
  10227. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10228. Sort RequestSlot in ascending order and manipulate them using
  10229. lower_bound.
  10230. * src/DefaultBtMessageDispatcher.cc
  10231. * src/DefaultBtMessageDispatcher.h
  10232. (getMessageQueue): Added const qualifier.
  10233. (getRequestSlots): Added const qualifier.
  10234. (sendMessages): Use empty() instead of size().
  10235. (doCancelSendingPieceAction): Use HandleEvent object.
  10236. (doAbortOutstandingRequestAction): Rewritten.
  10237. (doChokedAction): Rewritten.
  10238. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  10239. (isOutstandingRequest): Rewritten.
  10240. (getOutstandingRequest): Rewritten.
  10241. (removeOutstandingRequest): Rewritten.
  10242. (addOutstandingRequest): Rewritten.
  10243. * src/RequestSlot.cc
  10244. * src/RequestSlot.h
  10245. (operator=): Rewritten.
  10246. (operator!=): New function.
  10247. (operator<): New function.
  10248. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10249. * src/DefaultBtRequestFactory.cc
  10250. (doChokedAction): Rewritten.
  10251. (removeCompletedPiece): Rewritten.
  10252. (removeTargetPiece): Rewritten.
  10253. (createRequestMessages): Added the debug log.
  10254. (createRequestMessagesOnEndGame: Added the debug log.
  10255. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10256. Added the debug log message.
  10257. * src/BtPieceMessage.cc (doReceivedAction)
  10258. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10259. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  10260. used lower_bound to process them rather than linear search.
  10261. * src/DHTPeerAnnounceStorage.cc
  10262. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10263. Call subtractPieceStats from ~PeerInteractionCommand only when the
  10264. peer has at least one completed piece.
  10265. * src/Peer.cc
  10266. * src/Peer.h
  10267. * src/PeerInteractionCommand.cc
  10268. * src/PeerSessionResource.cc
  10269. * src/PeerSessionResource.h
  10270. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10271. Removed unnecessary sorting
  10272. * src/DefaultPieceStorage (DefaultPieceStorage)
  10273. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10274. Rewritten the portion of the code that mangaes allowed fast indexes.
  10275. * src/PeerSessionResource.cc
  10276. * src/PeerSessionResource.h
  10277. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10278. Removed the invalid string including '\r' from ru.po and
  10279. did make update-po.
  10280. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10281. Added --log-level and --summary-interval to man page.
  10282. * doc/aria2c.1.txt
  10283. * doc/aria2c.1.html
  10284. * doc/aria2c.1
  10285. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10286. Added --log-level option to specify log level. Log messages under
  10287. the specified level are not output. Default value is `debug'.
  10288. * src/HelpItemFactory.cc
  10289. * src/LogFactory.cc
  10290. * src/LogFactory.h
  10291. * src/Logger.h
  10292. * src/OptionHandlerFactory.cc
  10293. * src/SimpleLogger.cc
  10294. * src/SimpleLogger.h
  10295. * src/main.cc
  10296. * src/option_processing.cc
  10297. * src/prefs.h
  10298. * src/usage_text.h
  10299. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10300. Print download progress summary of all parallel downloads in specified
  10301. interval, default 60 secs. While aria2 could download several files
  10302. in parallel (see -j option), it displayed just first download progress,
  10303. and the other downloads are hidden from the users. This new feature
  10304. prints all downloads currently in-progress to the console so that you
  10305. can check the status of all downloads. The interval can be adjusted
  10306. by --summary-interval option.
  10307. The progress readout is now cut so that all fits in the one line of
  10308. console.
  10309. * src/ConsoleStatCalc.cc
  10310. * src/ConsoleStatCalc.h
  10311. * src/HelpItemFactory.cc
  10312. * src/OptionHandlerFactory.cc
  10313. * src/RequestGroupMan.cc
  10314. * src/RequestGroupMan.h
  10315. * src/main.cc
  10316. * src/option_processing.cc
  10317. * src/prefs.h
  10318. * src/usage_text.h
  10319. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10320. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  10321. * src/DownloadEngine.cc (DownloadEngine)
  10322. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10323. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  10324. defined.
  10325. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  10326. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10327. Use erase+lower_bound+insert instead of sort.
  10328. * src/DefaultPieceStorage.cc (addPieceStats)
  10329. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10330. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  10331. * src/A2STR.cc
  10332. * src/A2STR.h
  10333. * src/OptionParser.cc (parse)
  10334. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10335. Defined fake filename `[tracker.announce]' as static const std::string.
  10336. * src/TrackerWatcherCommand.cc (createRequestGroup)
  10337. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10338. Defined default filename `index.html' as static const std::string
  10339. * src/SingleFileDownloadContext.cc
  10340. * src/SingleFileDownloadContext.h
  10341. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10342. Defined "[MEMORY]" as static const std::string.
  10343. * src/MemoryBufferPreDownloadHandler.cc (execute)
  10344. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10345. Defined control file's version number as static const std::string.
  10346. * src/DefaultBtProgressInfoFile.cc
  10347. * src/DefaultBtProgressInfoFile.h
  10348. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10349. Use Request::METHOD_GET
  10350. * src/RequestGroup.cc (createNextCommandWithAdj)
  10351. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10352. Defined "OK", "ERR", "INPR" as static const std::string
  10353. * src/RequestGroupMan.cc (showDownloadResults)
  10354. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10355. Defined default client used in extended handshake as static const
  10356. std::string
  10357. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  10358. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10359. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  10360. * src/HttpConnection.cc (eraseConfidentialInfo)
  10361. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10362. Defined default ftp user and password as static const std::string
  10363. * src/AuthConfigFactory.cc
  10364. * src/AuthConfigFactory.h
  10365. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10366. Defined strings used in netrc as static const std::string
  10367. * src/Netrc.cc
  10368. * src/Netrc.h
  10369. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10370. Defined HTTP status as static const std::string
  10371. * src/AbstractProxyResponseCommand.cc
  10372. * src/HttpHeader.cc
  10373. * src/HttpHeader.h
  10374. * src/HttpResponse.cc
  10375. * src/HttpResponseCommand.cc
  10376. * src/HttpSkipResponseCommand.cc
  10377. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10378. Defined "\r\n", "A", "I" as static const std::string
  10379. * src/A2STR.cc
  10380. * src/A2STR.h
  10381. * src/FtpConnection.cc
  10382. * src/FtpConnection.h
  10383. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10384. Added COLON_C(".") and used it in Request::parseUrl()
  10385. * src/A2STR.cc
  10386. * src/A2STR.h
  10387. * src/Request.cc (parseUrl)
  10388. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10389. Changed the type of padName from `const std::string&' to `const char*'.
  10390. * src/MSEHandshake.cc (verifyPadLength)
  10391. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10392. Defined "sha1" as static const std::string.
  10393. * src/MetalinkParserController.cc
  10394. * src/MetalinkParserController.h
  10395. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10396. Defined message digest algorithm name as static const std::string
  10397. * src/DHTTokenTracker.cc
  10398. * src/DHTUtil.cc
  10399. * src/DefaultBtContext.cc
  10400. * src/MSEHandshake.cc
  10401. * src/MessageDigestHelper.cc
  10402. * src/Peer.cc
  10403. * src/messageDigest.cc
  10404. * src/messageDigest.h
  10405. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10406. Made string literals used in SAX parser static const std::string.
  10407. * src/FileMetalinkParserState.cc
  10408. * src/FileMetalinkParserState.h
  10409. * src/FilesMetalinkParserState.cc
  10410. * src/FilesMetalinkParserState.h
  10411. * src/InitialMetalinkParserState.cc
  10412. * src/InitialMetalinkParserState.h
  10413. * src/MetalinkMetalinkParserState.cc
  10414. * src/MetalinkMetalinkParserState.h
  10415. * src/PiecesMetalinkParserState.cc
  10416. * src/PiecesMetalinkParserState.h
  10417. * src/ResourcesMetalinkParserState.cc
  10418. * src/ResourcesMetalinkParserState.h
  10419. * src/VerificationMetalinkParserState.cc
  10420. * src/VerificationMetalinkParserState.h
  10421. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10422. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  10423. * src/A2STR.cc
  10424. * src/A2STR.h
  10425. * src/File.cc
  10426. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10427. Defined static const std::string IP("ip"), PORT("port") and use them
  10428. instead of string literals.
  10429. * src/DefaultPeerListProcessor.cc
  10430. * src/DefaultPeerListProcessor.h
  10431. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10432. Made string literals for torrent file processing static const
  10433. std::string.
  10434. * src/BtContext.cc
  10435. * src/BtContext.h
  10436. * src/DefaultBtContext.cc
  10437. * src/DefaultBtContext.h
  10438. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10439. Made string literal for tracker response static const std::string
  10440. * src/BtAnnounce.cc
  10441. * src/BtAnnounce.h
  10442. * src/DefaultBtAnnounce.cc
  10443. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10444. Use DHTMessage::T instead of "t".
  10445. * src/DHTMessageTracker.cc (messageArrived)
  10446. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10447. Made keyName static const. Made trimmed charset static const
  10448. std::string.
  10449. * src/Util.cc (getContentDispositionFilename)
  10450. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10451. Made USER_AGENT const. Made "/" static const std::string.
  10452. * src/A2STR.cc
  10453. * src/A2STR.h
  10454. * src/HttpRequest.cc
  10455. * src/HttpRequest.h
  10456. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10457. Made string listeral to static const std::string:
  10458. "Content-Range", "Content-Length"
  10459. * src/HttpHeader.cc
  10460. * src/HttpHeader.h
  10461. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10462. Made string listeral to static const std::string.
  10463. * src/HttpConnection.cc
  10464. * src/HttpHeader.cc
  10465. * src/HttpHeader.h
  10466. * src/HttpResponse.cc
  10467. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10468. Made string listeral to static const std::string.
  10469. * src/A2STR.cc
  10470. * src/A2STR.h
  10471. * src/SimpleLogger.cc
  10472. * src/SimpleLogger.h
  10473. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10474. Made string literal to static const std::string.
  10475. Rewritten CookieParser::setField.
  10476. * src/A2STR.cc
  10477. * src/A2STR.h
  10478. * src/CookieBoxFactory.cc
  10479. * src/CookieBoxFactory.h
  10480. * src/CookieParser.cc
  10481. * src/CookieParser.h
  10482. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10483. Made string literal to static const std::string
  10484. * src/DHTAbstractMessage.cc
  10485. * src/DHTAnnouncePeerMessage.cc
  10486. * src/DHTAnnouncePeerMessage.h
  10487. * src/DHTAnnouncePeerReplyMessage.cc
  10488. * src/DHTAnnouncePeerReplyMessage.h
  10489. * src/DHTFindNodeMessage.cc
  10490. * src/DHTFindNodeMessage.h
  10491. * src/DHTFindNodeReplyMessage.cc
  10492. * src/DHTFindNodeReplyMessage.h
  10493. * src/DHTGetPeersMessage.cc
  10494. * src/DHTGetPeersMessage.h
  10495. * src/DHTGetPeersReplyMessage.cc
  10496. * src/DHTGetPeersReplyMessage.h
  10497. * src/DHTMessage.cc
  10498. * src/DHTMessage.h
  10499. * src/DHTMessageFactoryImpl.cc
  10500. * src/DHTMessageReceiver.cc
  10501. * src/DHTPingMessage.cc
  10502. * src/DHTPingMessage.h
  10503. * src/DHTPingReplyMessage.cc
  10504. * src/DHTPingReplyMessage.h
  10505. * src/DHTQueryMessage.cc
  10506. * src/DHTQueryMessage.h
  10507. * src/DHTResponseMessage.cc
  10508. * src/DHTResponseMessage.h
  10509. * src/DHTUnknownMessage.cc
  10510. * src/DHTUnknownMessage.h
  10511. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10512. Made string literal to static const std::string
  10513. * src/BtChokeMessage.cc (toString)
  10514. * src/BtHaveAllMessage.cc (toString)
  10515. * src/BtHaveNoneMessage.cc (toString)
  10516. * src/BtInterestedMessage.cc (toString)
  10517. * src/BtNotInterestedMessage.cc (toString)
  10518. * src/BtUnchokeMessage.cc (toString)
  10519. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10520. Replaced "" with static const variable A2STR::NIL.
  10521. Replaced string comparison against "" with std::string::empty().
  10522. Added PROTO_* to Request class and use them as a protocol string
  10523. constant.
  10524. Made "started", "stopped", "completed" static const variable in
  10525. AnnounceList class.
  10526. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10527. Updated translations. Great thanks to translators.
  10528. * po/ca.po
  10529. * po/de.po
  10530. * po/fr.po
  10531. * po/it.po
  10532. * po/ja.po
  10533. * po/ru.po
  10534. * po/zh_CN.po
  10535. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10536. Updated man page; categorized options and fixed typo.
  10537. * doc/aria2c.1.txt
  10538. * doc/aria2c.1.html
  10539. * doc/aria2c.1
  10540. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10541. Removed const ref
  10542. * src/MetalinkEntry.cc (AddProtocolPreference)
  10543. * src/RequestGroup.cc (FindServerHostByHostname)
  10544. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10545. Rewritten Accept-Features handling.
  10546. * src/HttpRequestCommand.cc (createHttpRequest)
  10547. * src/a2functional.h
  10548. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10549. Changed method signature:
  10550. DHTAbstractNodeLookupTask::toEntries
  10551. * src/DHTAbstractNodeLookupTask.cc
  10552. * src/DHTAbstractNodeLookupTask.h
  10553. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10554. Changed method signature:
  10555. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  10556. * src/BtContext.h
  10557. * src/DefaultBtContext.cc
  10558. * src/DefaultBtContext.h
  10559. * src/DefaultBtInteractive.cc
  10560. * test/DefaultBtContextTest.cc
  10561. * test/MockBtContext.h
  10562. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10563. Changed method signature:
  10564. MultiFileAllocationIterator::makeDiskWriterEntries
  10565. * src/MultiFileAllocationIterator.cc
  10566. * src/MultiFileAllocationIterator.h
  10567. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10568. Changed method sinature:
  10569. MetalinkEntry::toFileEntry,
  10570. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  10571. Metalinker::queryEntry
  10572. * src/Metalink2RequestGroup.cc
  10573. * src/MetalinkEntry.cc
  10574. * src/MetalinkEntry.h
  10575. * src/MetalinkHelper.cc
  10576. * src/MetalinkHelper.h
  10577. * src/Metalinker.cc
  10578. * src/Metalinker.h
  10579. * src/main.cc
  10580. * test/MetalinkHelperTest.cc
  10581. * test/MetalinkerTest.cc
  10582. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10583. Changed method sinature:
  10584. RequestGroup::getURIs
  10585. * src/RequestGroup.cc
  10586. * src/RequestGroup.h
  10587. * test/Metalink2RequestGroupTest.cc
  10588. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10589. Changed method signature:
  10590. PeerListProcessor::extractPeer
  10591. * src/CompactPeerListProcessor.cc
  10592. * src/CompactPeerListProcessor.h
  10593. * src/DefaultBtAnnounce.cc
  10594. * src/DefaultPeerListProcessor.cc
  10595. * src/DefaultPeerListProcessor.h
  10596. * src/DelegatingPeerListProcessor.cc
  10597. * src/DelegatingPeerListProcessor.h
  10598. * src/PeerListProcessor.h
  10599. * src/UTPexExtensionMessage.cc
  10600. * test/DefaultPeerListProcessorTest.cc
  10601. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10602. Changed method signature:
  10603. BtRequestFactory::createRequestMessages,
  10604. BtRequestFactory::createRequestMessagesOnEndGame
  10605. * src/BtRequestFactory.h
  10606. * src/DefaultBtInteractive.cc
  10607. * src/DefaultBtRequestFactory.cc
  10608. * src/DefaultBtRequestFactory.h
  10609. * test/DefaultBtRequestFactoryTest.cc
  10610. * test/MockBtRequestFactory.h
  10611. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10612. Changed method signature:
  10613. PieceStorage::getInFlightPieces
  10614. * src/DefaultBtProgressInfoFile.cc
  10615. * src/DefaultPieceStorage.cc
  10616. * src/DefaultPieceStorage.h
  10617. * src/PieceStorage.h
  10618. * src/UnknownLengthPieceStorage.cc
  10619. * src/UnknownLengthPieceStorage.h
  10620. * test/DefaultBtProgressInfoFileTest.cc
  10621. * test/MockPieceStorage.h
  10622. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10623. Changed method signature:
  10624. PostDownloadHandler::getNextRequestGroups
  10625. Metalink2RequestGroup::generate
  10626. RequestGroup::postDownloadProcessing
  10627. * src/BtPostDownloadHandler.cc
  10628. * src/BtPostDownloadHandler.h
  10629. * src/Metalink2RequestGroup.cc
  10630. * src/Metalink2RequestGroup.h
  10631. * src/MetalinkPostDownloadHandler.cc
  10632. * src/MetalinkPostDownloadHandler.h
  10633. * src/PostDownloadHandler.h
  10634. * src/RequestGroup.cc
  10635. * src/RequestGroup.h
  10636. * src/RequestGroupMan.cc
  10637. * src/main.cc
  10638. * test/BtPostDownloadHandlerTest.cc
  10639. * test/Metalink2RequestGroupTest.cc
  10640. * test/MetalinkPostDownloadHandlerTest.cc
  10641. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10642. Rewritten AccRequestGroup
  10643. * src/main.cc
  10644. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10645. Rewritten.
  10646. * src/TaggedItem.cc (toTagString)
  10647. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10648. Rewritten Accept-Features handling.
  10649. * src/HttpRequestCommand.cc (createHttpRequest)
  10650. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10651. Rewritten accept types handling.
  10652. * HttpRequest.cc (createRequest)
  10653. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10654. Rewritten
  10655. * src/FeatureConfig.cc (featureSummary)
  10656. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10657. Changed method signature:
  10658. PeerStorage::getActivePeers
  10659. * src/DHTPeerAnnounceEntry.cc
  10660. * src/DefaultPeerStorage.cc
  10661. * src/DefaultPeerStorage.h
  10662. * src/PeerStorage.h
  10663. * test/DefaultPeerStorageTest.cc
  10664. * test/MockPeerStorage.h
  10665. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10666. Changed method signature:
  10667. DHTPeerAnnounceStorage::getPeers,
  10668. DHTPeerAnnounceEntry::getPeers
  10669. * src/DHTGetPeersMessage.cc
  10670. * src/DHTPeerAnnounceEntry.cc
  10671. * src/DHTPeerAnnounceEntry.h
  10672. * src/DHTPeerAnnounceStorage.cc
  10673. * src/DHTPeerAnnounceStorage.h
  10674. * test/DHTAnnouncePeerMessageTest.cc
  10675. * test/DHTPeerAnnounceEntryTest.cc
  10676. * test/DHTPeerAnnounceStorageTest.cc
  10677. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10678. Changed method signature:
  10679. NameResolver::resolve
  10680. * src/DHTEntryPointNameResolveCommand.cc
  10681. * src/InitiateConnectionCommand.cc
  10682. * src/NameResolver.cc
  10683. * src/NameResolver.h
  10684. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10685. Changed method signature:
  10686. PieceStorage::getAdvertisedPieceIndexes
  10687. * src/DefaultBtInteractive.cc
  10688. * src/DefaultPieceStorage.cc
  10689. * src/DefaultPieceStorage.h
  10690. * src/PieceStorage.h
  10691. * src/UnknownLengthPieceStorage.h
  10692. * test/MockPieceStorage.h
  10693. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10694. Changed method signature:
  10695. SegmentMan::getInFlightSegment
  10696. * src/AbstractCommand.cc
  10697. * src/SegmentMan.cc
  10698. * src/SegmentMan.h
  10699. * test/SegmentManTest.cc
  10700. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10701. Changed method signature:
  10702. DHTAbstractNodeLookupTask::getNodesFromMessage
  10703. * src/DHTAbstractNodeLookupTask.cc
  10704. * src/DHTAbstractNodeLookupTask.h
  10705. * src/DHTNodeLookupTask.cc
  10706. * src/DHTNodeLookupTask.h
  10707. * src/DHTPeerLookupTask.cc
  10708. * src/DHTPeerLookupTask.h
  10709. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10710. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  10711. * src/AbstractCommand.cc
  10712. * src/BtCheckIntegrityEntry.cc
  10713. * src/BtCheckIntegrityEntry.h
  10714. * src/BtFileAllocationEntry.cc
  10715. * src/BtFileAllocationEntry.h
  10716. * src/BtSetup.cc
  10717. * src/BtSetup.h
  10718. * src/CheckIntegrityCommand.cc
  10719. * src/CheckIntegrityEntry.h
  10720. * src/ChecksumCheckIntegrityEntry.cc
  10721. * src/ChecksumCheckIntegrityEntry.h
  10722. * src/DHTSetup.cc
  10723. * src/DHTSetup.h
  10724. * src/DownloadEngine.cc
  10725. * src/FileAllocationCommand.cc
  10726. * src/FileAllocationEntry.h
  10727. * src/RequestGroup.cc
  10728. * src/RequestGroup.h
  10729. * src/RequestGroupMan.cc
  10730. * src/RequestGroupMan.h
  10731. * src/StreamCheckIntegrityEntry.cc
  10732. * src/StreamCheckIntegrityEntry.h
  10733. * src/StreamFileAllocationEntry.cc
  10734. * src/StreamFileAllocationEntry.h
  10735. * src/TrackerWatcherCommand.cc
  10736. * src/a2functional.h
  10737. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10738. Changed method signature:
  10739. BNode::findClosestKNodes, BNode:: enumerateBucket,
  10740. DHTBucket::getGoodNodes,
  10741. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  10742. * src/BNode.cc
  10743. * src/BNode.h
  10744. * src/DHTAbstractNodeLookupTask.cc
  10745. * src/DHTAutoSaveCommand.cc
  10746. * src/DHTBucket.cc
  10747. * src/DHTBucket.h
  10748. * src/DHTBucketRefreshTask.cc
  10749. * src/DHTFindNodeMessage.cc
  10750. * src/DHTGetPeersMessage.cc
  10751. * src/DHTRoutingTable.cc
  10752. * src/DHTRoutingTable.h
  10753. * test/BNodeTest.cc
  10754. * test/DHTBucketTest.cc
  10755. * test/DHTRoutingTableTest.cc
  10756. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10757. In piece selection functions, Pass std::deque<...> by reference rather
  10758. than returning it.
  10759. * src/BitfieldMan.cc
  10760. * src/BitfieldMan.h
  10761. * src/DefaultBtRequestFactory.cc
  10762. * src/DefaultPieceStorage.cc
  10763. * src/Piece.cc
  10764. * src/Piece.h
  10765. * test/BitfieldManTest.cc
  10766. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10767. Implemented rarest piece first piece selection strategy.
  10768. * src/AbstractBtMessage.cc
  10769. * src/AbstractBtMessage.h
  10770. * src/BitfieldMan.cc
  10771. * src/BitfieldMan.h
  10772. * src/BtBitfieldMessage.cc
  10773. * src/BtHaveAllMessage.cc
  10774. * src/BtHaveMessage.cc
  10775. * src/DefaultPieceStorage.cc
  10776. * src/DefaultPieceStorage.h
  10777. * src/PeerInteractionCommand.cc
  10778. * src/PieceStorage.h
  10779. * src/UnknownLengthPieceStorage.h
  10780. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10781. Rewritten readData and writeData.
  10782. * src/MultiDiskAdaptor.cc
  10783. * src/MultiDiskAdaptor.h
  10784. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10785. Move \n out of the message "Usage: ...".
  10786. * src/version_usage.cc
  10787. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10788. Bump up version number to 0.13.2b.
  10789. * configure.ac
  10790. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10791. Added const qualifier to argument Exception& e.
  10792. * src/Logger.h
  10793. * src/SimpleLogger.cc
  10794. * src/SimpleLogger.h
  10795. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10796. Pool connection when CWD, SIZE command fails.
  10797. * src/FtpNegotiationCommand.cc
  10798. * src/FtpNegotiationCommand.h
  10799. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10800. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  10801. * src/HttpResponseCommand.cc
  10802. * src/HttpSkipResponseCommand.cc
  10803. * src/HttpSkipResponseCommand.h
  10804. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10805. Pool connection when a server returns 4xx, 5xx responses.
  10806. * src/HttpNullDownloadCommand.cc
  10807. * src/HttpNullDownloadCommand.h
  10808. * src/HttpResponse.cc
  10809. * src/HttpResponse.h
  10810. * src/HttpResponseCommand.cc
  10811. * src/HttpResponseCommand.h
  10812. * test/HttpResponseTest.cc
  10813. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10814. Print usage when no URL is specifed or bad command-line option is
  10815. specified.
  10816. * src/HelpItemFactory.cc
  10817. * src/help_tags.h
  10818. * src/option_processing.cc
  10819. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10820. Removed duplicate log message.
  10821. * src/AbstractCommand.cc (asyncResolveHostname)
  10822. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10823. Updated man page: --async-dns and --ftp-reuse-connection were added.
  10824. Changed -j option's default value from 5 to 1.
  10825. Added new examples using protocol auto detection feature.
  10826. Removed -T, -M usage where it can be omitted.
  10827. * doc/aria2c.1.txt
  10828. * doc/aria2c.1.html
  10829. * doc/aria2c.1.txt
  10830. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10831. Updated command-line usage text, so that it tells users that they
  10832. can specify any number of torrent files and metalink files in
  10833. command-line.
  10834. * src/version_usage.cc
  10835. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10836. Changed the default value of -j option to 1.
  10837. * src/HelpItemFactory.cc
  10838. * src/option_processing.cc
  10839. * src/usage_text.h
  10840. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10841. Added the ability to reuse connection in FTP and it is enabled by
  10842. default. It can be disabled by --ftp-reuse-connection=false option.
  10843. * src/Command.cc
  10844. * src/DownloadCommand.cc
  10845. * src/FtpDownloadCommand.cc
  10846. * src/FtpDownloadCommand.h
  10847. * src/FtpFinishDownloadCommand.cc
  10848. * src/FtpFinishDownloadCommand.h
  10849. * src/FtpInitiateConnectionCommand.cc
  10850. * src/FtpNegotiationCommand.cc
  10851. * src/FtpNegotiationCommand.h
  10852. * src/HelpItemFactory.cc
  10853. * src/Makefile.am
  10854. * src/Makefile.in
  10855. * src/OptionHandlerFactory.cc
  10856. * src/option_processing.cc
  10857. * src/prefs.h
  10858. * src/usage_text.h
  10859. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10860. Call Command::transitStatus() before calling Command::execute(),
  10861. so that the status change made in execute() is not cleared.
  10862. * src/DownloadEngine.cc
  10863. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10864. Removed forward declaration of SocketCore class.
  10865. * src/HttpDownloadCommand.h
  10866. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10867. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  10868. in InitiateConnectionCommandFactory. They should be set only when
  10869. the protocol is HTTP or HTTPS.
  10870. * src/InitiateConnectionCommandFactory.cc
  10871. * src/RequestGroup.cc
  10872. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10873. Fixed infinite loop in checksum checking.
  10874. * src/IteratableChecksumValidator.cc
  10875. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10876. Set _supportsPersistentConnection to true by default.
  10877. * src/Request.cc
  10878. * src/RequestGroup.cc
  10879. * test/HttpRequestTest.cc
  10880. * test/RequestTest.cc
  10881. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10882. Added timeout to socket pool. The default timeout is 15 seconds,
  10883. which is the same value Apache uses.
  10884. * src/DownloadEngine.cc
  10885. * src/DownloadEngine.h
  10886. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10887. Fixed misuse of multimap::find()
  10888. * src/HttpHeader.cc
  10889. * test/HttpHeaderTest.cc
  10890. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10891. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  10892. option.
  10893. The asynchronous DNS is not capable of IPv6 yet.
  10894. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  10895. least for HTTP download.
  10896. * src/AbstractCommand.cc
  10897. * src/AbstractCommand.h
  10898. * src/AsyncNameResolver.cc
  10899. * src/AsyncNameResolver.h
  10900. * src/DHTEntryPointNameResolveCommand.cc
  10901. * src/DHTEntryPointNameResolveCommand.h
  10902. * src/DownloadEngine.cc
  10903. * src/DownloadEngine.h
  10904. * src/FtpInitiateConnectionCommand.cc
  10905. * src/FtpInitiateConnectionCommand.h
  10906. * src/HelpItemFactory.cc
  10907. * src/HttpInitiateConnectionCommand.cc
  10908. * src/HttpInitiateConnectionCommand.h
  10909. * src/InitiateConnectionCommand.cc
  10910. * src/InitiateConnectionCommand.h
  10911. * src/Makefile.am
  10912. * src/Makefile.in
  10913. * src/NameResolver.cc
  10914. * src/NameResolver.h
  10915. * src/OptionHandlerFactory.cc
  10916. * src/SocketCore.cc
  10917. * src/SocketCore.h
  10918. * src/Util.cc
  10919. * src/Util.h
  10920. * src/option_processing.cc
  10921. * src/prefs.h
  10922. * src/usage_text.h
  10923. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10924. Updated man page: --quiet, --header were added.
  10925. --metalink-servers and --enable-http-keep-alive option were updated.
  10926. * doc/aria2c.1
  10927. * doc/aria2c.1.html
  10928. * doc/aria2c.1.txt
  10929. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10930. Enable HTTP keep-alive by default.
  10931. * src/HelpItemFactory.cc
  10932. * src/option_processing.cc
  10933. * src/usage_text.h
  10934. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10935. Disable http keep-alive if the remote server is not HTTP/1.1.
  10936. * src/HttpConnection.cc
  10937. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10938. Receive content body of 302 response so that the connection can be
  10939. reused later when http keep-alive is enabled.
  10940. * src/HttpNullDownloadCommand.cc
  10941. * src/HttpNullDownloadCommand.h
  10942. * src/HttpResponseCommand.cc
  10943. * src/HttpResponseCommand.h
  10944. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10945. const SharedHandle<Request> -> const SharedHandle<Request>&
  10946. * src/FtpDowndloadCommand.cc
  10947. * src/FtpDowndloadCommand.h
  10948. * src/HttpDownloadCommand.cc
  10949. * src/HttpDownloadCommand.h
  10950. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10951. Fixed the bug that the control file(.aria2 file) is not renamed
  10952. according to tryAutoFileRenaming().
  10953. tryAutoFileRenaming() was rewritten so that if both renamed file and
  10954. its control file exist, use them and continue download.
  10955. The old implementation didn't take into account of control file's
  10956. existence, so basically you couldn't continue download of renamed file.
  10957. * src/BtProgressInfoFile.h
  10958. * src/DefaultBtProgressInfoFile.cc
  10959. * src/DefaultBtProgressInfoFile.h
  10960. * src/NullProgressInfoFile.h
  10961. * src/RequestGroup.cc
  10962. * test/DefaultBtProgressInfoFileTest.cc
  10963. * test/MockBtProgressInfoFile.h
  10964. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10965. Change the default value of --metalink-servers option from `5' to `1'.
  10966. * src/HelpItemFactory.cc
  10967. * src/option_processing.cc
  10968. * src/usage_text.h
  10969. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10970. Reimplemented transparent metalink using Accept request header.
  10971. * src/HttpRequest.cc
  10972. * src/HttpRequest.h
  10973. * src/HttpRequestCommand.cc
  10974. * src/Metalink2RequestGroup.cc
  10975. * src/RequestGroup.cc
  10976. * src/RequestGroup.h
  10977. * test/HttpRequestTest.cc
  10978. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10979. Bump up version number to 0.13.2a
  10980. * configure.ac
  10981. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10982. Updated configure.ac using the result of autoscan.
  10983. * configure.ac
  10984. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10985. Fixed compilation error without gcrypt/openssl.
  10986. * src/DownloadCommand.cc
  10987. * src/DownloadCommand.h
  10988. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10989. Reorganized version information so that it can be displayed in a
  10990. standard terminal screen without scrolling.
  10991. Removed http, ftp from Configuration section, because they are always
  10992. enabled.
  10993. * src/FeatureConfig.cc
  10994. * src/FeatureConfig.h
  10995. * src/main.cc
  10996. * src/messageDigest.cc
  10997. * src/messageDigest.h
  10998. * src/version_usage.cc
  10999. * test/FeatureConfigTest.cc
  11000. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11001. Masked user ID in log.
  11002. * src/FtpConnection.cc (sendUser)
  11003. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11004. Removed query part from filename in HTTP download. The query part means
  11005. the substring after "?" in URL. Firefox seems do the same thing.
  11006. A query part is sometimes very long and not suitable to filename,
  11007. so I think it is better to remove it from filename.
  11008. * src/HttpRequest.cc
  11009. * src/HttpRequest.h
  11010. * src/Request.cc
  11011. * src/Request.h
  11012. * test/HttpRequestTest.cc
  11013. * test/RequestTest.cc
  11014. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11015. Rewritten Exception class. Throw exception object, not its pointer and
  11016. catch by reference, so that remove problematic delete operator for
  11017. catched exception.
  11018. * src/Exception.cc
  11019. * src/Exception.h
  11020. * test/ExceptionTest.cc
  11021. * src/*: All files throwing/catching exception.
  11022. * test/*: All files throwing/catching exception.
  11023. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11024. Now auto protocol detection is enabled without -Z option.
  11025. But there is a important difference between with/without -Z optoin.
  11026. For example, if you type:
  11027. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  11028. then, aria2 interprets there are 3 request groups:
  11029. (1) http://host/file, http://mirror/file <-- multi-source download
  11030. (2) file1.torrent
  11031. (3) file2.metalink
  11032. On the other hand, if you invoke above command with -Z option, it is
  11033. interpreted as 4 request groups:
  11034. (1) http://host/file
  11035. (2) file1.torrent
  11036. (3) file2.metalink
  11037. (4) http://mirror/file
  11038. I think usually user don't mix multi-source URLs and torrent files, so
  11039. there is no big problem here.
  11040. * src/main.cc
  11041. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11042. Fixed the bug that causes segmentaion fault when reading XML containing
  11043. unescapsed character like '&'.
  11044. Also a modification was made which avoids adding unnecessary
  11045. characters stack and appending unused string.
  11046. * src/ExpatMetalinkProcessor.cc
  11047. * src/FileMetalinkParserState.h
  11048. * src/FilesMetalinkParserState.h
  11049. * src/FinMetalinkParserState.h
  11050. * src/HashMetalinkParserState.h
  11051. * src/InitialMetalinkParserState.h
  11052. * src/LanguageMetalinkParserState.h
  11053. * src/MetalinkMetalinkParserState.h
  11054. * src/MetalinkParserState.h
  11055. * src/MetalinkParserStateMachine.cc
  11056. * src/MetalinkParserStateMachine.h
  11057. * src/OSMetalinkParserState.h
  11058. * src/PieceHashMetalinkParserState.h
  11059. * src/PiecesMetalinkParserState.h
  11060. * src/ResourcesMetalinkParserState.h
  11061. * src/SizeMetalinkParserState.h
  11062. * src/SkipTagMetalinkParserState.h
  11063. * src/URLMetalinkParserState.h
  11064. * src/VerificationMetalinkParserState.h
  11065. * src/VersionMetalinkParserState.h
  11066. * src/XML2SAXMetalinkProcessor.cc
  11067. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11068. Added StringFormat class, which internally calls vasprintf.
  11069. operator<< is defined for this class, so it can be used with iostream
  11070. classes nicely. SimpleLogger and following functions are rewritten
  11071. using StringFormat class.
  11072. Besides, now Logger class's methods are non-const, many classes
  11073. that has a const Logger* as a member variable are modified to remove
  11074. const qualifier from the variable declaration.
  11075. * src/HelpItemFactory.cc
  11076. * src/Request.cc
  11077. * src/SimpleLogger.cc
  11078. * src/StringFormat.cc
  11079. * src/StringFormat.h
  11080. * src/Util.cc
  11081. * src/option_processing.cc
  11082. * src/version_usage.cc
  11083. * test/StringFormatTest.cc
  11084. * src/*.h: The classes that has const Logger* as a member variable.
  11085. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11086. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  11087. failed. Also fixed memory link when exception is thrown there.
  11088. * src/main.cc (AccRequestGroup)
  11089. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11090. Added build-in "Accept-Features" support. For now only "metalink" is
  11091. used in this header field.
  11092. This "metalink" value is removed from the list when connecting URLs
  11093. fed by metalink file to avoid loop in "transparent" metlaink.
  11094. * src/HttpRequest.cc
  11095. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  11096. header is also held in this variable. Also renamed setUserHeaders as
  11097. addHeader and it was rewritten to add header not just to clear the old
  11098. value.
  11099. * src/HttpRequestCommand.cc
  11100. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  11101. from "Accept-Features" list.
  11102. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  11103. default.
  11104. * src/RequestGroup.h
  11105. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  11106. * src/a2functional.h: Included <string> because Concat class depends on
  11107. it.
  11108. * test/HttpRequestTest.cc
  11109. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11110. Added comment
  11111. * src/RequestGroup.cc (createNextCommand)
  11112. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11113. Capitalized METHOD_GET and METHOD_HEAD
  11114. * src/Request.cc
  11115. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11116. Added getDownloadResults() method
  11117. * src/RequestGroupMan.cc
  11118. * src/RequestGroupMan.h
  11119. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11120. Fixed the bug that aria2 exits when commands is empty() but
  11121. _routineCommands are not.
  11122. * src/DownloadEngine.cc
  11123. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11124. Use the default value pulled from Option object in HelpItemFactory.
  11125. except options whose defualt value is embedded in a usage text.
  11126. * src/HelpItemFactory.cc
  11127. * src/HelpItemFactory.h
  11128. * src/option_processing.cc
  11129. * src/version_usage.cc
  11130. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11131. Added --quiet option to make aria2 quiet (no console output).
  11132. --quiet option is tagged with ADVANCED.
  11133. * src/HelpItemFactory.cc
  11134. * src/LogFactory.cc
  11135. * src/LogFactory.h
  11136. * src/MultiUrlRequestInfo.cc
  11137. * src/MultiUrlRequestInfo.h
  11138. * src/NullStatCalc.h: New class. This class prints nothing.
  11139. * src/OptionHandlerFactory.cc
  11140. * src/main.cc
  11141. * src/option_processing.cc
  11142. * src/prefs.h
  11143. * src/usage_text.h
  11144. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11145. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  11146. * src/HelpItemFactory.cc (createHelpItems):
  11147. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11148. Fixed compilation error in ExpatMetalinkProcessor.cc
  11149. * src/ExpatMetalinkProcessor.cc
  11150. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11151. Reuse socket if the origin server supports HTTP keep-alive and
  11152. --enable-http-keep-alive or --enable-http-pipelining is given.
  11153. The current implementation doesn't reuse the connections established
  11154. against proxy server.
  11155. * src/AbstractCommand.cc
  11156. * src/DownloadEngine.cc
  11157. * src/DownloadEngine.h
  11158. * src/HttpDownloadCommand.cc
  11159. * src/HttpInitiateConnectionCommand.cc
  11160. * src/HttpResponseCommand.cc
  11161. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11162. Rewritten HTTP keep-alive and pipelining routine.
  11163. * src/AbstractCommand.cc
  11164. * src/HttpConnection.cc
  11165. * src/HttpDownloadCommand.cc
  11166. * src/HttpRequest.cc
  11167. * src/HttpRequestCommand.cc
  11168. * src/HttpResponseCommand.cc
  11169. * src/Request.cc
  11170. * src/Request.h
  11171. * src/RequestGroup.cc
  11172. * test/HttpRequestTest.cc
  11173. * test/HttpResponseTest.cc
  11174. * test/RequestTest.cc
  11175. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11176. Added missing setUserHeaders call
  11177. * src/HttpRequestCommand.cc
  11178. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11179. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  11180. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  11181. waste of time because it is more likey false.
  11182. * src/FileAllocationDispatcherCommand.cc (execute)
  11183. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11184. Now HTTP status and version are a member variable of HttpHeader.
  11185. HTTP status is processed as a string, not integer.
  11186. * src/AbstractProxyResponseCommand.cc
  11187. * src/HttpConnection.cc
  11188. * src/HttpHeader.cc
  11189. * src/HttpHeader.h
  11190. * src/HttpHeaderProcessor.cc
  11191. * src/HttpHeaderProcessor.h
  11192. * src/HttpResponse.cc
  11193. * src/HttpResponse.h
  11194. * test/HttpHeaderProcessorTest.cc
  11195. * test/HttpResponseTest.cc
  11196. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11197. Added --header option. You can specify any number of additional HTTP headers
  11198. like:
  11199. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  11200. Unlike other commad-line option, you can use --header option multiple times.
  11201. * src/HelpItemFactory.cc
  11202. * src/HttpRequest.{cc, h}
  11203. * src/HttpRequestCommand.cc
  11204. * src/OptionHandlerFactory.cc
  11205. * src/OptionHandlerImpl.h
  11206. * src/option_processing.cc
  11207. * src/prefs.h
  11208. * src/usage_text.h
  11209. * test/HttpRequestTest.cc (testUserHeaders)
  11210. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11211. Eliminates the time lag between sequential downloads and commands in
  11212. the same RequestGroup.
  11213. In old implementation, aria2 occasionally waits 1 seconds before
  11214. executing next command or RequestGroup.
  11215. This is really a waste of time, and new implementation eliminates
  11216. this unnecessary time lag.
  11217. * src/AbstractCommand.cc
  11218. * src/AutoSaveCommand.cc
  11219. * src/CheckIntegrityCommand.cc
  11220. * src/Command.{cc, h}
  11221. * src/DownloadEngine.{cc, h}
  11222. * src/DownloadEngineFactory.cc
  11223. * src/FileAllocationCommand.cc
  11224. * src/FileAllocationDispatcherCommand.cc
  11225. * src/FillRequestGroupCommand.cc
  11226. * src/FtpInitiateConnectionCommand.cc
  11227. * src/HaveEraseCommand.cc
  11228. * src/HttpInitiateConnectionCommand.cc
  11229. * src/HttpResponseCommand.cc
  11230. * src/RealtimeCommand.cc
  11231. * src/RequestGroup.cc
  11232. * src/RequestGroupMan.cc
  11233. * src/StreamFileAllocationEntry.cc
  11234. * src/TimeBasedCommand.{cc, h}
  11235. * src/TimedHaltCommand.cc
  11236. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11237. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  11238. keyword explicit and SharedHandle's default constructor initializes
  11239. its internal obj to null, old implementation initializes it using
  11240. obj's default constructor.
  11241. To assign null, write SharedHandle<T> x(...); x.reset();
  11242. TODO: test/SharedHandleTest.cc needs more tests.
  11243. * src/SharedHandle.h
  11244. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11245. Fixed type in man page.
  11246. * doc/aria2c.1.txt
  11247. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11248. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  11249. * src/SimpleLogger.{cc, h}
  11250. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11251. Implemented auto protocol detection.
  11252. Now you can do:
  11253. aria2c -Z http://host/file file1.torrent file2.metalink
  11254. (Note: -Z option is required for auto protcol detection.)
  11255. Then aria2c downloads 3 files simultaneously:
  11256. 1. http://host/file
  11257. 2. file1.torrent <-- read local torrent file
  11258. 3. file2.metalink <-- read local Metalink file.
  11259. Same thing goes with -i option. Assume your uris.txt contans:
  11260. http://host/file
  11261. file1.torrent
  11262. file2.metalink
  11263. Then you can do: aria2c -i uris.txt
  11264. (Note: -Z option is not needed if -i option is given.)
  11265. * src/main.cc
  11266. * src/ProtocolDetector.{cc, h}
  11267. * test/ProtocolDetectorTest.cc
  11268. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11269. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  11270. installed
  11271. * src/ARC4Encryptor.h
  11272. * src/ARC4Decryptor.h
  11273. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11274. Renamed argument from 'errno' to 'err', since errno is confused with
  11275. errno defined in errno.h.
  11276. * src/LibgcryptARC4Decryptor.h
  11277. * src/LibgcryptARC4Context.h
  11278. * src/LibgcryptDHKeyExchange.h
  11279. * src/LibgcryptARC4Encryptor.h
  11280. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11281. Rewritten choking algorithm.
  11282. * src/PeerChokeCommand.{cc, h}
  11283. * src/BtInterestedMessage.cc
  11284. * src/PeerSessionResource.{cc, h}
  11285. * src/DefaultPeerStorage.{cc, h}
  11286. * src/BtNotInterestedMessage.cc
  11287. * src/DefaultBtMessageDispatcher.{cc, h}
  11288. * src/BtMessageDispatcher.h
  11289. * src/Peer.{cc, h}
  11290. * src/BtLeecherStateChoke.{cc, h}
  11291. * src/BtSetup.cc
  11292. * src/BtSeederStateChoke.{cc, h}
  11293. * src/PeerStorage.h
  11294. * test/MockPeerStorage.h
  11295. * test/MockBtMessageDispatcher.h
  11296. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11297. Fixed compilation error on x84-64 platform.
  11298. * src/AuthConfig.cc: Included ostream.
  11299. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11300. Rewritten getBasename() and getDirname(), without standard library
  11301. basename(), dirname().
  11302. * src/File.cc
  11303. * test/FileTest.cc
  11304. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11305. Added Simplified Chinese translation. Also updated the following
  11306. translations: Polish, Dutch, German. Great thanks to all translators.
  11307. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11308. Suppress content-range error when 'Content-Range' response header
  11309. doesn't contains bytes-unit specifier 'bytes'
  11310. * src/HttpHeader.cc (getRange)
  11311. * test/HttpHeaderTest.cc
  11312. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11313. Fixed compilation error with g++-4.3
  11314. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11315. Added missing include files for MinGW
  11316. * test/HttpHeaderProcessorTest.cc
  11317. * test/DHTRoutingTableSerializerTest.cc
  11318. * test/DHTRoutingTableDeserializerTest.cc
  11319. * test/UriListParserTest.cc
  11320. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11321. Now download line is printed nicely with no garbage at the end of
  11322. line. I use ioctl to get the columns of terminal.
  11323. If stdout is redirected to another device, instead of carriage return,
  11324. end of line '\n' character is used. This is feature request#1909659
  11325. * src/ConsoleStatCalc.cc (calculateStat)
  11326. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11327. Included a2time.h
  11328. * src/DHTMessageDispatcher.h
  11329. * src/DHTMessageEntry.h
  11330. * src/DHTReplaceNodeTask.h
  11331. * src/DHTMessageTracker.h
  11332. * src/Util.h
  11333. * src/CookieBox.h
  11334. * src/SocketCore.h
  11335. * src/DefaultBtMessageDispatcher.h
  11336. * src/SocketCore.cc
  11337. * src/Util.cc
  11338. * src/DHTPingTask.h
  11339. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11340. Fixed high memory footprint when DHT is enabled.
  11341. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  11342. queued than it is processed and the queue is getting longer. As a
  11343. consequence, momory usage is increased.
  11344. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  11345. replacement cache in DHTBucket which is described in Kademlia paper.
  11346. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  11347. DHTReplaceNodeTask.
  11348. * src/DHTBucket.{h, cc}
  11349. (cacheNode): New function.
  11350. (getCachedNodes): New function.
  11351. (dropNode): Push back cached node to _nodes.
  11352. * test/DHTBucketTest.cc
  11353. (testCacheNode): New test
  11354. (testDropNode): New test
  11355. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11356. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  11357. the unused 4KB memory when ssl is not used.
  11358. * src/SocketCore.cc
  11359. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11360. Added summary log for peer announce storage.
  11361. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  11362. Removed cast
  11363. * src/DefaultPeerStorage.cc (addPeer)
  11364. Log exception message
  11365. * src/DHTMessageTracker.cc (handleTimeout)
  11366. Fixed casting
  11367. * test/HttpRequestTest.cc
  11368. * test/MetalinkProcessorTest.cc
  11369. * test/PieceTest.cc
  11370. * test/MetalinkEntryTest.cc
  11371. * test/SequenceTest.cc
  11372. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11373. * src/ParameterizedStringParser.cc (createLoop):
  11374. Removed unused variable sstep.
  11375. * src/AlphaNumberDecorator.h (decode): Rewritten.
  11376. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11377. * src/Util.{h, cc}
  11378. (parseUInt): New function.
  11379. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  11380. The actual range is uint32_t.
  11381. * test/UtilTest.cc
  11382. * src/ParameterizedStringParser.cc:
  11383. Use Util::parseUInt() for loop variables.
  11384. * test/ParameterizedStringParserTest.cc
  11385. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  11386. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11387. Rewritten the functions for binding port.
  11388. * src/DHTConnectionImpl.{h, cc}
  11389. * src/PeerListenCommand.{h, cc}
  11390. * src/DHTSetup.cc
  11391. * src/BtSetup.cc
  11392. * test/DHTConnectionImplTest.cc
  11393. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11394. type cleanup for allmost all remaining files.
  11395. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11396. Type clarification
  11397. * src/PeerSessionResource.{h, cc}
  11398. * src/DefaultPieceStorage.{h, cc}
  11399. * src/Peer.{h, cc}
  11400. * test/PeerSessionResourceTest.cc
  11401. Use div function
  11402. * src/BtPieceMessage.cc (erasePieceOnDisk)
  11403. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11404. Type clarification
  11405. * src/DefaultPeerStorage.{h, cc}
  11406. * test/DefaultPeerStorageTest.cc
  11407. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11408. Type clarification: size_t for length or size, uint64_t for file
  11409. length, off_t for file offset.
  11410. * src/DefaultBtProgressInfoFile.cc
  11411. * src/DefaultBtContext.{h, cc}
  11412. * src/DefaultBtInteractive.cc
  11413. * src/DownloadCommand.{h, cc}
  11414. * src/IteratableChunkChecksumValidator.{h, cc}
  11415. * src/SegmentMan.{h, cc}
  11416. * src/SingleFileDownloadContext.{h, cc}
  11417. * src/IteratableChecksumValidator.{h, cc}
  11418. * src/BtContext.h
  11419. * src/IteratableValidator.h
  11420. * src/DownloadContext.h
  11421. * test/SingleFileDownloadContextTest.cc
  11422. * test/DefaultBtContextTest.cc
  11423. * test/MockBtContext.h
  11424. * test/Metalink2RequestGroupTest.cc
  11425. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11426. Type clarification: size_t for length or size, uint64_t for file
  11427. length, off_t for file offset.
  11428. * src/PiecedSegment.cc
  11429. * src/GrowSegment.h
  11430. * src/DefaultBtRequestFactory.h
  11431. * src/DefaultBtProgressInfoFile.cc
  11432. * src/UnknownLengthPieceStorage.h
  11433. * src/DefaultPieceStorage.cc
  11434. * src/UnknownLengthPieceStorage.cc
  11435. * src/DefaultBtInteractive.cc
  11436. * src/GrowSegment.cc
  11437. * src/BitfieldMan.h
  11438. * src/DownloadCommand.cc
  11439. * src/BtRequestFactory.h
  11440. * src/PiecedSegment.h
  11441. * src/DefaultPieceStorage.h
  11442. * src/Piece.cc
  11443. * src/DefaultBtRequestFactory.cc
  11444. * src/PieceStorage.h
  11445. * src/Segment.h
  11446. * src/Piece.h
  11447. * src/BitfieldMan.cc
  11448. * src/Util.cc
  11449. * test/DefaultBtProgressInfoFileTest.cc
  11450. * test/DefaultPieceStorageTest.cc
  11451. * test/MockPieceStorage.h
  11452. * test/BtRequestMessageTest.cc
  11453. * test/DefaultBtMessageDispatcherTest.cc
  11454. * test/BitfieldManTest.cc
  11455. * test/GrowSegmentTest.cc
  11456. * test/PieceTest.cc
  11457. * test/SegmentTest.cc
  11458. * test/SegmentManTest.cc
  11459. * test/DefaultBtRequestFactoryTest.cc
  11460. * test/MockBtRequestFactory.h
  11461. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11462. Fixed compilation error with --disable-nls
  11463. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  11464. in gettext.h causes the problem.
  11465. * src/common.h
  11466. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11467. Removed subPiece related functions.
  11468. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  11469. * src/DefaultPieceStorage.{h, cc}
  11470. * test/PieceTest.cc
  11471. * test/DefaultPieceStorageTest.cc
  11472. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11473. Use unsigned char for data store.
  11474. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11475. Bump up version number to 0.13.0+1
  11476. * configure.ac
  11477. * Release 0.13.0+1
  11478. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11479. Changed inactive connection timeout to 120.
  11480. To accept more mulually interested peers, disconnect peer when there
  11481. is no interest between us after certain time passed.
  11482. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  11483. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11484. Fixed the bug that aria2 only uses first dns server in resolv.conf
  11485. when compiled with async DNS support.
  11486. * src/DownloadEngine.cc
  11487. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  11488. value '10' will be a little bit short when some DNS servers are
  11489. offline and several DNS servers are tried. It should be configured
  11490. by command-line option.
  11491. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11492. Merged Ross's mingw patch.
  11493. * src/DHTRoutingTableDeserializer.cc
  11494. * src/DHTRoutingTableSerializer.cc
  11495. * src/Platform.{h, cc}
  11496. * src/timegm.h
  11497. * src/gettimeofday.h
  11498. * src/getaddrinfo.h
  11499. * src/SocketCore.h
  11500. * src/common.h
  11501. * src/inet_aton.h
  11502. * src/DownloadEngine.h
  11503. * src/gai_strerror.h
  11504. * src/a2netcompat.h
  11505. * configure.ac
  11506. * configure
  11507. * aclocal.m4
  11508. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11509. Included missing iostream.
  11510. * test/AllTest.cc
  11511. * test/BtDependencyTest.cc
  11512. * test/BtExtendedMessageTest.cc
  11513. * test/DHTConnectionImplTest.cc
  11514. * test/DHTMessageFactoryImplTest.cc
  11515. * test/DHTMessageTrackerEntryTest.cc
  11516. * test/DHTNodeTest.cc
  11517. * test/DHTRoutingTableSerializerTest.cc
  11518. * test/DefaultBtAnnounceTest.cc
  11519. * test/DefaultBtContextTest.cc
  11520. * test/DefaultBtMessageFactoryTest.cc
  11521. * test/DefaultExtensionMessageFactoryTest.cc
  11522. * test/HandshakeExtensionMessageTest.cc
  11523. * test/HttpResponseTest.cc
  11524. * test/MetalinkProcessorTest.cc
  11525. * test/MultiFileAllocationIteratorTest.cc
  11526. * test/SocketCoreTest.cc
  11527. * test/UTPexExtensionMessageTest.cc
  11528. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11529. Reorganized includes.
  11530. * src/NameResolver.cc
  11531. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11532. Fixed compilation error without ares/c-ares
  11533. * src/NameResolver.h:
  11534. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11535. Added a test for large file.
  11536. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  11537. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11538. Fixed the bug that file size is ignored if size > INT32_MAX
  11539. * src/SizeMetalinkParserState.cc (endElement):
  11540. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11541. Bump up version number to 0.13.0
  11542. * configure.ac
  11543. * Release 0.13.0
  11544. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11545. Updated Makfefile.am to make 'make dist' work.
  11546. Now packaged filename is aria2c-VERSION.tar.bz2.
  11547. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  11548. Added LICENSE.OpenSSL to dist_noinst_DATA.
  11549. Large file support is now configured by configure script.
  11550. * configure.ac
  11551. Removed unsused source files
  11552. * src/
  11553. * test/
  11554. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  11555. Peer.h and BtContext.h respectively.
  11556. * src/Peer.h
  11557. * src/BtContext.h
  11558. Updated translations.
  11559. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  11560. translations. Great thanks to all translators!;)
  11561. * po/*.{po, gmo}
  11562. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11563. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  11564. statically declared sha1 MessageDigestContext.
  11565. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  11566. initialization of short-lived MessageDigestContext.
  11567. * src/MessageDigestHelper.{h, cc}
  11568. * src/main.cc
  11569. Now DownloadCommand has a reference to MessageDigestContext to avoid
  11570. the initialization of MessageDigestContext every time in validating
  11571. chunk checksum.
  11572. * src/DownloadCommand.{h, cc}
  11573. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11574. Add a file descriptor which connected to fast peer(latency<1500) to
  11575. select(). This change reduced CPU load.
  11576. * src/PeerInteractionCommand.cc
  11577. * src/DefaultBtInteractive.{h, cc}
  11578. * src/BtInteractive.h
  11579. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11580. Fixed the previous insufficient fix for possible busy loop.
  11581. * src/MSEHandshake.cc (identifyHandshakeType)
  11582. Removed unused functions.
  11583. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  11584. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11585. Fixed possible busy loop if first 20 bytes are not received for a few
  11586. minutes.
  11587. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  11588. * src/ReceiverMSEHandshakeCommand.cc
  11589. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11590. Fixed compilation error
  11591. * src/ExpatMetalinkProcessor.cc
  11592. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11593. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  11594. * src/DHTBucket.cc
  11595. Removed unnecessary cast.
  11596. * src/HandshakeExtensionMessage.cc
  11597. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11598. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  11599. is missing.
  11600. * src/OptionHandlerFactory.cc
  11601. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11602. Fixed the bug that HAVE message is not sent for a piece they are
  11603. downloaded fom http/ftp server before any BitTorrent handshake is done
  11604. with peers.
  11605. * src/DefaultBtInteractive.cc
  11606. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11607. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  11608. * src/Makefile.am
  11609. * src/Makefile.in
  11610. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11611. Updated README. Added html version of README and man page.
  11612. * README
  11613. * README.html
  11614. * readme2html: Shell script to generate README.html from README using
  11615. asciidoc.
  11616. * doc/aria2c.1.html
  11617. * doc/makeman: Added the line to generate aria2c.1.html
  11618. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11619. Fixed offset calculation.
  11620. * src/LibgcryptDHKeyExchange.h (computeSecret)
  11621. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11622. Rewritten itos and uitos using template. llitos and ullitos are
  11623. replaced with itos and uitos respectively.
  11624. * src/Util.{h, cc}
  11625. * test/UtilTest.cc
  11626. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11627. Fixed the bug that DH key exchange sometimes fails due to bad handling
  11628. of the number of bytes required for storing public key and shared
  11629. secret.
  11630. * src/LibgcryptDHKeyExchange.h
  11631. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  11632. * src/MSEHandshake.cc
  11633. * test/DHKeyExchangeTest.cc
  11634. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11635. Removed since they are not used.
  11636. * src/Xml2MetalinkProcessor.{h, cc}
  11637. * src/Socket.cc
  11638. * src/SegmentSplitter.{h, cc}
  11639. * test/Xml2MetalinkProcessorTest.cc
  11640. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11641. Fixed the bug that prevents aria2 from stopping other than by pressing
  11642. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  11643. option. aria2 doesn't stop even after --seed-time is satisfied and
  11644. continues to output blank lines in the console.
  11645. * src/ReceiverMSEHandshakeCommand.cc
  11646. * src/PeerReceiveHandshakeCommand.cc
  11647. * src/PeerListenCommand.cc
  11648. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11649. Bump up version number to 0.13.0rc
  11650. * configure.ac
  11651. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11652. Updated man page and some usage text.
  11653. * doc/aria2c.1.txt
  11654. * src/usage_text.h
  11655. * po/*.{po, gmo}
  11656. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11657. Updated translations. Added Finnish and Hebrew translations.
  11658. Great thanks to all translators!
  11659. * po/*.{po, gmo}
  11660. * po/LINGUAS
  11661. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11662. Log more detailed information about each message.
  11663. * src/DHTQueryMessage.{h, cc}
  11664. * src/DHTGetPeersMessage.{h, cc}
  11665. * src/DHTFindNodeReplyMessage.{h, cc}
  11666. * src/DHTGetPeersReplyMessage.{h, cc}
  11667. * src/DHTAnnouncePeerMessage.{h, cc}
  11668. * src/DHTResponseMessage.{h, cc}
  11669. * src/DHTFindNodeMessage.{h, cc}
  11670. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11671. Use constants defined in prefs.h
  11672. * src/option_processing.cc
  11673. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11674. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  11675. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11676. Make room for future enchancements for IPv6 addresses.
  11677. Bump up version number of dht.dat file format to 2.
  11678. Not compatible with previous version.
  11679. * src/DHTRoutingTableSerializer.cc
  11680. * src/DHTRoutingTableDeserializer.cc
  11681. * test/DHTRoutingTableSerializerTest.cc
  11682. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11683. Added handling for the return values from
  11684. PeerMessageUtil::createcompact().
  11685. * src/DefaultBtContext.cc (computeFastSet):
  11686. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11687. Fixed abort when peer's ip address is IPv4-mapped address.
  11688. * src/DefaultBtContext.cc (computeFastSet)
  11689. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  11690. cannot handle IPv4-mapped addresses.
  11691. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  11692. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11693. Proper return value handling for OpenSSL functions.
  11694. * src/LibsslDHKeyExchange.h
  11695. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11696. Random bytes generation using libgcrypt and OpenSSL.
  11697. * src/DHTUtil.{h, cc}
  11698. * test/DHTUtilTest.cc
  11699. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11700. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  11701. received.
  11702. * src/DHTMessageReceiver.cc (receiveMessage)
  11703. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11704. Fixed the bug that a return code is always 0. BUG#1897704
  11705. If error occurred during the download or there exist unfinished
  11706. downloads, aria2 returns with code 1.
  11707. * src/RequestGroupMan.{h, cc}
  11708. * src/MultiUrlRequestInfo.{h, cc}
  11709. * src/main.cc
  11710. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11711. IPv6 support for SocketCore class.
  11712. TODO: In SocketCore::establishConnection(), this is insufficient to
  11713. determin the failure of connect() here because the socket is
  11714. non-blocking state. The next addresses should be tried after select().
  11715. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  11716. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  11717. instead which address family independent.
  11718. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  11719. information in a compact peer format which is for IPv4 only.
  11720. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  11721. this is a spec of BitTorrent protocol.
  11722. * src/SocketCore.{h, cc}
  11723. * src/PeerMessageUtil.cc
  11724. * test/SocketCoreTest.cc
  11725. * test/PeerMessageUtilTest.cc
  11726. * test/DHTConnectionImplTest.cc
  11727. Handle IPv4-mapped addresses.
  11728. * src/DHTNode.cc: Now identity is determined by node id.
  11729. * src/DHTMessageTrackerEntry.cc
  11730. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  11731. should handle it.
  11732. * src/DHTRoutingTableDeserializer.cc
  11733. * src/DHTMessageFactoryImpl.cc
  11734. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11735. Change the unit of --stop option from a minute to a second.
  11736. * src/usage_text.h
  11737. * src/DownloadEngineFactory.cc
  11738. * src/OptionHandlerFactory.cc
  11739. * src/message.h
  11740. * src/TimedHaltCommand.cc
  11741. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11742. Make listening socket non-block mode.
  11743. * src/FtpConnection.cc
  11744. * src/FtpNegotiationCommand.{h, cc}
  11745. * src/PeerListenCommand.cc
  11746. Fixed the bug that cause slow ftp negotiation.
  11747. * src/FtpNegotiationCommand.{h, cc}
  11748. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11749. Added basic tag to --enable-dht, --dht-listen-port option.
  11750. * src/HelpItemFactory.cc (createHelpItems)
  11751. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11752. Updated text.
  11753. * src/usage_text.h
  11754. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11755. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  11756. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11757. Determin _threadtholdSpeed in each constructor for
  11758. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  11759. * src/ActivePeerConnectionCommand.{h, cc}
  11760. * src/PeerReceiveHandshakeCommand.{h, cc}
  11761. * src/BtSetup.cc
  11762. * src/BtConstants.h
  11763. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11764. Added --bt-min-crypto-level and --bt-require-crypto options.
  11765. * src/OptionHandlerFactory.cc
  11766. * src/MSEHandshake.cc
  11767. * src/HelpItemFactory.cc
  11768. * src/option_processing.cc
  11769. * src/ReceiverMSEHandshakeCommand.cc
  11770. * src/prefs.h
  11771. * src/DefaultBtAnnounce.cc
  11772. * src/InitiatorMSEHandshakeCommand.cc
  11773. * src/usage_text.h
  11774. * test/MSEHandshakeTest.cc
  11775. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11776. Bump version number to 0.13.0b
  11777. * configure.ac
  11778. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11779. Updated doc.
  11780. * src/MessageDigestHelper.h:
  11781. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11782. Use raw message digest as a token instead of its hexadecimal
  11783. representation.
  11784. * src/DHTTokenTracker.cc (generateToken)
  11785. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11786. Added Message Stream Encryption(MSE) support.
  11787. Currently, aria2 accepts incoming connections with Obfuscation Header
  11788. and legacy BitTorrent Header and establishes connections with
  11789. Obfuscation Header first and if failed then retry with legacy
  11790. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  11791. choose ARC4. The new option to change the default behavior is planned.
  11792. For tracker extension, "supportcrypto=1" is added statically.
  11793. * src/PeerInitiateConnectionCommand.{h, cc}
  11794. * src/PeerConnection.{h, cc}
  11795. * src/HandleRegistry.h
  11796. * src/SocketCore.h
  11797. * src/PeerReceiveHandshakeCommand.{h, cc}
  11798. * src/BtRegistry.{h, cc}
  11799. * src/PeerListenCommand.cc
  11800. * src/InitiatorMSEHandshakeCommand.{h, cc}
  11801. * src/ReceiverMSEHandshakeCommand.{h, cc}
  11802. * src/MSEHandshake.{h, cc}
  11803. * src/ARC4Encryptor.h
  11804. * src/ARC4Decryptor.h
  11805. * src/LibgcryptARC4Encryptor.h
  11806. * src/LibgcryptARC4Decryptor.h
  11807. * src/LibgcryptARC4Context.h
  11808. * src/LibsslARC4Encryptor.h
  11809. * src/LibsslARC4Decryptor.h
  11810. * src/LibsslARC4Context.h
  11811. * src/DHKeyExchange.h
  11812. * src/LibgcryptDHKeyExchange.h
  11813. * src/LibsslDHKeyExchange.h
  11814. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  11815. * test/DefaultBtAnnounceTest.cc
  11816. * test/ARC4Test.cc
  11817. * test/DHKeyExchangeTest.cc
  11818. Removed prepareForRetry() because it is not used.
  11819. * src/PeerAbstractCommand.{h, cc}
  11820. * src/PeerInteractionCommand.{h, cc}
  11821. * src/PeerInitiateConnectionCommand.{h, cc}
  11822. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11823. Added the ability to load nodes from torrent file. These nodes are
  11824. added to the routing table when downloading that torrent.
  11825. * src/BtContext.h
  11826. * src/DefaultBtContext.{h, cc}
  11827. * src/DHTSetup.cc
  11828. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  11829. hostname and port pair, and resolves all of them.
  11830. * src/NameResolver.{h, cc}: Added reset().
  11831. * src/RequestGroup.cc
  11832. * test/DefaultBtContextTest.cc
  11833. * test/MockBtContext.h
  11834. Removed assert() from DefaultBtContext and throw exception instead.
  11835. * src/DefaultBtContext.cc
  11836. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11837. Fixed segmentation fault bug when exiting if dht is disabled.
  11838. * src/RequestGroup.cc
  11839. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11840. Fixed typo in log message and define the message in message.h
  11841. * src/TimedHaltCommand.cc
  11842. * src/message.h
  11843. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11844. Included RecoverableException.h to fix compilation error.
  11845. * test/DHTMessageFactoryImplTest.cc
  11846. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11847. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  11848. * test/DHTPingMessageTest.cc
  11849. * test/DHTGetPeersMessageTest.cc
  11850. * test/DHTFindNodeMessageTest.cc
  11851. * test/DHTAnnouncePeerMessageTest.cc
  11852. * test/MockDHTMessage.h
  11853. * test/MockDHTMessageFactory.h
  11854. * test/MockDHTMessageDispatcher.h: New class.
  11855. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11856. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  11857. virtual.
  11858. * src/DHTMessageDispatcher.h
  11859. * src/DHTMessageDispatcherImpl.{h, cc}
  11860. * src/DHTSetup.cc
  11861. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11862. Adding handling of DHT error message. Just log error message and
  11863. throw exception.
  11864. * src/DHTMessageFactoryImpl.cc
  11865. * test/DHTMessageFactoryImplTest.cc
  11866. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11867. Added handling of dynamic cast failure.
  11868. * src/DHTNodeLookupTask.cc
  11869. * src/DHTPeerLookupTask.cc
  11870. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11871. Added the ability to stop aria2 itself when given time has passed
  11872. from start. Use --stop option to specify time in minutes.
  11873. When 0 is given, this feature is disabled.
  11874. * src/OptionHandlerFactory.cc
  11875. * src/TimeBasedCommand.h: Make _interval protected scope.
  11876. * src/HelpItemFactory.cc
  11877. * src/option_processing.cc
  11878. * src/prefs.h
  11879. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  11880. before calling RequestGroupMan::fillRequestGroupFromReserver().
  11881. Without this modification, the result list shows "ERR" when aria2 is
  11882. stopped by --stop option. It should be "INPR".
  11883. * src/DownloadEngine.{h, cc}
  11884. * src/DownloadEngineFactory.cc
  11885. * src/usage_text.h
  11886. * src/TimedHaltCommand.{h, cc}: New class.
  11887. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11888. Bootstrap through node added by port message.
  11889. Currently bootstrap is executed if the number of buckets in routing
  11890. table is 1.
  11891. * src/BtPortMessage.{h, cc}
  11892. * src/DefaultBtMessageFactory.{h, cc}
  11893. * src/PeerInteractionCommand.cc
  11894. * test/BtPortMessageTest.cc
  11895. * test/MockDHTTask.h
  11896. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11897. Extract the Peer class's member variables, which are only needed after
  11898. PeerInteractionCommand, into PeerSessionResource class.
  11899. This class is instantiated in PeerInteractionCommand class's ctor and
  11900. released in its dtor.
  11901. This will make Peer class lightweight and uses less memory for peers
  11902. which are not connected and wait in the queue.
  11903. * src/PeerChokeCommand.cc
  11904. * src/PeerSessionResource.{h, cc}
  11905. * src/PeerInteractionCommand.cc
  11906. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  11907. * src/DefaultBtInteractive.cc
  11908. * src/BtPieceMessage.cc
  11909. * src/BtInterestedMessage.cc
  11910. * src/BtUnchokeMessage.cc
  11911. * src/DefaultPeerStorage.{h, cc}
  11912. * src/PeerInitiateConnectionCommand.cc
  11913. * src/ActivePeerConnectionCommand.cc
  11914. * src/BtNotInterestedMessage.cc
  11915. * src/DefaultBtMessageDispatcher.cc
  11916. * src/BtChokeMessage.cc
  11917. * src/BtRequestMessage.cc
  11918. * src/Peer.{h, cc}
  11919. * src/BtRegistry.h
  11920. * src/TrackerWatcherCommand.cc
  11921. * src/PeerReceiveHandshakeCommand.cc
  11922. * test/BtExtendedMessageTest.cc
  11923. * test/BtAllowedFastMessageTest.cc
  11924. * test/BtCancelMessageTest.cc
  11925. * test/DefaultPieceStorageTest.cc
  11926. * test/BtBitfieldMessageTest.cc
  11927. * test/BtHaveMessageTest.cc
  11928. * test/BtNotInterestedMessageTest.cc
  11929. * test/BtRequestMessageTest.cc
  11930. * test/PeerSessionResourceTest.cc
  11931. * test/DefaultBtMessageDispatcherTest.cc
  11932. * test/PeerTest.cc
  11933. * test/BtInterestedMessageTest.cc
  11934. * test/BtRejectMessageTest.cc
  11935. * test/BtChokeMessageTest.cc
  11936. * test/DefaultPeerStorageTest.cc
  11937. * test/BtHaveNoneMessageTest.cc
  11938. * test/BtHaveAllMessageTest.cc
  11939. * test/DefaultExtensionMessageFactoryTest.cc
  11940. * test/BtUnchokeMessageTest.cc
  11941. * test/DefaultBtMessageFactoryTest.cc
  11942. * test/HandshakeExtensionMessageTest.cc
  11943. * test/UTPexExtensionMessageTest.cc
  11944. * test/DefaultBtRequestFactoryTest.cc
  11945. * test/BtPieceMessageTest.cc
  11946. Removed typedef PeerStats.
  11947. * src/PeerStat.h
  11948. * src/SegmentMan.cc
  11949. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11950. Added std namespace to copy, remove_copy, back_inserter,
  11951. front_inserter.
  11952. * src/RequestGroupMan.cc
  11953. * src/DefaultPieceStorage.cc
  11954. * src/StreamFileAllocationEntry.cc
  11955. * src/BtFileAllocationEntry.cc
  11956. * src/RequestGroup.cc
  11957. * src/MetalinkEntry.cc
  11958. * src/DelegatingPeerListProcessor.cc
  11959. * src/DefaultBtRequestFactory.cc
  11960. * src/DefaultBtMessageDispatcher.cc
  11961. * src/version_usage.cc: Included <algorithm>
  11962. * src/main.cc
  11963. * src/MetalinkParserController.cc
  11964. * src/DefaultBtContext.cc
  11965. * src/DownloadEngineFactory.cc
  11966. * src/a2algo.h
  11967. Removed.
  11968. * test/StreamUriListParserTest.cc
  11969. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11970. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  11971. ActivePeerConnectionCommand when it is given and
  11972. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  11973. * src/ActivePeerConnectionCommand.{h, cc}
  11974. * src/BtSetup.cc
  11975. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11976. Only add socket to DownloadEngine's select routine when peer or
  11977. localhost is unchoked and interested. This lowers CPU usage a
  11978. little bit.
  11979. * src/PeerInteractionCommand.cc
  11980. * src/PeerAbstractCommand.{h, cc}
  11981. * src/BtInteractive.h
  11982. * src/DefaultBtInteractive.{h, cc}
  11983. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11984. Revert previous change because get_peers message is needed for
  11985. announce_peer anyway.
  11986. * src/DHTGetPeersCommand.cc
  11987. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11988. Request peers thought DHT only when download hasn't finished.
  11989. * src/DHTGetPeersCommand.cc
  11990. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11991. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  11992. * src/DHTBucketRefreshTask.{h, cc}
  11993. * src/DHTSetup.cc
  11994. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11995. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  11996. standard classes.
  11997. Included string.h where mem* function are used.
  11998. Added namespace aria2.
  11999. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12000. Create directory before saving DHT routing table.
  12001. Now ios::failure is now handled properly.
  12002. * src/DHTAutoSaveCommand.cc
  12003. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12004. Removed unnecessary cerr.
  12005. * src/DownloadEngine.cc
  12006. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12007. Catch exception inside DHTMessageReceiver::receiveMessage().
  12008. Log unknown message.
  12009. * src/DHTMessageReceiver.{h, cc}
  12010. * src/DHTMessageFactory.h
  12011. * src/DHTMessageFactoryImpl.{h, cc}
  12012. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  12013. * src/DHTInteractionCommand.cc
  12014. * src/DHTUnknownMessage.{h, cc}
  12015. * test/DHTUnknownMessageTest.cc
  12016. * test/MockDHTMessageFactory.h
  12017. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12018. Commented out ip address comparison because a host can have multiple
  12019. ip addresses and it is hard to predict the hostname is resolved into
  12020. which one.
  12021. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  12022. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12023. * po/Makefile.in: Removed since this is generated by configure.
  12024. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12025. Fixed compiler warning about redefinition of SIZE_MAX.
  12026. Use common.h instead of config.h directly here.
  12027. * src/Platform.{h, cc}
  12028. The check of ENABLE_NLS is made in gettext.h, so it is not required
  12029. here.
  12030. * common.h
  12031. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  12032. Updated gettext related files.
  12033. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  12034. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  12035. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12036. Added DHT functionality, compatible with mainline.
  12037. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  12038. You may need to specify entry point to DHT network using
  12039. --dht-entry-point. DHT uses UDP port to listen incoming message.
  12040. Use --dht-listen-port to specify port number. Make sure that your
  12041. firewall configuration can pass through UDP traffic to the port.
  12042. The routing table is saved in $HOME/.aria2/dht.dat.
  12043. * src/DHT*
  12044. * src/BNode.{h, cc}
  12045. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  12046. particular torrent.
  12047. * src/Data.cc: Rewritten ctor.
  12048. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  12049. --dht-entry-point.
  12050. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  12051. * src/RequestGroup.cc: Initialize DHT functionality. When download
  12052. ends, remove BtContext from DHTPeerAnnounceStorage.
  12053. * src/BtPortMessage.{h, cc}: Rewritten.
  12054. * src/message.h
  12055. * src/OptionHandlerImpl.cc
  12056. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  12057. --dht-entry-point.
  12058. * src/Dictionary.{h, cc} (remove): New function.
  12059. * src/prefs.h
  12060. * src/DefaultBtMessageFactory.h
  12061. * src/BtHandshakeMessage.cc
  12062. * src/ActivePeerConnectionCommand.cc
  12063. * src/SocketCore.{h, cc}: Added datagram socket support.
  12064. * src/DefaultBtMessageFactory.cc
  12065. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  12066. Create DHT commands.
  12067. * src/BtMessageFactory.h
  12068. * src/PeerMessageUtil.{h, cc}
  12069. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12070. Fixed the bug that log file is not written when configuration file doesn't exist.
  12071. This is caused by using Logger class before LogFactory is not configured.
  12072. BUG #1875079
  12073. * src/option_processing.cc
  12074. Warning message "configuration doesn't exist" is only printed when --conf is
  12075. given.
  12076. * src/option_processing.cc
  12077. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12078. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  12079. ShaVisitor is now deprecated and slated to be removed.
  12080. * src/DefaultBtContext.cc
  12081. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12082. Externalize message to message.h
  12083. * src/Platform.cc
  12084. * src/message.h
  12085. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12086. Set default domain and default path to cookie.
  12087. * src/HttpResponse.cc
  12088. * src/CookieBox.{h, cc}
  12089. * src/CookieParser.{h, cc}
  12090. * test/CookieParserTest.cc
  12091. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12092. Added --no-conf and --conf-path command-line option.
  12093. --no-conf option disables loading aria2.conf file.
  12094. --conf-path option changes the configuration file path. The default
  12095. file path is $HOME/.aria2/aria2.conf
  12096. Added a warning message when the configuration file is not found.
  12097. * src/HelpItemFactory.cc
  12098. * src/option_processing.cc
  12099. * src/prefs.h
  12100. * src/usage_text.h
  12101. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12102. Added the message to inform users that other help categories are
  12103. available in -h option.
  12104. * src/version_usage.cc
  12105. * src/TagContainer.{h, cc}
  12106. * test/TagContainerTest.cc
  12107. * src/TaggedItem.{h, cc}
  12108. * test/TaggedItemTest.cc
  12109. * src/HelpItem.h
  12110. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12111. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  12112. from PiecedSegment's ctor.
  12113. Previously Piece::getAllMissingBlockIndexes() is called from
  12114. PiecedSegment() but it is rather expensive since only first element is
  12115. used.
  12116. * src/PiecedSegment.cc
  12117. * src/Piece.{h, cc}
  12118. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12119. Rewritten get*Missing*Index functions. Now no need to allocate memory
  12120. each time these functions are called.
  12121. * src/BitfieldMan.{h, cc}
  12122. * test/BitfieldManTest.cc
  12123. * src/array_fun.h
  12124. * test/array_funTest.cc
  12125. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  12126. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  12127. filtered. Removed unnecessary cast to int32_t.
  12128. * src/BitfieldMan.{h, cc}
  12129. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12130. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  12131. payload length(4bytes) are received. This happens because lenbufLength
  12132. is not updated in this particular case and successive call of
  12133. receiveMessage() overwrites payload length with bytes recieved which
  12134. are payload body.
  12135. * src/PeerConnection.{h, cc}
  12136. * src/message.h
  12137. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12138. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  12139. peer if there are peers that have same ipaddr and port.
  12140. I've experiened segmentation fault and "pure virtual function was
  12141. called" error.
  12142. * src/Peer.h
  12143. * test/PeerTest.cc
  12144. * src/DefaultPeerStorage.cc
  12145. * test/DefaultPeerStorageTest.cc
  12146. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12147. Removed a call to isPowerOf() because it is no longer necessary here
  12148. and a request block is not always power of 2.
  12149. BUG#1866924
  12150. * src/PeerMessageUtil.cc (checkLength)
  12151. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12152. Fixed the bug that always first found Segment is removed from
  12153. usedSegmentEntries. Removed unused functions.
  12154. * src/SegmentMan.{h, cc}
  12155. * test/SegmentManTest.cc
  12156. Fixed the bug that ServerHost is not removed.
  12157. * src/RequestGroup.cc
  12158. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12159. Fixed the bug that SegmentMan::completeSegment() is not called
  12160. even if Segment is complete when --lowest-speed-limit is enabled.
  12161. BUG#1864525
  12162. * src/DownloadCommand.{h, cc}
  12163. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12164. Fixed: hash algorithm 'sha1' is always used.
  12165. * src/DownloadCommand.cc (validatePieceHash)
  12166. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12167. Added --enable-peer-exchange command-line option.
  12168. * src/OptionHandlerFactory.cc
  12169. * src/HelpItemFactory.cc
  12170. * src/option_processing.cc
  12171. * src/usage_text.h
  12172. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12173. Move extension from BtRuntime to ExtensionMessageFactory, because
  12174. extension can be specified per peer, not per torrent.
  12175. * src/DefaultBtInteractive.cc
  12176. * src/BtRuntime.h
  12177. * src/ExtendedMessagingAware.h
  12178. * src/ExtensionMessageFactory.h
  12179. * src/DefaultExtensionMessageFactory.cc
  12180. * test/DefaultExtensionMessageFactoryTest.cc
  12181. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12182. Added categorized option help. Specify category using --help option.
  12183. Also added the ability to search options in forward match.
  12184. * src/HelpItem.{h, cc}
  12185. * test/HelpItemTest.cc
  12186. * src/HelpItemFactory.{h, cc}
  12187. * src/TagContainer.{h, cc}
  12188. * test/TagContainerTest.cc
  12189. * src/option_processing.cc
  12190. * src/prefs.h
  12191. * src/TaggedItem.{h, cc}
  12192. * test/TaggedItemTest.cc
  12193. * src/version_usage.cc
  12194. * src/help_tags.h
  12195. * src/usage_text.h
  12196. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12197. Fixed segmentation fault when bad torrent metainfo is parsed.
  12198. Added dynamic_cast properly to detect the misconfiguration of metainfo
  12199. and then throw exception or skip it.
  12200. * src/DefaultBtContext.{h, cc}
  12201. * test/DefaultBtContextTest.cc
  12202. * src/AnnounceList.cc
  12203. * src/CompactPeerListProcessor.cc
  12204. * src/message.h
  12205. * src/DefaultBtAnnounce.{h, cc}
  12206. * test/DefaultBtAnnounceTest.cc
  12207. * src/BencodeVisitor.cc
  12208. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12209. Added missing "B"(=Byte). So now the message looks like this:
  12210. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  12211. * src/message.h (MSG_SHARE_RATIO_REPORT)
  12212. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12213. Show the seed ratio after torrent downloads.
  12214. For example, after torrent download completed and --seed-time and
  12215. --seed-ratio conditions are fulfilled, following message is printed
  12216. right after "Download complete: .....":
  12217. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  12218. * src/RequestGroupMan.cc
  12219. * src/RequestGroup.{h, cc}
  12220. * src/message.h
  12221. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12222. Remove a defunct control file. A defunct control file means that while
  12223. it exists, but the corresponding download file is missing.
  12224. After its removal, a download restarts from the beginning.
  12225. * src/RequestGroup.cc
  12226. * src/message.h
  12227. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12228. Allocate bitfield in Peer when it is really used. More specifically,
  12229. bitfield in Peer is allocated after the connection is established and
  12230. deallocated when the connection is dropped.
  12231. Since 2 parameters(piece length and total length) was removed from the
  12232. constructor of Peer class, many test classes were modified accordingly.
  12233. See svn log for more detailed information.
  12234. * src/PeerInteractionCommand.cc
  12235. * src/CompactPeerListProcessor.cc
  12236. * src/Peer.cc
  12237. * src/DefaultPeerListProcessor.cc
  12238. * src/PeerListenCommand.cc
  12239. * src/PeerReceiveHandshakeCommand.cc
  12240. Fixed memory leak
  12241. * src/Piece.cc
  12242. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12243. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  12244. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  12245. command-line options.
  12246. * src/option_processing.cc
  12247. * src/ActivePeerConnectionCommand.cc
  12248. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12249. Send have message to peer if it already has the piece.
  12250. * src/BtHaveMessage.{h, cc}
  12251. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12252. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  12253. port.
  12254. * src/DefaultPeerStorage.{h, cc}
  12255. * test/DefaultPeerStorageTest.cc
  12256. * src/HandshakeExtensionMessage.cc
  12257. * test/HandshakeExtensionMessageTest.cc
  12258. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  12259. * src/PeerStorage.h
  12260. * test/MockPeerStorage.h
  12261. * src/PeerListenCommand.cc
  12262. * src/PeerReceiveHandshakeCommand.cc
  12263. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12264. Added --metalink-enable-unique-protocol option.
  12265. * src/Metalink2RequestGroup.cc
  12266. * src/option_processing.cc
  12267. * src/prefs.h
  12268. * src/version_usage.cc
  12269. * doc/aria2c.1.txt
  12270. * doc/aria2c.1
  12271. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12272. Allow a peer in incomingPeer to be added peers.
  12273. * src/DefaultPeerStorage.cc
  12274. * test/DefaultPeerStorageTest.cc
  12275. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12276. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  12277. I could reproduce this bug in following procedure:
  12278. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  12279. 2. Restart aria2.
  12280. 3. You see the download stopped around 99%.
  12281. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  12282. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  12283. If timeout is reached, then _nextCommand is unused and it may contains
  12284. segments and they won't be canceled. Actually, timeout is not needed
  12285. here because if the server dropped connection, then retry is made.
  12286. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12287. Added uTorrent compatible Peer Exchange.
  12288. * src/BencodeVisitor.{h, cc}
  12289. * test/BencodeVisitorTest.cc
  12290. * src/BtConstants.h
  12291. * src/BtContext.h: Added 'private' flag.
  12292. * src/BtExtendedMessage.{h, cc}
  12293. * test/BtExtendedMessageTest.cc
  12294. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  12295. reserved field.
  12296. * test/BtHandshakeMessageTest.cc
  12297. * src/BtMessageFactory.h
  12298. * src/BtRegistry.h
  12299. * src/BtRuntime.h: This class holds default extension message IDs for
  12300. aria2. By default, aria2 uses ID 8 for ut_pex.
  12301. * src/DefaultBtContext.cc
  12302. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  12303. When it is true, aria2 enables ut_pex. This value is set by
  12304. PeerInteractionCommand.
  12305. * src/DefaultBtMessageFactory.{h, cc}
  12306. * test/DefaultBtMessageFactoryTest.cc
  12307. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  12308. handling to DefaultBtInteractive class.
  12309. * src/DefaultExtensionMessageFactory.{h, cc}
  12310. * test/DefaultExtensionMessageFactoryTest.cc
  12311. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  12312. the container(peers and incomingPeers. The equality is determined by
  12313. Peer::id).
  12314. * test/DefaultPeerStorageTest.cc
  12315. * src/ExtensionMessage.h
  12316. * test/MockExtensionMessage.h
  12317. * src/ExtensionMessageFactory.h
  12318. * test/MockExtensionMessageFactory.h
  12319. * src/HandshakeExtensionMessage.{h, cc}
  12320. * test/HandshakeExtensionMessageTest.cc
  12321. * src/MetaEntry.h
  12322. * src/Peer.{h, cc}
  12323. * src/PeerInteractionCommand.cc
  12324. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  12325. addIncomingPeer.
  12326. * src/PeerMessageUtil.{h, cc}
  12327. * src/PeerObject.h
  12328. * src/UTPexExtensionMessage.{h, cc}
  12329. * test/UTPexExtensionMessageTest.cc
  12330. * src/message.h
  12331. * src/prefs.h
  12332. Fixed the bug that returns incomplete data when it contains null
  12333. character. A convenient constructor was also added.
  12334. * src/Data.{h, cc}
  12335. Rewritten.
  12336. * src/CompactPeerListProcessor.cc
  12337. Fixed typos.
  12338. * src/message.h
  12339. * src/MetaFileUtil.cc
  12340. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12341. Added "Status Legend" label to the explanation text of 'stat' in
  12342. download result and moved it to the last. BUG#1848214
  12343. * src/RequestGroupMan.cc
  12344. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12345. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  12346. * src/Makefie.am
  12347. * test/Makefile.am
  12348. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12349. Fixed the bug that prevents aria2 from loading cookie file when expire
  12350. value is greater than 2^31-1. BUG#1851066
  12351. * src/CookieBoxFactory.cc
  12352. * test/CookieBoxFactoryTest.cc
  12353. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12354. Fixed possible memory leak when an exception is thrown.
  12355. * src/XML2SAXMetalinkProcessor.cc
  12356. Added Expat support. If both libxml2 and Expat are installed, then
  12357. libxml2 is used by default.
  12358. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  12359. ExpatMetalinkProcessor according to the configuration.
  12360. * src/ExpatMetalinkProcessor.{h, cc}
  12361. * src/main.cc: Removed libxml2 specific header and init/free function.
  12362. * src/MetalinkProcessorFactory.{h, cc}
  12363. * src/MetalinkHelper.cc
  12364. * src/Metalinker.h: Removed unnecessary libxml2 header.
  12365. * src/MetalinkProcessor.h
  12366. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  12367. MetalinkProcessorTest is used instead.
  12368. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  12369. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  12370. MetalinkProcessorFactory::newInstance().
  12371. * m4/libexpat.m4
  12372. * configure.ac: Added configuration options for libexpat.
  12373. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12374. Disabled -s option in metalink download.
  12375. * src/Metalink2RequestGroup.cc
  12376. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12377. If several protocols are available for a mirror in metalink file,
  12378. aria2 now use one of them. --metalink-preferred-protocol option was
  12379. added to specify the preference of protocol.
  12380. * src/AbstractCommand.cc
  12381. * src/OptionHandlerFactory.cc
  12382. * src/ServerHost.{h, cc}
  12383. * src/Metalink2RequestGroup.cc
  12384. * src/RequestGroup.{h, cc}
  12385. * test/RequestGroupTest.cc
  12386. * src/option_processing.cc
  12387. * src/prefs.h
  12388. * src/HttpResponseCommand.cc
  12389. * src/MetalinkResource.{h, cc}
  12390. * src/FtpNegotiationCommand.cc
  12391. * src/MetalinkEntry.{h, cc}
  12392. * src/MetalinkEntryTest.cc
  12393. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12394. Code cleanup and added debug log.
  12395. * src/PeerConnection.cc
  12396. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12397. Compiler error fix: applied the patch by Tiziano Mueller
  12398. * src/RequestGroup.cc
  12399. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12400. Fixed the bug: only first announce URL is tried in AnnounceTier,
  12401. in stopped and completed event.
  12402. * src/AnnounceList.{h, cc}
  12403. * test/AnnounceListTest.cc
  12404. * src/DefaultBtAnnounce.cc
  12405. * test/DefaultBtAnnounceTest.cc
  12406. Sorted URLs.
  12407. * test/Metalink2RequestGroupTest.cc
  12408. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12409. Removed unnecessary string copy. Updated doc and corrected indentation.
  12410. * src/Base64.cc
  12411. Fixed compilation warnings
  12412. * test/DataTest.cc
  12413. * test/HttpRequestTest.cc
  12414. * test/MetaFileUtilTest.cc
  12415. * test/RequestTest.cc
  12416. * Release 0.12.0
  12417. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12418. Updated translations
  12419. * po/{de,fr,ja,nl,ru}.po
  12420. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  12421. translations. Many thanks to translators.
  12422. * po/{ca,es,it,pt_BR,sv}.po
  12423. * po/LINGUAS
  12424. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12425. Added a notice about URL
  12426. * src/version_usage.cc
  12427. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  12428. Fixed the bug#1845750; CTRL+C does not stop torrent.
  12429. aria2 repeatedly sends stopped request when tracker returns error code.
  12430. * src/AnnounceList.cc
  12431. * test/AnnounceListTest.cc
  12432. * src/AnnounceTier.h
  12433. Added a message when ctrl-c is hit.
  12434. Now second ctrl-c is also handled in signal handler.
  12435. * src/RequestGroupMan.{h, cc}
  12436. * src/RequestGroup.{h, cc}
  12437. * src/MultiUrlRequestInfo.cc
  12438. * src/DownloadEngine.cc
  12439. * src/TrackerWatcherCommand.cc
  12440. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12441. Code cleanup
  12442. * src/Base64.cc (encode)
  12443. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12444. Changed Direct/IO enable/disable procesure in file allocation routine.
  12445. * src/SingleFileAllocationIterator.cc
  12446. (SingleFileAllocationIterator):
  12447. Disable directIO if offset is not multiple of 512.
  12448. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  12449. * src/MultiFileAllocationIterator.cc (allocateChunk):
  12450. Enable created SingleFileAllocationIterator's directIO.
  12451. * src/FileAllocationEntry.cc
  12452. (FileAllocationEntry): Enable directIO here.
  12453. (~FileAllocationEntry): Disable directIO here.
  12454. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12455. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  12456. * src/Peer.{h, cc}
  12457. * src/DefaultPieceStorage.cc
  12458. * test/DefaultPieceStorageTest.cc
  12459. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12460. Rewritten direct I/O support routine
  12461. * src/SingleFileAllocationIterator.cc
  12462. * src/MultiDiskAdaptor.{h, cc}
  12463. * src/ByteArrayDiskWriter.h
  12464. * src/AbstractSingleDiskAdaptor.h
  12465. * src/AbstractDiskWriter.cc
  12466. * src/DefaultPieceStorage.cc
  12467. * src/DiskWriter.h
  12468. * src/BinaryStream.h
  12469. * src/IteratableChunkChecksumValidator.cc
  12470. * src/IteratableChecksumValidator.cc
  12471. * src/CheckIntegrityEntry.cc
  12472. * src/FileAllocationEntry.cc
  12473. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12474. Fixed typo
  12475. * src/version_usage.cc
  12476. Updated doc
  12477. * doc/aria2c.1.txt
  12478. * doc/aria2c.1
  12479. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12480. Fixed compile error without message digest support.
  12481. * src/FileMetalinkParserState.cc
  12482. * src/MetalinkParserController.{h, cc}
  12483. * test/XML2SAXMetalinkProcessorTest.cc
  12484. * test/MetalinkParserControllerTest.cc
  12485. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12486. Enable direct I/O support in checksum checking.
  12487. * src/IteratableChunkChecksumValidator.{h, cc}
  12488. * test/IteratableChunkChecksumValidatorTest.cc
  12489. * src/CheckIntegrityEntry.cc
  12490. * src/PieceHashCheckIntegrityEntry.cc
  12491. * src/IteratableChecksumValidator.{h, cc}
  12492. * src/BtCheckIntegrityEntry.cc: Added doc.
  12493. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12494. Added --allow-piece-length-change option.
  12495. * src/DefaultBtProgressInfoFile.cc
  12496. * test/DefaultBtProgressInfoFileTest.cc
  12497. * src/OptionHandlerFactory.cc
  12498. * src/option_processing.cc
  12499. * src/prefs.h
  12500. * src/version_usage.cc
  12501. * doc/aria2c.1.txt
  12502. * doc/aria2c.1
  12503. Fixed: duplicated result entry appears when exception is thrown in
  12504. RequestGroup::createInitiateConnectionCommand().
  12505. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  12506. Add RequestGroup to _requestGroup after RequetGroup::
  12507. createInitiateConnectionCommand() succeeds.
  12508. Externalized message
  12509. * src/XML2SAXMetalinkProcessor.cc
  12510. * src/message.h
  12511. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12512. Forced download abort when received negative response from http/ftp
  12513. server.
  12514. * src/HttpResponseCommand.cc
  12515. * src/FtpNegotiationCommand.cc
  12516. * src/HttpResponse.cc
  12517. * src/FtpConnection.cc
  12518. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12519. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  12520. the predecessor, Xml2MetalinkParser class.
  12521. I tested them against 94KB metalink file with 1234 chunk checksums.
  12522. The new one parsed it in 22msec, while it took 6000msec with old one.
  12523. * src/XML2SAXMetalinkProcessor.{h, cc}
  12524. * test/XML2SAXMetalinkProcessorTest.cc
  12525. * src/MetalinkParserController.{h, cc}
  12526. * test/MetalinkParserControllerTest.cc
  12527. * src/MetalinkParserState.h: Also added 16 subclasses.
  12528. * src/main.cc
  12529. * src/Metalink2RequestGroup.cc
  12530. * src/MetalinkHelper.cc
  12531. * src/MetalinkEntry.cc
  12532. * src/ChunkChecksum.h
  12533. Rewritten Base64 class for better performance.
  12534. * src/Base64.{h, cc}
  12535. * test/Base64Test.cc
  12536. * src/HttpRequest.cc
  12537. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12538. Fixed the bug#1841757: aria2 will connect to server to only get
  12539. file size.
  12540. * src/StreamFileAllocationEntry.cc
  12541. * src/option_processing.cc
  12542. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  12543. downloads.
  12544. * src/FtpNegotiationCommand.cc
  12545. Suppressed wrong message when finding PreDownloadHandler
  12546. * src/RequestGroup.cc
  12547. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12548. Updated usage
  12549. * src/version_usage.cc
  12550. Updated man page
  12551. * doc/aria2c.1.txt
  12552. * doc/aria2c.1
  12553. Updated po files
  12554. * po/aria2c.pot
  12555. * po/*.po
  12556. * po/*.gmo
  12557. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12558. Eliminated g++-4.2 warning
  12559. * src/DownloadHandlerConstants.{h, cc}
  12560. * src/Util.cc
  12561. * test/MetaFileUtilTest.cc
  12562. * test/PStringBuildVisitorTest.cc
  12563. Fixed bug: --check-integrity doesn't work for multi file torrent.
  12564. * src/RequestGroup.cc
  12565. * src/BtCheckIntegrityEntry.cc
  12566. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12567. Fixed a2io.h
  12568. * src/a2io.h
  12569. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12570. Added direct I/O support. The current implementation uses O_DIRECT,
  12571. which is not posix standard and is tested on linux 2.6.21.
  12572. Currently only file allocation uses direct I/O.
  12573. * src/SingleFileAllocationIterator.{h, cc}
  12574. * test/SingleFileAllocationIteratorTest.cc
  12575. * src/MultiFileAllocationIterator.{h, cc}
  12576. * test/MultiFileAllocationIteratorTest.cc
  12577. * src/BinaryStream.h
  12578. * src/DiskWriter.h
  12579. * src/AbstractDiskWriter.{h, cc}
  12580. * src/ByteArrayDiskWriter.h
  12581. * src/DiskAdaptor.h
  12582. * src/AbstractSingleDiskAdaptor.{h, cc}
  12583. * src/MultiDiskAdaptor.{h, cc}
  12584. * src/FileAllocationEntry.cc
  12585. * src/Util.{h, cc}
  12586. * src/OptionHandlerFactory.cc
  12587. * src/prefs.h
  12588. * src/version_usage.cc
  12589. * src/option_processing.cc
  12590. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  12591. handleException.
  12592. * src/MultiFileAllocationIterator.cc
  12593. Added EINTR handling
  12594. * src/SocketCore.cc
  12595. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12596. Updated usage
  12597. * src/version_usage.cc
  12598. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12599. Applied Ross's patch for MinGW port.
  12600. * src/DownloadEngine.h
  12601. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12602. Set Content-Type to SingleFileDownloadContext when http response is
  12603. received.
  12604. * src/HttpResponseCommand.cc
  12605. * src/HttpResponse.{h, cc}
  12606. * test/HttpResponseTest.cc
  12607. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12608. Rewritten to add content-type support.
  12609. * src/DownloadHandler.{h, cc}
  12610. * src/BtPostDownloadHandler.{h, cc}
  12611. * test/BtPostDownloadHandlerTest.cc
  12612. * src/MetalinkPostDownloadHandler.{h, cc}
  12613. * test/MetalinkPostDownloadHandlerTest.cc
  12614. * src/PostDownloadHandler.{h, cc}
  12615. * src/DownloadHandlerConstants.{h, cc}
  12616. * src/RequestGroup.cc
  12617. * src/HttpResponseCommand.cc
  12618. * src/FtpNegotiationCommand.cc
  12619. * src/SingleFileDownloadContext.{h, cc}
  12620. * src/RequestGroup.h
  12621. * src/RequestGroupCriteria.h
  12622. * src/ContentTypeRequestGroupCriteria.h
  12623. Added 'mem' option value for --follow-metalink, --follow-torrent.
  12624. If it is give, metalink/torrent file is not written to the disk, but
  12625. just is kept in memory. Parsing is occurred on memory.
  12626. * src/MetalinkHelper.{h, cc}
  12627. * src/MetalinkProcessor.h
  12628. * src/Xml2MetalinkProcessor.{h, cc}
  12629. * test/Xml2MetalinkProcessorTest.cc
  12630. * src/DownloadHandlerFactory.{h, cc}
  12631. * test/DownloadHandlerFactoryTest.cc
  12632. * src/PreDownloadHandler.{h, cc}
  12633. * src/OptionHandlerFactory.cc
  12634. * src/DefaultBtContext.{h, cc}
  12635. * test/DefaultBtContextTest.cc
  12636. * src/version_usage.cc
  12637. * src/Metalink2RequestGroup.{h, cc}
  12638. * src/RequestGroup.{h, cc}
  12639. * src/a2functional.h
  12640. * test/a2functionalTest.cc
  12641. * src/MemoryBufferPreDownloadHandler.{h, cc}
  12642. * src/OptionHandlerImpl.h
  12643. * src/prefs.h
  12644. * src/Util.{h, cc}
  12645. * test/UtilTest.cc
  12646. Keep DownloadResult rather than RequestGroup after downloads to reduce
  12647. memory usage.
  12648. * src/RequestGroupMan.{h, cc}
  12649. * src/DownloadEngine.cc
  12650. * src/BtDependency.{h, cc}: Changed the type of dependee from
  12651. WeakHandle to SharedHandle because WeakHandle could be null.
  12652. * src/RequestGroup.{h, cc}
  12653. * src/DownloadEngineFactory.cc
  12654. * src/DownloadResult.h
  12655. Set totalLength after download finished
  12656. * src/UnknownLengthPieceStorage.{h, cc}
  12657. Keep torrent file specified in metalink in memory.
  12658. * src/Metalink2RequestGroup.cc
  12659. * src/BtDependency.cc
  12660. * src/TrueRequestGroupCriteria.h
  12661. Fixed the bug: seekg is used where seekp should be used.
  12662. * src/ByteArrayDiskWriter.cc
  12663. * test/ByteArraydiskWriterTest.cc
  12664. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12665. Fixed syntax error
  12666. * test/SequenceTest.cc
  12667. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12668. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12669. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  12670. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12671. * src/RequestGroup.cc (downloadFinishedByFileLength)
  12672. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12673. Added the check to see whether ares_host_callback accepts timeouts
  12674. with c-ares; only c-ares 1.5.0 or newer accepts it.
  12675. * src/NameResolver.{h, cc}
  12676. * m4/libcares.m4
  12677. * configure.ac: Set C++ for language choice.
  12678. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12679. Fixed: compilation fails without c-ares/ares
  12680. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  12681. Generate http/ftp commands only when download is incomplete.
  12682. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  12683. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12684. Corrected typo. Examples are removed since they are available in man
  12685. page.
  12686. * src/version_usage.cc
  12687. Updated man page.
  12688. * doc/aria2c.1
  12689. * doc/aria2c.1.txt
  12690. * doc/makeman: Commented out sed command.
  12691. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12692. Throw DlAbortEx when a remote file is not found.
  12693. * src/HttpResponse.cc
  12694. * src/FtpNegotiationCommand.cc
  12695. * src/message.h
  12696. Overwrite an existing file if --allow-overwrite=true is given.
  12697. * src/RequestGroup.cc
  12698. Removed unused functions
  12699. * src/AbstractCommand.h
  12700. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12701. Removed 'extern' from 'extern typedef ...' in src/*.h
  12702. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12703. Updated usage
  12704. * src/version_usage.cc
  12705. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12706. Trim announce URL
  12707. * src/DefaultBtContext.cc
  12708. * test/ShaVisitorTest.cc
  12709. Trim argument s. Give trimed s to exception constructor.
  12710. * src/Util.cc (parseInt)(parseLLInt)
  12711. * test/UtilTest.cc
  12712. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12713. Set precision back to 1.
  12714. * src/ConsoleStatCalc.cc (calculateStat)
  12715. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12716. Replaced strtol with Util::parseInt
  12717. * src/ChunkedEncoding.cc
  12718. * src/HttpConnection.cc
  12719. * src/CookieBoxFactory.cc
  12720. * src/ParameterizedStringParser.cc
  12721. * src/Util.cc
  12722. * test/UtilTest.cc
  12723. * test/OptionHandlerTest.cc
  12724. * src/Request.cc
  12725. Throw exception when empty string is given. The message for exception
  12726. changed.
  12727. * src/Util.cc (parseInt)(parseLLInt)
  12728. * src/message.h
  12729. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12730. Set precision to 2 because share ratio is rounded into 1.0 if precision
  12731. set to 1.
  12732. * src/ConsoleStatCalc.cc (calculateStat)
  12733. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12734. Preallocate non-requested file which is adjacent forward to requested
  12735. file('requested' files means the files given in --select-file option)
  12736. if they share a same piece.
  12737. This fixes long pause in the file system which doesn't support sparse
  12738. files like FAT32 while downloading.
  12739. * src/MultiFileAllocationIterator.{h, cc}
  12740. * test/MultiFileAllocationIteratorTest.cc
  12741. * src/FileEntry.{h, cc}
  12742. Removed unused _option.
  12743. * src/MultiDiskAdaptor.h
  12744. * test/MultiDiskAdaptorTest.cc
  12745. * src/DefaultPieceStorage.cc
  12746. Set the default value of --seed-ratio to 1.0.
  12747. If 0.0 is given, then seeding continues regardless of share ratio.
  12748. * src/version_usage.cc
  12749. * src/option_processing.cc
  12750. * src/BtSetup.cc
  12751. * doc/aria2c.1.txt
  12752. * doc/aria2c.1
  12753. Fixed: Selective download is not working in BitTorrent
  12754. * src/RequestGroup.cc
  12755. Introduced Sequence class. Use this instead of Util::unfoldRange()
  12756. * src/PieceStorage.h
  12757. * test/MockPieceStorage.h
  12758. * src/UnknownLengthPieceStorage.h
  12759. * src/DefaultPieceStorage.{h, cc}
  12760. * src/Metalink2RequestGroup.cc
  12761. * src/RequestGroup.cc
  12762. * src/Sequence.h
  12763. * test/SequenceTest.cc
  12764. * src/IntSequence.h
  12765. * src/message.h
  12766. * src/Util.{h, cc}
  12767. * test/UtilTest.cc
  12768. Added new function 'parse' to catch exception thrown by subclass's
  12769. parseArg
  12770. * src/OptionHandler.h
  12771. * src/OptionParser.cc
  12772. * src/NameMatchOptionHandler.h
  12773. * src/OptionHandlerImpl.h
  12774. * test/OptionHandlerTest.cc
  12775. Added IntegerRangeOptionHandler. Used for --listen-port and
  12776. --select-file. Now --listen-port accepts range of port.
  12777. * src/OptionHandlerFactory.cc
  12778. * src/version_usage.cc
  12779. * src/OptionHandlerImpl.h
  12780. * src/option_processing.cc
  12781. * src/BtSetup.cc
  12782. * src/PeerListenCommand.{h, cc}
  12783. * doc/aria2c.1.txt
  12784. * doc/aria2c.1
  12785. Implemented operator< for Exception class to provide easy way to print
  12786. exception stack trace.
  12787. * src/Exception.{h, cc}
  12788. * src/main.cc
  12789. * src/option_processing.cc
  12790. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12791. * src/version_usage.cc
  12792. (showVersion): Reworked.
  12793. (showUsage): Added examples.
  12794. Removed Hint for total length and file name.
  12795. * src/Metalink2RequestGroup.cc
  12796. * src/RequestGroup.{h, cc}
  12797. * src/HttpResponseCommand.cc
  12798. * src/FtpNegotiationCommand.cc
  12799. Now --follow-torrent and --follow-metalink option work properly.
  12800. * src/RequestGroup.cc
  12801. Updated man page
  12802. * doc/aria2c.1.txt
  12803. * doc/aria2c.1
  12804. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12805. Removed.
  12806. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  12807. Use Segment::operator==()
  12808. * src/HttpConnection.cc
  12809. * src/Segment.h
  12810. Updated usage
  12811. * src/version_usage.cc
  12812. Added EINTR treatment.
  12813. * src/SocketCore.cc
  12814. * src/AbstractDiskWriter.cc
  12815. Rewritten.
  12816. * src/Util.cc (rangedFileCopy)
  12817. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12818. Fixed typo.
  12819. * src/version_usage.cc
  12820. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12821. Implemented. Now -c option works fine.
  12822. * src/DefaultPieceStorage.cc (markPiecesDone)
  12823. * test/DefaultPieceStorageTest.cc
  12824. Removed.
  12825. * src/SegmentMan.{h, cc}
  12826. (markAllPiecesDone)
  12827. (markPieceDone)
  12828. Synchronized po files with
  12829. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  12830. * src/fr.po
  12831. * src/ru.po
  12832. * src/de.po
  12833. * src/ja.po
  12834. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12835. Added ifdef and some modifications to compile without BitTorrent,
  12836. Metalink, MessageDigest
  12837. support.
  12838. * src/PieceHashCheckIntegrityEntry.cc
  12839. * src/MetalinkEntry.h
  12840. * src/version_usage.cc
  12841. * src/main.cc
  12842. * src/DownloadEngine.{h, cc}
  12843. * src/Metalink2RequestGroup.cc
  12844. * src/Peer.cc
  12845. * src/RequestGroup.cc
  12846. * src/MetalinkHelper.cc
  12847. * test/DefaultPieceStorageTest.cc
  12848. * test/MetalinkPostDownloadHandlerTest.cc
  12849. * test/Metalink2RequestGroupTest.cc
  12850. Hide TOTAL SPD when all downloads complete.
  12851. * src/ConsoleStatCalc.cc
  12852. Log target system information.
  12853. * src/main.cc
  12854. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12855. Now --metalink-location accepts a comma-deliminated list of locations.
  12856. * src/MetalinkEntry.{h, cc}
  12857. * test/MetalinkEntryTest.cc
  12858. * src/version_usage.cc
  12859. * src/Metalink2RequestGroup.cc
  12860. * src/Xml2MetalinkProcessor.cc
  12861. * test/Xml2MetalinkProcessorTest.cc
  12862. * doc/aria2c.1.txt
  12863. * doc/aria2c.1
  12864. * src/Util.cc (toUpper)(toLower): Rewritten.
  12865. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12866. Added the ability to detect duplicate download entry which is about to
  12867. download the same file other RequestGroup is downloading.
  12868. * src/RequestGroup.cc
  12869. * src/HttpResponseCommand.cc
  12870. * src/FtpNegotiationCommand.cc
  12871. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12872. Recalculates download progress when loading a control file,
  12873. if the piece length of DownloadContext is different from the one saved
  12874. in the control file. Currently in-flight pieces are ignored.
  12875. * src/DefaultBtProgressInfoFile.cc
  12876. * test/DefaultBtProgressInfoFileTest.cc
  12877. * src/Util.{h, cc}
  12878. * test/UtilTest.cc
  12879. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12880. Do not rotate tiers in announce-list.
  12881. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  12882. AnnounceList::allTiersFailed() used instead to detect whether all
  12883. tiers are tried and failed.
  12884. * test/DefaultBtAnnounceTest.cc
  12885. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  12886. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  12887. * test/AnnounceListTest.cc
  12888. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  12889. clause. Catch RecoverableException instead of DlRetryEx instead.
  12890. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12891. Implemented checksum validation feature(1 checksum for each file)
  12892. The validation takes place after the download.
  12893. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  12894. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  12895. * src/CheckIntegrityCommand.cc: Changed log message.
  12896. * src/Metalink2RequestGroup.cc: Set checksum to
  12897. SingleFileDownloadContext.
  12898. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  12899. PieceHashCheckIntegrity class.
  12900. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  12901. PieceHashCheckIntegrity class.
  12902. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  12903. * src/IteratableValidator.h: New class.
  12904. * src/message.h
  12905. * src/CheckIntegrityEntry.{h, cc}
  12906. * src/IteratableChunkChecksumValidator.{h, cc}
  12907. * src/SingleFileDownloadContext.h
  12908. * src/DownloadCommand.cc
  12909. --allow-overwrite=true is no longer needed to check file integrity
  12910. before download in BitTorrent download.
  12911. * src/RequestGroup.cc (getInitialCommand)
  12912. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  12913. throws exception.
  12914. * src/RequestGroupMan.cc (getInitialCommands)
  12915. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12916. urlencode the given url inside Request::parseUrl(...)
  12917. * src/Request.{h, cc}
  12918. * src/Util.{h, cc}
  12919. * test/RequestTest.cc
  12920. Removed #!metalink3! notation support because it is deleted from
  12921. the metalink specification.
  12922. * src/Request.{h, cc}
  12923. * test/RequestTest.cc
  12924. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12925. Don't connect server before checking file integrity at startup, if
  12926. filesize and output file path are known.
  12927. * src/AbstractCommand.cc
  12928. * src/StreamFileAllocationEntry.cc
  12929. * src/Metalink2RequestGroup.cc
  12930. * src/RequestGroup.{h, cc}
  12931. * src/HttpResponseCommand.cc
  12932. * src/FtpNegotiationCommand.cc
  12933. Added DownloadFailureException. If it is thrown, RequestGroup should
  12934. halt.
  12935. * src/AbstractCommand.cc
  12936. * src/DownloadFailureException.h
  12937. * src/RequestGroup.cc
  12938. Catch RecoverableException, instead of DlAbortEx.
  12939. * src/RequestGroupMan.cc
  12940. * src/FillRequestGroupCommand.cc
  12941. * src/MetaFileUtil.cc
  12942. * src/IteratableChunkChecksumValidator.cc
  12943. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  12944. getGID())
  12945. * src/CheckIntegrityCommand.cc
  12946. * src/message.h
  12947. Print gid instead of idx.
  12948. * src/RequestGroupMan.cc
  12949. Removed exception throwers declaration.
  12950. * src/DirectDiskAdaptor.{h, cc}
  12951. * src/SocketCore.{h, cc}
  12952. * src/MultiDiskAdaptor.{h, cc}
  12953. * src/HttpConnection.{h, cc}
  12954. * src/HttpResponse.{h, cc}
  12955. * src/DiskAdaptor.{h, cc}
  12956. * src/CopyDiskAdaptor.{h, cc}
  12957. * src/MultiDiskAdaptor.{h, cc}
  12958. * src/HttpHeaderProcessor.{h, cc}
  12959. * src/AbstractSingleDiskAdaptor.{h, cc}
  12960. * src/Util.{h, cc}
  12961. * test/UtilTest.cc
  12962. * src/DefaultDiskWriter.{h, cc}
  12963. * src/FtpConnection.{h, cc}
  12964. * src/AbstractDiskWriter.{h, cc}
  12965. Removed duplicate code.
  12966. * src/StreamCheckIntegrityEntry.cc
  12967. Removed unnecessary include.
  12968. * src/DiskWriter.h
  12969. Included Exception.h
  12970. * src/option_processing.cc
  12971. Included 2 files and added doc
  12972. * src/TrackerWatcherCommand.cc
  12973. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  12974. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12975. Changed CheckIntegrityEntry interface so that it can define
  12976. the action when all the chunk checksums are valid.
  12977. * src/CheckIntegrityEntry.h
  12978. * src/StreamCheckIntegrityEntry.{h, cc}
  12979. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  12980. are valid, then aira2 goes to seeding mode. Sometimes it is better
  12981. to exit rather than doing seeding. So, it would be good to toggle this
  12982. behavior.
  12983. * src/CheckIntegrityCommand.cc
  12984. * src/AbstractCommand.cc
  12985. * src/RequestGroup.cc
  12986. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12987. Reflect the download length of in-flight pieces.
  12988. It makes the download length readout more precise.
  12989. * src/DefaultPieceStorage.{h, cc}
  12990. * test/DefaultPieceStorageTest.cc
  12991. * src/a2functional.h
  12992. * test/a2functionalTest.cc
  12993. Lower CPU load when --max-download-limit is used.
  12994. There is up and down in speed indicator when enabling
  12995. http-pipelining but a download goes well. I think the problem is that
  12996. because http-pipelining is enabled, DownloadCommand is created for
  12997. each segment and in its constructor, PeerStat::downloadStart() is
  12998. called. In PeerStat::downloadStart(), speed calculation object is
  12999. reseted, which makes download speed zero.
  13000. * src/DownloadCommand.cc
  13001. Rewritten using accumulate.
  13002. * src/RequestGroupMan.cc (calculateStat)
  13003. Code clearnup.
  13004. * src/FtpNegotiationCommand.cc
  13005. * src/HttpResponseCommand.cc
  13006. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13007. Fixed: Can not resume: aria2 reports download already finished.
  13008. * src/AbstractCommand.{h, cc}
  13009. * src/HttpResponseCommand.cc
  13010. * src/FtpNegotiateCommand.cc
  13011. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13012. Now a file is stored in the directory specified in .metalnk file
  13013. (file[@name]).
  13014. * src/Metalink2RequestGroup.cc
  13015. Create the directory structure when opening the file if it doesn't
  13016. exist.
  13017. * src/AbstractDiskWriter.cc
  13018. * src/Util.{h, cc}
  13019. * src/File.h
  13020. * test/UtilTest.cc
  13021. Removed file name comparison
  13022. * src/Metalink2RequestGroup.cc
  13023. * src/HttpResponseCommand.cc
  13024. Rewritten using Util::mkdirs()
  13025. * src/FileEntry.cc (setupDir)
  13026. * test/FileEntryTest.cc
  13027. Updated doc
  13028. * src/SingleFileDownloadContext.h
  13029. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13030. Now SleepCommand dispatches nextCommand when halt is requested.
  13031. It avoids a possible long wait after hitting CTRL-C.
  13032. * src/SleepCommand.{h, cc}
  13033. * src/RequestGroupAware.{h, cc}
  13034. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13035. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  13036. to open listen port, then remove the port number from the tracker
  13037. request.
  13038. * src/DefaultBtAnnounce.cc
  13039. * test/DefaultBtAnnounceTest.cc
  13040. * test/MockPieceStorage.h
  13041. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  13042. them more testable.
  13043. * src/DefaultBtAnnounce.{h, cc}
  13044. * src/DefaultBtContext.{h, cc}
  13045. * src/Util.{h, cc}
  13046. * test/DefaultBtAnnounceTest.cc
  13047. * test/DefaultBtContextTest.cc
  13048. * test/UtilTest.cc
  13049. Added 'B' to upload bytes readout.
  13050. * src/ConsoleStatCalc.cc
  13051. Now the listen port for BitTorrent download is opened when it is
  13052. needed.
  13053. * src/DownloadEngineFactory.cc
  13054. * src/BtSetup.{h, cc}
  13055. * src/PeerListenCommand.{h, cc}
  13056. Now an exception thrown while parsing tracker response is now logged.
  13057. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  13058. called, which means no retry is made in this case, assuming a tracker
  13059. has a problem.
  13060. * src/TrackerWatcherCommand.cc
  13061. Fixed: downloading a file whose length is unkown fails.
  13062. * src/DownloadCommand.cc
  13063. Simplified prepareForNextSegment()
  13064. * src/DownloadCommand.cc
  13065. Updated
  13066. * po/POTFILES.in
  13067. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13068. Re-implemented a file listing for Metalink, which was dropped while
  13069. http/ftp/torrent integration was being implemented.
  13070. * src/MetalinkHelper.{h, cc}: New class.
  13071. * test/MetalinkHelperTest.cc
  13072. * src/main.cc
  13073. * src/Metalink2RequestGroup.cc
  13074. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13075. Added the ability to display the detailed torrent file information.
  13076. Now -S option gives not only a file listing, but also total download
  13077. length, info hash, announce URI, piece length, the number of pieces,
  13078. and mode(single or multi-torrent).
  13079. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  13080. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  13081. KiB)
  13082. * test/UtilTest.cc
  13083. * src/main.cc
  13084. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13085. Added ftp://USER:PASSWD@Servername automatic parsing.
  13086. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  13087. _password. Recognize username and password in URI.
  13088. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  13089. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  13090. * src/RequestFactory.{h, cc}: Removed.
  13091. * src/AuthConfigFactory.{h, cc}: New class.
  13092. * src/FtpConnection.cc: Use AuthConfigFactory.
  13093. * src/HttpRequest.cc: Use AuthConfigFactory.
  13094. * test/HttpRequestTest.cc: Updated.
  13095. * test/RequestTest.cc: Updated.
  13096. * test/AuthConfigFactoryTest.cc: New class.
  13097. * test/RequestFactoryTest.cc: Removed.
  13098. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13099. Use RequestGroup::allDownloadFinished() to decide whether the control
  13100. file should be removed or saved.
  13101. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  13102. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  13103. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13104. Use File::renameTo()
  13105. * src/DefaultBtProgressInfoFile.cc
  13106. Added --no-file-allocation-limit command-line option.
  13107. * src/version_usage.cc
  13108. * src/option_processing.cc
  13109. * src/OptionHandlerFactory.cc
  13110. * src/RequestGroup.{h, cc}
  13111. * src/BtCheckIntegrityEntry.cc
  13112. * src/StreamCheckIntegrityEntry.cc
  13113. * src/prefs.h
  13114. * doc/aria2c.1.txt
  13115. * doc/aria2c.1
  13116. Now prealloc is the default value for --file-allocation option.
  13117. * src/version_usage.cc
  13118. * src/option_processing.cc
  13119. * doc/aria2c.1.txt
  13120. * doc/aria2c.1
  13121. Don't URL-encode user-agent.
  13122. * src/HttpRequest.cc
  13123. Updated translations
  13124. * po/LINGUAS: Added nl for Dutch translation.
  13125. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  13126. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  13127. * po/POTFILES.in: Updated.
  13128. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13129. Added the ability to recognize url-list in a torrent file.
  13130. The retrieved URLs are attached to the corresponding FileEntry.
  13131. * src/DefaultBtContext.{h, cc}
  13132. * src/FileEntry.{h, cc}
  13133. * test/DefaultBtContextTest.cc
  13134. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13135. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  13136. after the download finishes.
  13137. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13138. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  13139. the data smaller than block length.
  13140. A block length can be specified by constructor's argument.
  13141. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  13142. Get a missing piece in the range of given FileEntry. This function is
  13143. not used in the program yet.
  13144. * src/Util.h: Added some macros.
  13145. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13146. Added HTTP/1.1 keep alive and pipelining support.
  13147. See --enable-http-keep-alive and --enable-http-pipelining option.
  13148. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  13149. Segment.
  13150. * src/HttpDownloadCommand.{h, cc}
  13151. * src/OptionHandlerFactory.cc
  13152. * src/HttpConnection.{h, cc}
  13153. * src/version_usage.cc
  13154. * src/HttpInitiateConnectionCommand.cc
  13155. * src/FtpInitiateConnectionCommand.cc
  13156. * src/Segment.h
  13157. * src/HttpRequestCommand.{h, cc}
  13158. * src/option_processing.cc
  13159. * src/prefs.h
  13160. * src/HttpResponseCommand.cc
  13161. * src/SegmentMan.{h, cc}
  13162. * src/FtpNegotiateCommand.cc
  13163. * src/HttpProxyResponseCommand.cc
  13164. * src/Request.cc
  13165. * src/HttpRequest.cc
  13166. * src/DownloadCommand.cc
  13167. * test/HttpRequestTest.cc
  13168. * test/RequestTest.cc
  13169. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13170. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  13171. finished.
  13172. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13173. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  13174. catching it inside the method.
  13175. When no file entry is found in a metalink without querying user
  13176. preferences, throw the exception with the error message that suggests
  13177. metalink file is probably broken.
  13178. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  13179. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13180. Fixed the bug that prevents remote Metalink/Torrent file from begin
  13181. processed.
  13182. * src/RequestGroupMan.cc (removeStoppedGroup)
  13183. Added debug message.
  13184. * src/BtPostDownloadHandler.cc
  13185. * src/MetalinkPostDownloadHandler.cc
  13186. * src/PostDownloadHandler.{h, cc}
  13187. * src/RequestGroup.cc
  13188. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13189. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  13190. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13191. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  13192. stops and there are any unfinished or in-progress downloads.
  13193. Added the legend of "stat".
  13194. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13195. Throw exception when chunck checksum verification fails.
  13196. * src/DownloadCommand.cc (validatePieceHash): New function.
  13197. * src/PiecedSegment.{h, cc} (clear): New function.
  13198. * src/GrowSegment.{h, cc} (clear): New function.
  13199. * src/Segment.h (clear): New function.
  13200. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  13201. * test/SegmentTest.cc
  13202. * test/GrowSegmentTest.cc
  13203. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13204. Do not send referer when redirected.
  13205. * src/Request.cc (redirectUrl)
  13206. * test/RequestTest.cc
  13207. * test/HttpRequestTest.cc
  13208. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13209. Implemented BitTorrent/http/ftp integrated download.
  13210. I've rewritten lots of files and now some headers have forward
  13211. class declarations to reduce compile time.
  13212. The implementation is extremely alpha stage, I recommend to use this
  13213. for testing purpose only.
  13214. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13215. Fixed the compilation error on 64bit platform.
  13216. * test/HttpHeaderProcessorTest.cc
  13217. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13218. Merged Ross's patch that fixes compilation problem in MinGW
  13219. * test/DefaultBtProgressInfoFileTest.cc
  13220. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13221. Updated fr.po by sebone
  13222. * po/fr.po
  13223. Updated man page.
  13224. * doc/aria2c.1.txt
  13225. * Release 0.11.3
  13226. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13227. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  13228. failure in Metalink.
  13229. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13230. Automatically save *.aria2 control file of http/ftp download in every
  13231. 60 seconds.
  13232. * src/AutoSaveCommand.{h, cc}: New class.
  13233. * src/TimeBasedCommand.{h, cc}: New class.
  13234. * src/DownloadEngineFactory.cc (newConsoleEngine)
  13235. Disable parameterized URI support by default. Added -P option to
  13236. enable the feature.
  13237. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  13238. * src/OptionHandlerFactory.cc
  13239. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  13240. Updated Japanese translation.
  13241. * po/ja.po
  13242. Updated man page.
  13243. * doc/aria2c.1.txt
  13244. * Release 0.11.3-rc
  13245. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13246. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  13247. it is successful, then renamed to *.aria2.
  13248. This prevents *.aria2 file from being truncated or corrupted when
  13249. file system becomes out of space.
  13250. * src/DefaultBtProgressInfoFile.cc (save)
  13251. * src/SegmentMan.cc (save)
  13252. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  13253. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13254. Reduced the fragmentation of bitfield in http/ftp download.
  13255. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  13256. * test/BitfieldManTest.cc
  13257. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13258. Added the ability to disable segmented download in .metalink.
  13259. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  13260. 'url' tag.
  13261. * src/MetalinkEntry.{h, cc}
  13262. * src/RequestResource.{h, cc}
  13263. * src/MetalinkRequestInfo.cc
  13264. * src/Xml2MetalinkProcessor.cc
  13265. * test/Xml2MetalinkProcessorTest.cc
  13266. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13267. Added parameterized URI support.
  13268. * src/main.cc: -Z option added.
  13269. * src/OptionHandlerFactory.cc
  13270. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  13271. * src/PStringDatum.h: New class.
  13272. * src/PStringSegment.{h,cc}: New class.
  13273. * src/PStringNumLoop.h: New class.
  13274. * src/PStringSelect.h: New class.
  13275. * src/NumberDecorator.h: New class.
  13276. * src/FixedWidthNumberDecorator.h: New class.
  13277. * src/AlphaNumberDecorator.h: New class.
  13278. * src/PStringVisitor.h: New class.
  13279. * src/PStringBuildVisitor.{h,cc}: New class.
  13280. * src/ParameterizedStringParser.{h,cc}: New class.
  13281. * src/Util.{h,cc}
  13282. (isNumber): New function.
  13283. (isLowercase): New function.
  13284. (isUppercase): New function.
  13285. (alphaToNum): New function.
  13286. * test/ParameterizedStringParserTest.cc: New class.
  13287. * test/AlphaNumberDecoratorTest.cc: New class.
  13288. * test/PStringBuildVisitorTest.cc: New class.
  13289. * test/UtilTest.cc
  13290. (testIsNumber): New function.
  13291. (testIsLowercase): New function.
  13292. (testIsUppercase): New function.
  13293. (testAlphaToNum): New function.
  13294. Added '\n' after the error message
  13295. * src/RequestInfo.h (printDownloadAbortMessage)
  13296. Added auto file renaming feature in http(s)/ftp download.
  13297. * src/main.cc: Added --auto-file-renaming command-line option.
  13298. * src/OptionHandlerFactory.cc
  13299. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  13300. * src/RequestGroup.{h, cc}
  13301. (shouldCancelDownloadForSafety): Rewritten
  13302. (tryAutoFileRenaming): New function.
  13303. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  13304. * src/HttpResponseCommand.cc
  13305. (executeInternal): Removed the call to RequestGroupMan::
  13306. isSameFileBeingDownloaded()
  13307. * src/FtpNegotiateCommand.cc
  13308. (recvSize): Removed the call to RequestGroupMan::
  13309. isSameFileBeingDownloaded()
  13310. * test/RequestGroupTest.cc: New class.
  13311. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13312. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  13313. IO.
  13314. * src/DefaultBtProgressInfoFile.cc
  13315. * src/MetaFileUtil.cc
  13316. * src/SimpleLogger.cc
  13317. * src/SegmentMan.cc
  13318. * src/Util.cc
  13319. * src/Platform.cc
  13320. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13321. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  13322. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13323. Avoid sparse files if possible, because VFAT32 doesn't support it.
  13324. * src/DefaultDiskWriter.cc (initAndOpenFile)
  13325. Fixed the bug that prevents file allocation is not done when
  13326. dowloading multi-torrent file.
  13327. * src/AbstractDiskWriter.cc (openFile)
  13328. Increase the maximum number of -j option from 15 to 45.
  13329. * src/OptionHandlerFactory.cc (createOptionHandlers)
  13330. Added fr.po, thanks to Charles Landemaine.
  13331. * po/fr.po
  13332. * po/LINGUAS
  13333. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  13334. gcc 3.4.4 support:
  13335. * src/DefaultBtContext.cc: int32_t -> int
  13336. * src/main.cc: int -> int32_t, int32_t -> int
  13337. * src/messageDigest.h: uint32_t -> unsigned int
  13338. * src/NameResolver.h: int32_t -> int
  13339. * src/PeerConnection.cc: int -> int32_t
  13340. * src/SpeedCalc.cc: int32_t -> int
  13341. * src/TrackerUpdateCommand.h: int -> int32_t
  13342. * src/Util.cc: int32_t -> int
  13343. * src/Util.h: int32_t -> int
  13344. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  13345. * test/AnnounceListTest.cc: int -> int32_t
  13346. * test/ChunkedEncodingTest.cc: int -> int32_t
  13347. * test/DataTest.cc: int -> int32_t
  13348. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  13349. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  13350. * test/DefaultPieceStorageTest.cc: int -> int32_t
  13351. * test/FeatureConfigTest.cc: int -> int32_t
  13352. * test/MetalinkEntryTest.cc: int -> int32_t
  13353. * test/MockBtRequestFactory.h: int -> int32_t
  13354. * test/MockPieceStorage.h: int -> int32_t
  13355. * test/OptionTest.cc: int -> int32_t
  13356. * test/RequestTest.cc: int -> int32_t
  13357. * test/SegmentManTest.cc: int -> int32_t
  13358. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  13359. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  13360. Move sleep functions to Util class:
  13361. * src/Util.cc
  13362. (sleep): New function.
  13363. (usleep): New function.
  13364. * src/DownloadCommand.cc: sleep -> Util::sleep
  13365. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  13366. MinGW build enhancements. The following files are added:
  13367. * src/timegm.{c,h}
  13368. Changes to support the above new files:
  13369. * configure.ac
  13370. * src/Makefile.am
  13371. * src/a2time.h
  13372. * src/Util.cc:
  13373. * src/strptime.c: Added support for %Z option.
  13374. Fixed MinGW non-blocking bug.
  13375. * src/SocketCore.cc
  13376. * src/HttpRequestCommand.cc
  13377. Miscellenous build fixes/enhancements.
  13378. * configure.ac: Added summary report.
  13379. * src/Platform.h: Tweaked #include's.
  13380. * src/a2netcompat.h: Tweaked #include's.
  13381. * src/strptime.h: Tweaked #include's.
  13382. * src/gai_strerror.c: Tweaked #include's.
  13383. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  13384. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  13385. * src/gettimeofday.h: Added HAVE_CONFIG_H
  13386. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13387. Increased the initial connection size in BitTorrent download to 40.
  13388. * src/BtRuntime.h
  13389. Added the usage message of --peer-id-prefix option.
  13390. * src/main.cc
  13391. * Release 0.11.2
  13392. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13393. MessageDigestHelper is introduced in order to simplify the use
  13394. of message digest. Removed repeated code.
  13395. The message digest algorithm is now specified by string, like "sha1",
  13396. "md5".
  13397. * src/messageDigest.{h, cc}
  13398. * src/MessageDigestHelper.{h, cc}: New class.
  13399. * src/DefaultPieceStorage.cc
  13400. * src/DefaultBtContext.{h, cc}
  13401. (computeFastSet): New function.
  13402. (setInfoHash): Added for unit testing.
  13403. (setNumPieces): Added for unit testing.
  13404. * src/DefaultBtInteractive.cc
  13405. * src/BtPieceMessage.cc
  13406. * src/Peer.cc
  13407. * src/Checksum.h
  13408. * src/message.h
  13409. * src/IteratableChecksumValidator.h
  13410. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  13411. inside it.
  13412. * src/SegmentMan.{h, cc}
  13413. (checkIntegrity): Removed.
  13414. * src/IteratableChunkChecksumValidator.{h, cc}
  13415. * src/Util.h
  13416. (sha1Sum): Removed.
  13417. (simpleMessageDigest): Removed.
  13418. (fileChecksum): Removed.
  13419. (computeFastSet): Removed.
  13420. * src/ShaVisitor.cc
  13421. * src/ChunkChecksum.h
  13422. * src/DownloadCommand.cc
  13423. Removed messageDigest virtual functions.
  13424. * src/MultiDiskAdaptor.{h, cc}
  13425. * src/DiskAdaptor.h
  13426. * src/ByteArrayDiskWriter.h
  13427. * src/DiskWriter.h
  13428. * src/DiskAdaptorWriter.h
  13429. * src/AbstractSingleDiskAdaptor.{h, cc}
  13430. * src/AbstractDiskWriter.{h, cc}
  13431. Fixed comilation error when message digest is disabled.
  13432. * src/MetalinkEntry.{h, cc}
  13433. * src/MetalinkRequestInfo.cc
  13434. Removed srandom and random.
  13435. * src/SimpleRandomizer.h
  13436. Added size() virtual function to DiskAdaptor
  13437. * src/MultiDiskAdaptor.h
  13438. Fixed the bug that causes that files are not opened correctly in
  13439. multi-file torrent.
  13440. * src/TorrentRequestInfo.cc
  13441. * src/MultiDiskAdaptor.cc
  13442. Added SHA256 support
  13443. * src/messageDigest.cc
  13444. * src/Xml2MetalinkProcessor.cc
  13445. Show supported message digest algorithms
  13446. * src/main.cc
  13447. Updated contact info.
  13448. * src/main.cc
  13449. Applied Ross's patch
  13450. * src/a2netcompat.h
  13451. * src/main.cc
  13452. Fixed the bug that prevents a remote metalink from not being processed
  13453. even if '-o foo.metalink' is specified.
  13454. * src/MetalinkRequestInfo.cc
  13455. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13456. Merged Dan's patch:
  13457. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  13458. Use va_copy to avoid core dump on amd64:
  13459. * src/SimpleLogger.cc
  13460. Updated contact info.
  13461. * src/main.cc
  13462. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  13463. digest is not available.
  13464. * src/MetalinkEntry.h
  13465. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13466. Make a2netcompat.h include a2io.h to fix compilation error:
  13467. * src/a2netcompat.h
  13468. * src/SocketCore.cc: Removed include of a2io.h
  13469. * src/Util.cc: Removed include of a2io.h
  13470. Gather time related functions to a2time.h:
  13471. * src/a2time.h: New file.
  13472. * src/DefaultPeerStorage.cc
  13473. * src/SimpleLogger.cc
  13474. * src/Util.{h, cc}
  13475. * src/SimpleRandomizer.h
  13476. * src/TimeA2.{h,cc}
  13477. * src/DownloadCommand.cc
  13478. * src/main.cc
  13479. Removed #ifdef __MINGW32__ since gai_strerror is included in
  13480. a2netcompat.h:
  13481. * src/NameResolver.cc
  13482. Fixed compilation error without openssl:
  13483. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  13484. Added default block to suppress compiler warnings:
  13485. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  13486. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  13487. MinGW build enhancements. The following files are added:
  13488. * src/gai_strerror.{c,h}
  13489. * src/gettimeofday.{c,h}
  13490. Changes to support the above new files:
  13491. * configure.ac
  13492. * src/Makefile.am
  13493. * src/a2netcompat.h
  13494. * src/TimeA2.cc
  13495. * src/DefaultPeerStorage.cc
  13496. * src/NameResolver.cc: removed mingw_strerror() function.
  13497. * src/SocketCore.cc: removed mingw_strerror() function.
  13498. Miscellaneous MinGW build fixes.
  13499. * src/a2io.h: Use _lseeki64() instead of lseek()
  13500. * src/common.h
  13501. * src/DefaultFileAllocator.cc
  13502. * src/GlowFileAllocator.cc
  13503. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  13504. * src/NameResolver.cc
  13505. (callback): Changed int32_t to int.
  13506. (resolve): Changed int32_t to int.
  13507. * src/Platform.cc
  13508. * src/Platform.h
  13509. * test/MultiDiskWriterTest.cc
  13510. * test/PeerMessageUtilTest.cc
  13511. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  13512. Other enhancements and fixes.
  13513. * src/HttpRequestCommand.cc
  13514. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  13515. * src/SocketCore.cc:
  13516. (error): New function to abstract errno/WSAGetLastError().
  13517. (errorMsg): New function to abstract errno/WSAGetLastError().
  13518. (initiateSecureConnection): Added more detailed error reporting.
  13519. * src/SocketCore.h: Added private variable blocking, to allow
  13520. proper handling of OpenSSL psuedo-errors.
  13521. * src/message.h
  13522. (EX_SSL_INIT_FAILURE)
  13523. (EX_SSL_IO_ERROR)
  13524. (EX_SSL_PROTOCOL_ERROR)
  13525. (EX_SSL_UNKNOWN_ERROR)
  13526. (EX_SSL_CONNECT_ERROR)
  13527. (EX_SOCKET_BLOCKING)
  13528. (EX_SOCKET_NONBLOCKING)
  13529. (EX_SOCKET_UNKNOWN_ERROR)
  13530. * src/Util.cc
  13531. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  13532. reserved name.
  13533. (httpGMT): Fixed typo.
  13534. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13535. Merged Ross's win32 patch(manually)
  13536. In the course of merging, following files are added.
  13537. * src/strptime.{h,c}
  13538. * src/libgen.{h,c}
  13539. * src/inet_aton.{h,c}
  13540. * src/Platform.{h,cc}
  13541. * src/localtime_r.{h,c}
  13542. * src/getaddrinfo.{h,c}
  13543. I've gethered network related things, and put them to following file:
  13544. * src/a2netcompat.h
  13545. Also io related things are put to following file:
  13546. * src/a2io.h
  13547. Changed %lld to %s because mingw32 doesn't recognize %lld.
  13548. * src/message.h
  13549. (MSG_ALLOCATION_COMPLETED)
  13550. (EX_TOO_LARGE_FILE)
  13551. (EX_SIZE_MISMATCH)
  13552. (EX_FILE_OFFSET_OUT_OF_RANGE)
  13553. (EX_INVALID_CHUNK_CHECKSUM)
  13554. (EX_INVALID_RANGE_HEADER)
  13555. * src/FileAllocationCommand.cc
  13556. * src/HttpResponse.cc
  13557. * src/RequestGroup.cc
  13558. * src/MultiDiskAdaptor.cc
  13559. * src/OptionHandlerImpl.h
  13560. * src/HttpResponseCommand.cc
  13561. * src/FtpNegotiateCommand.cc
  13562. * src/IteratableChecksumValidator.cc
  13563. * src/SegmentMan.cc
  13564. * src/ChunkChecksumValidator.cc
  13565. Added Randomizer::getRandomNumber(long int)
  13566. * src/Randomizer.h (getRandomNumber)
  13567. * src/SimpleRandomizer.h (getRandomNumber)
  13568. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  13569. * src/Util.cc (randomAlpha): Use this new function.
  13570. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13571. Converted int's to in32_t. long long int's are also converted to
  13572. int64_t
  13573. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13574. Fixed the bug that prevents cookies from being sent to the server
  13575. if the domain of cookie is FQDN and starts with ".".
  13576. * src/Cookie.cc (match)
  13577. To add the ability to change peer id.
  13578. * src/DefaultBtContext.h
  13579. (_peerIdPrefix): New variable
  13580. (setPeerIdPrefix): New function.
  13581. * src/torrentRequestInfo.cc
  13582. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  13583. DefaultBtContext.
  13584. * src/main.cc (main): Added peer-id-prefix command-line option.
  13585. The usage message is not added yet.
  13586. * src/DefaultBtContext.cc
  13587. (generatePeerId): Use _peerIdPrefix.
  13588. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  13589. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13590. Fixed the bug that prevents filename in content-disposition from
  13591. being retrieved when filename is not quoted.
  13592. * src/Util.cc (getContentDispositionFilename)
  13593. Fixed the bug that causes infinate loop and memory leak when file open
  13594. operation failed.
  13595. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  13596. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13597. Fixed the bug that causes segfault when all URIs specified are
  13598. unsupported.
  13599. * src/RequestGroupMan.cc (getInitialCommands)
  13600. Check if RequestGroup::createNextCommand() returns empty list of
  13601. commands.
  13602. * src/RequestGroup.cc (createNextCommand)
  13603. Change log level from info to error so that users can notice that
  13604. an error occurred.
  13605. Fixed the bug that causes segfault when a zero-sized file is
  13606. downloaded.
  13607. * src/BitfieldMan.cc (isAllBitSet)
  13608. Return true if bitfieldLength is 0.
  13609. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13610. * src/main.cc
  13611. (showUsage): Added 3 usage examples for metalink download.
  13612. Replace MetalinkChunkChecksum with ChunkChecksum.
  13613. * src/MetalinkChunkChecksum.h: Removed.
  13614. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  13615. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  13616. * src/Xml2MetalinkProcessor.cc
  13617. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  13618. * src/MetalinkRequestInfo.cc (execute)
  13619. * Release 0.11.1
  13620. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13621. Reads URIs from stdin when "-i -" is specified.
  13622. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  13623. * src/UriListParser.h, src/UriListParser.cc: New class.
  13624. * src/StreamUriListParser.h: New class.
  13625. * src/FileUriListParser.h: New class.
  13626. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  13627. instead of UriFileListParser.
  13628. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13629. Made console readout more readable.
  13630. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13631. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13632. Fix the bug that causes -s option not to work.
  13633. * src/main.cc (main)
  13634. * src/a2algo.h: New file.
  13635. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13636. Create directory structure specified in metalink file.
  13637. * src/RequestGroup.h, src/RequestGroup.cc
  13638. (initAndOpenFile): Create a directory to store files if it does not
  13639. exist.
  13640. (getDir): New function.
  13641. Added ETA and download speed for an individual file to readout.
  13642. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13643. * src/RequestGroup.h
  13644. (calculateDownloadSpeed): New function.
  13645. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13646. Made -S option work with metalink file and provided selective download
  13647. to metalink.
  13648. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  13649. (filename): Removed.
  13650. (file): New variable.
  13651. (size): Removed.
  13652. (operator=): Updated.
  13653. (getPath): New function.
  13654. (getLength): New function.
  13655. (toFileEntry): New function.
  13656. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  13657. (execute): Use toStream.
  13658. (showFileEntry): Removed.
  13659. * src/MetalinkRequestInfo.h
  13660. (targetFiles): New variable.
  13661. (setTargetFiles): New variable.
  13662. * src/MetalinkRequestInfo.cc
  13663. (execute): Added the ability to print file information included in
  13664. a metalink file.
  13665. Added selective download mode to metalink.
  13666. * src/main.cc
  13667. (showUsage): Updated to denote that -S and --select-file options are
  13668. applicable to metalink.
  13669. * src/FileEntry.h
  13670. (operator=): New function.
  13671. (getBasename): New function.
  13672. (getDirname): New function.
  13673. * src/Util.h, src/Util.cc
  13674. (toStream): New function.
  13675. * src/Xml2MetalinkProcessor.cc: Updated.
  13676. Made aria2 work with metalink with directory structure.
  13677. * src/File.h, src/File.cc
  13678. (getBasename): New function.
  13679. (getDirname): New function.
  13680. * src/RequestGroup.h, src/RequestGroup.cc
  13681. (_topDir): New variable.
  13682. (setTopDir): New function.
  13683. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  13684. Rewrote HTTP header parsing with stringstream.
  13685. * src/HttpConnection.h, src/HttpConnection.cc
  13686. (HttpRequestEntry): New class.
  13687. (headerBuf): Removed.
  13688. (headerBufLength): Removed.
  13689. (outstandingHttpRequests): Now its element type is
  13690. HttpRequestEntryHandle.
  13691. (findEndOfHeader): Removed.
  13692. (receiveResponse): Rewritten.
  13693. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  13694. Updated doc for -j option to notice that it should be used with -i
  13695. option.
  13696. * src/main.cc (showUsage)
  13697. Removed unused classes.
  13698. * src/RequestInfo.h
  13699. (FileInfo): Removed.
  13700. (checksum): Removed.
  13701. (fileInfo): Removed.
  13702. (setChecksum): Removed.
  13703. (getChecksum): Removed.
  13704. (getFileInfo): Removed.
  13705. Use ISO units.
  13706. * src/ConsoleDownloadEngine.cc
  13707. * src/TorrentConsoleDownloadEngine.cc
  13708. * src/Util.cc (abbrevSize)
  13709. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13710. Added the default listening ports to the help message.
  13711. * src/main.cc (showUsage)
  13712. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13713. Reduce the number of calls to gettimeofday to lower CPU load.
  13714. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  13715. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  13716. * src/Peer.h (calculateUploadSpeed): New function.
  13717. (calculateDownloadSpeed): New function.
  13718. * src/DefaultPeerStorage.cc
  13719. (CalculateStat): Added _now variable.
  13720. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  13721. and Peer::calculateUploadSpeed(const struct timeval&)
  13722. Drop connection if no request or piece message is exchanged in
  13723. a certain interval.
  13724. * src/DefaultBtInteractive.h
  13725. (btRuntime): New variable.
  13726. (inactiveCheckPoint): New variable.
  13727. (checkActiveInteraction): New function.
  13728. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  13729. request or piece message is received.
  13730. (checkActiveInteraction): New function.
  13731. (doInteractionProcessing): Call checkActiveInteraction.
  13732. Fixed the bug that causes remote Metalink and Torrent files are not
  13733. processed.
  13734. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  13735. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13736. Changed format of log file.
  13737. * src/SimpleLogger.cc
  13738. * Release 0.11.0
  13739. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13740. * src/AbstractCommand.cc
  13741. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  13742. MSG_MAX_TRY from error to info.
  13743. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  13744. * src/message.h
  13745. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  13746. (MSG_DOWNLOAD_ABORTED): Added %s.
  13747. (MSG_RESTARTING_DOWNLOAD): Added %s.
  13748. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  13749. * src/PeerAbstractCommand.cc
  13750. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  13751. * src/Request.h
  13752. (cookieBox): Made ShardHandle.
  13753. * src/RequestGroup.h, src/RequestGroup.cc
  13754. (createNextCommandWithAdj): New function.
  13755. * src/FileAllocationCommand.cc
  13756. (executeInternal): Use createNextCommandWithAdj().
  13757. * src/CheckIntegrityCommand.cc
  13758. (executeInternal): Use createNextCommandWithAdj().
  13759. Added --load-cookies command-option.
  13760. * src/OptionHandlerFactory.cc
  13761. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  13762. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  13763. Now aria2 can handle cookie's expiration date.
  13764. * src/Cookie.h (expires): Changed its type to time_t.
  13765. * src/main.cc: Added --load-cookies command-line option.
  13766. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  13767. * src/Util.h, src/Util.cc (httpGMT): New function.
  13768. * src/Request.cc (Request): Initialize cookieBox using
  13769. CookieBoxFactory.
  13770. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  13771. * src/CookieParser.h, src/CookieParser.cc: New class.
  13772. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  13773. * src/HttpResponseCommand.cc
  13774. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  13775. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  13776. download.
  13777. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13778. Added -j command-line option.
  13779. * src/OptionHandlerFactory.cc (createOptionHandlers)
  13780. * src/main.cc
  13781. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  13782. Rewritten using stringstream.
  13783. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  13784. Rewritten using stringstream.
  13785. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13786. Make download size shown in MB, KB.
  13787. * src/ConsoleDownloadEngine.h (sendStatistics)
  13788. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  13789. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13790. Accept incoming connections if download rate is low.
  13791. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  13792. (_lowestSpeedLimit): New variable.
  13793. (setLowestSpeedLimit): New function.
  13794. (execute): Accept incoming connections if download rate is low.
  13795. MAX_PEERS is ignored in this case.
  13796. Disable PREF_OUT in multiple concurrent download:
  13797. * src/RequestGroup.h, src/RequestGroup.cc
  13798. (setUserDefinedFilename): New function.
  13799. * src/DownloadEngineFactory.cc
  13800. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  13801. concurrent download.
  13802. * src/DefaultSegmentManFactory.cc
  13803. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  13804. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13805. RequestGroup::getNextCommand() was renamed to createNextCommand().
  13806. Added its overloaded method.
  13807. * src/RequestGroup.h
  13808. (_numConcurrentCommand): New variable.
  13809. (setNumConcurrentCommand): New function.
  13810. * src/RequestGroup.cc
  13811. Abort download if same file is being downloaded concurrently.
  13812. * src/RequestGroup.h, src/RequestGroupMan.cc
  13813. (isSameFileBeingDownloaded): New function.
  13814. * src/HttpResponseCommand.cc (executeInternal)
  13815. * src/FtpNegotiateCommand.cc (recvSize)
  13816. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  13817. * main.cc: Added help message for -i option.
  13818. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13819. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  13820. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  13821. * src/MetalinkEntry.h
  13822. (checksum): Changed to ChecksumHandle
  13823. * src/MetalinkRequestInfo.cc
  13824. (checksum): Changed to ChecksumHandle
  13825. * src/File.cc
  13826. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  13827. * src/common.h
  13828. (DIR_OPEN_MODE): New definition
  13829. * src/RequestGroup.cc
  13830. (prepareForNextAction): Added an argument.
  13831. * src/message.h
  13832. (MSG_GOOD_CHECKSUM): New definition
  13833. (MSG_BAD_CHECKSUM): New definition
  13834. * src/HttpResponseCommand.cc
  13835. (handleDefaultEncoding): Continue download sequence in new
  13836. non-segmented download.
  13837. * src/FileAllocationEntry.h
  13838. (_nextDownloadCommand): New variable.
  13839. * src/DownloadCommand.cc
  13840. (prepareForNextSegment): Create ChecksumCommand if checksum is
  13841. available.
  13842. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  13843. * src/IteratableChecksumValidator.h,
  13844. src/IteratableChecksumValidator.cc: New class.
  13845. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  13846. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13847. Change file mode to 666:
  13848. * src/common.h (OPEN_MODE): New definition.
  13849. * src/File.cc
  13850. * src/Util.cc
  13851. * src/Directry.cc
  13852. * src/AbstractDiskWriter.cc
  13853. Change the level of log message "download aborted" to debug:
  13854. * src/PeerAbstractCommand.cc (execute)
  13855. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  13856. * src/TrackerWatcherCommand.cc
  13857. (createCommand): Sleep some seconds after request failed.
  13858. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  13859. then abort tracker request.
  13860. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13861. * Added the simultaneous download feature.
  13862. * src/main.cc: Print "Exception caught: " when exception is caught.
  13863. Use CUIDCounter instead of BtRuntime::getNewCuid():
  13864. * src/ActivePeerConnectionCommand.cc
  13865. * src/PeerInteractionCommand.cc
  13866. * src/BtRuntime.h
  13867. (cuidCounter): Removed.
  13868. (getNewCuid): Removed.
  13869. * src/DownloadEngineFactory.cc
  13870. * src/PeerListenCommand.cc
  13871. * src/TrackerUpdateCommand.cc
  13872. * src/PeerInitiateConnectionCommand.cc
  13873. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13874. * src/PeerAbstractCommand.cc
  13875. (onAbort): Call PeerStorage::returnPeer()
  13876. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  13877. (incomingPeers): New variable.
  13878. (addIncomingPeer): New function.
  13879. (returnPeer): New function.
  13880. (onErasingPeer): New function.
  13881. (addPeer): push_back -> push_front
  13882. (getActivePeers): Rewritten.
  13883. (calculateStat): Rewritten.
  13884. * src/PeerStorage.h
  13885. (TransferStat::copy): New function.
  13886. (TransferStat::TransferStat): New function.
  13887. (TransferStat::operator=): New function.
  13888. (addIncomingPeer): New function.
  13889. (returnPeer): New function.
  13890. * src/PeerListenCommand.cc
  13891. (execute): Use PeerStorage::addIncomingPeer() instead of
  13892. Peer::addPeer().
  13893. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13894. Connect to a peer actively when download speed is lower than specified
  13895. speed in torrent download:
  13896. * src/ActivePeerConnectionCommand.h: New class.
  13897. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13898. * src/HttpRequest.cc (createRequest): url-encode user-agent
  13899. * src/main.cc: Fixed the bug that prevents download if .netrc
  13900. doesn't exist.
  13901. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13902. To cache resolved hostname:
  13903. * src/AbstractCommand.h, src/AbstractCommand.cc
  13904. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  13905. Added dns cache.
  13906. * src/FtpInitiateConnectionCommand.cc
  13907. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  13908. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  13909. NameResolver working without ares.
  13910. * src/TorrentRequestInfo.cc
  13911. (execute): Don't cache dns in torrent download.
  13912. * src/HttpInitiateConnectionCommand.cc
  13913. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  13914. * src/DNSCache.h: New class.
  13915. * src/UrlRequestInfo.cc
  13916. (execute): Use dns cache.
  13917. In http request, suppress port number in http request header if port
  13918. is 80 or 443:
  13919. * src/HttpRequest.cc (getHostText): Suppress port number in http
  13920. request header if port is 80 or 443.
  13921. (createProxyRequest): Allways send port number.
  13922. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13923. To add the command-line option which disables netrc support:
  13924. * src/OptionHandlerFactory.cc
  13925. (createOptionHandlers): Added PREF_NO_NETRC.
  13926. * src/main.cc: Added -n option.
  13927. * src/prefs.h (PREF_NO_NETRC): New definition.
  13928. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  13929. V_TRUE.
  13930. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  13931. is V_FALSE. This may get configurable in the future release.
  13932. To clear peer's error status by time basis:
  13933. * src/PeerAbstractCommand.cc
  13934. (onAbort): Call Peer::startBadCondition().
  13935. * src/Peer.h, src/Peer.cc
  13936. (error): Removed.
  13937. (_badConditionStartTime): New variable.
  13938. (_badConditionInterval): New variable. Initialized to 10 seconds.
  13939. (startBadCondition): New function.
  13940. (isGood): New function.
  13941. * src/DefaultPeerStorage.cc
  13942. (addPeer): Use Peer::isGood().
  13943. (FindFinePeer): Use Peer::isGood().
  13944. Always include port number in http request header:
  13945. * src/HttpRequest.cc (getHostText): Always include port number in
  13946. http request header.
  13947. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13948. To the ability to read options from a config file:
  13949. * src/main.cc: Command-line parameter validation is delegated to
  13950. OptionHandler class.
  13951. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  13952. * src/Option.h, src/Option.cc (clear): New function.
  13953. * src/OptionParser.h, src/OptionParser.cc: New class.
  13954. * src/OptionHandler.h: New class.
  13955. * src/NameMatchOptionHandler.h: New class.
  13956. * src/OptionHandlerImpl.h: New classes.
  13957. * src/prefs.h: '_' -> '-'
  13958. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  13959. (FTP_PASV): New definition.
  13960. * src/Util.h, src/Util.cc (getRealSize): New function.
  13961. To disable netrc support if .netrc file does not have correct
  13962. permissions:
  13963. * src/File.h, src/File.cc (mode): New function.
  13964. To prevent confidential information to be logged:
  13965. * src/HttpConnection.h, src/HttpConnection.cc
  13966. (eraseConfidentialInfo): New function.
  13967. (sendRequest): Call eraseConfidentialInfo().
  13968. (sendProxyRequest): Call eraseConfidentialInfo().
  13969. * src/main.cc: Validate permissions of .netrc file.
  13970. To add --user-agent command-line option:
  13971. * src/main.cc: Added new command line option: --user-agent
  13972. * src/prefs.h (PREF_USER_AGENT): New definition.
  13973. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  13974. parameter to HttpRequest object.
  13975. * src/AbstractProxyRequestCommand.cc
  13976. (executeInternal): Set user-agent option parameter to HttpRequest
  13977. object.
  13978. Marged the patches from Dan Fandrich.
  13979. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13980. Use filename and size from Metalink file instead of sending HEAD
  13981. request:
  13982. * src/UrlRequestInfo.h
  13983. (_filename): New variable.
  13984. (_totalLength): New variable.
  13985. (setTotalLength): New variable.
  13986. (setFilename): New variable.
  13987. * src/MetalinkRequestInfo.cc
  13988. (execute): Set filename and size to UrlRequestInfo
  13989. * src/UrlRequestInfo.cc
  13990. (execute): Use filename and size from Metalink instead of seding
  13991. HEAD request to servers.
  13992. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13993. To add the ability to resume downloading a partially downloaded file
  13994. which is downloaded from the beginning:
  13995. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  13996. takes this role.
  13997. * src/main.cc: Added -c option.
  13998. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  13999. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  14000. * src/prefs.h (PREF_CONTINUE): New definition.
  14001. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  14002. * src/DefaultDiskWriter.cc
  14003. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  14004. * src/AbstractDiskWriter.h
  14005. (glowFileAllocator): New variable.
  14006. * src/AbstractDiskWriter.cc
  14007. (openExistingFile): Now preallocate file space from the end of the
  14008. existing file if totalLength argument is specified and grater than 0.
  14009. * src/UrlRequestInfo.cc: If -c option is specified and the file
  14010. to download exists in local, continue the download of the file.
  14011. --allow-overwrite=true is assumed in this context.
  14012. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  14013. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  14014. Throw exception if --check-integrity=true is specified but chunk
  14015. checksums are not provided:
  14016. * src/UrlRequestInfo.cc
  14017. Do not print URLs to stdout:
  14018. * src/UrlRequestInfo.cc
  14019. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14020. * src/Request.h: Use AuthResolver to get authentication information.
  14021. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  14022. set to RequestFactory object.
  14023. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  14024. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  14025. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  14026. create Request object.
  14027. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  14028. To integrate Netrc into exsiting classes:
  14029. * src/Request.h
  14030. (_userDefinedAuthConfig): New variable.
  14031. (findNetrcAuthenticator): New function.
  14032. (segment): Removed.
  14033. (setUserDefinedAuthConfig): New function.
  14034. (resolveHttpAuthConfigItem): New function.
  14035. (resolveFtpAuthConfigItem): New function.
  14036. (resolveHttpProxyAuthConfigItem): New function.
  14037. * src/HttpRequest.h
  14038. (authConfig): Removed.
  14039. (proxyAuthConfig): Removed.
  14040. (setAuthConfig): Removed.
  14041. (setProxyAuthConfig): Removed.
  14042. * src/UrlRequest.h
  14043. (getHeadResult): Added a parameter: authConfigHandle
  14044. * src/common.h
  14045. (SingletonHolder.h): New include.
  14046. * src/main.cc
  14047. (Netrc.h): New include.
  14048. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  14049. Added initial value of PREF_NETRC_PATH.
  14050. Added the initialization of netrc.
  14051. * src/AuthConfig.h: New class.
  14052. * src/prefs.h
  14053. (PREF_NETRC_PATH): New definition.
  14054. * src/HttpAuthConfig.h: Removed.
  14055. * src/Netrc.cc
  14056. (getRequiredNextToken): New function.
  14057. (skipMacdef): New function.
  14058. (parse): Rewritten.
  14059. * src/Netrc.h
  14060. (getRequiredNextToken): New function.
  14061. (skipMacdef): New function.
  14062. * src/Util.h, src/Util.cc
  14063. (getHomeDir): New function.
  14064. * src/TrackerWatcherComand.cc
  14065. (createRequestCommand): Use AuthConfig.
  14066. * src/FtpConnection.cc
  14067. (sendUser): Use Request::resolveFtpAuthConfigItem().
  14068. (sendPass): Use Request::resolveFtpAuthConfigItem().
  14069. * src/Request.cc
  14070. (findNetrcAuthenticator): New function.
  14071. (resolveHttpAuthConfigItem): New function.
  14072. (resolveFtpAuthConfigItem): New function.
  14073. (resolveHttpProxyAuthConfigItem): New function.
  14074. * src/UrlRequestInfo.cc: Use AuthConfig.
  14075. * src/HttpRequest.cc
  14076. (createRequest): Use authConfig.
  14077. (getProxyAuthString): Use authConfig.
  14078. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  14079. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  14080. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14081. To reduce overhead to find commands whose socket is either
  14082. readable or writable in the download engine loop:
  14083. * src/Command.h, src/Command.cc
  14084. (STATUS): New enum.
  14085. (status): New variable.
  14086. (statusMatch): New function.
  14087. (setStatusActive): New function.
  14088. (setStatusInactive): New function.
  14089. * src/DownloadEngine.h, src/DownloadEngine.cc
  14090. (executeCommand): New function.
  14091. (run): Simplified.
  14092. (waitData): Call Command::setStatusActive() when command's socket is
  14093. readable or writable.
  14094. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14095. To handle Segment as SegmentHandle:
  14096. * src/AbstractCommand.cc (execute): Rewritten.
  14097. * src/SegmentMan.h: Segment -> SegmentHandle
  14098. Introducded HttpResponse class, HttpRequest class to improve code
  14099. extensiveness and make it clear:
  14100. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  14101. HttpResponse class.
  14102. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  14103. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  14104. * src/HttpConnection.cc: Contruction of http request were moved to
  14105. HttpRequest class.
  14106. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  14107. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  14108. * src/HttpAuthConfig.h: New class.
  14109. * src/Range.h: New class.
  14110. To make FtpTunnel{Request, Response}Command and
  14111. HttpProxy{Request, Response}Command derived from
  14112. AbstractProxy{Request, Response}Command:
  14113. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  14114. Derived from AbstractProxyRequestCommand class.
  14115. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  14116. Derived from AbstractProxyResponseCommand class.
  14117. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  14118. Derived from AbstractProxyRequestCommand class.
  14119. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  14120. Derived from AbstractProxyResponseCommand class.
  14121. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  14122. : New class.
  14123. * src/AbstractProxyResponseCommand.h,
  14124. src/AbstractProxyResponseCommand.cc: New class.
  14125. To add netrc support:
  14126. * src/Netrc.h, src/Netrc.cc: New class.
  14127. * src/Util.h, src/Util.cc (split): New function.
  14128. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  14129. "Content-Range" header instead of "Range" header.
  14130. * src/HttpHeader.h
  14131. (getStatus): Removed.
  14132. (setStatus): Removed.
  14133. * src/Segment.h
  14134. (getPositionToWrite): New function.
  14135. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14136. * src/HttpHeader.h
  14137. (Range.h): New include.
  14138. (status): New variable.
  14139. (HttpHeader): Initialized status with 0.
  14140. (getStatus): New function.
  14141. (setStatus): New function.
  14142. (getRange): New function.
  14143. (HttpHeaderHandle): New function.
  14144. * src/HttpHeader.cc
  14145. (getRange): New function.
  14146. * src/Request.h
  14147. (RequestWeakHandle): New definition.
  14148. * src/HttpConnection.h
  14149. (HttpConnectionHandle): New type definition.
  14150. * src/HttpConnection.cc
  14151. (receiveResponse): Set HTTP status to headers.
  14152. * src/main.cc
  14153. (showUsage): Fixed typo.
  14154. * src/Segment.h
  14155. (SegmentHandle): New type definition.
  14156. * src/BitfieldMan.h
  14157. (getMissingUnusedLength): New function.
  14158. * src/BitfieldMan.cc
  14159. (getMissingUnusedLength): New function.
  14160. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14161. To fix static initialization order problem:
  14162. * src/BitfieldManFactory.h
  14163. (defaultRandomizer): Removed.
  14164. (factory): New variable.
  14165. (getNewFactory): Removed.
  14166. (getFactoryInstance): New function.
  14167. (setDefaultRandomizer): Rewritten.
  14168. (getDefaultRandomizer): Rewritten.
  14169. * src/BitfieldManFactory.cc
  14170. (defaultRandomizer): Removed.
  14171. (factory): Initialized to 0.
  14172. (BitfieldManFactory): Initialized randomizer to 0.
  14173. * src/DefaultPieceStorage.cc
  14174. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  14175. * src/Peer.cc
  14176. (Peer): getNewFactory() -> getFactoryInstance()
  14177. * src/SegmentMan.cc
  14178. (initBitfield): getNewFactory() -> getFactoryInstance()
  14179. * src/Piece.cc
  14180. (Piece): getNewFactory() -> getFactoryInstance()
  14181. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14182. To fix the bug that causes crash on Max OS X:
  14183. * src/SimpleRandomizer.h
  14184. (getInstance): Create new instance if the static variable is null.
  14185. * src/SimpleRandomizer.cc
  14186. (randomizer): Initialized to 0.
  14187. * src/BitfieldManFactory.h
  14188. (getNewFactory): Removed the call to setRandomizer().
  14189. To fix the miscalculation of the range of checksum:
  14190. * src/BitfieldMan.h
  14191. (isBitSetOffsetRange): New function.
  14192. * src/BitfieldMan.cc
  14193. (isBitSetOffsetRange): New function.
  14194. * src/SegmentMan.cc
  14195. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  14196. Use bitfield->getBlockLength() instead of segment.segmentLength.
  14197. * Release 0.10.1
  14198. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14199. To lower CPU usage in BitTorrent download when --max-upload-limit
  14200. command-line option specified:
  14201. * src/DefaultBtMessageDispatcher.cc
  14202. (sendMessages): Calculate uploading speed only when current message
  14203. is uploading data and is not sent yet.
  14204. * src/DefaultPeerStorage.h
  14205. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  14206. * src/HttpResponseCommand.cc
  14207. (handleDefaultEncoding): Added the cast to int32_t to itos.
  14208. This fixes compile error in Soralis 10.
  14209. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14210. To fix segfault in Metalink download:
  14211. * src/UrlRequestInfo.h
  14212. (filename): Removed.
  14213. (totalLength): Removed.
  14214. (setTotalLength): Removed.
  14215. (setFilename): Removed.
  14216. * src/MetalinkRequestInfo.cc
  14217. (execute): Do not set filename and totalLength to reqInfo.
  14218. Set chunk checksum to reqInfo if it is not null.
  14219. * src/HttpResponseCommand.cc
  14220. (executeInternal): Fixed filename in log.
  14221. (handleDefaultEncoding): Removed the call to initBitfield() and
  14222. markAllPiecesDone().
  14223. (handleOtherEncoding): Added HEAD method handling.
  14224. * src/FtpNegotiateCommand.cc
  14225. (executeInternal): Added SEQ_HEAD_OK handling.
  14226. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  14227. return false.
  14228. * src/FtpNegotiateCommand.h
  14229. (SEQ_HEAD_OK): New definition.
  14230. * src/SegmentMan.cc
  14231. (initBitfield): Delete bitfield.
  14232. (isChunkChecksumValidationReady): Fixed the condition.
  14233. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  14234. works fine.
  14235. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14236. * src/Xml2MetalinkProcessor.h
  14237. (xpathExists): New function.
  14238. * src/Xml2MetalinkProcessor.cc
  14239. (xpathExists): New function.
  14240. Not to send HEAD request if filename and size are available in Metalink
  14241. file:
  14242. * src/UrlRequestInfo.h
  14243. (filename): New variable.
  14244. (totalLength): New variable.
  14245. (setTotalLength): New function.
  14246. (setFilename): New function.
  14247. * src/MetalinkRequestInfo.cc
  14248. (execute): Set filename and size to UrlRequestInfo.
  14249. * src/MetalinkEntry.cc
  14250. (MetalinkEntry): Initialize size with 0.
  14251. * src/UrlRequestInfo.cc
  14252. (execute): Set filename and size to SegmentMan.
  14253. Not to download rest of the files after selected files are downloaded
  14254. in BitTorrent:
  14255. * src/PieceStorage.h
  14256. (allDownloadFinished): New function.
  14257. * src/DefaultBtAnnounce.cc
  14258. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  14259. downloadFinished.
  14260. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  14261. * src/DefaultPieceStorage.cc
  14262. (completePiece): Use allDownloadFinished instead of downloadFinished.
  14263. Commented out the call to finishSelectiveDownloadingMode().
  14264. (downloadFinished): Call isFilteredAllBitSet() instead of
  14265. isAllBitSet().
  14266. (allDownloadFinished): New function.
  14267. * src/DefaultBtInteractive.cc
  14268. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  14269. downloadFinished().
  14270. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  14271. * src/TorrentDownloadEngine.cc
  14272. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  14273. * src/BitfieldMan.h
  14274. (isFilteredAllBitSet): New function.
  14275. * src/ShareRatioSeedCriteria.h
  14276. (PieceStorage.h): New include.
  14277. (pieceStorage): New variable.
  14278. (evaluate):
  14279. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  14280. * src/BitfieldMan.cc
  14281. (isFilteredAllBitSet): New function.
  14282. (isAllBitSet): Filter is not took into account.
  14283. Rename --force-truncate as --allow-overwrite:
  14284. * src/TorrentRequestInfo.cc
  14285. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  14286. * src/main.cc
  14287. (showUsage): --force-truncate -> --allow-overwrite
  14288. * src/message.h
  14289. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  14290. * src/prefs.h
  14291. (PREF_FORCE_TRUNCATE): Removed.
  14292. (PREF_ALLOW_OVERWRITE): New definition.
  14293. * src/SegmentMan.cc
  14294. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  14295. * src/MetalinkRequestInfo.cc
  14296. (execute): Queueing message are now logged in info level.
  14297. * src/common.h
  14298. (LONG_LONG_MAX): Removed.
  14299. (LONG_LONG_MIN): Removed.
  14300. * src/HttpResponseCommand.cc
  14301. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  14302. * src/FtpNegotiateCommand.cc
  14303. (recvSize): LONG_LONG_MAX -> INT64_MAX
  14304. * src/main.cc
  14305. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  14306. command-line option.
  14307. (main): Added --check-integriy and --realtime-chunk-checksum
  14308. command-line option.
  14309. --force-truncate -> --allow-overwrite
  14310. Set initial value of --check-integrity option to false.
  14311. Don't show usage when error occurs while persing command-line options.
  14312. Removed deprecated --upload-limit option.
  14313. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14314. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  14315. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  14316. * src/BtAllowedFastMessage.cc:
  14317. * src/BtBitfieldMessage.cc
  14318. * src/BtCancelMessage.cc
  14319. * src/BtChokeMessage.cc
  14320. * src/BtHaveAllMessage.cc
  14321. * src/BtHaveMessage.cc
  14322. * src/BtHaveNoneMessage.cc
  14323. * src/BtInterestedMessage.cc
  14324. * src/BtNotInterestedMessage.cc
  14325. * src/BtPieceMessage.cc
  14326. * src/BtPortMessage.cc
  14327. * src/BtRejectMessage.cc
  14328. * src/BtRequestMessage.cc
  14329. * src/BtSuggestPieceMessage.cc
  14330. * src/BtUnchokeMessage.cc
  14331. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  14332. files are affected.
  14333. * src/ChunkChecksumValidator.cc
  14334. * src/SegmentMan.cc
  14335. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14336. To add chunk checksum validation:
  14337. * src/MetalinkEntry.h
  14338. (MetalinkChunkChecksum.h): New include.
  14339. (chunkChecksum): New variable.
  14340. * src/Request.h
  14341. (method): New variable.
  14342. (setMethod): New function.
  14343. (getMethod): New function.
  14344. (METHOD_GET): New static constant.
  14345. (METHOD_HEAD): New static constant.
  14346. * src/Xml2MetalinkProcessor.h
  14347. (getPieceHash): New function.
  14348. * src/PieceStorage.h
  14349. (markAllPiecesDone): New function.
  14350. (checkIntegrity): New function.
  14351. * src/FileAllocator.h
  14352. (NullFileAllocationMonitor.h): New include.
  14353. (FileAllocator): Initialize fileAllocationMonitor with new
  14354. NullFileAllocationMonitor().
  14355. * src/MultiDiskAdaptor.h
  14356. (messageDigest.h): Remove include.
  14357. (ctx): Removed.
  14358. (hashUpdate): Added ctx.
  14359. (MultiDiskAdaptor): Removed ctx.
  14360. (sha1Sum): Renamed as messageDigest.
  14361. (messageDigest): New function.
  14362. * src/UrlRequestInfo.h
  14363. (HeadResult): New class.
  14364. (digestAlgo): New variable.
  14365. (chunkChecksumLength): New variable.
  14366. (chunkChecksums): New variable.
  14367. (getHeadResult): New function.
  14368. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  14369. (setDigestAlgo): New function.
  14370. (setChunkChecksumLength): New function.
  14371. (setChunkChecksums): New function.
  14372. * src/DefaultPieceStorage.cc
  14373. (DiskAdaptorWriter.h): New include.
  14374. (ChunkChecksumValidator.h): New include.
  14375. (markAllPiecesDone): New function.
  14376. (checkIntegrity): New function.
  14377. * src/DefaultBtContext.h
  14378. (getPieceHashes): New function.
  14379. * src/TorrentRequestInfo.cc
  14380. (execute): Try to validate chunk checksum if file already exists and
  14381. .aria2 file doesn't there and user allows aria2 to overwrite it.
  14382. * src/messageDigest.h
  14383. (~MessageDigestContext): Added digestFree().
  14384. * src/MetalinkRequestInfo.cc
  14385. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  14386. * src/DiskAdaptor.h
  14387. (messageDigest.h): New include.
  14388. (sha1Sum): Renamed as messageDigest.
  14389. (messageDigest): New function.
  14390. * src/DownloadCommand.h
  14391. (PeerStat.h): New include.
  14392. (maxDownloadSpeedLimit): New variable.
  14393. (startupIdleTime): New variable.
  14394. (lowestDownloadSpeedLimit): New variable.
  14395. (peerStat): New variable.
  14396. (setMaxDownloadSpeedLimit): New function.
  14397. (setStartupIdleTime): New function.
  14398. (setLowestDownloadSPeedLimit): New function.
  14399. * src/BtContext.h
  14400. (getPieceHashes): New function.
  14401. * src/main.cc
  14402. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  14403. option to true for testing purpose.
  14404. * src/BtPieceMessage.cc
  14405. (checkPieceHash): Use messageDigest
  14406. * src/DownloadEngine.cc
  14407. (SetDescriptor): Removed.
  14408. (AccumulateActiveCommand): Removed.
  14409. (waitData): Rewritten.
  14410. (updateFdSet): Rewritten.
  14411. * src/MultiDiskAdaptor.cc
  14412. (hashUpdate): Added ctx.
  14413. (sha1Sum): Renamed as messageDigest.
  14414. (messageDigest): New function.
  14415. * src/BitfieldMan.h
  14416. (isBitRangeSet): New function.
  14417. (unsetBitRange): New function.
  14418. * src/ByteArrayDiskWriter.h
  14419. (sha1Sum): Renamed as messageDigest.
  14420. (messageDigest): New function.
  14421. * src/ConsoleDownloadEngine.cc
  14422. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  14423. * src/DiskWriter.h
  14424. (messageDigest.h): New include.
  14425. (sha1Sum): Renamed as messageDigest.
  14426. (messageDigest): New function.
  14427. * src/ChunkChecksumValidator.h: New class.
  14428. * src/DiskAdaptorWriter.h: New class.
  14429. * src/prefs.h
  14430. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  14431. (PREF_CHECK_INTEGRITY): New definition.
  14432. * src/HttpResponseCommand.cc
  14433. (handleDefaultEncoding): Added method "HEAD" handling.
  14434. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  14435. (handleOtherEncoding):
  14436. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  14437. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  14438. startupIdleTime, lowestDownloadSpeedLimit to command.
  14439. * src/SegmentMan.h
  14440. (getSegmentEntryByIndex): New function.
  14441. (getSegmentEntryByCuid): New function.
  14442. (getSegmentEntryIteratorByCuid): New function.
  14443. (diskWriter): DiskWriter -> DiskWriterHandle
  14444. (pieceHashes): New variable.
  14445. (chunkHashLength): New variable.
  14446. (digestAlgo): New variable.
  14447. (FindPeerStat): Removed.
  14448. (getPeerStat): Rewritten.
  14449. (markAllPiecesDone): New function.
  14450. (checkIntegrity): New function.
  14451. (tryChunkChecksumValidation): New function.
  14452. (isChunkChecksumValidationReady): New function.
  14453. * src/BitfieldMan.cc
  14454. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  14455. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  14456. blocks to 0.
  14457. (isBitRangeSet): New function.
  14458. (unsetBitRange): New function.
  14459. * src/FtpNegotiateCommand.cc
  14460. (executeInternal): Set maxDownloadSpeedLimit,
  14461. startupIdleTime, lowestDownloadSpeedLimit to command.
  14462. (recvSize): Added method "HEAD" handling.
  14463. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  14464. * src/AbstractSingleDiskAdaptor.cc
  14465. (sha1Sum): Renamed as messageDigest.
  14466. (messageDigest): New function.
  14467. * src/AbstractSingleDiskAdaptor.h
  14468. (sha1Sum): Renamed as messageDigest.
  14469. (messageDigest): New function.
  14470. * src/Util.h
  14471. (indexRange): New function.
  14472. * src/MetalinkEntry.cc
  14473. (MetalinkEntry): Initialized chunkChecksum to 0.
  14474. * src/ShaVisitor.cc
  14475. (~ShaVisitor): Removed the call to ctx.digestFree().
  14476. * src/SegmentMan.cc
  14477. (ChunkChecksumValidator.h): New include.
  14478. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  14479. to DIGEST_ALGO_SHA1.
  14480. (~SegmentMan): Removed diskWriter.
  14481. (FindSegmentEntryByIndex): Removed.
  14482. (FindSegmentEntryByCuid): Removed.
  14483. (checkoutSegment): Rewritten.
  14484. (findSlowerSegmentEntry): Rewritten.
  14485. (getSegment): Rewritten.
  14486. (updateSegment): Rewritten.
  14487. (completeSegment): Rewritten.
  14488. (markAllPiecesDone): New function.
  14489. (checkIntegrity): New function.
  14490. (isChunkChecksumValidationReady): New function.
  14491. (tryChunkChecksumValidation): New function.
  14492. * src/Xml2MetalinkProcessor.cc
  14493. (getEntry): Get size and set it to entry.
  14494. Get chunk checksum and set it to entry.
  14495. (getPieceHash): New function.
  14496. * src/Util.cc
  14497. (sha1Sum): Removed ctx.digestFree()
  14498. (fileChecksum): Removed ctx.digestFree()
  14499. (indexRange): New function.
  14500. * src/Request.cc
  14501. (METHOD_GET): New variable.
  14502. (METHOD_HEAD): New variable.
  14503. (Request): Added method.
  14504. * src/UrlRequestInfo.cc
  14505. (FatalException.h): New include.
  14506. (message.h): New include.
  14507. (operator<<): Added operator<< for class HeadResult.
  14508. (getHeadResult): New function.
  14509. (execute): Get filename and size in separate download engine.
  14510. * src/ChunkChecksumValidator.cc: New class.
  14511. * src/DownloadCommand.cc:
  14512. (DownloadCommand): Added peerStat.
  14513. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  14514. the value from Option.
  14515. The buffer size is now 16KB.
  14516. Use peerStat member instead of getting it from SegmentMan.
  14517. Use startupIdleTime member instead of gettingit from Option.
  14518. Added chunk checksum validation.
  14519. * src/AbstractDiskWriter.cc
  14520. (AbstractDiskWriter): Removed ctx.
  14521. (~AbstractDiskWriter): Removed ctx.digestFree()
  14522. (writeDataInternal): Returns the return value of write.
  14523. (readDataInternal): Returns the return value of read.
  14524. (sha1Sum): Renamed as messageDigest
  14525. (messageDigest): New function.
  14526. * src/AbstractDiwkWriter.h
  14527. (messageDigest.h): Removed include.
  14528. (ctx): Removed.
  14529. (sha1Sum): Renamed as messageDigest
  14530. (messageDigest): New function.
  14531. * src/DefaultPieceStorage.h
  14532. (markAllPiecesDone): New function.
  14533. (checkIntegrity): New function.
  14534. * src/NullFileAllocationMonitor.h: New class.
  14535. * src/MetalinkChunkChecksum.h: New class.
  14536. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14537. To decrease CPU usage in bittorrent download, calculation results in
  14538. BitfieldMan were cached and realtime fetching PeerObject was removed
  14539. with WeakHandle introduced. Option values are set to the objects
  14540. by setter before download begins.
  14541. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  14542. * src/DefaultBtRequestFactory.h
  14543. (dispatcher): BtMessageDispatcherHandle ->
  14544. BtMessageDispatcherWeakHandle.
  14545. (messageFactory): New variable.
  14546. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  14547. BtMessageDispatcherWeakHandle.
  14548. (setBtMessageFactory): New function.
  14549. * src/DefaultBtMessageDispatcher.cc:
  14550. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  14551. from Option.
  14552. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  14553. feating the value from Option.
  14554. Use messageFactory member.
  14555. * src/PeerInteractionCommand.cc
  14556. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  14557. Add reverse dependencies to factory object.
  14558. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  14559. dispatcher.
  14560. Set messageFactory to receiver.
  14561. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  14562. btInteractive.
  14563. Set receiver to peerObject.
  14564. Set maxDownloadSpeedLimit to this.
  14565. (executeInternal): Use maxDownloadSpeedLimit member.
  14566. * src/BtChokeMessage.cc
  14567. (doReceivedAction): Use dispatcher, requestFactory member.
  14568. (onSendComplete): Use dispatcher member.
  14569. * src/PeerInteractionCommand.h
  14570. (maxDownloadSpeedLimit): New variable.
  14571. * src/DefaultBtMessageReceiver.h
  14572. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14573. (dispatcher):
  14574. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  14575. (messageFactory): New variable.
  14576. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14577. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14578. (setDispatcher):
  14579. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  14580. (setBtMessageFactory): New function.
  14581. * src/DefaultBtInteractive.cc
  14582. (initiateHandshake): Use messageFactory member.
  14583. (addBitfieldMessageToQueue): Use messageFactory member.
  14584. (addAllowedFastMessageToQueue): Use messageFactory member.
  14585. (decideChoking): Use messageFactory member.
  14586. (checkHave): Use messageFactory member.
  14587. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  14588. (receiveMessages): Use maxDownloadSpeedLimit member.
  14589. (decideInterest): Use messageFactory member.
  14590. * src/BtRequestMessage.cc
  14591. (doReceivedAction): Use messageFactory, dispatcher member.
  14592. (onQueued): Use dispatcher member.
  14593. * src/BtPieceMessage.cc
  14594. (doReceivedAction): Use dispatcher member.
  14595. (send): Use peerConnection member.
  14596. (onWrongPiece): Use requestFactory member.
  14597. (handleChokingEvent): Use messageFactory, dispatcher member.
  14598. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  14599. * src/BtMessageDispatcher.h
  14600. (BtMessageDispatcherWeakHandle): New type definition.
  14601. * src/SimpleBtMessage.cc
  14602. (send): Use peerConnection member.
  14603. * src/BtRejectMessage.cc
  14604. (doReceivedAction): Use dispatcher member.
  14605. * src/DefaultBtMessageDispatcher.h
  14606. (Option.h): Removed include.
  14607. (messageFactory): New variable.
  14608. (option): Removed.
  14609. (maxUploadSpeedLimit): New variable.
  14610. (requestTimeout): New variable.
  14611. (DefaultBtMessageDispatcher): Removed option.
  14612. Added maxUploadSpeedLimit, requestTimeout.
  14613. (setOption): Removed.
  14614. (getOption): Removed.
  14615. (setMaxUploadSpeedLimit): New function.
  14616. (setRequestTimeout): New function.
  14617. (setBtMessageFactory): New function.
  14618. * src/DefaultBtInteractive.h
  14619. (btMessageReceiver):
  14620. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14621. (dispatcher):
  14622. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14623. (btRequestFactory):
  14624. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14625. (peerConnection):
  14626. PeerConnectionHandle -> PeerConnectionWeakHandle
  14627. (messageFactory): New variable.
  14628. (option): Removed.
  14629. (keepAliveInterval): New variable.
  14630. (maxDownloadSpeedLimit): New variable.
  14631. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  14632. (setBtMessageReceiver):
  14633. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14634. (setDispatcher):
  14635. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14636. (setBtRequestFactory):
  14637. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14638. (setPeerConnection):
  14639. PeerConnectionHandle -> PeerConnectionWeakHandle
  14640. (setOption): Removed.
  14641. (setKeepAliveInterval): New function.
  14642. (setMaxDownloadSpeedLimit): New function.
  14643. (setBtMessageFactory): New function.
  14644. * src/BitfieldMan.h
  14645. (cachedNumMissingBlock): New variable.
  14646. (cachedNumFilteredBlock): New variable.
  14647. (cachedCompletedLength): New variable.
  14648. (cachedFilteredComletedLength): New variable.
  14649. (cachedFilteredTotalLength): New variable.
  14650. (countMissingBlockNow): New function.
  14651. (countFilteredBlockNow): New function.
  14652. (getFilteredTotalLengthNow): New function.
  14653. (getCompletedLengthNow): New function.
  14654. (getFilteredCompletedLengthNow): New function.
  14655. (updateCache): New function.
  14656. * src/AbstractBtMessage.h
  14657. (BtMessageDispatcher.h): New include.
  14658. (PeerConnection.h): New include.
  14659. (BtRequestFactory.h): New include
  14660. (BtMessageFactory.h): New include.
  14661. (dispatcher): New variable.
  14662. (messageFactory): New variable.
  14663. (peerConnection: New variable.
  14664. (setBtMessageDispatcher): New function.
  14665. (setPeerConnection): New function.
  14666. (setBtMessageFactory): New function.
  14667. (setBtRequestFactory): New function.
  14668. * src/DefaultBtMessageFactory.cc
  14669. (setCommonProperty): Set dispatcher, requestFactory, this,
  14670. peerConnection to msg.
  14671. * src/BtRegistry.h
  14672. (BT_MESSAGE_RECEIVER): New macro.
  14673. * src/PeerConnection.h
  14674. (PeerConnectionWeakHandle): New type definition.
  14675. * src/BtMessageFactory.h
  14676. (BtMessageFactoryWeakHandle): New type definition.
  14677. * src/BitfieldMan.cc
  14678. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  14679. cachedCompletedLength, cachedFilteredComletedLength,
  14680. cachedFilteredTotalLength.
  14681. Call updateCache().
  14682. (countMissingBlock): Return cachedNumMissingBlock.
  14683. (countMissingBlockNow): New function.
  14684. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  14685. (countFilteredBlockNow): New function.
  14686. (setBit): Call updateCache().
  14687. (unsetBit): Call updateCache().
  14688. (setBitfield): Call updateCache().
  14689. (clearAllBit): Call updateCache().
  14690. (setAllBit): Use setBitInternal instead of setBit.
  14691. Call updateCache().
  14692. (addFilter): Call updateCache().
  14693. (enableFilter): Call updateCache().
  14694. (disableFilter): Call updateCache().
  14695. (clearFilter): Call updateCache().
  14696. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  14697. (getFilteredTotalLengthNow): New function.
  14698. (getCompletedLength): Return cachedCompletedLength.
  14699. (getCompletedLengthNow): New function.
  14700. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  14701. (getFilteredCompletedLengthNow): New function.
  14702. (updateCache): New function.
  14703. * src/BtMessageReceiver.h
  14704. (BtMessageReceiverWeakHandle): New type definition.
  14705. * src/DefaultBtMessageReceiver.cc
  14706. (receiveHandshake): Use messageFactory member.
  14707. (sendHandshake): Use messageFactory member.
  14708. (receiveMessage): Use messageFactory member.
  14709. * src/DefaultBtMessageFactory.h
  14710. (dispatcher): New variable.
  14711. (requestFactory): New variable.
  14712. (peerConnection): New variablle.
  14713. (setBtMessageDispatcher): New function.
  14714. (setBtRequestFactory): New function.
  14715. (setPeerConnection): New function.
  14716. * src/SharedHandle.h
  14717. (RefCount): New class.
  14718. (WeakHandle): New class.
  14719. * src/PeerObject.h
  14720. (BtMessageReceiver.h): New include.
  14721. (PeerObject): Added btMessageReceiver.
  14722. (btMessageReceiver): New variable.
  14723. * src/Util.cc
  14724. (countBit): Simplified.
  14725. * src/BtCancelMessage.cc
  14726. (doReceivedAction): Use dispatcher member.
  14727. * src/BtRequestFactory.h
  14728. (BtRequestFactoryWeakHandle): New type definition.
  14729. * src/PeerStorage.h
  14730. (downloadSpeed): int -> uint32_t
  14731. (uploadSpeed): int -> uint32_t
  14732. (sessionDownloadLength): long long int -> uint64_t
  14733. (sessionUploadLength): long long int -> uint64_t
  14734. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14735. To add RecoverableException, FatalException:
  14736. * src/AbstractCommand.cc
  14737. (onAbort): Exception -> RecoverableException
  14738. * src/PeerAbstractCommand.h
  14739. (RecoverableException.h): New include.
  14740. (onAbort): Exception -> RecoverableException.
  14741. * src/PeerInteractionCommand.cc
  14742. (onAbort): Exception -> RecoverableException.
  14743. * src/PeerAbstractCommand.cc
  14744. (execute): Exception -> RecoverableException.
  14745. (onAbort): Exception -> RecoverableException.
  14746. * src/TorrentRequestInfo.cc
  14747. (execute): Exception -> RecoverableException.
  14748. * src/MetalinkRequestInfo.cc
  14749. (execute): Exception -> RecoverableException.
  14750. * src/MetaFileUtil.cc: RecoverableException.
  14751. * src/AbstractCommand.h
  14752. (onAbort): Exception -> RecoverableException.
  14753. * src/DlRetryEx.h: Exception -> RecoverableException.
  14754. * src/DlAbortEx.h: Exception -> RecoverableException.
  14755. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  14756. * src/Util.cc: Exception -> RecoverableException.
  14757. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  14758. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  14759. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  14760. To make ID static const int
  14761. * src/BtInterestedMessage.h
  14762. (ID_t): Removed.
  14763. (ID): New variable.
  14764. (getId): Made non-const.
  14765. * src/BtPieceMessage.h
  14766. (ID_t): Removed.
  14767. (ID): New variable.
  14768. (getId): Made non-const.
  14769. * src/BtChokeMessage.h
  14770. (ID_t): Removed.
  14771. (ID): New variable.
  14772. (getId): Made non-const.
  14773. * src/BtHaveAllMessage.h
  14774. (ID_t): Removed.
  14775. (ID): New variable.
  14776. (getId): Made non-const.
  14777. * src/BtKeepAliveMessage.h
  14778. (ID_t): Removed.
  14779. (ID): New variable.
  14780. (getId): Made non-const.
  14781. * src/BtHandshakeMessage.h
  14782. (ID): New variable.
  14783. (getId): Made non-const.
  14784. * src/BtSuggestPieceMessage.h
  14785. (ID_t): Removed.
  14786. (ID): New variable.
  14787. (getId): Made non-const.
  14788. * src/BtPortMessage.h
  14789. (ID_t): Removed.
  14790. (ID): New variable.
  14791. (getId): Made non-const.
  14792. * src/AbstractBtMessage.h
  14793. (id): Removed.
  14794. (AbstractBtMessage): Removed id.
  14795. (getId): Removed.
  14796. * src/BtHaveMessage.h
  14797. (ID_t): Removed.
  14798. (ID): New variable.
  14799. (getId): Made non-const.
  14800. * src/BtAllowedFastMessage.h
  14801. (ID_t): Removed.
  14802. (ID): New variable.
  14803. (getId): Made non-const.
  14804. * src/BtCancelMessage.h
  14805. (ID_t): Removed.
  14806. (ID): New variable.
  14807. (getId): Made non-const.
  14808. * src/BtNotInterestedMessage.h
  14809. (ID_t): Removed.
  14810. (ID): New variable.
  14811. (getId): Made non-const.
  14812. * src/BtChokeMessage.h
  14813. (ID_t): Removed.
  14814. (ID): New variable.
  14815. (getId): Made non-const.
  14816. * src/BtRejectMessage.h
  14817. (ID_t): Removed.
  14818. (ID): New variable.
  14819. (getId): Made non-const.
  14820. * src/BtBitfieldMessage.h
  14821. (ID_t): Removed.
  14822. (ID): New variable.
  14823. (getId): Made non-const.
  14824. * src/BtUnchokeMessage.h
  14825. (ID_t): Removed.
  14826. (ID): New variable.
  14827. (getId): Made non-const.
  14828. * src/BtRequestMessage.h
  14829. (ID_t): Removed.
  14830. (ID): New variable.
  14831. (getId): Made non-const.
  14832. * src/BtHaveMessage.h
  14833. (ID_t): Removed.
  14834. (ID): New variable.
  14835. (getId): Made non-const.
  14836. To add --force-truncate command-line option and a check whether
  14837. the file already exists:
  14838. * src/DirectDiskAdaptor.h
  14839. (getFilePath): Made virtual public.
  14840. * src/MultiDiskAdaptor.h
  14841. (File.h): New include.
  14842. (DiskWriterEntry::fileEntry): Made private.
  14843. (DiskWriterEntry::fileExists): New function.
  14844. (DiskWriterEntry::getFileEntry): New function.
  14845. (fileExists): New function.
  14846. (getFilePath): New function.
  14847. * src/TorrentRequestInfo.cc
  14848. (FatalException.h): New include.
  14849. (message.h): New include.
  14850. (RecoverableException.h): New include.
  14851. (execute): Added a check whether file is already exists or not.
  14852. * src/DiskAdaptor.h
  14853. (fileExists): New function.
  14854. (getFilePath): New function.
  14855. * src/main.cc
  14856. (showUsage): Added an explanation of --force-truncate command-line
  14857. option.
  14858. (main): Added --force-truncate command-line option.
  14859. * src/Exception.h
  14860. (setMsg): buf[256] -> buf[1024]
  14861. * src/CopyDiskWriter.h
  14862. (getFilePath): Made public virtual.
  14863. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  14864. (fileExists): New function.
  14865. * src/DownloadEngineFactory.cc
  14866. (newTorrentConsoleEngine): Don't open file here.
  14867. * src/message.h
  14868. (EX_FILE_ALREADY_EXISTS): New definition.
  14869. * src/prefs.h
  14870. (PREF_FOECE_TRUNCATE): New definition.
  14871. * src/HttpResponseCommand.cc
  14872. (handleDefaultEncoding): Added a check whether the file already exists.
  14873. * src/SegmentMan.h
  14874. (fileExists): New function.
  14875. (shouldCancelDownloadForSafety): New function.
  14876. * src/FtpNegotiateCommand.cc
  14877. (recvSize): Added a check whether the file already exists.
  14878. * src/AbstractSingleDiskAdaptor.cc
  14879. (File.h): New include.
  14880. (fileExists): New function.
  14881. * src/AbstractSingleDiskAdaptor.h
  14882. (getFilePath): Removed.
  14883. (fileExists): New function.
  14884. * src/SegmentMan.cc
  14885. (fileExists): New function.
  14886. (shouldCancelDownloadForSafety): New function.
  14887. To fix regression bug in torrent downloading:
  14888. * src/DefaultBtRequestFactory.cc
  14889. (doChokedAction): New function.
  14890. * src/DefaultBtRequestFactory.h
  14891. (doChokedAction): New function.
  14892. * src/DefaultBtMessageDispatcher.cc
  14893. (doChokedAction): Do not delete request if its target is in allowed
  14894. fast set.
  14895. * src/DefaultBtInteractive.cc
  14896. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  14897. (sendKeepAlive): Send keep alive message even if the outgoing message
  14898. queue is not empty.
  14899. (decideInterest): Simplified the code.
  14900. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  14901. it is already called when BtChokeMessage is received from a peer.
  14902. * src/BtRequestFactory.h
  14903. (doChokedAction): New function.
  14904. To clean up code:
  14905. * src/PeerInteractionCommand.h
  14906. (executeInternal): Added virtual keyword explicitly.
  14907. (prepareForRetry): Added virtual keyword explicitly.
  14908. (prepareForNextPeer): Added virtual keyword explicitly.
  14909. (onAbort): Added virtual keyword explicitly.
  14910. * src/RequestSlot.cc
  14911. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  14912. * src/BtPieceMessage.cc
  14913. (doReceivedAction): Added a debug log of piece's bitfield.
  14914. * src/Piece.h
  14915. (getBitfieldLength): New function.
  14916. * src/ByteArrayDiskWriter.cc
  14917. (clear): Added buf = 0 to avoid double free corruption.
  14918. * src/FileAllocator.cc
  14919. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  14920. Added cp.reset().
  14921. * src/BitfieldMan.h
  14922. (operator=): Rewritten.
  14923. * src/BitfieldMan.cc
  14924. (BitfieldMan): Initialized bitfield, useBitfield.
  14925. * src/PeerConnection.cc
  14926. (receiveMessage): Added a call to socket->readable() after getting
  14927. message length to avoid possible EOF.
  14928. * src/Util.cc
  14929. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  14930. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14931. To add an ability to pre-allocate file space:
  14932. * src/DirectDiskAdaptor.h: Rewritten.
  14933. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  14934. * src/MultiDiskAdaptor.h: Rewritten.
  14935. * src/DefaultPieceStorage.cc
  14936. (MultiDiskWriter.h): Removed include.
  14937. (PreAllocationDiskWriter.h): Removed include.
  14938. (FileAllocationMonitor.h): New include.
  14939. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  14940. (initStorage): Rewritten.
  14941. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14942. * src/FileAllocator.h: New class.
  14943. * src/FileAllocator.cc: New class.
  14944. * src/FileAllocationMonitor.h: New class.
  14945. * src/FileAllocationMonitor.cc: New class.
  14946. * src/ConsoleFileAllocationMonitor.h: New class.
  14947. * src/ConsoleFileAllocationMonitor.cc: New class.
  14948. * src/AbstractSingleDiskAdaptor.h: New class.
  14949. * src/AbstractSingleDiskAdaptor.cc: New class.
  14950. * src/DiskAdaptor.h
  14951. (Directory.h): Removed include.
  14952. (DiskWriter.h): Removed include.
  14953. (FileEntry.h): Removed include.
  14954. (diskWriter): Removed.
  14955. (DiskAdaptor): Removed diskWriter.
  14956. (openFile): Made pure virtual.
  14957. (closeFile): Made pure virtual.
  14958. (openExistingFile): Made pure virtual.
  14959. (initAndOpenFile): Made pure virtual.
  14960. (writeData): Made pure virtual.
  14961. (readData): Made pure virtual.
  14962. (sha1Sum): Made pure virtual.
  14963. (getStoreDir): Returns const reference of storeDir.
  14964. (DiskAdaptorHandle): New type definition.
  14965. * src/main.cc
  14966. (ConsoleFileAllocationMonitor.h): New include.
  14967. (showUsage): Added default value description of -s option.
  14968. Added the description of --file-allocation option.
  14969. (main): Set default value of --file-allocation option to 'none'.
  14970. Added --file-allocation command-line option.
  14971. Setup FileAllocationMonitorFactory.
  14972. * src/FtpInitiateConnectionCommand.cc
  14973. (executeInternal): Removed diskWriter related processing, which was
  14974. moved to FtpNegotiationCommand.cc.
  14975. * src/DirectDiskAdaptor.cc
  14976. (getFilePath): Made non-const.
  14977. * src/CopyDiskAdaptor.h
  14978. (DiskAdaptor.h): Removed include.
  14979. (DiskWriter.h): Removed include.
  14980. (AbstractSingleDiskAdaptor.h): New include.
  14981. (getFilePath): Made non-const. Added virtual keyword.
  14982. (CopyDiskAdaptor): Removed diskWriter.
  14983. (getTempFile): Returns const reference.
  14984. (CopyDiskAdaptorHandle): New type definition.
  14985. * src/ByteArrayDiskWriter.cc
  14986. (clear): Simplified.
  14987. (initAndOpenFile): Rewritten.
  14988. (openFile): Call initAndOpenFile()
  14989. * src/MultiDiskAdaptor.cc: Rewritten.
  14990. * src/DownloadEngineFactory.cc
  14991. (FileAllocator.h): New include.
  14992. (FileAllocationMonitor.h): New include.
  14993. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  14994. create DefaultDiskWriter with file allocator.
  14995. * src/DiskWriter.h
  14996. (initAndOpenFile): Added totalLength argument.
  14997. (openFile): Added totalLength argument.
  14998. * src/prefs.h
  14999. (PREF_FILE_ALLOCATION): New definition.
  15000. (V_PREALLOC): New definition.
  15001. (V_NONE): New definition.
  15002. * src/HttpResponseCommand.cc
  15003. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  15004. size.
  15005. * src/FtpNegotiateCommand.cc
  15006. (Util.h): New include.
  15007. (recvSize): Open file here.
  15008. * src/Util.h
  15009. (ullitos): New function.
  15010. * src/CopyDiskWriter.h
  15011. (getFilePath): Made non-const.
  15012. * src/DefaultDiskWriter.h
  15013. (Option.h): New include.
  15014. (totalLength): Removed.
  15015. (DefaultDiskWriter): Removed totalLength.
  15016. (initAndOpenFile): Added totalLength argument.
  15017. (DefaultDiskWriterHandle): New type definition.
  15018. (createNewDiskWriter): New function.
  15019. * src/Util.cc
  15020. (ullitos): New function.
  15021. * src/DefaultDiskWriter.cc
  15022. (message.h): New include.
  15023. (FileAllocator.h): New include.
  15024. (prefs.h): New include.
  15025. (Util.h): New include.
  15026. (DefaultDiskWriter): Removed totalLength.
  15027. (initAndOpenFile): Added file allocation.
  15028. (createNewDiskWriter): New function. Just for temporary solution.
  15029. It will be rewritten later.
  15030. * src/DiskAdaptor.cc
  15031. (DiskAdaptor): Removed diskWriter.
  15032. * src/AbstractDiskWriter.cc
  15033. (LogFactory.h): New include.
  15034. (AbstractDiskWriter): Added fileAllocator, logger.
  15035. (openFile): Added totalLength argument.
  15036. * src/AbstractDiskWriter.h
  15037. (FileAllocator.h): New include.
  15038. (Logger.h): New include.
  15039. (fileAllocator): New variable.
  15040. (logger): New variable.
  15041. (openFile): Added totalLength argument. Added virtual keyword
  15042. explicitly.
  15043. (openExistingFile): Added totalLength argument. Added virtual keyword
  15044. explicitly.
  15045. (closeFile): Added virtual keyword explicitly.
  15046. (sha1Sum): Added virtual keyword explicitly.
  15047. (writeData): Added virtual keyword explicitly.
  15048. (readData): Added virtual keyword explicitly.
  15049. (setFileAllocator): New function.
  15050. * src/DefaultPieceStorage.h
  15051. (FileAllocator.h): New include.
  15052. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  15053. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  15054. * src/FileProgressMonitor.h: New class.
  15055. To compile aria2 on PC-BSD:
  15056. * src/DefaultBtContext.cc
  15057. (libgen.h): New include.
  15058. To fix memory leak:
  15059. * src/Exception.h
  15060. (~Exception): Delete cause. Fixed memory leak.
  15061. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15062. Rewritten a portion of bittorrent implementation:
  15063. * src/BtMessageValidator.h: New class.
  15064. * src/BtBitfieldMessageValidator.h: New class.
  15065. * src/BtHandshakeMessageValidator.h: New class.
  15066. * src/BtRequestMessageValidator.h: New class.
  15067. * src/BtSuggestPieceMessageValidator.h: New class.
  15068. * src/BtAllowedFastMessageValidator.h: New class.
  15069. * src/BtRejectMessageValidator.h: New class.
  15070. * src/BtCancelMessageValidator.h: New class.
  15071. * src/BtPieceMessageValidator.h: New class.
  15072. * src/BtHaveMessageValidator.h: New class.
  15073. * src/BtEventListener.h: New class.
  15074. * src/AbstractBtEventListener.h: New class.
  15075. * src/BtEvent.h: New class.
  15076. * src/BtChokingEvent.h: New class.
  15077. * src/BtChokedEvent.h: New class.
  15078. * src/BtCancelSendingPieceEvent.h: New class.
  15079. * src/BtAbortOutstandingRequestEvent.h: New class.
  15080. * src/Randomizer.h: New class.
  15081. * src/SimpleRandomizer.h: New class.
  15082. * src/BtMessage.h: New class.
  15083. * src/AbstractBtMessage.h: New class.
  15084. * src/SimpleBtMessage.h: New class.
  15085. * src/BtHaveMessage.h: New class.
  15086. * src/BtInterestedMessage.h: New class.
  15087. * src/BtAllowedFastMessage.h: New class.
  15088. * src/BtUnchokeMessage.h: New class.
  15089. * src/BtCancelMessage.h: New class.
  15090. * src/BtNotInterestedMessage.h: New class.
  15091. * src/BtChokeMessage.h: New class.
  15092. * src/BtHaveNoneMessage.h: New class.
  15093. * src/BtHandshakeMessage.h: New class.
  15094. * src/BtSuggestPieceMessage.h: New class.
  15095. * src/BtHaveMessage.h: New class.
  15096. * src/BtPieceMessage.h: New class.
  15097. * src/BtHaveAllMessage.h: New class.
  15098. * src/BtKeepAliveMessage.h: New class.
  15099. * src/BtPortMessage.h: New class.
  15100. * src/BtRejectMessage.h: New class.
  15101. * src/BtBitfieldMessage.h: New class.
  15102. * src/BtRequestMessage.h: New class.
  15103. * src/DefaultBtRequestFactory.h: New class.
  15104. * src/DefaultBtMessageReceiver.h: New class.
  15105. * src/BtInteractive.h: New class.
  15106. * src/BtMessageDispatcher.h: New class.
  15107. * src/DefaultBtMessageDispatcher.h: New class.
  15108. * src/DefaultBtInteractive.h: New class.
  15109. * src/BitfieldManFactory.h: New class.
  15110. * src/HandleRegistry.h: New class.
  15111. * src/BtMessageFactory.h: New class.
  15112. * src/BtMessageReceiver.h: New class.
  15113. * src/DefaultBtMessageFactory.h: New class.
  15114. * src/PeerObject.h: New class.
  15115. * src/BtRequestFactory.h: New class.
  15116. * src/SuggestPieceMessage.h: Removed.
  15117. * src/PortMessage.h: Removed.
  15118. * src/SuggestPieceMessage.h: Removed.
  15119. * src/KeepAliveMessage.h: Removed.
  15120. * src/HandshakeMessage.h: Removed.
  15121. * src/PeerInteraction.h: Removed.
  15122. * src/UnchokeMessage.h: Removed.
  15123. * src/PieceMessage.h: Removed.
  15124. * src/RequestMessage.h: Removed.
  15125. * src/InterestedMessage.h: Removed.
  15126. * src/HaveMessage.h: Removed.
  15127. * src/CancelMessage.h: Removed.
  15128. * src/RejectMessage.h: Removed.
  15129. * src/AllowedFastMessage.h: Removed.
  15130. * src/HaveNoneMessage.h: Removed.
  15131. * src/SimplePeerMessage.h: Removed.
  15132. * src/HaveAllMessage.h: Removed.
  15133. * src/BitfieldMessage.h: Removed.
  15134. * src/PeerMessageFactory.h: Removed.
  15135. * src/NotInterestedMessage.h: Removed.
  15136. * src/ChokeMessage.h: Removed.
  15137. * src/PeerMessage.h: Removed.
  15138. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15139. To know root cause of exception:
  15140. * src/Exception.h
  15141. (cause): New variable.
  15142. (Exception): Added a parameter.
  15143. (getMsg): Return const reference to msg.
  15144. (getCause): New function.
  15145. * src/DlRetryEx.h
  15146. (DlRetryEx): Added a parameter 'cause'.
  15147. Added an overloaded constructor.
  15148. (DlAbortEx): Added a parameter 'cause'.
  15149. Added an overloaded constructor.
  15150. * src/SimpleLogger.cc
  15151. (writeLog): Log nested exception messages recursively.
  15152. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15153. * src/DefaultBtProgressInfoFile.cc
  15154. (load): Fixed memory leak when the infohash doesn't match.
  15155. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15156. * src/DefaultPeerStorage.cc
  15157. (calculateStat): Simplified the code by combining 2 loops into 1.
  15158. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15159. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  15160. for BitTorrent download:
  15161. * src/PeerAbstractCommand.cc
  15162. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  15163. * src/main.cc:
  15164. (timeoutSpecified): Removed.
  15165. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  15166. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  15167. * src/TorrentRequestInfo.cc
  15168. (timeoutSpecified): Removed.
  15169. (torrentHandler): Removed timeoutSpecified and the adjustment of
  15170. timeout value.
  15171. * src/prefs.h
  15172. (PREF_BT_TIMEOUT): New definition.
  15173. Delete unused variables:
  15174. * src/TorrentRequestInfo.cc
  15175. (requestInfo): Removed.
  15176. Move setSignalHander to Util::setGlobalSignalHandler:
  15177. * src/TorrentRequestInfo.cc:
  15178. setSignalHander -> Util::setGlobalSignalHandler
  15179. * src/main.cc
  15180. (setSignalHander): Removed.
  15181. (main): setSignalHander -> Util::setGlobalSignalHandler
  15182. * src/Util.h
  15183. (setGlobalSignalHandler): New function.
  15184. * src/Util.cc
  15185. (setGlobalSignalHandler): New function.
  15186. * src/UrlRequestInfo.cc:
  15187. setSignalHander -> Util::setGlobalSignalHandler
  15188. Reset peer status in order to exit gracefully:
  15189. * src/PeerAbstractCommand.cc
  15190. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  15191. To fix the bug that causes the number of bytes uploaded is not saved
  15192. to .aria2 file:
  15193. * src/DefaultPeerStorage.h
  15194. (removedPeerSessionDownloadLength): New variable.
  15195. (removedPeerSessionUploadLength): New variable.
  15196. * src/DefaultPeerStorage.cc
  15197. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  15198. removedPeerSessionUploadLength(0).
  15199. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  15200. through all peers, and then add removedPeerSessionDownloadLength(
  15201. removedPeerSessionUploadLength) to it.
  15202. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  15203. (to) the peer to removedPeerSessionDownloadLength
  15204. (removedPeerSessionUploadLength).
  15205. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15206. To add Metalink location option:
  15207. * src/MetalinkRequestInfo.cc
  15208. (execute): Call MetalinkEntry::setLocationPreference()
  15209. * src/main.cc
  15210. (showUsage): Added the help message for --metalink-location option.
  15211. (main): Added --metalink-location option.
  15212. * src/prefs.h
  15213. (PREF_METALINK_LOCATION): New definition.
  15214. * src/MetalinkEntry.cc
  15215. (AddLocationPreference): New function object.
  15216. (setLocationPreference): New function.
  15217. * src/Xml2MetalinkProcessor.cc
  15218. (getResource): Set location attribute to MetalinkResource
  15219. To show URLs to download
  15220. * src/UrlRequestInfo.h
  15221. (printUrls): New function.
  15222. To add multiple <file> Metalink support:
  15223. * src/MetalinkEntry.h
  15224. (MetalinkResources): Removed.
  15225. (setLocationPreference): New function.
  15226. (MetalinkEntryHandle): New type definition.
  15227. (MetalinkEntries): New type definition.
  15228. * src/Xml2MetalinkProcessor.h
  15229. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  15230. (getResource): MetalinkResource* -> MetalinkResourceHandle
  15231. (parseFile): Metalinker* -> MetalinkerHandle
  15232. * src/UrlRequestInfo.h
  15233. (execute): RequestInfo* -> RequestInfos
  15234. * src/MetalinkRequestInfo.cc
  15235. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  15236. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  15237. (execute): RequestInfo* -> RequestInfos
  15238. Added multiple <file> support. Print filename when it is queued.
  15239. * src/MetalinkRequestInfo.h
  15240. (execute): RequestInfo* -> RequestInfos
  15241. (getDownloadEngine): Removed.
  15242. * src/RequestInfo.h
  15243. (RequestInfoHandle): New type definition.
  15244. (RequestInfos): New type definition.
  15245. (execute): RequestInfo* -> RequestInfos
  15246. (getDownloadEngine): Removed.
  15247. * src/MetalinkResource.h
  15248. (MetalinkResourceHandle): New type definition.
  15249. (MetalinkResources): New type definition.
  15250. * src/MetalinkEntry.cc
  15251. (~MetalinkEntry): Removed the deletion of the elements of resources,
  15252. because the element is now of type MetalinkResourceHandle.
  15253. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  15254. (Supported): MetalinkResource* -> MetalinkResourceHandle
  15255. (dropUnsupportedResource): Removed the deletion of the elements of
  15256. resources because the element is now of type MetalinkResourceHandle.
  15257. * src/Xml2MetalinkProcessor.cc
  15258. (parseFile): Metalinker* -> MetalinkerHandle
  15259. MetalinkEntry* -> MetalinkEntryHandle
  15260. Removed try-catch block.
  15261. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  15262. MetalinkResource* -> MetalinkResourceHandle
  15263. Removed try-catch block.
  15264. (getResource): MetalinkResource* -> MetalinkResourceHandle
  15265. Free result by using xmlXPathFreeObject()
  15266. * src/Metalinker.cc
  15267. (~Metalinker): Removed the deletion of entries.
  15268. MetalinkEntry* -> MetalinkEntryHandle
  15269. (queryEntry): Add multiple <file> Metalink support.
  15270. * src/Metalinker.h
  15271. (MetalinkEntries): Removed.
  15272. (queryEntry): MetalinkEntry* -> MetalinkEntries
  15273. * src/MetalinkProcessor.h
  15274. (parseFile): Metalinker* -> MetalinkerHandle
  15275. Bug fixes:
  15276. * src/PeerChokeCommand.cc
  15277. (execute): cat01->cat02
  15278. * src/DefaultPieceStorage.cc
  15279. (DefaultPieceStorage): Added diskAdaptor(0)
  15280. * src/TrackerWatcherComand.cc:
  15281. (execute): Use btAnnounce->noMoreAnnounce()
  15282. to determin whether the function returns true or not.
  15283. * src/TrackerUpdateCommand.cc:
  15284. (execute): Use btAnnounce->noMoreAnnounce()
  15285. to determin whether the function returns true or not.
  15286. * src/FtpConnection.cc
  15287. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  15288. This is the fix of the busy loop bug.
  15289. * src/DownloadCommand.cc
  15290. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  15291. cached PeerStat.
  15292. The value of "name" entry in torrent file is now set by
  15293. *DiskAdaptor::setTopDir(...) methods.
  15294. * src/MultiDiskAdaptor.h
  15295. (topDir): New variable.
  15296. (setTopDir): New function.
  15297. (getTopDir): New function.
  15298. * src/MultiDiskAdaptor.cc
  15299. (getFilePath): Concat storDir, "/" and topDir.
  15300. (mkdir): Use getFilePath() to get the directory path for output.
  15301. * src/DefaultPieceStorage.cc
  15302. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  15303. CopyDiskAdaptor.
  15304. * src/CopyDiskAdaptor.h
  15305. (topDir): New variable.
  15306. (setTopDir): New function.
  15307. (getTopDir): New function.
  15308. * src/CopyDiskAdaptor.cc
  15309. (fixFilename): Updated.
  15310. Misc
  15311. * src/UrlRequestInfo.h
  15312. (e): Removed.
  15313. (UrlRequestInfo): Removed e.
  15314. (getDownloadEngine): Removed.
  15315. * src/UrlRequestInfo.cc
  15316. (handler): Rewritten.
  15317. (printUrls): New function.
  15318. (execute): Call printUrls().
  15319. * src/HandshakeMessage.cc
  15320. (check): peerinteraction->getBtContext() -> btContext
  15321. * src/PeerInteraction.h
  15322. (getBtContext): Removed.
  15323. * src/TorrentRequestInfo.h
  15324. (execute): RequestInfo* -> RequestInfos
  15325. (getDownloadEngine): Removed.
  15326. * src/TorrentRequestInfo.cc
  15327. (haltRequested): Removed.
  15328. (btHaltRequested): New variable.
  15329. (torrentHandler): haltRequested -> btHaltRequested
  15330. (execute): RequestInfo* -> RequestInfos
  15331. * src/TorrentConsoleDownloadEngine.cc
  15332. (afterEachIteration): haltRequested -> btHaltRequested.
  15333. * src/ConsoleDownloadEngine.h
  15334. (initStatistics): Added virtual.
  15335. (calculateStatistics): Added virtual.
  15336. (onEndOfRun): Added virtual.
  15337. (afterEachIteration): Added virtual.
  15338. * src/ConsoleDownloadEngine.cc
  15339. (haltRequested): New variable.
  15340. (afterEachIteration): New function.
  15341. * src/main.cc
  15342. (requestInfo): Removed.
  15343. * src/SegmentMan.cc
  15344. (findSlowerSegmentEntry): Refactored.
  15345. * Release 0.9.0
  15346. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15347. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  15348. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  15349. * src/TorrentMan.h: Removed.
  15350. * src/TorrentMan.cc: Removed.
  15351. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  15352. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  15353. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  15354. * src/PeerAbstractCommand.cc: Use btRuntime.
  15355. * src/BtContextAwareCommand.h: New class.
  15356. * src/FileEntry.h: Added accessor methods for following variables.
  15357. (path): Made private.
  15358. (length): Made private.
  15359. (offset): Made private.
  15360. (extracted): Made private.
  15361. (requested): Made private.
  15362. (FileEntries): New definition.
  15363. (FileEntryHandle): New definition.
  15364. * src/FileEntry.cc: New file.
  15365. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  15366. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  15367. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  15368. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  15369. * src/PieceStorage.h: New file.
  15370. * src/PeerInteractionCommand.h: Use btContext.
  15371. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  15372. btRuntime.
  15373. * src/DefaultBtProgressInfoFile.h: New file.
  15374. * src/DefaultBtProgressInfoFile.cc: New file.
  15375. * src/File.cc
  15376. (Util.h): New include.
  15377. (mkdirs): New function.
  15378. * src/MultiDiskAdaptor.h
  15379. (mkdir): New function.
  15380. * src/PeerListProcessor.h
  15381. (Peers): Removed.
  15382. * src/PeerInteraction.h
  15383. (torrentMan): Removed.
  15384. (btContext): New variable.
  15385. (peerStorage): New variable.
  15386. (pieceStorage): New variable.
  15387. (btAnnounce): New variable.
  15388. (getTorrentMan): Removed.
  15389. (getBtContext): New function.
  15390. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  15391. btAnnounce.
  15392. * src/HandshakeMessage.h
  15393. (TorrentMan.h): Removed.
  15394. * src/HandshakeMessage.cc: Use btContext.
  15395. * src/DefaultBtAnnounce.cc: New file.
  15396. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  15397. * src/DefaultPieceStorage.cc: New file.
  15398. * src/DefaultBtContext.h: New file.
  15399. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  15400. Use the accessor methods of FileEntry.
  15401. * src/CookieBox.cc: Updated to use Util::slice().
  15402. * src/PieceMessage.cc: Use btContext, pieceStorage.
  15403. * src/common.h (SharedHandle.h): New include.
  15404. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  15405. pieceStorage.
  15406. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  15407. * src/DiskAdaptor.h
  15408. (topDir): Removed.
  15409. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  15410. (setTopDir): Removed.
  15411. (getTopDir): Removed.
  15412. * src/BtContext.h: New file.
  15413. * src/DefaultPeerStorage.h: New file.
  15414. * src/PieceMessage.h (TorrentMan.h): Removed.
  15415. * src/RequestMessage.h (TorrentMan.h): Removed.
  15416. * src/TorrentDownloadEngine.h
  15417. (uploadLength): New variable.
  15418. (btContext): New variable.
  15419. (btRuntime): New variable.
  15420. (pieceStorage): New variable.
  15421. (peerStorage): New variable.
  15422. (btAnnounce): New variable.
  15423. (btProgressInfoFile): New variable.
  15424. (torrentMan): Removed.
  15425. (setBtContext): New function.
  15426. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  15427. peerStorage, btAnnounce, btProgressInfoFile.
  15428. * src/Piece.h
  15429. (toString): New function.
  15430. (Pieces): New type definition.
  15431. * src/Peer.h
  15432. (active): New variable.
  15433. (Peer): Added active.
  15434. (activate): Set active to true.
  15435. (deactivate): Set active to false.
  15436. (isActive): New function.
  15437. (Peers): New type definition.
  15438. * src/DirectDiskAdaptor.cc
  15439. (getFilePath): Use the accessor methods of FileEntry.
  15440. * src/TorrentConsoleDownloadEngine.h
  15441. (afterEachIteration): New function.
  15442. * src/TorrentConsoleDownloadEngine.cc
  15443. (haltRequested): New variable.
  15444. (sendStatistics): Use pieceStorage, btRuntime.
  15445. (afterEachIteration): New function.
  15446. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  15447. * src/Directry.h
  15448. (Directory): New function.
  15449. (DirectoryHandle): New type definition.
  15450. * src/BtProgressInfoFile.h: New file.
  15451. * src/RequestMessage.cc: Use pieceStorage.
  15452. * src/BtRuntime.h: New file.
  15453. * src/DefaultBtContext.cc: New file.
  15454. * src/BitfieldMan.h
  15455. (getCompletedLength): New function(private).
  15456. (getCompletedLength): New function.
  15457. (getFilteredCompletedLength): New function.
  15458. * src/BitfieldMan.h
  15459. (getCompletedLength): New function(private).
  15460. (getCompletedLength): New function.
  15461. (getFilteredCompletedLength): New function.
  15462. * src/MultiDiskAdaptor.cc
  15463. (mkdir): New function.
  15464. (openFile): Call mkdir().
  15465. (initAndOpenFile): Call mkdir().
  15466. * src/CancelMessage.h
  15467. (TorrentMan.h): Removed.
  15468. * src/RejectMessage.h
  15469. (TorrentMan.h): Removed.
  15470. * src/DownloadEngineFactory.cc
  15471. (DefaultPieceStorage.h): New include.
  15472. (DefaultPeerStorage.h): New include.
  15473. (DefaultBtAnnounce.h): New include.
  15474. (DefaultBtProgressInfoFile.h): New include.
  15475. (newTorrentConsoleEngine): Rewritten.
  15476. * src/ShareRatioSeedCriteria.h
  15477. (torrentMan): Removed.
  15478. (btContext): New variable.
  15479. (peerStorage): New variable.
  15480. (btRuntime): New variable.
  15481. (evaluate): Use btContext, btRuntime, peerStorage.
  15482. * src/AnnounceTier.h: New file.
  15483. * src/BtAnnounce.h: New file.
  15484. * src/BtRegistry.h: New file.
  15485. * src/PeerInitiateConnectionCommand.h: Added btContext.
  15486. * src/PeerConnection.h (TorrentMan.h): Removed.
  15487. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  15488. * src/Util.h
  15489. (slice): Added an argument.
  15490. * src/Util.cc
  15491. (slice): Added an argument to control whether trim is made or not.
  15492. * src/PeerStorage.h: New file.
  15493. * src/BtRegistry.cc: New file.
  15494. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  15495. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  15496. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  15497. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  15498. * src/TorrentRequestInfo.h
  15499. (e): Removed.
  15500. (showFileEntry): Added an argument.
  15501. (getDownloadEngine): Return 0.
  15502. * src/DefaultBtAnnounce.h: New file.
  15503. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  15504. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  15505. * src/PeerMessageFactory.h
  15506. (btContext): New variable.
  15507. (pieceStorage): New variable.
  15508. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  15509. btAnnounce.
  15510. * src/DiskAdaptor.cc
  15511. (DiskAdaptor): Removed topDir.
  15512. (~DiskAdaptor): Removed topDir.
  15513. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  15514. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  15515. * src/File.h (mkdirs): New function.
  15516. * src/DefaultPeerStorage): New file.
  15517. * src/DownloadEngineFactory.h
  15518. (newTorrentConsoleEngine): Use btContext.
  15519. * src/BtContextAwareCommand.cc: New file.
  15520. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  15521. * src/PeerMessage.h
  15522. (btContext): New variable.
  15523. (peerStorage): New variable.
  15524. (pieceStorage): New variable.
  15525. (setBtContext): New function.
  15526. * src/Directry.cc
  15527. (Directory): New function.
  15528. (createDir): Do nothing if name.size() == 0.
  15529. * src/AnnounceList.h
  15530. (AnnounceTier): Removed.
  15531. (AnnounceTiers): Removed.
  15532. * src/DefaultPieceStorage.h: New file.
  15533. * src/Piece.cc (toString): New function.
  15534. To fix typo:
  15535. * src/main.cc (showVersion): Fixed typo.
  15536. To fix compile warning:
  15537. * src/DelegatingPeerListProcessor.cc
  15538. (canHandle): Added "return false".
  15539. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15540. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  15541. make the process of announce request testable.
  15542. * src/TrackerWatcherCommand.h
  15543. (TimeA2.h): Removed.
  15544. (interval): Removed.
  15545. (checkPoint): Removed.
  15546. (createRequestCommand): Added an argument 'url'.
  15547. (TrackerWatherCommand): Removed interval.
  15548. (createCommand): New function.
  15549. * src/DownloadEngineFactory.cc
  15550. (newTorrentConsoleEngine): Updated according to the changes in
  15551. TrackerWatherCommand.
  15552. * src/TorrentMan.cc
  15553. (DelegatingPeerListProcessor.h): New includes.
  15554. (TorrentMan): Added the initialization of announceInterval.
  15555. (isStoppedAnnounceReady): New function.
  15556. (isCompletedAnnounceReady): New function.
  15557. (isDefaultAnnounceReady): New function.
  15558. (isAnnounceReady): New function.
  15559. (getAnnounceUrl): New function.
  15560. (announceStart): New function.
  15561. (announceFailure): New function.
  15562. (announceSuccess): New function.
  15563. (isAllAnnounceFailed): New function.
  15564. (resetAnnounce): New function.
  15565. (processAnnounceResponse): New function.
  15566. (needMorePeerConnection): New function.
  15567. (noMoreAnnounce): New function.
  15568. * src/TrackerUpdateCommand.h
  15569. (getTrackerResponse): int->size_t
  15570. * src/TorrentMan.h
  15571. (isStoppedAnnounceReady): New function.
  15572. (isCompletedAnnounceReady): New function.
  15573. (isDefaultAnnounceReady): New function.
  15574. (announceInterval): New variable.
  15575. (isAnnounceReady): New function.
  15576. (getAnnounceUrl): New function.
  15577. (announceStart): New function.
  15578. (announceFailure): New function.
  15579. (announceSuccess): New function.
  15580. (isAllAnnounceFailed): New function.
  15581. (resetAnnounce): New function.
  15582. (processAnnounceResponse): New function.
  15583. (needMorePeerConnection): New function.
  15584. (noMoreAnnounce): New function.
  15585. * src/TrackerWatcherCommand.cc
  15586. (TrackerWatherCommand): Removed interval and checkPoint.
  15587. (execute): Rewritten.
  15588. (createCommand): New function.
  15589. (createRequestCommand): Rewritten.
  15590. * src/TrackerUpdateCommand.cc
  15591. (MetaFileUtil.h): Removed.
  15592. (DelegatingPeerListProcessor.h): Removed.
  15593. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  15594. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15595. Request -> RequestHandle:
  15596. * src/HttpResponseCommand.h: Request->RequestHandle
  15597. * src/AbstractCommand.cc: Request->RequestHandle
  15598. * src/HttpDownloadCommand.cc: Request->RequestHandle
  15599. * src/HttpRequestCommand.cc: Request->RequestHandle
  15600. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  15601. * src/AbstractCommand.h: Request->RequestHandle
  15602. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  15603. * src/HttpResponseCommand.cc: Request->RequestHandle
  15604. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  15605. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  15606. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  15607. * src/HttpConnection.h: Request->RequestHandle
  15608. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  15609. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  15610. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15611. * src/DownloadCommand.h: Request->RequestHandle
  15612. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  15613. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  15614. * src/HttpRequestCommand.h: Request->RequestHandle
  15615. * src/FtpNegotiateCommand.h: Request->RequestHandle
  15616. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15617. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  15618. * src/HttpDownloadCommand.h: Request->RequestHandle
  15619. * src/FtpConnection.cc: Request->RequestHandle
  15620. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  15621. * src/UrlRequestInfo.cc: Request->RequestHandle
  15622. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  15623. * src/HttpConnection.h: Request->RequestHandle
  15624. * src/DownloadCommand.cc: Request->RequestHandle
  15625. * src/FtpConnection.h: Request->RequestHandle
  15626. * src/FtpDowndloadCommand.h: Request->RequestHandle
  15627. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  15628. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  15629. * src/Request.h
  15630. (SharedHandle.h): New include.
  15631. (RequestHandle): New type definition.
  15632. (Requests): Redefined.
  15633. To add MULTITRACKER support:
  15634. * src/TrackerWatcherCommand.h
  15635. (createRequestCommand): New function.
  15636. * src/DownloadEngineFactory.cc
  15637. (newTorrentConsoleEngine): Removed req.
  15638. * src/prefs.h
  15639. (PREF_TRACKER_MAX_TRIES): New definition.
  15640. * src/TorrentMan.cc
  15641. (TorrentMan): Removed req. Added trackerNumTry.
  15642. (~TorrentMan): Removed req.
  15643. (setupInternal1): Added announceList.
  15644. * src/TorrentRequestInfo.cc
  15645. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  15646. announces is now specified by PREF_TRACKER_MAX_TRIES.
  15647. * src/main.cc
  15648. (main): Added PREF_TRACKER_MAX_TRIES.
  15649. * src/TorrentMan.h
  15650. (Request.h): Removed.
  15651. (AnnounceList.h): New include.
  15652. (trackerNumTry): New variable.
  15653. (req): Removed.
  15654. (announceList): New variable.
  15655. * src/TrackerWatcherCommand.cc
  15656. (execute): Rewritten.
  15657. (createRequestCommand): New function.
  15658. * src/TrackerUpdateCommand.cc
  15659. (execute): Updated with the use of AnnounceList.
  15660. * src/AnnounceList.cc: New class.
  15661. * src/AnnounceList.h: New class.
  15662. To fix typo:
  15663. * src/prefs.h
  15664. (PREF_MAX_TRIES): max_try->max_tries
  15665. To not to decode "+" as space in URL decode:
  15666. * src/Util.cc
  15667. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  15668. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15669. To add timeout to async name resolution:
  15670. * src/AbstractCommand.h
  15671. (nameResolveFinished): New function. This is not elegant way. It needs
  15672. to be more refined.
  15673. (nameResolverCheck): New variable.
  15674. * src/AbstractCommand.cc
  15675. (AbstractCommand): Added nameResolverCheck.
  15676. (execute): Added the check whether the name resolution has finished.
  15677. (setNameResolverCheck): Set nameResolverCheck to true.
  15678. (disableNameResolverCheck): Set nameResolverCheck to false.
  15679. (nameResolverFinished): New function.
  15680. * src/FtpInitiateConnectionCommand.h
  15681. (nameResolverFinished): New function.
  15682. * src/FtpInitiateConnectionCommand.cc
  15683. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15684. * src/HttpInitiateConnectionCommand.h
  15685. (nameResolverFinished): New function.
  15686. * src/HttpInitiateConnectionCommand.cc
  15687. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15688. * src/prefs.h
  15689. (PREF_DNS_TIMEOUT): New definition.
  15690. * src/main.cc
  15691. (main): Added PREF_DNS_TIMEOUT.
  15692. To add the support for a non-compact response from a tracker:
  15693. * src/PeerListProcessor.h: New class.
  15694. * src/DefaultPeerListProcessor.h: New class.
  15695. * src/DefaultPeerListProcessor.cc: New class.
  15696. * src/CompactPeerListProcessor.h: New class.
  15697. * src/CompactPeerListProcessor.cc: New class.
  15698. * src/DelegatingPeerListProcessor.h: New class.
  15699. * src/DelegatingPeerListProcessor.cc: New class.
  15700. * src/TorrentMan.cc
  15701. (addPeer): New function(overload).
  15702. (addPeer): Delete unused peers only when new peer is added.
  15703. * src/TorrentMan.h
  15704. (PeerListProcessor.h): Included.
  15705. (Peers): Removed.
  15706. (addPeer): New function(overload).
  15707. * src/TrackerUpdateCommand.cc
  15708. (netinet/in.h): Removed.
  15709. (DelegatingPeerListProcessor.h): Included.
  15710. (execute): Updated to use DelegatingPeerListProcessor.
  15711. To fix the memory leak in TorrentMan::peers:
  15712. * src/PeerAbstractCommand.cc
  15713. (onAbort): Added peer->resetStatus().
  15714. * src/Peer.h
  15715. (resetStatus): Made public.
  15716. To improve the precision of the speed calculation:
  15717. * src/SpeedCalc.h
  15718. (nextInterval): New variable.
  15719. * src/SpeedCalc.cc
  15720. (reset): Added nextInterval.
  15721. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  15722. (changeSw): Set nextInterval to 15 seconds relative to the current
  15723. instant time.
  15724. * src/main.cc
  15725. (showVersion): Updated.
  15726. (showUsage): Updated.
  15727. * Release 0.8.1
  15728. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15729. * src/main.cc
  15730. (showUsage): Commented out --min-segment-size option.
  15731. (main): Commented out --min-segment-size option.
  15732. * Release 0.8.0
  15733. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15734. * src/*.{h,cc}:
  15735. Added an exception to the license which allows linking with OpenSSL.
  15736. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15737. * src/AbstractCommand.cc
  15738. (execute): Check whether the download has finished before checking
  15739. socket status.
  15740. Return true if peerStat->getStatus() == REQUEST_IDLE.
  15741. Do not exit even if no segment is available.
  15742. * src/prefs.h
  15743. (PREF_STARTUP_IDLE_TIME): New definition.
  15744. * src/PeerInteractionCommand.cc
  15745. (executeInternal): Removed max speed limit. Because it performs bad.
  15746. (receiveMessages): Added max speed limit. This was better than above,
  15747. but still a little bit to be desired. Sometimes the download speed
  15748. became much faster than I specified.
  15749. * src/SpeedCalc.h
  15750. (start): New variable.
  15751. (accumulatedLength): New variable.
  15752. (getAvgSpeed): New function.
  15753. * src/SpeedCalc.cc
  15754. (reset): Added start, accumulatedLength.
  15755. (update): Added calculation of an average speed.
  15756. (getAvgSpeed): New function.
  15757. * src/DownloadCommand.h
  15758. (sw): Removed.
  15759. * src/main.cc
  15760. (main): Added PREF_STARTUP_IDLE_TIME.
  15761. * src/PeerStat.h
  15762. (STATUS): Added REQUEST_IDLE.
  15763. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  15764. (getAvgDownloadSpeed): New function
  15765. (requestIdle): New function.
  15766. * src/SegmentMan.h
  15767. (SegmentEntryHandle): New type definition.
  15768. (SegmentEntries): Now holds SegmentEntryHandle.
  15769. (findSlowerSegmentEntry): New funtion.
  15770. * src/SegmentMan.cc
  15771. (save): Updated according to the changes in SegmentEntries.
  15772. (read): Updated according to the changes in SegmentEntries.
  15773. (FindSegmentEntryByIndex): Updated according to the changes in
  15774. SegmentEntries.
  15775. (FindSegmentEntryByCuid): Updated according to the changes in
  15776. SegmentEntries.
  15777. (checkoutSegment): Updated according to the changes in SegmentEntries.
  15778. (onNullBitfield): Updated according to the changes in SegmentEntries.
  15779. Renamed uitr as itr.
  15780. (findSlowerSegmentEntry): New function.
  15781. (getSegment): Updated according to the changes in SegmentEntries.
  15782. Added the feature that cancels the segment with slow server and fast
  15783. one takes it over.
  15784. (cancelSegment): Updated according to the changes in SegmentEntries.
  15785. (getDownloadLength): Updated according to the changes in
  15786. SegmentEntries.
  15787. (init): Assigned 0 to bitfield after deleting it.
  15788. * src/DownloadCommand.cc
  15789. (STARTUP_IDLE_TIME): Removed.
  15790. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  15791. * src/PeerChokeCommand.cc
  15792. (optUnchokingPeer): Updated according to the changes in Peer.
  15793. (ResetDelta): Removed.
  15794. (UploadFaster): Updated according to the changes in Peer.
  15795. (DownloadFaster): Updated according to the changes in Peer.
  15796. (execute): I clarify the meaning of "upload" and "download" here.
  15797. "upload" means the transfer from localhost to remote host.
  15798. "download" means the transfer from remote host to localhost.
  15799. Based on this rule, I swapped orderByUploadRate and
  15800. orderByDownloadRate.
  15801. * src/PeerInteractionCommand.cc
  15802. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  15803. (executeInternal): Removed the argument of
  15804. peerInteraction->sendMessages().
  15805. (receiveMessages): Rewritten download speed limit.
  15806. (sendKeepAlive): Removed peerInteraction->sendMessages().
  15807. * src/HttpResponseCommand.cc
  15808. (handleDefaultEncoding): If file size is unknown in torrent request,
  15809. do not call segmentMan->initBitfield() here.
  15810. Disabled persistent connection feature in torrent request.
  15811. * src/UrlRequestInfo.h
  15812. (UrlRequestInfo): Removed const qualifier from option.
  15813. * src/TorrentMan.h
  15814. (TransferStat): New class.
  15815. (deltaDownloadLength): Removed.
  15816. (deltaUploadLength): Removed.
  15817. (addDeltaDownloadLength): Removed.
  15818. (getDeltaDownloadLength): Removed.
  15819. (resetDeltaDownloadLength): Removed.
  15820. (addDeltaUploadLength): Removed.
  15821. (getDeltaUploadLength): Removed.
  15822. (resetDeltaUploadLength): Removed.
  15823. (addActivePeer): Added peer->activate().
  15824. (deleteActivePeer): Added peer->deactivate().
  15825. (calculateStat): New function.
  15826. * src/TorrentMan.cc
  15827. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  15828. (calculateStat): New function.
  15829. * src/PeerInteraction.h
  15830. (uploadLimit): Removed.
  15831. (option): New variable.
  15832. (setUploadLimit): Removed.
  15833. (getUploadSpeed): Removed.
  15834. (sendMessages): Removed the argument "currentUploadSpeed".
  15835. * src/PeerInteraction.cc
  15836. (prefs.h): Included.
  15837. (PeerInteraction): Removed uploadLimit. Added option.
  15838. (sendMessages): Rewritten upload speed limit.
  15839. (sendHandshake): Removed the argument from sendMessages().
  15840. (sendBitfield): Removed the argument from sendMessages().
  15841. * src/PeerAbstractCommand.cc
  15842. (execute): Commented out the portion of upload limit.
  15843. (onAbort): Removed peer->resetStatus().
  15844. * src/TorrentRequestInfo.cc
  15845. (timeoutSpecified): Declared extern.
  15846. (execute): Set timeout to 180 if timeout is not specified by.
  15847. command-line.
  15848. * src/PieceMessage.cc
  15849. (receivedAction): Added peer->updateDownloadLength().
  15850. Removed peer->addPeerUpload().
  15851. Removed torrentMan->addDeltaDownloadLength().
  15852. (send): Added peer->updateUploadLength().
  15853. Removed peer->addPeerDownload().
  15854. Removed torrentMan->addDeltaUploadLength().
  15855. * src/main.cc
  15856. (timeoutSpecified): New variable.
  15857. (main): Set timeoutSpecified to false.
  15858. If the command-line option "--upload-limit" is specified, then
  15859. timeoutSpecified is set to true. This option will remain in the next
  15860. release, but be deprecated in the future release.
  15861. * src/TorrentRequestInfo.h
  15862. (TorrentRequestInfo): Removed const qualifier from op.
  15863. * src/PeerStat.h
  15864. (uploadSpeed): New variable.
  15865. (PeerStat): Added default value to cuid.
  15866. (calculateUploadSpeed): New function.
  15867. (updateUploadLength): New function.
  15868. (getMaxUploadSpeed): New function.
  15869. (getAvgUploadSpeed): New function.
  15870. (reset): Added uploadSpeed. Set status to IDLE.
  15871. * src/TorrentDownloadEngine.h
  15872. (cp): Declared as Time.
  15873. (sessionDownloadLengthArray): Removed.
  15874. (sessionUploadLengthArray): Removed.
  15875. (currentCp): Removed.
  15876. (lastCalcStat): New variable
  15877. (lastElapsed): Removed.
  15878. (sessionDownloadLength): Removed.
  15879. (calculateStat): New function.
  15880. * src/TorrentDownloadEngine.cc
  15881. (initStatistics): Removed lastElapsed, cp[],
  15882. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  15883. currentCp, sessionDownloadLength.
  15884. Added cp.reset() and lastCalcStat.reset().
  15885. (calculateSpeed): Changed the name of the argument.
  15886. (calculateStatistics): Rewritten.
  15887. (calculateStat): New function.
  15888. * src/Peer.h
  15889. (PeerStat.h): Included.
  15890. (peerUpload): Removed.
  15891. (peerDownload): Removed.
  15892. (peerStat): New variable.
  15893. (sessionUploadLength): New variable.
  15894. (sessionDownloadLength): New variable.
  15895. (deltaUpload): Removed.
  15896. (deltaDownload): Removed.
  15897. (resetStatus): Made private.
  15898. (Peer): Added sessionUploadLength, sessionDownloadLength.
  15899. Removed peerUpload, peerDownload.
  15900. (updateUploadLength): New function.
  15901. (addDeltaUpload): Removed.
  15902. (updateDownloadLength): New function.
  15903. (resetDeltaUpload): Removed.
  15904. (getDeltaUpload): Removed.
  15905. (addDeltaDownload): Removed.
  15906. (calculateUploadSpeed): New function.
  15907. (resetDeltaDownload): Removed.
  15908. (getDeltaDownload): Removed.
  15909. (calculateDownloadSpeed): New function.
  15910. (getSessionUploadLength): New function.
  15911. (getSessionDownloadLength): New function.
  15912. (activate): New function.
  15913. (deactivate): New function.
  15914. (addPeerUpload): Removed.
  15915. (setPeerUpload): Removed.
  15916. (getPeerUpload): Removed.
  15917. (addPeerDownload): Removed.
  15918. (setPeerDownload): Removed.
  15919. (getPeerDownload): Removed.
  15920. * src/Peer.cc
  15921. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  15922. * src/MetalinkRequestInfo.h
  15923. (MetalinkRequestInfo): Removed const qualifier from op.
  15924. * src/RequestInfo.h
  15925. (op): Removed const qualifier.
  15926. (RequestInfo): Removed const qualifier from op.
  15927. * src/prefs.h
  15928. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  15929. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  15930. * src/PeerInteractionCommand.cc
  15931. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  15932. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  15933. * src/PeerInteraction.cc
  15934. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  15935. * src/main.cc
  15936. (showUsage): Updated the description of "--lowest-speed-limit" option.
  15937. Added the description of "--max-download-limit" option.
  15938. Removed the description of "--upload-limit" option.
  15939. Added the description of "--max-upload-limit" option.
  15940. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  15941. Added "--max-download-limit" option and "--max-upload-limit" option.
  15942. Added the warning message if "--upload-limit" option is used.
  15943. * src/DownloadCommand.cc
  15944. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  15945. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15946. To rewrite segment download mechanism for HTTP/FTP download.
  15947. Use BitfieldMan to manage segment download.
  15948. * src/HttpResponseCommand.h
  15949. (executeInternal): Pass the reference of segment.
  15950. * src/AbstractCommand.cc
  15951. (prepareForRetry): Call segmentMan->cancelSegment here.
  15952. (onAbort): Call segmentMan->cancelSegment here.
  15953. * src/HttpDownloadCommand.cc
  15954. (prepareForNextSegment): New function.
  15955. * src/DownloadEngineFactory.cc
  15956. (newConsoleEngine): Removed splitter.
  15957. (newTorrentConsoleEngine): Removed splitter.
  15958. * src/Request.h
  15959. (segment): Renamed from seg.
  15960. * src/FtpInitiateConnectionCommand.h
  15961. (executeInternal): Pass the reference of segment.
  15962. * src/AbstractCommand.h
  15963. (executeInternal): Pass the reference of segment.
  15964. * src/pref.h
  15965. (PREF_SEGMENT_SIZE): New definition.
  15966. * src/HttpProxyRequestCommand.h
  15967. (executeInternal): Pass the reference of segment.
  15968. * src/HttpResponseCommand.cc
  15969. (checkResponse): Allowed status 206 when a request range starts 0.
  15970. (handleDefaultEncoding): Rewritten the code related to Segment.
  15971. (handleOtherEncoding): Rewritten the code related to Segment.
  15972. * src/SegmentMan.h
  15973. (SegmentEntry): New class.
  15974. (SegmentEntries): New type definition.
  15975. (bitfield): New variable.
  15976. (usedSegmentEntries): New variable.
  15977. (onNullBitfield): New function.
  15978. (checkoutSegment): New function.
  15979. (segments): Removed.
  15980. (splitter): Removed.
  15981. (unregisterId): Removed.
  15982. (getSegment): New function(overload)
  15983. (getDownloadedSize): Removed.
  15984. (cancelSegment): New function.
  15985. (completeSegment): New function.
  15986. (initBitfield): New function.
  15987. (hasSegment): New function.
  15988. (getDownloadLength): New function.
  15989. * src/BitfieldMan.h
  15990. (getStartIndex): New function.
  15991. (getEndIndex): New function.
  15992. (getMissingUnusedIndex): New function(overload).
  15993. (getSparseMissingUnusedIndex): New function.
  15994. * src/BitfieldMan.cc
  15995. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  15996. (getMissingUnusedIndex): New function(overload).
  15997. (Range): New class.
  15998. (getStartIndex): New function.
  15999. (getEndIndex): New function.
  16000. (getSparseMissingUnusedIndex): New function.
  16001. (isBitSetInternal): Return false if the given index is less than 0.
  16002. * src/HttpInitiateConnectionCommand.h
  16003. (executeInternal): Pass the reference of segment.
  16004. * src/FtpNegotiateCommand.h
  16005. (executeInternal): Pass the reference of segment.
  16006. * src/FtpNegotiateCommand.cc
  16007. (recvSize): Initialize bitfield here.
  16008. * src/FtpTunnelResponseCommand.h
  16009. (executeInternal): Pass the reference of segment.
  16010. * src/HttpConnection.cc
  16011. (createRequest): Rewritten range header processing.
  16012. * src/DownloadCommand.h
  16013. (executeInternal): Pass the reference of segment.
  16014. (prepareForRetry): Removed.
  16015. (prepareForNextSegment): Added an argument segment. Made it a virtual
  16016. function.
  16017. * src/main.cc
  16018. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  16019. * src/SegmentMan.cc
  16020. (SegmentMan): Added bitfield. Removed splitter.
  16021. (~SegmentMan): Added bitfield. Removed splitter.
  16022. (unregisterId): Removed.
  16023. (getSegment): Rewritten.
  16024. (updateSegment): Rewritten.
  16025. (save): Rewritten.
  16026. (read): Rewritten.
  16027. (finished): Rewritten.
  16028. (getDownloadedSize): Removed.
  16029. (initBitfield): New function.
  16030. (FindSegmentEntryByIndex): New function object.
  16031. (FindSegmentEntryByCuid): New function object.
  16032. (checkoutSegment): New function.
  16033. (onNullBitfield): New function.
  16034. (getSegment): New function(overload).
  16035. (CancelSegment): New function object.
  16036. (cancelSegment): New function.
  16037. (completeSegment): New function.
  16038. (hasSegment): New function.
  16039. (getDownloadLength): New function.
  16040. * src/FtpInitiateConnectionCommand.cc
  16041. (executeInternal): Load .aria2 file after hostname resolution finishes.
  16042. * src/Segment.h: Rewritten.
  16043. * src/Segment.cc (operator<<): New function.
  16044. * src/HttpDownloadCommand.h
  16045. (prepareForNextSegment): New function.
  16046. * src/Request.cc
  16047. (resetUrl): Made segment null.
  16048. * src/DownloadEngine.cc
  16049. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  16050. * src/HttpProxyRequestCommand.h
  16051. (executeInternal): Pass the reference of segment.
  16052. * src/DownloadCommand.cc
  16053. (executeInternal): Rewritten the code related to Segment.
  16054. (prepareForRetry): Removed.
  16055. (prepareForNextSegment): Rewritten.
  16056. * src/FtpTunnelResponseCommand.h
  16057. (executeInternal): Pass the reference of segment.
  16058. To add HTTP 1.1 persistent connection support(experimental)
  16059. * src/HttpRequestCommand.cc
  16060. (executeInternal): Disable keep alive if it is disabled by
  16061. configuration.
  16062. * src/Request.h
  16063. (keepAlive): New variable.
  16064. (isKeepAlive): New function.
  16065. (setKeepAlive): New function.
  16066. * src/pref.h
  16067. (PREF_HTTP_KEEP_ALIVE): New definition.
  16068. * src/HttpResponseCommand.cc
  16069. (executeInternal): Check the remote server supports keep alive.
  16070. * src/HttpConnection.cc
  16071. (createRequest): Send "Connection: close" only if keep alive is
  16072. disabled.
  16073. * src/main.cc
  16074. (main):
  16075. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  16076. To add max download speed limit:
  16077. * src/pref.h
  16078. (PREF_MAX_SPEED_LIMIT): New definition.
  16079. * src/PeerInteractionCommand.cc
  16080. (executeInternal): Added max download speed limit. Not tested yet.
  16081. * src/SegmentMan.h
  16082. (PeerStats): New type definition.
  16083. (peerStats): New variable.
  16084. (registerPeerStat): New function.
  16085. (FindPeerStat): New function object.
  16086. (getPeerStat): New function.
  16087. (calculateDownloadSpeed): New function.
  16088. * src/SpeedCalc.h: New class.
  16089. * src/SpeedCalc.cc: New class.
  16090. * src/main.cc
  16091. (main):
  16092. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  16093. download speed is not restricted).
  16094. * src/PeerStat.h: New class.
  16095. * src/SegmentMan.cc
  16096. (registerPeerStat): New function.
  16097. (calculateDownloadSpeed): New function.
  16098. * src/DownloadCommand.cc
  16099. (STARTUP_IDLE_TIME): New definition.
  16100. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  16101. downloadStart.
  16102. (~DownloadCommand): Call peerStat->downloadStop.
  16103. (executeInternal): Added download speed limitter. Rewritten lowest
  16104. speed limitter.
  16105. * src/HttpConnection.cc
  16106. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  16107. * src/AbstractCommand.cc
  16108. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  16109. Added hostname to the error message.
  16110. * src/ConsoleDownloadEngine.cc
  16111. (calculateStatistics): Initialize psize with dlSize.
  16112. * src/PieceMessage.cc
  16113. (receivedAction): Do not call peerInteraction->abortPiece here.
  16114. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  16115. * src/BitfieldMan.h
  16116. (clearAllUseBit): New function.
  16117. (setAllUseBit): New function.
  16118. * src/BitfieldMan.cc
  16119. (clearAllBit): Do not clear useBitfield here.
  16120. (clearAllUseBit): New function.
  16121. (setAllUseBit): New function.
  16122. * src/Piece.cc
  16123. (clearAllBlock): Call bitfield->clearAllUseBit().
  16124. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16125. To make filename URL-decoded:
  16126. * src/HttpResponseCommand.h: Updated doc.
  16127. * src/HttpResponseCommand.cc
  16128. (determinFilename): Made filename URL-decoded.
  16129. * src/FtpInitiateConnectionCommand.cc
  16130. (executeInternal): Made filename URL-decoded.
  16131. * src/Util.h (urldecode): New function.
  16132. * src/Util.cc (urldecode): New function.
  16133. To fix a bug that caused assertion failure in ares_strerror:
  16134. * src/NameResolver.cc (callback): Fixed the bug.
  16135. * Release 0.7.3
  16136. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16137. To add --seed-time and --seed-ratio command-line option:
  16138. * src/Option.h (getAsDouble): New function.
  16139. * src/Option.cc (getAsDouble): New function.
  16140. * src/SeedCheckCommand.h: New class.
  16141. * src/SeedCheckCommand.cc: New class.
  16142. * src/DownloadEngineFactory.cc
  16143. (SeedCheckCommand.h): Included.
  16144. (UnionSeedCriteria.h): Included.
  16145. (TimeSeedCriteria.h): Included.
  16146. (ShareRatioSeedCriteria.h): Included.
  16147. (newTorrentConsoleEngine): Added the processing of seed option.
  16148. * src/SeedCriteria.h: New class.
  16149. * src/ShareRatioSeedCriteria.h: New class.
  16150. * src/TimeSeedCriteria.h: New class.
  16151. * src/UnionSeedCriteria.h: New class.
  16152. * src/prefs.h
  16153. (PREF_SEED_TIME): New definition.
  16154. (PREF_SEED_RATIO): New definition.
  16155. * src/main.cc
  16156. (showUsage): Added --seed-time and --seed-ratio option.
  16157. (main): Added --seed-time and --seed-ratio option.
  16158. Made default log file name "/dev/null".
  16159. * src/SharedHandle.h
  16160. (SharedHandle): Copy constructor. Made it assignable from the
  16161. SharedHandle of the subclasses.
  16162. (operator=): Made it assignable from the SharedHandle of the
  16163. subclasses.
  16164. (getRefCount): New function.
  16165. To add notice log level and the switch to write log to stdout. This
  16166. switch is configurable per log level.
  16167. * src/Logger.h
  16168. (notice): New function.
  16169. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  16170. constant.
  16171. * src/LogFactory.cc
  16172. (getInstance): The use of NullLogger was removed. A log message with
  16173. notice log level was made written to stdout along with log file.
  16174. * src/NullLogger.h
  16175. (notice): New function.
  16176. * src/SimpleLogger.h
  16177. (writeHeader): Added the 'file' argument.
  16178. (writeLog): Added the 'file' argument.
  16179. (writeFile): New function.
  16180. (stdoutField): New variable.
  16181. (SimpleLogger): Removed the default constructor.
  16182. (SimpleLogger): Made the default value of logfile 0.
  16183. (debug): Added 'virtual' keyword.
  16184. (info): Added 'virtual' keyword.
  16185. (warn): Added 'virtual' keyword.
  16186. (error): Added 'virtual' keyword.
  16187. (notice): New function.
  16188. (setStdout): New function.
  16189. * src/SimpleLogger.cc
  16190. (WRITE_LOG): Replaced writeLog with writeFile.
  16191. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  16192. (SimpleLogger): Removed the default constructor.
  16193. (setStdout): New function.
  16194. (writeLog): Added the handling of NOTICE log level.
  16195. (writeFile): New function.
  16196. (notice): New function.
  16197. * src/TorrentMan.h: Updated doc.
  16198. * src/BitfieldMan.h: Updated doc.
  16199. * src/TrackerWatcherCommand.cc
  16200. (execute): Return true if error occurred in the request to the tracker
  16201. and halt is requested.
  16202. * src/TrackerUpdateCommand.cc
  16203. (execute): Return true if error occurred in the request to the tracker
  16204. and halt is requested.
  16205. To call onDownloadComplete from TorrentMan::completePiece(), not from
  16206. DownloadEngine:
  16207. * src/TorrentConsoleDownloadEngine.h
  16208. (onSelectiveDownloadingCompletes): Removed.
  16209. * src/TorrentConsoleDownloadEngine.cc
  16210. (onSelectiveDownloadingCompletes): Removed.
  16211. * src/TorrentDownloadEngine.h
  16212. (onEndOfRun): Added 'virtual' keyword.
  16213. (afterEachIteration): Removed.
  16214. (onSelectiveDownloadingCompletes): Removed.
  16215. * src/TorrentDownloadEngine.cc
  16216. (onEndOfRun): Removed filenameFixed.
  16217. (afterEachIteration): Removed.
  16218. * src/TorrentMan.cc
  16219. (completePiece): Call onDownloadComplete here.
  16220. (onDownloadComplete): Added 2 log messages.
  16221. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16222. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  16223. * src/NameResolver.h: Added the prototype declaration of callback().
  16224. To support c-ares library:
  16225. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16226. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16227. * src/FtpInitiateConnectionCommand.h:
  16228. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16229. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16230. * src/HttpInitiateConnectionCommand.h:
  16231. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16232. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  16233. Added thes upport of c-ares's ares_strerror(the idea came from patch
  16234. #1542285 by tizianomueller)
  16235. * src/HttpInitiateConnectionCommand.cc:
  16236. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16237. * src/FtpInitiateConnectionCommand.cc:
  16238. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16239. * src/DownloadEngine.h:
  16240. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16241. * src/DownloadEngine.cc:
  16242. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16243. To fix the bug that causes compilation failure with metalink-support
  16244. disabled(bug#1543587):
  16245. * src/main.cc: Fixed with the patch by tizianomueller.
  16246. * Release 0.7.2
  16247. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16248. * src/main.cc
  16249. (main): Added a message to inform users that aria2 is starting to
  16250. verify checksum.
  16251. * src/RequestInfo.cc
  16252. (printDownloadAbortMessage): Added a message to inform users that
  16253. transfer can be resumed.
  16254. * src/FeatureConfig.cc
  16255. (FEATURE_ASYNC_DNS): New definition.
  16256. (FeatureConfig): Added aysnc DNS entry.
  16257. To replace CommandUuid with Command* in SocketEntry and
  16258. NameResolverEntry:
  16259. * src/DownloadEngine.h
  16260. (CommandUuids): Removed.
  16261. (SocketEntry::commandUuid): Removed.
  16262. (SocketEntry::command): New variable.
  16263. (SocketEntry::SocketEntry): Updated.
  16264. (SocketEntry::operator==): Updated.
  16265. (NameResolverEntry::commandUuid): Removed.
  16266. (NameResolverEntry::command): New variable.
  16267. (NameResolverEntry::NameResolverEntry): Updated.
  16268. (NameResolverEntry::operator==): Updated.
  16269. (waitData): Changed the argument type.
  16270. (addSocketForReadCheck): Changed the argument type.
  16271. (deleteSocketForReadCheck): Changed the argument type.
  16272. (addSocketForWriteCheck): Changed the argument type.
  16273. (deleteSocketForWriteCheck): Changed the argument type.
  16274. (addNameResolverCheck): Changed the argument type.
  16275. (deleteNameResolverCheck): Changed the argument type.
  16276. * src/DownloadEngine.cc
  16277. (FindCommand): Removed.
  16278. (run): Removed activeUuid. Added activeCommands instead.
  16279. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  16280. (AccumulateActiveCommand): New function object.
  16281. (waitData): Use AccumulateActiveCommand.
  16282. (addSocketForReadCheck): Use Command instead of CommandUuid.
  16283. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  16284. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  16285. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  16286. (addNameResolverCheck): Use Command instead of CommandUuid.
  16287. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  16288. * src/AbstractCommand.cc
  16289. (disableReadCheckSocket): Updated according to the changes in
  16290. DownloadEngine.
  16291. (setReadCheckSocket): Updated according to the changes in
  16292. DownloadEngine.
  16293. (disableWriteCheckSocket): Updated according to the changes in
  16294. DownloadEngine.
  16295. (setWriteCheckSocket): Updated according to the changes in
  16296. DownloadEngine.
  16297. (setNameResolverCheck): Updated according to the changes in
  16298. DownloadEngine.
  16299. (disableNameResolverCheck): Updated according to the changes in
  16300. DownloadEngine.
  16301. * src/AbstractCommand.cc
  16302. (disableReadCheckSocket): Updated according to the changes in
  16303. DownloadEngine.
  16304. (setReadCheckSocket): Updated according to the changes in
  16305. DownloadEngine.
  16306. (disableWriteCheckSocket): Updated according to the changes in
  16307. DownloadEngine.
  16308. (setWriteCheckSocket): Updated according to the changes in
  16309. DownloadEngine.
  16310. * release 0.7.1
  16311. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16312. To handle the case where some BitTorrent tracker requires all letters
  16313. except for [A-Za-z0-9] is URL encoded.
  16314. * src/Util.h
  16315. (torrentUrlencode): New function.
  16316. * src/Util.cc
  16317. (ctype.h): Included.
  16318. (torrentUrlencode): New function.
  16319. * src/TrackerWatcherCommand.cc
  16320. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  16321. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16322. To add asynchronous DNS support(libares):
  16323. * src/AbstractCommand.h
  16324. (setNameResolverCheck): New function.
  16325. (disableNameResolverCheck): New function
  16326. (resolveHostname): New function.
  16327. * src/AbstractCommand.cc
  16328. (setNameResolverCheck): New function.
  16329. (disableNameResolverCheck): New function
  16330. (resolveHostname): New function.
  16331. * src/FtpInitiateConnectionCommand.h
  16332. (nameResolver): New function.
  16333. * src/FtpInitiateConnectionCommand.cc
  16334. (Util.h): Included.
  16335. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  16336. disableWriteCheckSocket.
  16337. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  16338. (executeInternal): Added async DNS support.
  16339. * src/HttpInitiateConnectionCommand.h
  16340. (nameResolver): New function.
  16341. * src/HttpInitiateConnectionCommand.cc
  16342. (DlRetryEx.h): Included.
  16343. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  16344. disableWriteCheckSocket.
  16345. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  16346. (executeInternal): Added async DNS support.
  16347. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  16348. by extern "C" declaration.
  16349. * src/NameResolver.cc: New class.
  16350. * src/Util.h:
  16351. (isNumberAndDotsNotation): New function
  16352. * src/Util.cc
  16353. (isNumberAndDotsNotation): New function.
  16354. * src/DownloadEngine.h
  16355. (NameResolver.h): Included.
  16356. (NameResolverEntry): New class.
  16357. (NameResolverEntries): New type definition.
  16358. (addNameResolverCheck): New function.
  16359. (deleteNameResolverCheck): New function.
  16360. * src/DownloadEngine.cc
  16361. (run): Initialize cp with 0.
  16362. (SetDescriptor::operator()): Added for NameResolverEntry.
  16363. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  16364. (waitData): Check nameResolver entries.
  16365. (updateFdSet): Update fds in nameResolver entries.
  16366. (addNameResolverCheck): New function.
  16367. (deleteNameResolverCheck): new function.
  16368. * src/PeerInteractionCommand.cc
  16369. (executeInternal): Fixed wrong socket handling.
  16370. * src/main.cc
  16371. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  16372. * src/Util.cc
  16373. (fileChecksum): Removed the call to ctx.digestReset().
  16374. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16375. * po/ru.po: Azamat sent me Russian translation.
  16376. * src/FtpNegotiateCommand.cc
  16377. (recvGreeting): Call disableWriteCheckSocket just after
  16378. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  16379. (recvRetr): Recognized status code 125 as a acceptable response code.
  16380. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  16381. case-insesitive filesystem(BUG#1531057).
  16382. * src/Time.h: Renamed as TimeA2.h.
  16383. * src/Time.cc: Renamed as TimeA2.cc.
  16384. * src/TimeA2.h: New class.
  16385. * src/TimeA2.cc: New class.
  16386. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  16387. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  16388. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  16389. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  16390. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  16391. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  16392. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  16393. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  16394. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  16395. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  16396. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  16397. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  16398. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  16399. * release 0.7.0
  16400. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16401. * src/PeerChokeCommand.h
  16402. (PeerChokeCommand): Rearranged the arguments.
  16403. * src/PeerChokeCommand.cc
  16404. (PeerChokeCommand): Rearranged the arguments.
  16405. * src/MetalinkEntry.h
  16406. (Checksum.h): Included.
  16407. (md5): Removed.
  16408. (sha1): Removed.
  16409. (checksum): New variable.
  16410. (operator=): Updated.
  16411. (check): Removed.
  16412. * src/prefs.h
  16413. (PREF_LOWEST_SPEED_LIMIT): New definition.
  16414. (PREF_FOLLOW_TORRENT): New definition.
  16415. (PREF_SELECT_FILE): New definition.
  16416. (PREF_FOLLOW_METALINK): New definition.
  16417. * src/MetalinkResource.h
  16418. (TYPE_HTTPS): Added to enum TYPE.
  16419. * src/TorrentMan.cc
  16420. (~TorrentMan): Rewritten.
  16421. * src/MultiDiskWriter.cc
  16422. (MultiDiskAdaptor): Updated according to the changes in
  16423. MessageDigestContext.
  16424. (~MultiDiskAdaptor): Updated according to the changes in
  16425. MessageDigestContext.
  16426. (hashUpdate): Updated according to the changes in MessageDigestContext.
  16427. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16428. * src/Util.h
  16429. (fileChecksum): Updated according to the changes in
  16430. MessageDigestContext.
  16431. * src/Util.cc
  16432. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16433. (fileChecksum): Updated according to the changes in
  16434. MessageDigestContext.
  16435. * src/messageDigest.h: Rewritten.
  16436. * src/MetalinkEntry.cc
  16437. (check): Removed.
  16438. (Supported): Updated.
  16439. (dropUnsupportedResource): Fixed a memory leak.
  16440. * src/ShaVisitor.cc
  16441. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  16442. (~ShaVisitor): Updated according to the changes in
  16443. MessageDigestContext.
  16444. (visit): Updated according to the changes in MessageDigestContext.
  16445. * src/main.cc
  16446. (main): Rewritten the portion of download loop. --lowest-speed-limit
  16447. command-line option added.
  16448. * src/DownloadEngine.h
  16449. (SocketEntry): New class.
  16450. (SocketEntries): New definition.
  16451. (PairFind): Removed.
  16452. (SockCmdMap): Removed.
  16453. * src/DownloadEngine.cc
  16454. (DownloadEngine): Rewritten.
  16455. (~DownloadEngine): Rewritten.
  16456. (run): Renamed activeCommandUuids as activeUuids.
  16457. (SetDescriptor): Rewritten.
  16458. (AccumulateActiveCommandUuid): Removed.
  16459. (AccumulateActiveUuid): New function object.
  16460. (waitData): Rewritten.
  16461. (updateFdSet): Rewritten.
  16462. (addSocket): Rewritten.
  16463. (deleteSocket): Rewritten.
  16464. (addSocketForReadCheck): Rewritten.
  16465. (deleteSocketForReadCheck): Rewritten.
  16466. (addSocketForWriteCheck): Rewritten.
  16467. (deleteSocketForWriteCheck): Rewritten.
  16468. * src/Xml2MetalinkProcessor.cc
  16469. (getEntry): Rewritten the portion of MetalinkEntry creation.
  16470. * src/DownloadCommand.cc
  16471. (executeInternal): Added the check routine for lowest speed limit.
  16472. * src/AbstractDiskWriter.cc
  16473. (AbstractDiskWriter): Updated according to the changes in
  16474. MessageDigestContext.
  16475. (~AbstractDiskWriter): Updated according to the changes in
  16476. MessageDigestContext.
  16477. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16478. * src/RequestInfo.h: New class.
  16479. * src/UrlRequestInfo.h: New class.
  16480. * src/UrlRequestInfo.cc: New class.
  16481. * src/TorrentRequestInfo.h: New class.
  16482. * src/TorrentRequestInfo.cc: New class.
  16483. * src/MetalinkRequestInfo.h: New class.
  16484. * src/MetalinkRequestInfo.cc: New class.
  16485. * src/Checksum.h: New class.
  16486. * src/DownloadEngineFactory.h: New class.
  16487. * src/DownloadEngineFactory.cc: New class.
  16488. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16489. * src/Option.h
  16490. (getAsBool): New function.
  16491. * src/Option.cc
  16492. (prefs.h): Included.
  16493. (defined): 0-length value is now recognized as undefined.
  16494. (getAsInt): Rewritten.
  16495. (getAsLLInt): Rewritten.
  16496. (getAsBool): New function.
  16497. * src/FeatureConfig.h: Rewritten.
  16498. * src/FeatureConfig.cc: Rewritten.
  16499. * src/prefs.h
  16500. (PREF_STDOUT_LOG): New definition.
  16501. (PREF_LOG): New definition.
  16502. (PREF_DIR): New definition.
  16503. (PREF_OUT): New definition.
  16504. (PREF_SPLIT): New definition.
  16505. (PREF_DAEMON): New definition.
  16506. (PREF_REFERER): New definition.
  16507. (PREF_TORRENT_FILE): New definition.
  16508. (PREF_LISTEN_PORT): New definition.
  16509. (PREF_METALINK_FILE): New definition.
  16510. (PREF_METALINK_VERSION): New definition.
  16511. (PREF_METALINK_LANGUAGE): New definition.
  16512. (PREF_METALINK_OS): New definition.
  16513. (PREF_METALINK_SERVERS): New definition.
  16514. * src/main.cc
  16515. (main): Following command-line parameters are now put into Option
  16516. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  16517. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  16518. metalinkLanguage, metalinkOs, metalinkServers
  16519. To fix the bug that aria2 can not handle http response header properly.
  16520. * src/HttpHeader.cc
  16521. (put): Made name lowercased.
  16522. (defined): Made name lowercased.
  16523. (getFirst): Made name lowercased.
  16524. (get): Made name lowercased.
  16525. (getFirstAsInt): Rewritten.
  16526. (getFirstAsLLInt): Rewritten.
  16527. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16528. * src/TorrentMan.h:
  16529. (advertisePiece): Updated doc.
  16530. (getAdvertisedPieceIndexes): Updated doc.
  16531. (removeAdvertisedPiece); New function.
  16532. * src/TorrentMan.cc
  16533. (FindElapsedHave): New function object.
  16534. (removeAdvertisedPiece): New function.
  16535. * src/HaveEraseCommand.h: New class.
  16536. * src/HaveEraseCommand.cc: New class.
  16537. * src/FeatureConfig.h: New class.
  16538. * src/FeatureConfig.cc: New class.
  16539. * src/Request.h
  16540. (defaultPorts): Removed.
  16541. * src/Request.cc
  16542. (FeatureConfig.h): Included.
  16543. (Request): Removed the statements related to defaultPorts.
  16544. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  16545. A default port number is now retrieved from FeatureConfig.
  16546. * src/main.cc
  16547. (HaveEraseCommand.h): Included.
  16548. (showVersion): Added the output of feature list.
  16549. (main): Added HaveEraseCommand to command queue in BitTorrent
  16550. downloading.
  16551. * src/PeerInteractionCommand.h
  16552. (chokeCheckPoint): Commented out.
  16553. (periodicExecPoint): New variable.
  16554. * src/PeerInteractionCommand.cc
  16555. (executeInternal): Following methods are now called in at least every
  16556. 0.5 seconds to reduce CPU usage:
  16557. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  16558. checkHave(), sendKeepAlive().
  16559. (checkLongTimePeerChoking): Commented out.
  16560. * src/BitfieldMan.h
  16561. (getNthBitIndex): Changed the method signature.
  16562. (getMissingIndexRandomly): Changed the method signature.
  16563. * src/BitfieldMan.cc
  16564. (getNthBitIndex): Rewritten
  16565. (getMissingIndexRandomly): Rewritten.
  16566. (hasMissingPiece): Rewritten.
  16567. (getMissingIndex): Refactored.
  16568. (getMissingUnusedIndex); Refactored.
  16569. (getMissingIndex): Refactored.
  16570. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16571. * src/PeerMessage.h
  16572. (Piece.h): Included.
  16573. (SharedHandle.h): Included.
  16574. (invalidate): New variable.
  16575. (uploading): New variable.
  16576. (isInvalidate): New function.
  16577. (isUploading): New function.
  16578. (onPush): New function.
  16579. (onChoked): New function.
  16580. (onCanceled): New function.
  16581. (onAbortPiece): New function.
  16582. (PeerMessageHandle): New type definition.
  16583. * src/PeerMessage.cc
  16584. (PeerMessage): Added the initialization for invalidate and uploading.
  16585. * src/CancelMessage.h
  16586. (CancelMessage): Rewritten.
  16587. * src/RejectMessage.h
  16588. (RejectMessage): Rewritten.
  16589. * src/Metalinker.h
  16590. (operator=): Defined.
  16591. * src/MetaEntry.h
  16592. (operator=): Defined.
  16593. * src/MetalinkResource.h
  16594. (operator=): Defined.
  16595. * src/AllowedFastMessage.h
  16596. (AllowedFastMessage): Rewritten.
  16597. * src/HandshakeMessage.h
  16598. (HandshakeMessage): New function(overload).
  16599. * src/HandshakeMessage.cc
  16600. (HandshakeMessage): Rewritten.
  16601. (init): New function.
  16602. * src/HaveMessage.h
  16603. (HaveMessage): Rewritten.
  16604. * src/Time.h
  16605. (operator=): Defined the function body here.
  16606. * src/Time.cc
  16607. (operator=): Removed.
  16608. * src/SocketCore.h
  16609. (operator==): Defined here.
  16610. (operator!=): Defined here.
  16611. (operator<): Defined here.
  16612. * src/SocketCore.cc
  16613. (operator==): Removed.
  16614. (operator<): Removed.
  16615. * src/BitfieldMan.h
  16616. (operator=): Defined the function body here.
  16617. * src/BitfieldMan.cc
  16618. (operator=): Removed.
  16619. * src/TorrentMan.h
  16620. (deleteErrorPeer): Removed.
  16621. (deleteUnusedPeer); New function.
  16622. * src/TorrentMan.cc
  16623. (addPeer): Call deleteUnusedPeer.
  16624. (deleteErrorPeer): Removed.
  16625. (deleteUnusedPeer): New function.
  16626. * src/PeerAbstractCommand.h
  16627. (setNoCheck): New function.
  16628. (noCheck): New variable.
  16629. * src/PeerAbstractCommand.cc
  16630. (PeerAbstractCommand): Added the initialization of noCheck.
  16631. (execute): Added a check for noCheck.
  16632. (setNoCheck): New function.
  16633. * src/Util.h
  16634. (stdio.h): Included.
  16635. * src/Util.cc
  16636. (unistd.h): Included.
  16637. * src/DefaultDiskWriter.cc
  16638. (unistd.h): Included.
  16639. * src/Peer.h
  16640. (operator==): Defined the function body here.
  16641. (operator!=): Defined the function body here.
  16642. * src/Peer.cc
  16643. (operator==): Removed.
  16644. (operator!=): Removed.
  16645. * src/Piece.h
  16646. (Piece): Defined the function body here(copy constructor).
  16647. (operator=): Defined the function body here.
  16648. (operator==): Defined the function body here.
  16649. * src/Piece.cc
  16650. (Piece): Removed(copy constructor).
  16651. (operator=): Removed.
  16652. (operator==): Removed.
  16653. * src/PeerMessageUtil.h
  16654. (ChokeMessage.h): Removed.
  16655. (UnchokeMessage.h): Removed.
  16656. (InterestedMessage.h): Removed.
  16657. (NotInterestedMessage.h): Removed.
  16658. (HaveMessage.h): Removed.
  16659. (BitfieldMessage.h): Removed.
  16660. (RequestMessage.h): Removed.
  16661. (CancelMessage.h): Removed.
  16662. (PieceMessage.h): Removed.
  16663. (HandshakeMessage.h): Removed.
  16664. (KeepAliveMessage.h): Removed.
  16665. (PortMessage.h): Removed.
  16666. (HaveAllMessage.h): Removed.
  16667. (HaveNoneMessage.h): Removed.
  16668. (PeerConnection.h): Removed.
  16669. (HandshakeMessage.h): Included.
  16670. * src/BitfieldMessage.h
  16671. (init): New function.
  16672. (BitfieldMessage): Rewritten.
  16673. (BitfieldMessage): New function(overload).
  16674. * src/RequestSlot.h
  16675. (operator=): Defined the function body here.
  16676. (operator==): Defined the function body here.
  16677. * src/RequestSlot.cc
  16678. (operator=): Removed.
  16679. (operator==): Removed.
  16680. To remove the dependency on the PeerMessage subclass from
  16681. PeerInteraction:
  16682. * src/PeerMessageFactory.h: New class.
  16683. * src/PeerMessageFactory.cc: New class.
  16684. * src/SimplePeerMessage.cc
  16685. (send): If invalidate is true then do nothing.
  16686. * src/PeerInteractionCommand.cc
  16687. (HandshakeMessage.h): Included.
  16688. (KeepAliveMessage.h): Included.
  16689. (ChokeMessage.h): Included.
  16690. (UnchokeMessage.h): Included.
  16691. (HaveMessage.h): Included.
  16692. (executeInternal): Call setNoCheck().
  16693. Removed setWriteCheckSocket(socket).
  16694. * src/PeerInteraction.h
  16695. (ChokeMessage.h): Removed.
  16696. (UnchokeMessage.h): Removed.
  16697. (InterestedMessage.h): Removed.
  16698. (NotInterestedMessage.h): Removed.
  16699. (HaveMessage.h): Removed.
  16700. (BitfieldMessage.h): Removed.
  16701. (RequestMessage.h): Removed.
  16702. (CancelMessage.h): Removed.
  16703. (PieceMessage.h): Removed.
  16704. (HandshakeMessage.h): Removed.
  16705. (KeepAliveMessage.h): Removed.
  16706. (PortMessage.h): Removed.
  16707. (HaveAllMessage.h): Removed.
  16708. (HaveNoneMessage.h): Removed.
  16709. (RejectMessage.h): Removed.
  16710. (AllowedFastMessage.h): Removed.
  16711. (SuggestPieceMessage.h): Removed.
  16712. (PeerMessageFactory.h): Included.
  16713. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  16714. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  16715. (PeerMessageFactory): New variable.
  16716. (createPeerMessage): Removed.
  16717. (createHandshakeMessage): Removed.
  16718. (setPeerMessageCommonProperty): Removed.
  16719. (addRequestSlot): New function.
  16720. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  16721. (getPeerMessageFactory): New function.
  16722. (createRequestMessage): Removed.
  16723. (createCancelMessage): Removed.
  16724. (createPieceMessage): Removed.
  16725. (createHaveMessage): Removed.
  16726. (createChokeMessage): Removed.
  16727. (createUnchokeMessage): Removed.
  16728. (createInterestedMessage): Removed.
  16729. (createNotInterestedMessage): Removed.
  16730. (createBitfieldMessage): Removed.
  16731. (createKeepAliveMessage): Removed.
  16732. (createHaveAllMessage): Removed.
  16733. (createHaveNoneMessage): Removed.
  16734. (createRejectMessage): Removed.
  16735. (createAllowedFastMessage): Removed.
  16736. * src/PeerInteraction.cc
  16737. (PeerInteraction): Allocate PeerMessageFactory here.
  16738. (~PeerInteraction): Deallocate PeerMessageFactory here.
  16739. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  16740. PieceMessage::ID.
  16741. (addMessage): Simplified by using PeerMessage::onPush().
  16742. (addRequestSlot): New function.
  16743. (rejectAllPieceMessageInQueue): Simplified by using
  16744. PeerMessage::onChoked().
  16745. (rejectPieceMessageInQueue): Simplified by using
  16746. PeerMessage::onCanceled().
  16747. (abortPiece): Simplified by using PeerMessage::abortPiece().
  16748. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  16749. (createHandshakeMessage): Removed.
  16750. (createPeerMessage): Removed.
  16751. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  16752. (setPeerMessageCommonProperty): Removed.
  16753. (createRequestMessage): Removed.
  16754. (createCancelMessage): Removed.
  16755. (createPieceMessage): Removed.
  16756. (createHaveMessage): Removed.
  16757. (createChokeMessage): Removed.
  16758. (createUnchokeMessage): Removed.
  16759. (createInterestedMessage): Removed.
  16760. (createNotInterestedMessage): Removed.
  16761. (createBitfieldMessage): Removed.
  16762. (createKeepAliveMessage): Removed.
  16763. (createHaveAllMessage): Removed.
  16764. (createHaveNoneMessage): Removed.
  16765. (createRejectMessage): Removed.
  16766. (createAllowedFastMessage): Removed.
  16767. * src/PieceMessage.h
  16768. (createRejectMessage): New function.
  16769. (PieceMessage): Rewritten.
  16770. (onChoked): New function.
  16771. (onCanceled): New function.
  16772. * src/PieceMessage.cc
  16773. (send): If invalidate is true then do nothing, just return.
  16774. (createRejectMessage): New function.
  16775. (onChoked): New function.
  16776. (onCanceled): New function.
  16777. * src/RequestMessage.h
  16778. (RequestMessage): Rewritten.
  16779. (onPush): New function.
  16780. (onAbortPiece): New function.
  16781. * src/RequestMessage.cc
  16782. (onPush): New function.
  16783. (onAbortPiece): New function.
  16784. Update fd_set when a socket is added or deleted in order to improve
  16785. performance:
  16786. * src/DownloadEngine.h
  16787. (rfdset): New variable.
  16788. (wfdset): New variable.
  16789. (updateFdSet): New function.
  16790. * src/DownloadEngine.cc
  16791. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  16792. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  16793. (waitData): Copy rfdset and wfdset.
  16794. (updateFdSet): New function.
  16795. (addSocket): Call updateFdSet.
  16796. (deleteSocket): Call updateFdSet.
  16797. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16798. To add the support for Metalink3.0 backward compatible links:
  16799. * src/Request.h
  16800. (SAFE_CHARS): Added '#'.
  16801. (METALINK_MARK): New definition.
  16802. * src/Request.cc
  16803. (parseUrl): Added the support for Metalink3.0 backward compatible
  16804. links.
  16805. etc
  16806. * src/PeerInteraction.cc
  16807. (MsgPushBack): Removed.
  16808. (sendMessages): Use STL copy and back_inserter.
  16809. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  16810. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  16811. * src/TorrentMan.h
  16812. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  16813. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16814. * src/SharedHandle.h: New class.
  16815. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  16816. * src/HttpResponseCommand.h
  16817. (HttpResponseCommand): Wrapped Socket.
  16818. * src/SocketCore.h
  16819. (operator==): New function.
  16820. (operator!=): New function.
  16821. (operator<): New function.
  16822. (getSockfd): New function.
  16823. (isOpen): New function.
  16824. (writeData): New function.
  16825. * src/SocketCore.cc
  16826. (operator==): New function.
  16827. (operator!=): New function.
  16828. (operator<): New function.
  16829. * src/AbstractCommand.h
  16830. (socket): Changed its type to SocketHandle.
  16831. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16832. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16833. (disableReadCheckSocket): New function.
  16834. (disableWriteCheckSocket): New function.
  16835. (readCheckTarget): Changed its type to SocketHandle.
  16836. (writeCheckTarget): Changed its type to SocketHandle.
  16837. (AbstractCommand): Replaced Socket with SocketHandle.
  16838. * src/AbstractCommand.cc
  16839. (AbstractCommand): Replaced Socket with SocketHandle.
  16840. (~AbstractCommand): Removed the deallocation for Socket object.
  16841. (disableReadCheckSocket): New function.
  16842. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16843. (disableWriteCheckSocket): New function.
  16844. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16845. * src/HttpDownloadCommand.cc
  16846. (DownloadCommand): Replaced Socket with SocketHandle.
  16847. * src/PeerAbstractCommand.h
  16848. (socket): Changed its type to SocketHandle.
  16849. (peer): Changed its type to PeerHandle.
  16850. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16851. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16852. (disableReadCheckSocket): New function.
  16853. (disableWriteCheckSocket): New function.
  16854. (readCheckTarget): Changed its type to SocketHandle.
  16855. (writeCheckTarget): Changed its type to SocketHandle.
  16856. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  16857. Replaced Peer with PeerHandle.
  16858. * src/HttpRequestCommand.cc
  16859. (HttpRequestCommand): Replaced Socket with SocketHandle.
  16860. Use disableReadCheckSocket.
  16861. * src/PeerInitiateConnectionCommand.h
  16862. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  16863. * src/PeerChokeCommand.cc
  16864. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  16865. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  16866. (execute): Use PeerHandle.
  16867. * src/PeerConnection.h
  16868. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  16869. (socket): Changed its type to SocketHandle.
  16870. (PeerConnection): Replaced Socket with SocketHandle.
  16871. * src/PeerConnection.cc
  16872. (PeerConnection): Replaced Socket with SocketHandle.
  16873. * src/PeerInteractionCommand.h
  16874. (PeerInteractionCommand): Replaced socket with SocketHandle.
  16875. Replaced Peer with PeerHandle.
  16876. * src/PeerInteractionCommand.cc
  16877. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  16878. Replaced Peer with PeerHandle.
  16879. (executeInternal): Use disableWriteCheckSocket.
  16880. Use HandshakeMessageHandle.
  16881. (receiveMessages): Use PeerMessageHandle.
  16882. (prepareForNextPeer): Use PeerHandle.
  16883. * src/HttpProxyRequestCommand.h
  16884. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16885. * src/HttpResponseCommand.cc
  16886. (HttpResponseCommand): Replaced Socket with SocketHandle.
  16887. * src/TorrentMan.cc
  16888. (nullPeer): Added external reference.
  16889. (~TorrentMan): Removed the deallocation of the elements of peers.
  16890. (addPeer): Rewritten.
  16891. (isPeerAvailable): Use nullPeer.
  16892. (deleteOldpeers): Replaced with deleteErrorPeer.
  16893. (deleteErrorPeer): New function.
  16894. (getPeer): Use PeerHandle and nullPeer.
  16895. (hasMissingPiece): Replaced Peer with PeerHandle.
  16896. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  16897. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  16898. (getMissingFastPiece): Replaced Peer with PeerHandle.
  16899. (getMissingPiece): Replaced Peer with PeerHandle.
  16900. * src/FtpNegotiateCommand.cc
  16901. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  16902. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  16903. (recvGreeting): Use disableWriteCheckSocket.
  16904. (recvPasv): Removed the allocation of Socket.
  16905. Use disableReadCheckSocket.
  16906. (sendRestPasv): Use disableWriteCheckSocket.
  16907. (recvRetr): Changed assertion.
  16908. * src/PeerInteraction.h
  16909. (SharedHandle.h): Included SharedHandle.h.
  16910. (PeerMessageHandle): New type definition.
  16911. (HandshakeMessageHandle): New type definition.
  16912. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  16913. (peer): Changed its type to PeerHandle.
  16914. (createHandshakeMessage): Replaced HandshakeMessage with
  16915. HandshakeMessageHandle.
  16916. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  16917. (PeerInteraction): Replaced Peer with PeerHandle.
  16918. Replaced Socket with SocketHandle.
  16919. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  16920. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  16921. (receiveHandshake): Replaced HandshakeMessage with
  16922. HandshakeMessageHandle.
  16923. * src/PeerInteraction.cc
  16924. (PeerInteraction): Replaced Peer with PeerHandle.
  16925. Replaced Socket with SocketHandle.
  16926. (~PeerInteraction): Removed the deallocation of the elements of
  16927. messageQueue.
  16928. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  16929. (isSendingMessageInProgress): Replaced PeerMessage with
  16930. PeerMessageHandle.
  16931. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  16932. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  16933. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  16934. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  16935. (abortPiece): Use PeerMessageHandle.
  16936. (receiveHandshake): Replaced HandshakeMessage with
  16937. HandshakeMessageHandle. Removed try-catch block.
  16938. (createHandshakeMessage): Replaced HandshakeMessage with
  16939. HandshakeMessageHandle.
  16940. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  16941. Removed try-catch block.
  16942. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  16943. * src/HttpProxyResponseCommand.cc
  16944. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16945. * src/FtpTunnelResponseCommand.h
  16946. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  16947. * src/HttpConnection.cc
  16948. (HttpConnection): Replaced Socket with SocketHandle.
  16949. * src/PeerAbstractCommand.cc
  16950. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  16951. (~PeerAbstractCommand): Removed the deallocation of socket.
  16952. Use disableReadCheckSocket, disableWriteCheckSocket.
  16953. (disableReadCheckSocket): New function.
  16954. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16955. (disableWriteCheckSocket): New function.
  16956. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16957. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  16958. * src/FtpTunnelRequestCommand.cc
  16959. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  16960. (~FtpTunnelRequestCommand): Corrected indentation.
  16961. * src/DownloadCommand.h
  16962. (DownloadCommand): Replaced Socket with SocketHandle.
  16963. * src/PeerListenCommand.cc
  16964. (PeerListenCommand): Removed the initialization of socket.
  16965. (~PeerListenCommand): Removed the deallocation of socket.
  16966. (bindPort): Use SocketHandle.
  16967. (execute): Use SocketHandle and PeerHandle.
  16968. * src/FtpDowndloadCommand.cc
  16969. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  16970. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  16971. * src/main.cc
  16972. (main): Corrected indentation.
  16973. * src/HttpInitiateConnectionCommand.cc
  16974. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  16975. (executeInternal): Removed the allocation of socket.
  16976. * src/HttpRequestCommand.h
  16977. (HttpRequestCommand): Replaced Socket with SocketHandle.
  16978. * src/FtpNegotiationCommand.h
  16979. (dataSocket): Changed its type to SocketHandle.
  16980. (serverSocket): Changed its type to SocketHandle.
  16981. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  16982. * src/TorrentMan.h
  16983. (MAX_PEER_UPDATE): Removed.
  16984. (MAX_PEERS): New definition.
  16985. (Peers): The element is now of type PeerHandle.
  16986. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  16987. (getPeer): Replaced Peer with PeerHandle.
  16988. (deleteOldErrorPeers): Removed.
  16989. (deleteErrorPeer): New function.
  16990. (hasMissingPiece): Replaced Peer with PeerHandle.
  16991. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  16992. (getMissingPiece): Replaced Peer with PeerHandle.
  16993. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  16994. (getMissingFastPiece): Replaced Peer with PeerHandle.
  16995. (addActivePeer): Replaced Peer with PeerHandle.
  16996. (deleteActivePeer): Replaced Peer with PeerHandle.
  16997. Added a check for the return value of find.
  16998. * src/FtpTunnelResponseCommand.cc
  16999. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  17000. * src/FtpInitiateConnectionCommand.cc
  17001. (executeInternal): Removed the allocation of socket.
  17002. * src/DownloadEngine.h
  17003. (Sockets): An element is now of type SocketHandle.
  17004. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  17005. (CommandUuids): New type definition.
  17006. (rsockets): Changed its type to SockCmdMap.
  17007. (wsockets): Changed its type to SockCmdMap.
  17008. (addSocket): Rewritten.
  17009. (deleteSocket): Rewritten.
  17010. (addSocketForReadCheck): Rewritten.
  17011. (deleteSocketForReadCheck): Rewritten.
  17012. (addSocketForWriteCheck): Rewritten.
  17013. (deleteSocketForWriteCheck): Rewritten.
  17014. (PairFind): New template class.
  17015. * src/HttpDownloadCommand.h
  17016. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  17017. * src/FtpConnection.cc
  17018. (FtpConnection): Replaced Socket with SocketHandle.
  17019. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  17020. block.
  17021. * src/InitiateConnectionCommandFactory.cc
  17022. (DlAbortEx.h): Included DlAbortEx.h.
  17023. (createInitiateConnectionCommand): Throw exception if the protocol of
  17024. requested URI is not supported.
  17025. * src/Peer.cc
  17026. (nullPeer): Changed its type to PeerHandle.
  17027. (operator==): New function.
  17028. (operator!=): New function.
  17029. * src/Peer.h
  17030. (SharedHandle.h): Included SharedHandle.h.
  17031. (operator==): New function.
  17032. (operator!=): New function.
  17033. (Peer): Added the default constructor.
  17034. Use resetStatus() to initialize member variables.
  17035. (nullPeer): Removed.
  17036. * src/TrackerUpdateCommand.cc
  17037. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  17038. with MIN_PEERS.
  17039. * src/PeerListenCommand.h
  17040. (socket): Changed its type to SocketHandle.
  17041. * src/Command.h
  17042. (CommandUuid): New type definition.
  17043. (uuid): New variable.
  17044. (uuidGen): New variable.
  17045. (Command): Added the initialization of uuid.
  17046. (getUuid): New function.
  17047. * src/Socket.h
  17048. (Socket): Removed.
  17049. (SocketHandle): New type definition.
  17050. * src/DownloadEngine.h
  17051. (FindCommand): New function object.
  17052. (run): The portion of socket check was rewritten.
  17053. (SetDescriptor): New function object.
  17054. (AccumulateActiveCommandUuid): New function object.
  17055. (waitData): Rewritten.
  17056. (addSocket): Rewritten.
  17057. (deleteSocket): Rewritten.
  17058. (addSocketForReadCheck): Rewritten.
  17059. (addSocketForWriteCheck): Rewritten.
  17060. (deleteSocketForReadCheck): Rewritten.
  17061. (deleteSocketForWriteCheck): Rewritten.
  17062. * src/HttpProxyResponseCommand.h
  17063. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  17064. * src/HttpConnection.h
  17065. (socket): Changed its type to SocketHandle.
  17066. (HttpConnection): Replaced Socket with SocketHandle.
  17067. * src/PeerInitiateConnectionCommand.cc
  17068. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  17069. (executeInternal): Removed the allocation of socket.
  17070. (prepareForNextPeer): Use PeerHandle.
  17071. * src/PeerMessage.h
  17072. (peer): Changed its type to PeerHandle.
  17073. (getPeer): Replaced Peer with PeerHandle.
  17074. (setPeer): Replaced Peer with PeerHandle.
  17075. * src/DownloadCommand.cc
  17076. (DownloadCommand): Replaced Socket with SocketHandle.
  17077. * src/FtpConnection.h
  17078. (socket): Changed its type to SocketHandle.
  17079. (FtpConnection): Replaced Socket with SocketHandle.
  17080. (sendPort); Replaced Socket with SocketHandle.
  17081. * src/FtpDowndloadCommand.h
  17082. (ctrlSocket): Changed its type to SocketHandle.
  17083. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  17084. * src/HttpProxyRequestCommand.cc
  17085. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  17086. * src/FtpTunnelRequestCommand.h
  17087. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  17088. etc
  17089. * src/PeerChokeCommand.h
  17090. (setAllPeerChoked): Removed.
  17091. (setAllPeerResetDelta): Removed.
  17092. * src/PeerChokeCommand.cc
  17093. (setAllPeerChoked): Removed.
  17094. (ChokePeer): New function object.
  17095. (setAllPeerResetDelta): Removed.
  17096. (ResetDelta): New function object.
  17097. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  17098. (execute): Show download speed when the local node is a seeder.
  17099. setAllPeerChoked and setAllPeerResetDelta were rewritten
  17100. using STL.
  17101. * src/TrackerWatcherCommand.h
  17102. (MIN_PEERS): Removed.
  17103. * src/TorrentMan.cc
  17104. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  17105. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17106. To fix the bug that .aria2 file is not saved if downloading is stopped
  17107. by the errors:it results that aria2 can not resume downloading:
  17108. * src/main.cc
  17109. (normalDownload): Added the call to save().
  17110. (main): Added the deletion of the elements in 'reserved'.
  17111. To fix log:
  17112. * src/PeerInteraction.cc
  17113. (receiveHandshake): Fixed log.
  17114. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17115. To improve download performance in BitTorrent:
  17116. * src/TorrentMan.cc
  17117. (getPeer): Check the number of connections. Return nullPeer if
  17118. it is greater than MAX_PEER_UPDATE.
  17119. This code was originally here, but was removed in 0.5.1.
  17120. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17121. To improve the conditional compilation:
  17122. * src/MultiDiskWriter.h:
  17123. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17124. * src/MultiDiskWriter.cc:
  17125. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17126. * src/Util.h:
  17127. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17128. Added ENABLE_BITTORRENT around computeFastSet().
  17129. * src/Util.cc:
  17130. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17131. Added ENABLE_BITTORRENT around computeFastSet().
  17132. * src/messageDigest.h:
  17133. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  17134. * src/ShaVisitor.h:
  17135. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17136. * src/ShaVisitor.cc:
  17137. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17138. * src/main.cc:
  17139. Added ENABLE_BITTORRENT around includes and blocks related to
  17140. BitTorrent.
  17141. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  17142. digest support is not available.
  17143. * src/AbstractDiskWriter.h:
  17144. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17145. * src/AbstractDiskWriter.cc:
  17146. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17147. * src/MetalinkEntry.cc
  17148. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  17149. support is not available.
  17150. To add command-line options for Metalink:
  17151. * src/main.cc:
  17152. Added metalink-version, metalink-language, metalink-os,
  17153. follow-metalink.
  17154. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  17155. * src/main.cc: Use these definition.
  17156. * Release 0.6.0
  17157. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17158. To add Metalink support(http/ftp only):
  17159. * src/AbstractCommand.h
  17160. (tryReserved): New function.
  17161. * src/AbstractCommand.cc
  17162. (execute): Call tryReserved().
  17163. (tryReserved): New function.
  17164. * src/Request.h
  17165. (Requests): New type definition.
  17166. * src/SegmentMan.h
  17167. (reserved): New variable.
  17168. * src/Util.h
  17169. (fileChecksum): New function.
  17170. (toUpper): New function.
  17171. (toLower): New function.
  17172. * src/Util.cc
  17173. (messageDigest.h): Included.
  17174. (trim): Trim \r\n\t.
  17175. (fileChecksum): New function.
  17176. (toUpper): New function.
  17177. (toLower): New function.
  17178. * src/main.cc
  17179. (normalDownload): New function.
  17180. (main): Added 2 command-line options: metalink-file,
  17181. metalink-connection. Their usage has not been written yet.
  17182. * src/MetalinkProcessor.h: New class.
  17183. * src/Xml2MetalinkProcessor.h: New class.
  17184. * src/Xml2MetalinkProcessor.cc: New class.
  17185. * src/MetalinkEntry.h: New class.
  17186. * src/MetalinkEntry.cc: New class.
  17187. * src/MetalinkResource.h: New class.
  17188. * src/MetalinkResource.cc: New class.
  17189. To add md5 message digest checking:
  17190. * src/messageDigest.h: Rewritten.
  17191. * src/MultiDiskWriter.cc: Updated according to the changes in
  17192. messageDigest.h.
  17193. * src/ShaVisitor.cc: Updated according to the changes in
  17194. messageDigest.h.
  17195. * src/Util.cc: Updated according to the changes in messageDigest.h.
  17196. * src/AbstractDiskWriter.cc: Updated according to the changes in
  17197. messageDigest.h.
  17198. To fix a bug that causes segfault when the payload length in peer
  17199. message is less than 0:
  17200. * src/PeerConnection.cc:
  17201. (receiveMessage): Fixed the bug.
  17202. * src/PeerMessageUtil.cc
  17203. (checkLength): Throw an exception if length is less than or equals to
  17204. 0.
  17205. To add new interfaces to Base64 encoding/decoding:
  17206. * src/Base64.h
  17207. (part_encode): Changed the method signature.
  17208. (encode): New function(overload).
  17209. (decode): New function(overload).
  17210. * src/Base64.cc
  17211. (part_encode): Rewritten.
  17212. (encode): Rewritten.
  17213. (encode): New function(overload).
  17214. To prevent a peer to download same piece if there is an error in
  17215. checksum:
  17216. * src/PieceMessage.cc
  17217. (receivedAction): Call peerInteraction->abortPiece().
  17218. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17219. To fix the bug that causes same have message is sent many times to
  17220. a single peer.
  17221. * src/Time.cc
  17222. (isNewer): Use Util::difftv().
  17223. * src/Util.cc
  17224. (difftv): Added a cast to (long long int).
  17225. * src/TorrentMan.cc
  17226. (advertisePiece): Use push_front.
  17227. (getAdvertisedPieceIndexes): A performance improvement was made.
  17228. To fix the bug that sends tracker requests without a sleep interval
  17229. when the number of connections is less than 15.
  17230. * src/TrackerWatcherCommand.cc
  17231. (execute): Now the number of connections is not a factor to decide
  17232. whether or not a tracker request should be sent or not.
  17233. * src/Time.h
  17234. (setTimeInSec): New function.
  17235. * src/Time.cc
  17236. (setTimeInSec): New function.
  17237. etc.
  17238. * src/ChokeMessage.cc
  17239. (receivedAction): Removed peer->snubbing = false
  17240. * src/PeerConnection.h
  17241. (receiveHandshake): Updated doc.
  17242. * src/TorrentMan.h
  17243. (getAdvertisedPieceIndexes): Updated the method signature.
  17244. * src/TorrentMan.cc
  17245. (getAdvertisedPieceIndexes): Updated the method signature.
  17246. * src/Time.h
  17247. (getTimeInMicros): Added a cast to (long long int).
  17248. (getTimeInMillis): Added a cast to (long long int).
  17249. * Release 0.5.2
  17250. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17251. To make a listening socket non-block:
  17252. * src/SocketCore.h
  17253. (setNonBlockingMode): New function.
  17254. * src/SocketCore.cc
  17255. (setNonBlockingMode): New function.
  17256. (beginListen): Added a call to setNonBlockingMode().
  17257. (acceptConnection): Call setNonBlockingMode().
  17258. (setBlockingMode): Updated.
  17259. To handle tracker's NAT-checking:
  17260. * src/PeerConnection.cc
  17261. (receiveHandshake): 'msg' param is filled with received data and
  17262. its length is assigned to 'length' param, even if all handshake
  17263. message is not yet received.
  17264. * src/PeerInteractionCommand.cc
  17265. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  17266. a new peer connects to localhost.
  17267. A call to peerInteraction->sendHandshake() was removed because
  17268. it is called from peerInteraction->receiveHandshake(true).
  17269. * src/PeerInteraction.h
  17270. (quickReplied): New variable.
  17271. (receiveHandshake): Added an argument.
  17272. * src/PeerInteraction.cc
  17273. (PeerInteraction): Added the initialization of quickReplied.
  17274. (receiveHandshake): Send handshake message as soon as the info hash
  17275. in a handshake message from a peer is correct.
  17276. To change the random part of peer id and key parameter:
  17277. * src/TorrentMan.h
  17278. (key): New variable.
  17279. * src/TorrentMan.cc
  17280. (setupInternal1): Use Util::randomAlpha() to generate random part
  17281. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  17282. key is also generated by Util::randomAlpha() and it is now 8 character
  17283. long.
  17284. * src/Util.h
  17285. (randomAlpha): New function.
  17286. * src/Util.cc
  17287. (randomAlpha): New function.
  17288. * src/TrackerWatcherCommand.cc
  17289. (execute): In a tracker request: Use torrentMan->key as key parameter.
  17290. Added no_peer_id=1.
  17291. Set snubbing flag to false when a choke message is received from a
  17292. snubbed peer.
  17293. * src/ChokeMessage.cc
  17294. (receivedAction): Set snubbing flag to false.
  17295. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17296. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  17297. * src/SimpleLogger.h (writeHeader): New function.
  17298. * src/SimpleLogger.cc (writeHeader): New function.
  17299. (writeLog): Fixed the bug that causes segfaults if exception message
  17300. contains an unescaped "%" character.
  17301. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  17302. when a tracker request fails.
  17303. * src/Request.cc (parseUrl): Query string is now handled properly.
  17304. * Release 0.5.1
  17305. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17306. To add Time class which represents a specific instant in time and
  17307. its precision is microseconds. Time checking procedures were rewritten
  17308. using this object.
  17309. * src/Time.h: New class.
  17310. * src/Time.cc: New class.
  17311. * src/AbstractCommand.h
  17312. (updateCheckPoint): Removed.
  17313. (isTimeoutDetected): Removed.
  17314. (checkPoint): Changed the type to Time.
  17315. (timeout): New variable.
  17316. (setTimeout): New function.
  17317. * src/AbstractCommand.cc
  17318. (AbstractCommand): Removed the initialization of checkPoint.
  17319. Added the initialization of timeout.
  17320. (updateCheckPoint): Removed.
  17321. (isTimeoutDetected): Removed.
  17322. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  17323. * src/PeerChokeCommand.h
  17324. (checkPoint): Changed the type to Time.
  17325. * src/PeerChokeCommand.cc
  17326. (PeerChokeCommand): Removed the initialization of checkPoint.
  17327. (execute): Rewritten using Time object.
  17328. * src/TrackerWatcherCommand.h
  17329. (checkPoint): Changed the type to Time.
  17330. * src/TrackerWatcherCommand.cc
  17331. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  17332. (execute): Rewritten.
  17333. * src/ConsoleDownloadEngine.h
  17334. (cp): Changed the type to Time.
  17335. (startup): Changed the type to Time.
  17336. * src/ConsoleDownloadEngine.cc
  17337. (initStatistics): Use cp.reset(), startup.reset().
  17338. (calculateStatistics): Rewritten using Time object.
  17339. * src/PeerAbstractCommand.h
  17340. (updateCheckPoint): Removed.
  17341. (isTimeoutDetected): Removed.
  17342. (checkPoint): Changed the type to Time.
  17343. * src/PeerAbstractCommand.cc
  17344. (PeerAbstractCommand): Removed the initialization of checkPoint.
  17345. (updateCheckPoint): Removed.
  17346. (isTimeoutDetected): Removed.
  17347. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  17348. * src/PeerInteractionCommand.cc
  17349. (PeerInteractionCommand): Removed the initializations of struct
  17350. timeval variables.
  17351. * src/PeerInteractionCommand.h
  17352. (keepAliveCheckPoint): Changed the type to Time.
  17353. (chokeCheckPoint): Changed the type to Time.
  17354. (freqCheckPoint): Changed the type to Time.
  17355. (haveCheckTime): Changed the type to Time.
  17356. * src/PeerInteractionCommand.cc
  17357. (executeInternal): Rewritten using Time object.
  17358. (detectMessageFlooding): Rewritten using Time object.
  17359. (checkLongTimePeerChoking): Rewritten using Time object.
  17360. (sendKeepAlive): Rewritten using Time object.
  17361. (checkHave): Rewritten using Time object.
  17362. * src/SleepCommand.h
  17363. (checkPoint): Changed the type to Time.
  17364. * src/SleepCommand.cc
  17365. (SleepCommand): Removed the initialization of checkPoint.
  17366. (execute): Rewritten using Time object.
  17367. * src/TorrentAutoSaveCommand.h
  17368. (checkPoint): Changed the type to Time.
  17369. * src/TorrentAutoSaveCommand.cc
  17370. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  17371. (execute): Rewritten.
  17372. * src/DownloadCommand.h
  17373. (sw): Changed the type to Time.
  17374. * src/DownloadCommand.cc
  17375. (DownloadCommand): Removed the initialization of sw.
  17376. (executeInternal): Rewritten.
  17377. * src/RequestSlot.h
  17378. (dispatchedTime): Changed the type to Time.
  17379. * src/RequestSlot.cc
  17380. (RequestSlot): Removed the call to setDispatchedTime().
  17381. (setDispatchedTime): Rewirtten.
  17382. (isTimeout): Rewritten.
  17383. (getLatencyInMillis): Rewritten.
  17384. * src/TorrentDownloadEngine.h
  17385. (cp): Changed the type to Time[2].
  17386. (startup): Changed the type to Time.
  17387. * src/TorrentDownloadEngine.cc
  17388. (initStatistics): Rewritten.
  17389. (calculateStatistics): Rewritten.
  17390. * src/DownloadEngine.cc
  17391. (run): Rewritten.
  17392. To detect all attempts to connect to the tracker are failed:
  17393. * src/AbstractCommand.cc
  17394. (execute): Increment e->segmentMan->errors if a command aborted.
  17395. * src/SegmentMan.h
  17396. (errors): New variable.
  17397. * src/SegmentMan.cc
  17398. (SegmentMan): Added the initialization of errors.
  17399. (init): Added the initialization of errors.
  17400. * src/TrackerWatcherCommand.cc
  17401. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  17402. request was failed.
  17403. To handle snubbed peers:
  17404. * src/PeerChokeCommand.cc
  17405. (optUnchokingPeer): Snubbed peers don't get unchoked.
  17406. (execute): Snubbed peers don't get unchoked.
  17407. * src/PeerInteraction.h
  17408. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  17409. * src/PeerInteraction.cc
  17410. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  17411. back the requested 16k block in 60 seconds.
  17412. * src/PieceMessage.cc
  17413. (receivedAction): A peer's snubbed state is cleard if it sends
  17414. the requested 16k block in 60 seconds.
  17415. * src/Peer.h
  17416. (snubbing): New variable.
  17417. * src/Peer.cc
  17418. (resetStatus): Added snubbed = false.
  17419. To fix the bug that causes have message is not sent:
  17420. * src/PeerInteractionCommand.cc
  17421. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  17422. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  17423. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  17424. * src/TorrentMan.h
  17425. (HaveEntry): New class.
  17426. (advertisePiece): Rewritten.
  17427. (getAdvertisedPieceIndexes): Rewritten.
  17428. (Haves): Changed the type.
  17429. (getAdvertisedPieceIndexes): Added an argument.
  17430. Others:
  17431. * src/TorrentMan.h
  17432. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  17433. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  17434. * src/TorrentMan.cc
  17435. (getPeer): Don't check the number of connections here.
  17436. (setupInternal1): Changed peerId.
  17437. * src/PeerInteractionCommand.h
  17438. (KEEP_ALIVE_INTERVAL): New definition.
  17439. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  17440. * src/main.cc
  17441. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  17442. * src/DownloadEngine.h: Removed unnecessary header includes.
  17443. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17444. To fix the bug that causes segfaults if a tracker returns a zero-length
  17445. list as "peers":
  17446. * src/TrackerUpdateCommand.cc
  17447. (execute): Added a check to see wether the type of peers is Data*.
  17448. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17449. * Release 0.5.0
  17450. To fix compile issue with gcc3:
  17451. * src/CancelMessage.h
  17452. (ID): Renamed as ID_t
  17453. (ID_t): New enum.
  17454. * src/RejectMessage.h
  17455. (ID): Renamed as ID_t
  17456. (ID_t): New enum.
  17457. * src/SuggestPieceMessage.h
  17458. (ID): Renamed as ID_t
  17459. (ID_t): New enum.
  17460. * src/AllowedFastMessage.h
  17461. (ID): Renamed as ID_t
  17462. (ID_t): New enum.
  17463. * src/PortMessage.h
  17464. (ID): Renamed as ID_t
  17465. (ID_t): New enum.
  17466. * src/HaveNoneMessage.h
  17467. (ID): Renamed as ID_t
  17468. (ID_t): New enum.
  17469. * src/KeepAliveMessage.h
  17470. (ID): Renamed as ID_t
  17471. (ID_t): New enum.
  17472. * src/HaveAllMessage.h
  17473. (ID): Renamed as ID_t
  17474. (ID_t): New enum.
  17475. * src/UnchokeMessage.h
  17476. (ID): Renamed as ID_t
  17477. (ID_t): New enum.
  17478. * src/BitfieldMessage.h
  17479. (ID): Renamed as ID_t
  17480. (ID_t): New enum.
  17481. * src/PieceMessage.h
  17482. (ID): Renamed as ID_t
  17483. (ID_t): New enum.
  17484. * src/RequestMessage.h
  17485. (ID): Renamed as ID_t
  17486. (ID_t): New enum.
  17487. * src/NotInterestedMessage.h
  17488. (ID): Renamed as ID_t
  17489. (ID_t): New enum.
  17490. * src/ChokeMessage.h
  17491. (ID): Renamed as ID_t
  17492. (ID_t): New enum.
  17493. * src/InterestedMessage.h
  17494. (ID): Renamed as ID_t
  17495. (ID_t): New enum.
  17496. * src/HaveMessage.h
  17497. (ID): Renamed as ID_t
  17498. (ID_t): New enum.
  17499. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17500. * src/PeerAbstractCommand.h
  17501. (beforeSocketCheck): Removed.
  17502. * src/PeerAbstractCommand.cc
  17503. Modified in order to call executeInternal() even if socket check
  17504. and upload limit check fail.
  17505. * src/PeerInteractionCommand.h
  17506. (keepAlive): Removed.
  17507. (sendKeepAlive): New function.
  17508. (checkHave): New function.
  17509. (beforeSocketCheck): Removed.
  17510. * src/PeerInteractionCommand.cc
  17511. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  17512. calls to checkHave() and sendKeepAlive().
  17513. (keepAlive): Renamed to sendKeepAlive().
  17514. (sendKeepAlive): New function.
  17515. (beforeSocketCheck): Removed.
  17516. (checkHave): New function.
  17517. * src/BitfieldMan.cc
  17518. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  17519. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  17520. 0.
  17521. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  17522. * src/TorrentMan.h
  17523. (UsedPieces): Removed.
  17524. (Pieces): New type definition.
  17525. * src/Piece.h: Updated doc.
  17526. * src/Peer.h
  17527. (totalLength): Removed.
  17528. * src/Peer.cc
  17529. (updateLatency): Fixed the latency calculation.
  17530. * src/TorrentMan.cc
  17531. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  17532. than or equal to MAX_PEER_LIST_SIZE.
  17533. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  17534. then return false.
  17535. (deleteOldErrorPeers): Rewritten.
  17536. (deleteUsedPiece): Fixed the miss use of STL remove.
  17537. * src/PeerInteraction.h
  17538. (Pieces): Removed.
  17539. (deleteTimeoutRequestSlot): Removed.
  17540. (deleteCompletedRequestSlot): Removed.
  17541. (checkRequestSlot): New function.
  17542. * src/PeerInteraction.cc
  17543. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  17544. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  17545. (checkRequestSlot): New function.
  17546. * src/DownloadEngine.cc
  17547. (run): Clear activeSockets before calling waitData().
  17548. (waitData): Removed a call to activeSockets.clear().
  17549. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17550. To attempt to handle EINTR:
  17551. * src/SocketCore.cc
  17552. (isReadable): Added EINTR handling.
  17553. (isWritable): Added EINTR handling.
  17554. To improve the performance:
  17555. * src/AbstractCommand.cc
  17556. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  17557. * src/PeerInteractionCommand.h
  17558. (receiveMessage): Renamed as receiveMessages().
  17559. (receiveMessages): New function.
  17560. * src/PeerInteractionCommand.cc
  17561. (executeInternal): receiveMessage loop is moved to new receiveMessages
  17562. () function. detectMessageFlooding() is moved here.
  17563. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  17564. (). The flooding detection for have message is comment out.
  17565. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  17566. Util::difftv().
  17567. (receiveMessage): Renamed as receiveMessages().
  17568. (receiveMessages): New function.
  17569. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  17570. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  17571. * src/SleepCommand.cc
  17572. (execute): Use Util::difftvsec() instead of Util::difftv().
  17573. * src/BitfieldMan.h
  17574. (getNthBitIndex): New function.
  17575. (hasMissingPiece): New function.
  17576. (getAllMissingIndexes): New function.
  17577. * src/BitfieldMan.cc
  17578. (countSetBit): Rewritten.
  17579. (getNthBitIndex): New function.
  17580. (getMissingIndexRandomly): Rewritten.
  17581. (hasMissingPiece): New function.
  17582. (getAllMissingIndexes): New function.
  17583. * src/TorrentMan.cc
  17584. (hasMissingPiece): New function.
  17585. (deleteUsedPiece): Rewritten using STL.
  17586. * src/PeerInteraction.cc
  17587. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  17588. is a little bit faster then TorrentMan::getMissingPieceIndex().
  17589. (addRequests): Updated the number of pending requests.
  17590. * src/PeerAbstractCommand.cc
  17591. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  17592. (execute): Returns true if TorrentMan::isHalt() is true.
  17593. Corrected the condition of upload limit checking.
  17594. * src/Util.h
  17595. (countBit): New function.
  17596. * src/Util.cc
  17597. (nbits): New variable.
  17598. (countBit): New function.
  17599. * src/DownloadEngine.h
  17600. (SockCmdMap): New type definition.
  17601. (waitData): Added an argument.
  17602. (addSocket): Added an argument.
  17603. (addSocketForReadCheck): Added an argument.
  17604. (addSocketForWriteCheck): Added an argument.
  17605. * src/DownloadEngine.cc
  17606. (run): Executes only commands whose sockets are ready to read or write.
  17607. All commands are executed in every 1 second.
  17608. (waitData): Calls select() again if it returned
  17609. EINTR.
  17610. (addSocket): Saves socket and command object pair to the map.
  17611. (deleteSocket): Deletes socket and command object pair from the map.
  17612. (addSocketForReadCheck): Added an argument.
  17613. (addSocketForWriteCheck): Added an argument.
  17614. * src/DownloadCommand.cc
  17615. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  17616. To send "event=stopped" to the tracker when the application finishes:
  17617. * src/PeerChokeCommand.h
  17618. (checkPoint): New variable.
  17619. * src/PeerChokeCommand.cc
  17620. (PeerChokeCommand): Added the initialization of checkPoint.
  17621. (execute): The interval check is now done by checkPoint, not
  17622. SleepCommand. Return true if TorrentMan::isHalt() is true.
  17623. * src/TorrentMan.h
  17624. (halt): New function.
  17625. (hasMissingPiece): New function.
  17626. (isHalt): New function.
  17627. (setHalt): New function.
  17628. * src/TorrentMan.cc
  17629. (TorrentMan): Added the initialization of halt.
  17630. * src/TorrentAutoSaveCommand.h
  17631. (checkPoint): New variable.
  17632. * src/PeerListenCommand.cc
  17633. (execute): Returns true if TorrentMan::isHalt() is true.
  17634. * src/main.cc
  17635. (setSignalHander): Added flags argument.
  17636. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  17637. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  17638. Removed printDownloadAbortMessage() after torrent downloading loop.
  17639. * src/TorrentAutoSaveCommand.cc
  17640. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  17641. (execute): Returns true if TorrentMan::isHalt() is true.
  17642. The interval check is now done by checkPoint, not SleepCommand.
  17643. * src/TrackerWatcherCommand.cc
  17644. (execute): If TorrentMan::isHalt(), then create a tracker request with
  17645. event=stopped.
  17646. * src/TrackerUpdateCommand.cc
  17647. (prepareForRetry): Do not use SleepCommand here.
  17648. (execute): Returns true if TorrentMan::isHalt() is true.
  17649. Others:
  17650. * src/TorrentMan.cc
  17651. (getMissingPieceIndex): Updated log message.
  17652. * src/PeerInteraction.cc
  17653. (createPeerMessag): Updated log message.
  17654. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17655. To add the ability to download several pieces in mix in a command and
  17656. increase the number of request slots according to request-cancel
  17657. latency:
  17658. * src/PeerInteractionCommand.cc
  17659. (executeInternal): The number of messages to be received at a time
  17660. is increased from 10 to 50.
  17661. * src/LogFactory
  17662. (getInstance): Added NullLogger.
  17663. * src/NullLogger.h: New class.
  17664. * src/BitfieldMan.h
  17665. (getMissingIndex): New function.
  17666. * src/BitfieldMan.cc
  17667. (getMissingIndex): New function.
  17668. * src/TorrentMan.h
  17669. (checkOutPiece): New function.
  17670. (getMissingPieceIndex): New function.
  17671. (getMissingFastPieceIndex): New function.
  17672. (getMissingFastPiece): New function.
  17673. * src/TorrentMan.cc
  17674. (updatePiece): Rewritten using STL.
  17675. (syncPiece): Rewritten using STL.
  17676. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  17677. checkOutPiece().
  17678. (getMissingPieceIndex): New function.
  17679. (getMissingFastPieceIndex): New function.
  17680. (getMissingFastPiece): New function.
  17681. (checkOutPiece): New function.
  17682. * src/PeerInteraction.h
  17683. (Pieces): New type definition.
  17684. (piece): Removed.
  17685. (pieces): New variable.
  17686. (getNewPieceAndSendInterest): Added the "piece" argument.
  17687. (abortPiece): Added the "piece" argument.
  17688. (abortAllPieces): New function.
  17689. (isInRequestSlot): New function.
  17690. (hasDownloadPiece): Added the "index" argument.
  17691. (setDownloadPiece): Removed.
  17692. (getDownloadPiece): Added the "index" argument.
  17693. (updatePiece): New function.
  17694. (createRequestMessage): Added the "index" argument.
  17695. * src/PeerInteraction.cc
  17696. (onChoked): Rewritten.
  17697. (abortPiece): Rewirtten.
  17698. (abortAllPieces): New function.
  17699. (deleteTimeoutRequestSlot): Rewritten.
  17700. Clarified code a little bit.
  17701. (deleteCompletedRequestSlot): Rewritten.
  17702. (isInRequestSlot): New function.
  17703. (syncPiece): Rewritten.
  17704. (updatePiece): New function.
  17705. (getNewPieceAndSendInterest): Rewritten.
  17706. (addRequests): Rewritten.
  17707. (getDownloadPiece): Rewritten.
  17708. (hasDownloadPiece): Rewritten.
  17709. (createRequestMessage): Added the "index" argument.
  17710. * src/common.h
  17711. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  17712. (DIV_FLOOR): New definition.
  17713. * src/PieceMessage.cc
  17714. (receivedAction): Update request-piece latency here.
  17715. * src/RequestSlot.h
  17716. (getLatencyInMillis): New function.
  17717. * src/RequestSlot.cc
  17718. (isTimeout): Rewritten using getLatencyInMillis.
  17719. (getLatencyInMillis): New function.
  17720. * src/Piece.h
  17721. (operator==): New function.
  17722. (getMissingBlockIndex): New function.
  17723. * src/Piece.cc
  17724. (operator==): New function.
  17725. (getMissingBlockIndex): New function.
  17726. * src/Peer.h
  17727. (DEFAULT_LATENCY): New definition.
  17728. (latency): New variable.
  17729. (updateLatency): New function.
  17730. (getLatency): New function.
  17731. * src/Peer.cc
  17732. (resetStatus): Reset latecy.
  17733. (updateLatency): New function.
  17734. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17735. * src/SocketCore.cc
  17736. (isReadable): Added secure to the condition.
  17737. * src/HttpConnection.cc
  17738. (receiveResponse): Fixed a bug that causes no response header
  17739. exception.
  17740. * src/Peer.h
  17741. (getFastSet): Fixed the return value type.
  17742. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17743. To remove a wait from download loop:
  17744. * src/DownloadEngine.cc
  17745. (run): Comment out shortSleep.
  17746. To rewrite the message handling:
  17747. * src/SimplePeerMessage.h: New class.
  17748. * src/SimplePeerMessage.cc: New class.
  17749. * src/CancelMessage.h: Derived from SimplePeerMessage.
  17750. (msg): New variable.
  17751. (create): New function.
  17752. (send): Removed.
  17753. (getMessage): New function.
  17754. (getMessageLength): New function.
  17755. * src/CancelMessage.cc
  17756. (create): New function.
  17757. (receivedAction): Replaced deleteRequestMessageInQueue with
  17758. rejectPieceMessageInQueue.
  17759. (send): Removed.
  17760. (getMessage): New function.
  17761. (getMessageLength): New function.
  17762. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  17763. (msg): New variable.
  17764. (msgLength): New variable.
  17765. (~BitfieldMessage): Deleted msg.
  17766. (send): Removed.
  17767. (getMessage): New function.
  17768. (getMessageLength): New function.
  17769. * src/BitfieldMessage.cc
  17770. (create): New function.
  17771. (send): Removed.
  17772. (getMessage): New function.
  17773. (getMessageLength): New function.
  17774. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  17775. (msg): New variable.
  17776. (sendPredicate): New function.
  17777. (onSendComplete): New function.
  17778. (send): Removed.
  17779. (getMessage): New function.
  17780. (getMessageLength): New function.
  17781. (create): New function.
  17782. * src/ChokeMessage.cc
  17783. (create): New function.
  17784. (send): Removed.
  17785. (sendPredicate): New function.
  17786. (getMessage): New function.
  17787. (getMessageLength): New function.
  17788. (onSendComplete): New function.
  17789. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  17790. (msg): New variable.
  17791. (send): Removed.
  17792. (getMessage): New function.
  17793. (getMessageLength): New function.
  17794. * src/KeepAliveMessage.cc
  17795. (send): Removed.
  17796. (getMessage): New function.
  17797. (getMessageLength): New function.
  17798. * src/PortMessage.h
  17799. (create): New function.
  17800. (receivedAction): Updated log message.
  17801. * src/PortMessage.cc: New file.
  17802. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  17803. (msg): New variable.
  17804. (sendPredicate): New function.
  17805. (onSendComplete): New function.
  17806. (create): New function.
  17807. (send): Removed.
  17808. (getMessage): New function.
  17809. (getMessageLength): New function.
  17810. * src/UnchokeMessage.cc
  17811. (create): New function.
  17812. (send): Removed.
  17813. (sendPredicate): New function.
  17814. (getMessage): New function.
  17815. (getMessageLength): New function.
  17816. (onSendComplete): New function.
  17817. * src/PieceMessage.h
  17818. (leftPieceDataLength): Removed.
  17819. (leftDataLength): New variable.
  17820. (headerSend): New variable.
  17821. (pendingCount): New variable.
  17822. (msgHeader): New variable.
  17823. (sendPieceData): New function.
  17824. (incrementPendingCount): New function.
  17825. (isPendingCountMax): New function.
  17826. (create): New function.
  17827. (getMessageHeader): New function.
  17828. (getMessageHeaderLength): New function.
  17829. * src/PieceMessage.cc
  17830. (create): New function.
  17831. (getMessageHeader): New function.
  17832. (getMessageHeaderLength): New function.
  17833. (send): Rewritten.
  17834. (sendPieceData): New function.
  17835. * src/HaveMessage.h: Derived from SimplePeerMessage.
  17836. (msg): New variable.
  17837. (create): New function.
  17838. (getMessage): New function.
  17839. (getMessageLength): New function.
  17840. * src/HaveMessage.cc
  17841. (create): New function.
  17842. (send): Removed.
  17843. (sendPieceData): New function.
  17844. (getMessage): New function.
  17845. (getMessageLength): New function.
  17846. * src/RequestMessage.h: Derived from SimplePeerMessage.
  17847. (msg): New variable.
  17848. (create): New function.
  17849. (send): Removed.
  17850. (getMessage): New function.
  17851. (getMessageLength): New function.
  17852. * src/RequestMessage.cc
  17853. (create): New function.
  17854. (receivedAction): Added the handling of fast extension.
  17855. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  17856. (send): Removed.
  17857. (getMessage): New function.
  17858. (getMessageLength): New function.
  17859. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  17860. (msg): New variable.
  17861. (sendPredicate): New function.
  17862. (onSendComplete): New function.
  17863. (create): New function.
  17864. (getMessage): New function.
  17865. (getMessageLength): New function.
  17866. * src/InterestedMessage.cc
  17867. (create): New function.
  17868. (send): Removed.
  17869. (sendPieceData): New function.
  17870. (getMessage): New function.
  17871. (getMessageLength): New function.
  17872. (onSendComplete): New function.
  17873. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  17874. (msg): New variable.
  17875. (sendPieceData): New function.
  17876. (onSendComplete): New function.
  17877. (create): New function.
  17878. (send): Removed.
  17879. (getMessage): New function.
  17880. (getMessageLength): New function.
  17881. * src/NotInterestedMessage.cc
  17882. (create): New function.
  17883. (send): Removed.
  17884. (sendPredicate): New function.
  17885. (getMessage): New function.
  17886. (getMessageLength): New function.
  17887. (onSendComplete): New function.
  17888. * src/AllowedFastMessage.h: New class.
  17889. * src/AllowedFastMessage.cc: New class.
  17890. * src/RejectMessage.h: New class.
  17891. * src/RejectMessage.cc: New class.
  17892. * src/SuggestPieceMessage.h: New class.
  17893. * src/SuggestPieceMessage.cc: New class.
  17894. * src/HaveAllMessage.h: New class.
  17895. * src/HaveAllMessage.cc: New class.
  17896. * src/HaveNoneMessage.h: New class.
  17897. * src/HaveNoneMessage.cc: New class.
  17898. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  17899. (msg): New variable.
  17900. (reserved): New variable.
  17901. (create): New function.
  17902. (getId): New function.
  17903. (receivedAction): New function.
  17904. (getMessage): New function.
  17905. (getMessageLength): New function.
  17906. (isFastExtensionSupported): New function.
  17907. * src/HandshakeMessage.cc
  17908. (HandshakeMessage): Moved here from HandshakeMessage.h.
  17909. (create): New function.
  17910. (getMessage): New function.
  17911. (getMessageLength): New function.
  17912. (toString): Added the output of reserved field.
  17913. (check): Added const qualifier.
  17914. (isFastExtensionSupported): New function.
  17915. * src/PeerMessageUtil.h
  17916. (createChokeMessage): Removed.
  17917. (createUnchokeMessage): Removed.
  17918. (createInterestedMessage): Removed.
  17919. (createNotInterestedMessage): Removed.
  17920. (createHaveMessage): Removed.
  17921. (createBitfieldMessage): Removed.
  17922. (createRequestMessage): Removed.
  17923. (createCancelMessage): Removed.
  17924. (createPieceMessage): Removed.
  17925. (createPortMessage): Removed.
  17926. (createChokeMessage): Removed.
  17927. (createUnchokeMessage): Removed.
  17928. (createInterestedMessage): Removed.
  17929. (createNotInterestedMessage): Removed.
  17930. (createHaveMessage): Removed.
  17931. (createBitfieldMessage): Removed.
  17932. (createRequestMessage): Removed.
  17933. (createCancelMessage): Removed.
  17934. (createPieceMessage): Removed.
  17935. (createKeepAliveMessage): Removed.
  17936. (createHandshakeMessage): Removed.
  17937. (setIntParam): New function.
  17938. (createPeerMessageString): New function.
  17939. * src/PeerMessageUtil.cc
  17940. (createChokeMessage): Removed.
  17941. (createUnchokeMessage): Removed.
  17942. (createInterestedMessage): Removed.
  17943. (createNotInterestedMessage): Removed.
  17944. (createHaveMessage): Removed.
  17945. (createBitfieldMessage): Removed.
  17946. (createRequestMessage): Removed.
  17947. (createCancelMessage): Removed.
  17948. (createPieceMessage): Removed.
  17949. (createPortMessage): Removed.
  17950. (createRequestMessage): Removed.
  17951. (createCancelMessage): Removed.
  17952. (createPieceMessage): Removed.
  17953. (createHaveMessage): Removed.
  17954. (createChokeMessage): Removed.
  17955. (createUnchokeMessage): Removed.
  17956. (createInterestedMessage): Removed.
  17957. (createNotInterestedMessage): Removed.
  17958. (createBitfieldMessage): Removed.
  17959. (createKeepAliveMessage): Removed.
  17960. (createHandshakeMessage): Removed.
  17961. (setIntParam): New function.
  17962. (createPeerMessageString): New function.
  17963. * src/PeerConnection.h
  17964. (peer): Removed.
  17965. (torrentMan): Removed.
  17966. (createNLengthMessage): Removed.
  17967. (setIntParam): Removed.
  17968. (writeOutgoingMessageLog): Removed all overloaded functions.
  17969. (PeerConnection): Deleted peer and torrentMan from its arguments.
  17970. (sendMessage): New function.
  17971. (sendHandshake): Removed.
  17972. (sendKeepAlive): Removed.
  17973. (sendChoke): Removed.
  17974. (sendUnchoke): Removed.
  17975. (sendInterested): Removed.
  17976. (sendNotInterested): Removed.
  17977. (sendHave): Removed.
  17978. (sendBitfield): Removed.
  17979. (sendRequest): Removed.
  17980. (sendPiece): Removed.
  17981. (sendPieceHeader): Removed.
  17982. (sendPieceData): Removed.
  17983. (sendCancel): Removed.
  17984. (getPeer): Removed.
  17985. * src/PeerConnection.cc
  17986. (PeerConnection): Deleted peer and torrentMan from its arguments.
  17987. (sendHandshake): Removed.
  17988. (sendKeepAlive): Removed.
  17989. (createNLengthMessage): Removed.
  17990. (setIntParam): Removed.
  17991. (writeOutgoingMessageLog): Removed all overloaded functions.
  17992. (sendChoke): Removed.
  17993. (sendUnchoke): Removed.
  17994. (sendInterested): Removed.
  17995. (sendNotInterested): Removed.
  17996. (sendHave): Removed.
  17997. (sendBitfield): Removed.
  17998. (sendRequest): Removed.
  17999. (sendPiece): Removed.
  18000. (sendPieceHeader): Removed.
  18001. (sendPieceData): Removed.
  18002. (sendMessage): New function.
  18003. (sendCancel): Removed.
  18004. * src/PeerInteractionCommand.cc
  18005. (PeerInteractionCommand): Call setUploadLimit.
  18006. (executeInternal): Call setUploadLimit.
  18007. Added the handling of "inProgress" state of handshake message.
  18008. Call sendBitfield() or sendAllowdFast() instead of deprecated
  18009. sendNow().
  18010. (keepAlive): Call addMessage and sendMessage instead of deprecated
  18011. sendNow().
  18012. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  18013. * src/TorrentMan.h
  18014. (PEER_ID_LENGTH): New definition.
  18015. (hasAllPieces): New function.
  18016. * src/TorrentMan.cc
  18017. (getMissingPiece): Added the handling of fast extension.
  18018. (cancelPiece): Call updatePiece().
  18019. (hasAllPieces): New function.
  18020. * src/PeerInteraction.h
  18021. (fastSet): New variable.
  18022. (getNewPieceAndSendInterest): Changed the return type to void.
  18023. (send): Renamed as sendMessages.
  18024. (deleteAllRequestSlot): Removed.
  18025. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  18026. (cancelAllRequest): Removed all overloaded functions.
  18027. (deleteAllRequestSlot): Removed.
  18028. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  18029. (rejectPieceMessageInQueue): New function.
  18030. (rejectAllPieceMessageInQueue): New function.
  18031. (onChoked): New function.
  18032. (isSendingMessageInProgress): New function.
  18033. (getCorrespondingRequestSlot): Changed its arguments.
  18034. (isInFastSet): New function.
  18035. (addFastSetIndex): New function.
  18036. (addRequests): New function.
  18037. (sendNow): Removed.
  18038. (trySendNow): Removed.
  18039. (sendBitfield): New function.
  18040. (sendAllowdFast): New function.
  18041. (createHaveAllMessage): New function.
  18042. (createHaveNoneMessage): New function.
  18043. (createRejectMessage): New function.
  18044. (createAllowedFastMessage): New function.
  18045. * src/PeerInteraction.cc
  18046. (send): Renamed as sendMessages.
  18047. (sendMessages): New function.
  18048. (MsgPushBack): New class.
  18049. (isSendingMessageInProgress): New function.
  18050. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  18051. (rejectAllPieceMessageInQueue): New function.
  18052. Added the handling of fast extension.
  18053. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  18054. (rejectPieceMessageInQueue): New function.
  18055. Added the handling of fast extension.
  18056. (deleteRequestSlot): Replaced for loop with std::find.
  18057. (onChoked): New function.
  18058. (deleteAllRequestSlot): Removed.
  18059. (abortPiece): Rewirtten.
  18060. (deleteTimeoutRequestSlot): Updated log messages.
  18061. (getCorrespondingRequestSlot): Changed its arguments.
  18062. (cancelAllRequest): Removed all overloaded functions.
  18063. (receiveHandshake): Added the check to see whether an incoming peer
  18064. supports fast extension.
  18065. (createHandshakeMessage): Use HandshakeMessage::create instead of
  18066. PeerMessageUtil.
  18067. (createPeerMessage): Use create() of each message class instead of
  18068. PeerMessageUtil.
  18069. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  18070. AllowedFastMessage were added.
  18071. (getNewPieceAndSendInterest): Changed its return value type to void.
  18072. Added the handling of fast extension.
  18073. (addRequests): New function.
  18074. (sendNow): Removed.
  18075. (sendHandshake): Rewritten.
  18076. (trySendNow): Removed.
  18077. (sendBitfield): New function.
  18078. (sendAllowdFast): New function.
  18079. (isInFastSet): New function.
  18080. (addFastSetIndex): New function.
  18081. (createRequestMessage): Use RequestMessage::create instead of
  18082. PeerMessageUtil.
  18083. (createCancelMessage): Use CancelMessage::create instead of
  18084. PeerMessageUtil.
  18085. (createPieceMessage): Use PieceMessage::create instead of
  18086. PeerMessageUtil.
  18087. (createHaveMessage): Use HaveMessage::create instead of
  18088. PeerMessageUtil.
  18089. (createChokeMessage): Use ChokeMessage::create instead of
  18090. PeerMessageUtil.
  18091. (createUnchokeMessage): Use UnchokeMessage::create instead of
  18092. PeerMessageUtil.
  18093. (createInterestedMessage): Use InterestedMessage::create instead of
  18094. PeerMessageUtil.
  18095. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  18096. of PeerMessageUtil.
  18097. (createBitfieldMessage): Use BitfieldMessage::create instead of
  18098. PeerMessageUtil.
  18099. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  18100. PeerMessageUtil.
  18101. (createHaveAllMessage): New function.
  18102. (createHaveNoneMessage): New function.
  18103. (createRejectMessage): New function.
  18104. (createAllowedFastMessage: New function.
  18105. * src/Util.h
  18106. (sha1Sum): New function.
  18107. (computeFastSet): New function.
  18108. * src/Util.cc
  18109. (sha1Sum): New function.
  18110. (computeFastSet): New function.
  18111. * src/Peer.h
  18112. (fastExtensionEnabled): New variable.
  18113. (fastSet): New variable.
  18114. (setAllBitfield): New function.
  18115. (setFastExtensionEnabled): New function.
  18116. (isFastExtensionEnabled): New function.
  18117. (addFastSetIndex): New function.
  18118. (getFastSet): New function.
  18119. (isInFastSet): New function.
  18120. (countFastSet): New function.
  18121. * src/Peer.cc
  18122. (isInFastSet): New function.
  18123. (addFastSetIndex): New function.
  18124. (setAllBitfield): New function.
  18125. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  18126. sockets.
  18127. * src/PeerAbstractCommand.cc
  18128. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  18129. and uploadLimit.
  18130. (execute): Changed the procedure of checking sockets. The upload speed
  18131. checking were added.
  18132. (setUploadLimit): New function.
  18133. (setUploadLimitCheck): New function.
  18134. * src/PeerAbstractCommand.h
  18135. (setUploadLimit): New function.
  18136. (setUploadLimitCheck): New function.
  18137. (uploadLimit): New variable.
  18138. (uploadLimitCheck): New variable.
  18139. To contact a tracker regularly:
  18140. * src/TrackerWatcherCommand.h (interval): New variable.
  18141. (checkPoint): New variable.
  18142. (TrackerWatcherCommand): Added interval argument.
  18143. * src/TrackerWatcherCommand.cc
  18144. (TrackerWatcherCommand): Initialized checkPoint.
  18145. (execute): Now a tracker is contacted in every specified period.
  18146. If peer list is not needed, send request with numwant=0.
  18147. * src/TrackerUpdateCommand.cc
  18148. (execute): Updated log messages.
  18149. * src/DownloadEngine.cc
  18150. (~DownloadEngine): Removed two asserts.
  18151. (waitData): Uncommented wfds. May be a bug fix.
  18152. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18153. * src/PeerInteractionCommand.h
  18154. (checkInactiveConnection): Removed.
  18155. * src/PeerInteractionCommand.cc
  18156. (executeInternal): Removed following function calls:
  18157. detectMessageFlooding(), checkLongTimePeerChoking and
  18158. checkInactiveConnection().
  18159. (checkInactiveConnection): Removed.
  18160. (detectMessageFlooding): Removed function call to
  18161. checkInactiveConnection().
  18162. * src/PeerMessageUtil.h
  18163. (createChokeMessage): New function. Overload.
  18164. (createUnchokeMessage): New function. Overload.
  18165. (createInterestedMessage): New function. Overload.
  18166. (createNotInterestedMessage): New function. Overload.
  18167. (createHaveMessage): New function. Overload.
  18168. (createBitfieldMessage): New function. Overload.
  18169. (createRequestMessage): New function. Overload.
  18170. (createCancelMessage): New function. Overload.
  18171. (createPieceMessage): New function. Overload.
  18172. (createKeepAliveMessage): New function. Overload.
  18173. * src/PeerMessageUtil.cc
  18174. (createChokeMessage): New function. Overload.
  18175. (createUnchokeMessage): New function. Overload.
  18176. (createInterestedMessage): New function. Overload.
  18177. (createNotInterestedMessage): New function. Overload.
  18178. (createHaveMessage): New function. Overload.
  18179. (createBitfieldMessage): New function. Overload.
  18180. (createRequestMessage): New function. Overload.
  18181. (createCancelMessage): New function. Overload.
  18182. (createPieceMessage): New function. Overload.
  18183. (createKeepAliveMessage): New function. Overload.
  18184. * src/SendMessageQueue.cc
  18185. (createRequestMessage): Use PeerMessageUtil.
  18186. (createCancelMessage): Use PeerMessageUtil.
  18187. (createPieceMessage): Use PeerMessageUtil.
  18188. (createHaveMessage): Use PeerMessageUtil.
  18189. (createChokeMessage): Use PeerMessageUtil.
  18190. (createUnchokeMessage): Use PeerMessageUtil.
  18191. (createInterestedMessage): Use PeerMessageUtil.
  18192. (createNotInterestedMessage): Use PeerMessageUtil.
  18193. (createBitfieldMessage): Use PeerMessageUtil.
  18194. (createKeepAliveMessage): Use PeerMessageUtil.
  18195. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  18196. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  18197. * src/PeerInteraction.h: New class.
  18198. * src/PeerInteraction.cc: New class.
  18199. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18200. Each peer message has its own class.
  18201. * src/PendingMessages.h: Removed.
  18202. * src/PendingMessages.cc: Removed. The sending process was moved to
  18203. each message class.
  18204. * src/RequestSlotMan.h: Removed.
  18205. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  18206. SendMessageQueue.
  18207. * src/RequestMessage.h: New class.
  18208. * src/RequestMessage.cc: New class.
  18209. * src/CancelMessage.h: New class.
  18210. * src/CancelMessage.cc: New class.
  18211. * src/BitfieldMessage.h: New class.
  18212. * src/BitfieldMessage.cc: New class.
  18213. * src/ChokeMessage.h: New class.
  18214. * src/ChokeMessage.cc: New class.
  18215. * src/KeepAliveMessage.h: New class.
  18216. * src/KeepAliveMessage.cc: New class.
  18217. * src/PortMessage.h: New class.
  18218. * src/UnchokeMessage.h: New class.
  18219. * src/UnchokeMessage.cc: New class.
  18220. * src/PieceMessage.h: New class.
  18221. * src/PieceMessage.cc: New class.
  18222. * src/HaveMessage.h: New class.
  18223. * src/HaveMessage.cc: New class.
  18224. * src/BitfieldMessage.h: New class.
  18225. * src/BitfieldMessage.cc: New class.
  18226. * src/NotInterestedMessage.h: New class.
  18227. * src/NotInterestedMessage.cc: New class.
  18228. * src/InterestedMessage.h: New class.
  18229. * src/InterestedMessage.cc: New class.
  18230. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  18231. (getSendMessageQueue): New function.
  18232. (setSendMessageQueue): New function.
  18233. * src/HandshakeMessage.cc: New class.
  18234. * src/PeerConnection.h (receiveMessage): Changed return value and
  18235. arguments.
  18236. (receiveHandshake): Changed return value and arguments.
  18237. * src/PeerConnection.cc (receiveMessage): Do not create message class
  18238. here.
  18239. (receiveHandshake): Do not create handshake class here.
  18240. * src/PeerInteractionCommand.h (peerConnection): Removed.
  18241. (piece): Removed.
  18242. (syncPiece): Removed.
  18243. (sendInterest): Removed.
  18244. (sendMessages): Removed.
  18245. (createRequestPendingMessage): Removed.
  18246. (checkPieceHash): Removed.
  18247. (erasePieceOnDisk): Removed.
  18248. (getNewPieceAndSendInterest): Removed.
  18249. (onGotNewPice): Removed.
  18250. (onGotWrongPiece): Removed.
  18251. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  18252. Removed peerConnection, piece.
  18253. (~PeerInteractionCommand): Removed peerConnection.
  18254. (executeInternal): Use sendMessageQueue instead of peerConnection.
  18255. (syncPiece): Moved to SendMessageQueue.
  18256. (decideChoking): Removed PendingMessage.
  18257. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  18258. The action after receiving peer message was moved to each message
  18259. class.
  18260. (onGotNewPice): Moved to SendMessageQueue.
  18261. (onGotWrongPiece): Moved to SendMessageQueue.
  18262. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  18263. (sendInterest): Moved to SendMessageQueue.
  18264. (createRequestPendingMessage): Removed.
  18265. (sendMessages): Moved to SendMessageQueue.
  18266. (onAbort): Use SendMessageQueue::abortPiece()
  18267. (keepAlive): Use sendMessageQueue instead of peerConnection.
  18268. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  18269. (checkPieceHash): Moved to SendMessageQueue.
  18270. (erasePieceOnDisk): Moved to SendMessageQueue.
  18271. * src/PeerMessageUtil.h
  18272. (createBitfieldMessage): Removed.
  18273. (createHaveMessage): Changed return value and arguments.
  18274. (createBitfieldMessage): Changed return value and arguments.
  18275. (createRequestCancelMessage): Removed.
  18276. (createPieceMessage): Changed return value and arguments.
  18277. (getShortIntParam): New function.
  18278. (checkIndex): Changed arguments.
  18279. (checkBegin): Changed arguments.
  18280. (checkLength): Changed arguments.
  18281. (checkPieceOffset): Removed.
  18282. (checkRange): New function.
  18283. (checkBitfield): Changed arguments.
  18284. (createPeerMessage): Removed.
  18285. (checkIntegrity): Removed.
  18286. (createHandshakeMessage): Changed arguments.
  18287. (createChokeMessage): New function.
  18288. (createUnchokeMessage): New function.
  18289. (createInterestedMessage): New function.
  18290. (createNotInterestedMessage): New function.
  18291. (createRequestMessage): New function.
  18292. (createCancelMessage): New function.
  18293. (createPortMessage): New function.
  18294. * src/PeerMessageUtil.cc
  18295. (createBitfieldMessage): Removed.
  18296. (createHaveMessage): Changed return value and arguments.
  18297. (createBitfieldMessage): Changed return value and arguments.
  18298. (createRequestCancelMessage): Removed.
  18299. (createPieceMessage): Changed return value and arguments.
  18300. (getShortIntParam): New function.
  18301. (checkIndex): Changed arguments.
  18302. (checkBegin): Changed arguments.
  18303. (checkLength): Changed arguments.
  18304. (checkPieceOffset): Removed.
  18305. (checkRange): New function.
  18306. (checkBitfield): Changed arguments.
  18307. (createPeerMessage): Removed.
  18308. (checkIntegrity): Removed.
  18309. (createHandshakeMessage): Changed arguments.
  18310. (createChokeMessage): New function.
  18311. (createUnchokeMessage): New function.
  18312. (createInterestedMessage): New function.
  18313. (createNotInterestedMessage): New function.
  18314. (createRequestMessage): New function.
  18315. (createCancelMessage): New function.
  18316. (createPortMessage): New function.
  18317. * src/PeerMessage.h
  18318. (id): Removed.
  18319. (index): Removed.
  18320. (begin): Removed.
  18321. (length): Removed.
  18322. (bitfield): Removed.
  18323. (bitfieldLength): Removed.
  18324. (block): Removed.
  18325. (blockLength): Removed.
  18326. (inProgress): New variable.
  18327. (cuid): New variable.
  18328. (peer): New variable.
  18329. (sendMessageQueue): New variable.
  18330. (logger): New variable.
  18331. (setBitfield): Removed.
  18332. (getBitfield): Removed.
  18333. (setBlock): Removed.
  18334. (getBlock): Removed.
  18335. (getBitfieldLength): Removed.
  18336. (getBlockLength): Removed.
  18337. (isInProgress): New function.
  18338. (toString): Made pure virtual.
  18339. (check): New function.
  18340. (send): New function.
  18341. (receivedAction): New function.
  18342. (getId): Made pure virtual.
  18343. (setId): Removed.
  18344. (getIndex): Removed.
  18345. (setIndex): Removed.
  18346. (getBegin): Removed.
  18347. (setBegin): Removed.
  18348. (getLength): Removed.
  18349. (setLength): Removed.
  18350. (getCuid): New function.
  18351. (setCuid): New function.
  18352. (getPeer): New function.
  18353. (setPeer): New function.
  18354. (getSendMessageQueue): New function.
  18355. (setSendMessageQueue): New function.
  18356. (ID): Removed.
  18357. * src/PeerMessage.cc
  18358. (setBitfield): Removed.
  18359. (setBlock): Removed.
  18360. (toString): Removed.
  18361. * src/TorrentMan.h
  18362. (getPieceLength): New function.
  18363. (getPieceLength): New function.
  18364. * src/SendMessageQueue.h
  18365. (REQUEST_TIME_OUT): New definition.
  18366. (RequestSlots): New definition.
  18367. (MessageQueue): New definition.
  18368. (requestSlotMan): Removed.
  18369. (pendingMessages): Removed.
  18370. (requestSlots): New variable.
  18371. (messageQueue): New variable.
  18372. (torrentMan): New variable.
  18373. (peerConnection): New variable.
  18374. (peer): New variable.
  18375. (piece): New variable.
  18376. (getNewPieceAndSendInterest): New function.
  18377. (createPeerMessage): New function.
  18378. (createHandshakeMessage): New function.
  18379. (send): Made private.
  18380. (setPeerMessageCommonProperty): New function.
  18381. (deleteAllRequestSlot): New function.
  18382. (deleteRequestMessageInQueue): New function.
  18383. (cancelAllRequest): Made private.
  18384. (cancelAllRequest): Made private.
  18385. (countRequestSlot): Made private.
  18386. (addPendingMessage): Removed.
  18387. (deletePendingPieceMessage): Removed.
  18388. (deletePendingRequestMessage): Removed.
  18389. (addMessage): New function.
  18390. (deletePieceMessageInQueue): New function.
  18391. (deleteTimeoutRequestSlot): Changed argument.
  18392. (deleteCompletedRequestSlot): Changed argument.
  18393. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  18394. (getCorrespondingRequestSlot): New function.
  18395. (countPendingMessage): Removed.
  18396. (countMessageInQueue): New function.
  18397. (getTorrentMan): New function.
  18398. (getPeerConnection): New function.
  18399. (hasDownloadPiece): New function.
  18400. (getDownloadPiece): New function.
  18401. (setDownloadPiece): New function.
  18402. (syncPiece): New function.
  18403. (sendMessages): New function.
  18404. (sendNow): New function.
  18405. (trySendNow): New function.
  18406. (abortPiece): New function.
  18407. (sendHandshake): New function.
  18408. (receiveMessage): New function.
  18409. (receiveHandshake): New function.
  18410. (createRequestMessage): New function.
  18411. (createCancelMessage): New function.
  18412. (createPieceMessage): New function.
  18413. (createHaveMessage): New function.
  18414. (createChokeMessage): New function.
  18415. (createUnchokeMessage): New function.
  18416. (createInterestedMessage): New function.
  18417. (createNotInterestedMessage): New function.
  18418. (createBitfieldMessage): New function.
  18419. (createKeepAliveMessage): New function.
  18420. * src/SendMessageQueue.cc
  18421. (SendMessageQueue): Removed requestSlotMan.
  18422. Instantiated peerConnection here.
  18423. (~SendMessageQueue): Removed requestSlotMan.
  18424. Added deletion of peerConnection and the contents of messageQueue.
  18425. (send): Updated according to the change of messageQueue.
  18426. (addPendingMessage): Renamed to addMessage.
  18427. (addMessage): New function.
  18428. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  18429. (deletePieceMessageInQueue): New function.
  18430. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  18431. (deleteRequestMessageInQueue): New function.
  18432. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  18433. here.
  18434. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  18435. (...) was moved here.
  18436. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  18437. moved here.
  18438. (deleteCompletedRequestSlot):
  18439. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  18440. (getCorrespondingRequestSlot):
  18441. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  18442. And renamed to getCorrespondingRequestSlot, correcting a typo.
  18443. (countPendingMessage): Renamed to countMessageInQueue.
  18444. (countMessageInQueue): New function.
  18445. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  18446. (receiveHandshake): New function.
  18447. (createHandshakeMessage): New function.
  18448. (receiveMessage): New function.
  18449. (createPeerMessage): New function.
  18450. (syncPiece): New function.
  18451. (getNewPieceAndSendInterest): New function.
  18452. (sendMessages): New function.
  18453. (sendNow): New function.
  18454. (trySendNow): New function.
  18455. (sendHandshake): New function.
  18456. (abortPiece): New function.
  18457. (getDownloadPiece): New function.
  18458. (getPeerMessageCommonProperty): New function.
  18459. (createRequestMessage): New function.
  18460. (createCancelMessage): New function.
  18461. (createPieceMessage): New function.
  18462. (createHaveMessage): New function.
  18463. (createChokeMessage): New function.
  18464. (createUnchokeMessage): New function.
  18465. (createInterestedMessage): New function.
  18466. (createNotInterestedMessage): New function.
  18467. (createBitfieldMessage): New function.
  18468. (createKeepAliveMessage): New function.
  18469. To add simple Content-Disposition support:
  18470. * src/HttpResponseCommand.h (determinFilename): New function.
  18471. * src/HttpResponseCommand.cc (executeInternal):
  18472. Use determinFilename(headers) instead of req->getFile() when comparing
  18473. filename.
  18474. (determinFilename): New function.
  18475. (handleDefaultEncoding): Use determinFilename(headers) instead of
  18476. req->getFile().
  18477. (handleOtherEncoding): Use determinFilename(headers) instead of
  18478. req->getFile().
  18479. * src/Util.h (getContentDispositionFilename): New function.
  18480. * src/Util.cc (getContentDispositionFilename): New function.
  18481. * src/LogFactory.h (release): New function.
  18482. * src/LogFactory.cc (release): New function.
  18483. To fix a bug that causes out-of-bound exception when HTTP status
  18484. line is wrong:
  18485. * src/HttpConnection.cc (receiveResponse): Added a check for header
  18486. size.
  18487. * src/common.h (Deleter): New class.
  18488. * src/SegmentMan.cc
  18489. (~SegmentMan): Added deletion of splitter and diskWriter.
  18490. * src/DownloadEngine.h
  18491. (Commands): Use deque.
  18492. (clearQueue): New function.
  18493. * src/DownloadEngine.cc
  18494. (~DownloadEngine): Added deletion of segmentMan.
  18495. (cleanQueue): New function.
  18496. * src/TorrentDownloadEngine.h
  18497. (TorrentDownloadEngine): The implementation was moved to
  18498. TorrentDownloadEngine.cc.
  18499. (~TorrentDownloadEngine): The implementation was moved to
  18500. TorrentDownloadEngine.cc.
  18501. * src/TorrentDownloadEngine.cc
  18502. (~TorrentDownloadEngine): Added deletion of torrentMan.
  18503. * src/main.cc
  18504. (clearRequest): Removed.
  18505. (handler): Added deletion of e.
  18506. (torrentHandler): Added deletion of te.
  18507. (main): Do not share splitter.
  18508. Use Deleter instead of clearRequest.
  18509. Deletion of classes were updated.
  18510. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18511. * src/main.cc (main): Fixed typo.
  18512. * src/message.h: Fixed typo.
  18513. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  18514. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18515. To add --select-file command-line option:
  18516. * src/Util.cc
  18517. (unfoldRange): New function.
  18518. (getNum): New function.
  18519. (unfoldSubRange): New function
  18520. * src/main.cc
  18521. (showUsage): Added help message.
  18522. (main): Added --select-file command-line option. Updated the layout of
  18523. file listing.
  18524. * src/common.h
  18525. (Integers): New definition.
  18526. * src/SocketCore.cc
  18527. (writeData): Removed timeout argument.
  18528. (readData): Removed timeout argument.
  18529. (peekData): Removed timeout argument.
  18530. * src/Socket.cc
  18531. (writeData): Removed timeout argument.
  18532. (readData): Removed timeout argument.
  18533. (peekData): Removed timeout argument.
  18534. * Release 0.4.1
  18535. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18536. To deploy upload rate based choking algorithm:
  18537. * src/PeerInteractionCommand.cc
  18538. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  18539. peer currently used.
  18540. (decideChoking): Deleted the choke/unchoke decision algorithm when
  18541. download completes. Simplified.
  18542. (receiveMessage): Updated.
  18543. * src/TorrentMan.h
  18544. (activePeers): New variable.
  18545. (addActivePeer): New function.
  18546. (getActivePeers): New function.
  18547. (deleteActivePeer): New function.
  18548. * src/TorrentMan.cc
  18549. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  18550. * src/PeerAbstractCommand.cc
  18551. (onAbort): Use peer->resetStatus().
  18552. * src/main.cc
  18553. (PeerChokeCommand.h): Included.
  18554. (main): Added the instance of ChokingCommand to the command queue.
  18555. * src/Peer.h
  18556. (amChoking): Renamed from amChocking
  18557. (chokingRequired): New variable.
  18558. (optUnchoking): New variable.
  18559. (deltaUpload): New variable.
  18560. (deltaDownload): New variable.
  18561. (addDeltaUpload): New function.
  18562. (resetDeltaUpload): New function.
  18563. (addDeltaDownload): New function.
  18564. (resetDeltaDownload): New function.
  18565. (addPeerUpload): Added a call to addDeltaUpload.
  18566. (addPeerDownload): Added a call to addDeltaDownload.
  18567. * src/Peer.cc
  18568. (shouldBeChoking): Renamed from shouldChoke.
  18569. (resetStatus): New function.
  18570. * src/PeerChokeCommand.h: New class.
  18571. * src/PeerChokeCommand.cc: New class.
  18572. To add lazy upload speed limiter:
  18573. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  18574. statistics calculation to TorrentDownloadEngine.
  18575. * src/TorrentConsoleDownloadEngine.cc
  18576. (sendStatistics): Renamed from printStatistics.
  18577. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  18578. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  18579. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  18580. * src/TorrentDownloadEngine.h: Added the variables for statistics
  18581. calculation.
  18582. (sendStatistics): New function as pure virtual function.
  18583. (getUploadSpeed): New function.
  18584. * src/TorrentDownloadEngine.cc
  18585. (initStatistics): New function.
  18586. (calculateSpeed): New function.
  18587. (calculateStatistics): New function.
  18588. * src/SendMessageQueue.h
  18589. (uploadLength): New variable.
  18590. (send): Added an argument.
  18591. (setUploadLimit): New function.
  18592. (getUploadLimit): New function.
  18593. * src/SendMessageQueue.cc
  18594. (send): Added upload speed limiter.
  18595. * src/prefs.h
  18596. (PREF_UPLOAD_LIMIT): New definition.
  18597. * src/PeerInteractionCommand.cc
  18598. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  18599. * src/main.cc
  18600. (main): Added --upload-limit option
  18601. For bug fixes:
  18602. * src/main.cc
  18603. (showUsage): Corrected --listen-port help
  18604. Other changes:
  18605. * src/TorrentMan.cc
  18606. (getPeer): Return nullPeer if connection is grather than
  18607. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  18608. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18609. To add some useful information to the exception message:
  18610. * src/SocketCore.cc : Updated messages.
  18611. * src/SegmentMan.cc :
  18612. * src/TorrentMan.cc : Updated messages.
  18613. * src/MultiDiskWriter.cc : Updated messages.
  18614. * src/Util.cc : Updated messages.
  18615. * src/AbstractDiskWriter.cc : Updated messages.
  18616. * src/PreAllocationDiskWriter.cc : Updated messages.
  18617. * src/message.cc : Added new messages. Updated some messages.
  18618. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  18619. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  18620. Updated threshold from 30 to 15.
  18621. * src/AbstractDiskWriter.h (filename): New variable.
  18622. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  18623. (createFile): Assigned filename.
  18624. * src/main.cc: Updated the help message for http-auth-scheme.
  18625. * Release 0.4.0
  18626. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18627. To add TrackerUpdateCommand with which replaces
  18628. CompactTrackerResponseProcessor:
  18629. * src/TrackerWatcherCommand.h (req): Removed.
  18630. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  18631. if the number of peer connections are less than 30.
  18632. * src/ByteArrayDiskWriter.h (readData): Implemented.
  18633. * src/SegmentMan.h (diskWriter): New function.
  18634. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  18635. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  18636. (main): Use TrackerUpdateCommand.
  18637. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  18638. (req): New variable.
  18639. (setTrackerResponseProcessor): Removed.
  18640. (getTrackerResponseProcessor): Removed.
  18641. (processTrackerResponse): Removed.
  18642. * src/DownloadEngine.h (diskWriter): Removed.
  18643. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  18644. to torrentMan->processTrackerResponse().
  18645. To add Util::expandBuffer:
  18646. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  18647. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  18648. * src/Util.h (expandBuffer): New function.
  18649. To fix the bug that causes segmentation fault when "-l ." is specified
  18650. in command-line option:
  18651. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  18652. (openFile): New function.
  18653. (closeFile): New function.
  18654. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  18655. (~SimpleLogger): Call closeFile();
  18656. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  18657. * src/main.cc (main): Added a check to see logger is configured
  18658. properly.
  18659. To enable HTTP authentication without specifying "--http-auth-scheme"
  18660. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  18661. * src/HttpConnection.cc (createRequest): Send Authorization header
  18662. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  18663. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  18664. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  18665. * src/Peer.cc (shouldChoke): Updated algorithm.
  18666. * src/message.h (EX_AUTH_FAILED): New definition.
  18667. (EX_FILE_OPEN): New definition.
  18668. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  18669. if status == 401.
  18670. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  18671. if req->isTorrent == true.
  18672. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  18673. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  18674. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  18675. (createFile): Updated message.
  18676. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18677. To add a readout of estimated remaining time to normal HTTP/FTP
  18678. downloads:
  18679. * src/ConsoleDownloadEngine.h (startup): New variable.
  18680. (startupLength): New variable.
  18681. (isStartupLengthSet): New variable.
  18682. (avgSpeed): New variable.
  18683. (eta): New variable.
  18684. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  18685. estimated remaining time.
  18686. (initStatistics): Initialized newly added variables.
  18687. (calculateStatistics): Calculate average speed and estimated remaining
  18688. time.
  18689. To decouple TorrentDownloadEngine from HttpResponseCommand:
  18690. * src/TrackerDownloadCommand.h: Removed.
  18691. * src/TrackerDownloadCommand.cc: Removed.
  18692. * src/TrackerInitCommand.h: Removed.
  18693. * src/TrackerInitCommand.cc: Removed.
  18694. * src/TrackerUpdateCommand.h: Removed.
  18695. * src/TrackerUpdateCommand.cc: Removed.
  18696. * src/TrackerWatcherCommand.cc (execute): The construction of request
  18697. url written in TrackerInitCommand was moved here. Do not create
  18698. tracker request command if torrentMan->trackers != 0.
  18699. * src/CompactTrackerResponseProcessor.h: New class.
  18700. * src/CompactTrackerResponseProcessor.cc: New class.
  18701. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  18702. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  18703. Decoupled TorrentDownloadEngine from this.
  18704. * src/SegmentMan.h (init): New function.
  18705. * src/SegmentMan.cc (init): New function.
  18706. * src/TorrentMan.h (responseProcessor): New variable.
  18707. (trackers): New variable.
  18708. (setTrackerResponseProcessor): New function.
  18709. (getTrackerResponseProcessor): New function.
  18710. (processTrackerResponse): New function.
  18711. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  18712. (processTrackerResponse): New function.
  18713. * src/main.cc (main): Use ByteArrayDiskWriter and
  18714. CompactTrackerResponseProcessor.
  18715. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  18716. processTrackerResponse().
  18717. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  18718. readout.
  18719. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  18720. which indicates download has completed.
  18721. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  18722. (closeFile): fd >= 0, not fd > 0
  18723. * src/main.cc (main): Added short cut for show-files.
  18724. Added short cut for torrent-file.
  18725. Added new command-line option listen-port.
  18726. Updated i18n messages.
  18727. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18728. To add LogFactory which creates singleton logger:
  18729. * src/LogFactory.h: New class.
  18730. * src/LogFactory.cc: New class.
  18731. * src/Command.h (logger): New variable.
  18732. (Constructor): Use LogFactory.
  18733. * src/AbstractCommand.cc: Use Command::logger
  18734. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  18735. Use LogFactory.
  18736. * src/SegmentSplitter.h : Made logger protected.
  18737. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  18738. * src/SegmentMan.cc (Constructor): Use LogFactory.
  18739. * src/DownloadEngine.h : Made logger protected.
  18740. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  18741. * src/PeerInteractionCommand.cc : Use Command::logger.
  18742. * src/HttpResponseCommand.cc : Use Command::logger.
  18743. * src/SegmentMan.h : Made logger private.
  18744. * src/TorrentMan.h : Made logger private.
  18745. * src/TorrentMan.cc : Use LogFactory.
  18746. * src/FtpNegotiateCommand.cc : Use Command::logger.
  18747. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  18748. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  18749. Use LogFactory.
  18750. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  18751. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  18752. Use LogFactory.
  18753. * src/DownloadCommand.cc : Use Command::logger.
  18754. * src/PeerAbstractCommand.cc : Use Command::logger.
  18755. * src/PeerListenCommand.cc : Use Command::logger.
  18756. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  18757. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  18758. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  18759. * src/TrackerWatcherCommand.cc : Use Command::logger.
  18760. * src/TrackerUpdateCommand.cc : Use Command::logger.
  18761. * src/TrackerDownloadCommand.cc : Use Command::logger.
  18762. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  18763. Use LogFactory.
  18764. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  18765. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  18766. Use LogFactory.
  18767. * src/main.cc (main): Use LogFactory.
  18768. * src/DiskAdaptor.h (logger): New variable.
  18769. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  18770. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  18771. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18772. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  18773. parameter to a tracker request.
  18774. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  18775. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  18776. * src/main.cc (setSignalHander): New function.
  18777. (main): Added a handler for SIGTERM.
  18778. (handler): Updated message.
  18779. (torrentHandler): Updated message.
  18780. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18781. * src/TorrentConsoleDownloadEngine.cc
  18782. (onPartialDownloadingCompletes): Renamed as
  18783. onSelectiveDownloadingCompletes.
  18784. (onSelectiveDownloadingCompletes): Updated message.
  18785. To add DiskAdaptor which abstract DiskWriter family:
  18786. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  18787. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  18788. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  18789. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  18790. MultiDiskAdaptor.h.
  18791. (readFileEntry): Changed its arguments.
  18792. (setup): setupDiskWriter is merged into this function.
  18793. (setupDiskWriter): Removed.
  18794. (setFileFilter): New function.
  18795. (readFileEntryFromMetaInfoFile): Updated according to the changes
  18796. made in readFileEntry.
  18797. (getFilePath): Removed.
  18798. (getTempFilePath): Removed.
  18799. (getSegmentFilePath): Updated due to the removal of getFilePath.
  18800. (fixFilename): Removed.
  18801. (copySingleFile): Removed.
  18802. (splitMultiFile): Removed.
  18803. (deleteTempFile): Removed.
  18804. (setFileEntriesToDownload): Removed.
  18805. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  18806. (isSelectiveDownloadingMode): New function.
  18807. (setAllMultiFileRequestedState): Removed.
  18808. (finishPartialDownloadingMode): Renamed as
  18809. finishSelectiveDownloadingMode.
  18810. (finishSelectiveDownloadingMode): New function.
  18811. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  18812. (getSelectedTotalLength): New function.
  18813. (onDownloadComplete): Use diskAdaptor.
  18814. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  18815. (Range): Removed.
  18816. (setMultiFileEntries): Renamed as setFileEntries.
  18817. (setFileEntries): New function.
  18818. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  18819. (pieceLength): New variable.
  18820. * src/main.cc (printDownloadCompeleteMessage): New function.
  18821. (torrentHandler): Use diskAdaptor instead of diskWriter.
  18822. (main): Renamed torrent-show-files to show-files.
  18823. Rewritten file contents listing.
  18824. * src/TorrentMan.h (FileEntry): Removed.
  18825. (multiFileTopDir): Removed.
  18826. (multiFileEntries): Removed.
  18827. (diskWriter): Removed.
  18828. (diskAdaptor): New variable.
  18829. * src/DefaultDiskWriter.h (totalLength): New variable.
  18830. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  18831. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  18832. diskWriter.
  18833. * src/TorrentConsoleDownloadEngine.h
  18834. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  18835. (partialTotalLength): Renamed as selectedTotalLength.
  18836. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  18837. openExistingFile, otherwise call initAndOpenFile.
  18838. (closeFile): fd > 0, not fd != 0.
  18839. * src/DirectDiskAdaptor.h: New class.
  18840. * src/DirectDiskAdaptor.cc: New class.
  18841. * src/MultiDiskAdaptor.h: New class.
  18842. * src/MultiDiskAdaptor.cc: New class.
  18843. * src/CopyDiskAdaptor.h: New class.
  18844. * src/CopyDiskAdaptor.cc: New class.
  18845. * src/DiskAdaptor.h: New class.
  18846. * src/DiskAdaptor.cc: New class.
  18847. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  18848. (PREF_SHOW_FILES): New definition.
  18849. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18850. To add the ability to download multi torrent into respective files
  18851. directly:
  18852. * src/DiskWriter.h (openFile): New function.
  18853. (seek): Removed.
  18854. * src/MultiDiskWriter.h: New class.
  18855. * src/MultiDiskWriter.cc: New class.
  18856. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  18857. protected.
  18858. (openFile): New function.
  18859. * src/AbstractDiskWriter.cc (openFile): New function.
  18860. * src/prefs.h (V_FALSE): New definition.
  18861. (PREF_DIRECT_FILE_MAPPING): New definition.
  18862. * src/TorrentMan.h (setupDiskWriter): New function.
  18863. (setAllMultiFileRequestedState): New function.
  18864. (onDownloadComplete): New function.
  18865. * src/TorrentMan.cc : Included MultiDiskWriter.h
  18866. (setupDiskWriter): New function.
  18867. (getFilePath): Updated.
  18868. (getTempFilePath): Updated.
  18869. (getSegmentFilePath): Updated.
  18870. (fixFilename): Updated.
  18871. (deleteTempFile): Updated.
  18872. (setAllMultiFileRequestedState): New function.
  18873. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  18874. (finishPartialDownloadingMode): Reset requested flags.
  18875. (onDownloadComplete): New function.
  18876. * src/main.cc: Added --direct-file-mapping option.
  18877. Use TorrentMan::setupDiskWriter().
  18878. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  18879. onDownloadComplete().
  18880. To fix ETA bug:
  18881. * src/Util.h (difftvsec): New function.
  18882. * src/Util.cc (difftvsec): New function.
  18883. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  18884. type of "elapsed" instead of long long int.
  18885. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  18886. The updates of statistics takes place every 1 seconds.
  18887. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  18888. (calculateSpeed): Changed its argument signature.
  18889. * src/PeerMessage.cc (toString): Fixed message.
  18890. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18891. To print ETA:
  18892. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  18893. completion handling when dealing with
  18894. TorrentMan::isPartialDownloadingMode() == true.
  18895. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  18896. New function.
  18897. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  18898. (sessionDownloadLength): New variable.
  18899. (avgSpeed): New variable.
  18900. (eta): New variable.
  18901. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  18902. new variables: eta, avgSpeed, startup.
  18903. (calculateSpeed): Calculate average speed and ETA.
  18904. (printStatistics): Added ETA.
  18905. * src/Util.h (secfmt): New function.
  18906. * src/Util.cc (secfmt): New function.
  18907. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18908. To detect "keep alive" flooding:
  18909. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  18910. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  18911. variable: keepAliveCount.
  18912. (detectMessageFlooding): Added "keep alive" flooding detection.
  18913. (receiveMessage): Increase keepAliveCount when "keep alive" message
  18914. received.
  18915. To add the ability to download only specified files in multi-file
  18916. torrent:
  18917. * src/BitfieldMan.h (filterBitfield): New variable.
  18918. (filterEnabled): New variable.
  18919. (setFilterBit): New function.
  18920. (enableFilter): New function.
  18921. (disableFilter): New function.
  18922. (isFilterEnabled): New function.
  18923. (getFilteredTotalLength): New function.
  18924. (getCompletedLength): New function.
  18925. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  18926. filterBitfield, filterEnabled.
  18927. (CopyConstructor): Added filterBitfield and filterEnabled.
  18928. (operator==): Added filterBitfield and filterEnabled.
  18929. (Destructor): Added filterBitfield.
  18930. (getMissingIndex): Use filterBitfield.
  18931. (getMissingUnusedIndex): Use filterBitfield.
  18932. (getFirstMissingUnusedIndex): Use filterBitfield.
  18933. (getFirstMissingUnusedIndex): Use filterBitfield.
  18934. (getAllMissingIndexes): Use filterBitfield.
  18935. (countMissingBlock): Use filterBitfield.
  18936. (countBlock): Use filterBitfield.
  18937. (setBitInternal): Added new argument on.
  18938. (setUseBit): Use setBitInternal.
  18939. (unsetUseBit): Use setBitInternal.
  18940. (setBit): Use setBitInternal.
  18941. (unsetBit): Use setBitInternal.
  18942. (isAllBitSet): Use filterBitfield.
  18943. (setFilterBit): New function.
  18944. (addFilter): New function.
  18945. (enableFilter): New function.
  18946. (disableFilter): New function.
  18947. (clearFilter): New function.
  18948. (isFilterEnabled): New function.
  18949. (getFilteredTotalLength): New function.
  18950. (getCompletedLength): New function.
  18951. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  18952. Initalized newly added variables.
  18953. [FileEntry](offset): New variable.
  18954. [FileEntry](extracted): New variable.
  18955. [FileEntry](requested): New variable.
  18956. (readFileEntry): New function.
  18957. (option): New variable.
  18958. (splitMultiFile): Removed const qualifier.
  18959. (fixFilename): Removed const qualifier.
  18960. (readFileEntryFromMetaInfoFile): New function.
  18961. (finishPartialDownloadingMode): New function.
  18962. (isPartialDownloadingMode): New function.
  18963. (setFileEntriesToDownload): New function.
  18964. (getCompletedLength): New function.
  18965. (getPartialTotalLength): New function.
  18966. * src/TorrentMan.cc (readFileEntry): New function.
  18967. (setup): Use readFileEntry. If no-preallocation option is specified,
  18968. use DefaultDiskWriter.
  18969. (readFileEntryFromMetaInfoFile): New function.
  18970. (fixFilename): Removed const qualifier.
  18971. (splitMultiFile): Removed const qualifier.
  18972. (setFileEntriesToDownload): New function.
  18973. (isPartialDownloadingMode): New function.
  18974. (finishPartialDownloadingMode): New function.
  18975. (getCompletedLength): New function.
  18976. (getPartialTotalLength): New function.
  18977. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  18978. New variable.
  18979. (partialTotalLength): New variable.
  18980. (downloadLength): New variable.
  18981. (totalLength): New variable.
  18982. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  18983. Added log.
  18984. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  18985. partialTotalLength, downloadLength, totalLength.
  18986. (calculate): Calculate downloadLength and totalLength.
  18987. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  18988. * src/main.cc (addCommand): Changed argument signature.
  18989. (main): Added new variable: args. Added new option "torrent-show-files"
  18990. "no-preallocation". Usage is not updated yet.
  18991. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18992. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  18993. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18994. Attempt to add the ability to listing file entries in a .torrent file.
  18995. This feature is not yet complete.
  18996. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  18997. * src/TorrentMan.cc (getMultiFileEntries): New function.
  18998. (getName): New function.
  18999. * src/TorrentMan.h (getMultiFileEntries): New function.
  19000. (getName): New function.
  19001. * src/main.cc (main): Use above 2 funtion.
  19002. * Release 0.3.2
  19003. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19004. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  19005. (detectMessageFlooding): Updated threshold value.
  19006. (checkLongTimePeerChoking): Updated timeout value.
  19007. (getNewPieceAndSendInterest): Added debug log.
  19008. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  19009. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  19010. (getPeer): Updated.
  19011. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  19012. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  19013. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  19014. is localhost.
  19015. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  19016. * src/PendingMessage.cc (processMessage): Not to send piece message
  19017. if peer is not interested in the pieces localhost has.
  19018. * src/Peer.cc (shouldChoke): Updated.
  19019. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  19020. * src/Util.cc (isPowerOf): New function.
  19021. * src/Util.h (isPowerOf): New function.
  19022. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  19023. whether or not it is power of 2.
  19024. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19025. Added new class SendMessageQueue that includes PendingMessages and
  19026. RequestSlotMan.
  19027. * src/SendMessageQueue.h: New class.
  19028. * src/SendMessageQueue.cc: New class.
  19029. * src/PendingMessage.h: Added new member variable blockIndex and its
  19030. accessors.
  19031. (createRequestMessage): Updated.
  19032. * src/PendingMessage.cc (createRequestMessage): Updated.
  19033. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  19034. SendMessageQueue.
  19035. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  19036. (receiveMessage): Updated with SendMessageQueue.
  19037. (deletePendingPieceMessage): Removed.
  19038. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  19039. (sendInterest): Updated with SendMessageQueue.
  19040. (createRequestPendingMessage): Updated with SendMessageQueue.
  19041. (sendMessages): Updated with SendMessageQueue.
  19042. (onAbort): Updated with SendMessageQueue.
  19043. (keepAlive): Updated with SendMessageQueue.
  19044. (beforeSocketCheck): Updated SendMessageQueue.
  19045. * src/PeerInteractionCommand (sendMessages): Shuffle
  19046. missingBLockIndexes before using it.
  19047. Added its own timeout for peer connection.
  19048. * src/PeerAbstractCommand.h: Added member variable timeout and its
  19049. setter.
  19050. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  19051. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  19052. Added setTimeout() call.
  19053. (executeInternal): Added setTimeout() call.
  19054. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  19055. Added timeout.
  19056. (isTimeoutDetected): Updated.
  19057. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  19058. option.
  19059. Added *simple* message flooding checker.
  19060. * src/PeerInteractionCommand.cc (executeInternal):
  19061. Added detectMessageFlooding() call.
  19062. (detectMessageFlooding): New function.
  19063. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  19064. (beforeSocketCheck): Added detectMessageFlooding() call.
  19065. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  19066. chokeUnchokeCount, haveCount, detectMessageFlooding().
  19067. Removed deletePendingPieceMessage(), getRequestSlot(),
  19068. deleteRequestSlot(), deleteAllRequestSlot().
  19069. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  19070. Added checkLongTimePeerChoking() call.
  19071. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  19072. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  19073. if duplicate == false.
  19074. The parameter "uploaded" and "downloaded" in the tracker request are
  19075. the size since the client sent the "started" event to the tracker.
  19076. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  19077. uploaded size to preDownloadedSize, preUploadedSize respectively.
  19078. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  19079. getSessionDownloadedSize(), getSessionUploadedSize().
  19080. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  19081. getSessionUploadedSize() instead of getDownloadedSize(),
  19082. getUploadedSize().
  19083. * src/PendingMessage.cc (processMessage): Do not send request message
  19084. if the peer is choking the client.
  19085. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  19086. less than interval.
  19087. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19088. * configure.in: Added gnutls support. Added several CPP macros.
  19089. * m4/openssl.m4: Added.
  19090. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  19091. readData(), peekData(). Added gnutls support.
  19092. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  19093. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  19094. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  19095. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  19096. Instead, added a check for whether setup method has executed
  19097. successfully.
  19098. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  19099. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  19100. * src/Makefile.am: Updated.
  19101. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  19102. using whether OpenSSL or gcrypt, depending on the result of configure
  19103. script.
  19104. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  19105. messageDigest.h.
  19106. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  19107. * src/PeerListenCommand.cc: Added log about port binded successfully.
  19108. Fixed memory leak.
  19109. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  19110. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  19111. Removed instantiation of TrackerInitCommand. Instead,
  19112. TrackerWatcherCommand is instantiated and pushed to the command queue.
  19113. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  19114. ENABLE_SSL.
  19115. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  19116. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  19117. If a piece is already acquired by another command, delete the request
  19118. slots for the piece.
  19119. * src/TrackerUpdateCommand.cc (execute):
  19120. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  19121. Added a check whether peer list is null.
  19122. Fixed the bug that causes sending completed event to the tracker
  19123. several times.
  19124. * src/TrackerInitCommand.cc (execute):
  19125. Fixed the bug that causes sending completed event to the tracker
  19126. several times.
  19127. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  19128. by using messageDigest.h.
  19129. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19130. * PeerConnection.cc: Replaced log message "keep-alive" with
  19131. "keep alive".
  19132. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  19133. localhost long time.
  19134. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  19135. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  19136. at most 100 failure entry from the list. If with duplicate = false,
  19137. MAX_PEER_LIST is not checked.
  19138. * PeerListenCommand.cc: Fixed the argument order of log message.
  19139. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19140. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  19141. Added warn().
  19142. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  19143. Implemented warn().
  19144. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  19145. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19146. * Request.h: Added AFTER_COMPLETED event.
  19147. * TorrentDownloadEngine.cc: Prints "Download complete" message
  19148. instead of downloaded size and progress(%) after download completes.
  19149. * PeerInteractionCommand.cc: After download completes, sends unchoke
  19150. message to the peer if it is interested in what localhost has
  19151. downloaded.
  19152. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  19153. destination instead of just renaming it.
  19154. * TorrentMan.cc: Added deleteTempFile().
  19155. * PeerAbstractCommand.cc: do not stop execution after download
  19156. completes. This makes localhost a seeder.
  19157. * Util.{h,cc}: Added fileCopy().
  19158. * PeerListenCommand.cc: do not stop execution after download completes.
  19159. This makes localhost a seeder.
  19160. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  19161. Added TorrentMan::deleteTempFile() to torrentHandler.
  19162. Initialized the variable dir as ".".
  19163. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  19164. Deleted renameSingleFile().
  19165. Added copySingleFile(), deleteTempFile().
  19166. * DownloadEngine.h: Added virtual function afterEachIteration().
  19167. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  19168. in onEndOfRun() to afterEachIteration().
  19169. In onEndOfRun(), changed if condition to check whether filenameFixed is
  19170. true.
  19171. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  19172. In rangedFileCopy(), added try-catch block to properly close file
  19173. descriptors.
  19174. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  19175. Added afterEachIteration(), isFilenameFixed().
  19176. * Peer.cc: Changed choking strategy.
  19177. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  19178. * TrackerInitCommand.cc: Send completed event only once.
  19179. * DownloadEngine.cc: Added a call to afterEachIteration().
  19180. * TrackerUpdateCommand.cc: Do not stop execution after download
  19181. completes.
  19182. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  19183. connect the peers at most MAX_PEER_UPDATE when a peer list is
  19184. received from a tracker.
  19185. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  19186. Decreased the number of failure peers to delete to 0(just comment out
  19187. the line).
  19188. * Release 0.3.1
  19189. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19190. * PeerInteractionCommand.cc: added a call to
  19191. TorrentMan::unadvertisePiece in Destructor.
  19192. * PeerInteractionCommand.cc: make have message sent immediately
  19193. if the size of pending message queue is zero.
  19194. * TorrentMan.cc: set the maximum size of peer list to 250.
  19195. * TorrentMan.h: changed the container type of Peers and UsedPieces
  19196. to deque.
  19197. * Util.cc: fixed rangedFileCopy.
  19198. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  19199. to Constructor. Also, moved digest cleanup to Destructor.
  19200. * MetaFileUtil.cc: fixed memory leak
  19201. * replaced std::vector with std::deque.
  19202. * AbstractCommand.cc: casted timeout value to long long int.
  19203. * ChunkedEncoding.cc: fixed memory leak.
  19204. * PeerInteractionCommand.cc: casted timeout value to long long int.
  19205. * SleepCommand.cc: casted timeout value to long long int.
  19206. * Data.cc: fixed memory leak.
  19207. * Data.cc: fixed toLLInt().
  19208. * BitfieldMan.cc: fixed memory leak.
  19209. * TorrentMan.cc: initialized storeDir to ".".
  19210. * TorrentMan.cc: fixed memory leak.
  19211. * TorrentMan.cc: corrected file paths of splitted files.
  19212. * PeerAbstractCommand.cc: casted timeout to long long int.
  19213. * main.cc: added delete(req) and delete(te->diskWriter).
  19214. * RequestSlot.cc: casted timeout value to long long int.
  19215. * Request.cc: fixed memory leak.
  19216. * PendingMessage.cc: make HAVE messages sent only when peer does not
  19217. have the piece.
  19218. * Peer.{h,cc}: added hasPiece(int index).
  19219. * main.cc: corrected addCommand.
  19220. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19221. * BitTorrent protocol support added.
  19222. * Release 0.3.0
  19223. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19224. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  19225. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19226. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  19227. decoding did not work properly.
  19228. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19229. * DownloadEngine.h: included sys/time.h
  19230. * DownloadEngine.cc: remove sys/time.h
  19231. * Makefile.am (SUBDIRS): Add intl.
  19232. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  19233. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19234. * main.cc: correct help message for --http-auth-scheme.
  19235. * main.cc: changed e-mail address for bug reports.
  19236. * ja.po: added japanese translation.
  19237. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19238. * SimpleLogger.cc: flush log file instead of stdout.
  19239. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19240. * main.cc: Fixed command-line option: max-tries
  19241. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  19242. does not equal to seg.sp.
  19243. * DownloadCommand.cc: If EOF is got from the server and the total size
  19244. of file is not zero, then throw DlRetryEx.
  19245. * main.cc: Set the minium value of min-segment-size to 1024.
  19246. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  19247. fails because of a regression since 0.2.0 release.
  19248. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19249. * HttpConnection.cc:
  19250. * common.h: defined the user agent name as macro
  19251. * DownloadEngine.{h, cc}:
  19252. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  19253. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  19254. * main.cc: Download complete/abort message is now generated by main.
  19255. * Makefile.am (SUBDIRS): Add m4.
  19256. (ACLOCAL_AMFLAGS): New variable.
  19257. (EXTRA_DIST): New variable.
  19258. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  19259. * gettext: added gettext functionality
  19260. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19261. * AbstractCommand.cc:
  19262. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  19263. unregister its cuid from SegmentMan.
  19264. * DownloadEngine.cc: .aria2 file was written when a downloading
  19265. failed with errors.
  19266. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  19267. Added "User-Agent" header to CONNECT proxy request.
  19268. Fixed "Proxy-Authorization" header. Now proxy authorization works
  19269. properly.
  19270. * Logger.h:
  19271. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  19272. * ChunkedEncoding.cc: Added #include directive for strings.h
  19273. * Release 0.2.1
  19274. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19275. * Util.{h,cc}: added startsWith().
  19276. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  19277. Util::endsWith().
  19278. * SocketCore.cc: struct addrinfo is now zero-initialized.
  19279. * common.h: added #include directive of limit.h.
  19280. * DownloadEngine.cc: added #include directive of sys/time.h and
  19281. algorithm.
  19282. * Exception.h: added #include directive of stdio.h.
  19283. * AbstractCommand.h: added #include directive of sys/time.h.
  19284. * DownloadCommand.h: added #include directive of sys/time.h.
  19285. * *.h: added #include directive of common.h to all base classes.
  19286. subclasses' one was removed.
  19287. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  19288. does not define these macros.
  19289. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19290. * Release 0.2.0
  19291. * main.cc:
  19292. * HttpInitiateConnectionCommand.{h,cc}:
  19293. * prefs.h:
  19294. * HttpConnection.{h,cc}: added --http-proxy-method option.
  19295. We can now use GET command in http proxy.
  19296. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19297. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  19298. that splits slowest segment of SegmentMan::commands vector.
  19299. This is the default split algorithm of aria2.
  19300. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  19301. that splits first segment of SegmentMan::commands vector.
  19302. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  19303. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  19304. * Segment.h:
  19305. * SegmentMan.cc: Added speed field to Segment.h
  19306. * main.cc: -s option now affects all URLs in command-line arguemtns.
  19307. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  19308. * message.h: Change file size related %d to %lld.
  19309. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19310. * FtpInitiateConnectionCommand.{h,cc}:
  19311. * FtpNegotiationCommand.{h,cc}:
  19312. * FtpDownloadCommand.{h,cc}:
  19313. * FtpConnection.{h,cc}: Added FTP support
  19314. * SimpleLogger.cc: Log message now includes time information.
  19315. * main.cc: The value of --http-auth-scheme option is chagned from
  19316. 'BASIC' to 'basic'
  19317. * main.cc: Added --timeout command-line option.
  19318. * main.cc: Added --min-segment-size command-line option.
  19319. * main.cc: Added --max-retries command-line option.
  19320. * prefs.h: option string constants are now defined in prefs.h
  19321. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19322. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  19323. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  19324. with version 0.1.0's one.
  19325. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19326. * configure.in: Added --enable-ssl option to configure script.
  19327. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  19328. cannot permit absoluteURI as Request-URI.
  19329. * HttpConnection.cc: Added Referer support.
  19330. * main.cc: Added referer command-line option.
  19331. * main.cc: Added rety-wait command-line option.
  19332. * Exception.h: Fixed formating bug in Exception::setMsg()
  19333. * SocketCore.{h,cc}:
  19334. * Socket.{h, cc}:
  19335. * Request.cc:
  19336. * InitiateConnectionCommandFactory.cc:
  19337. * HttpRequestCommand.cc: Added HTTPS support.
  19338. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  19339. for SocketCore.
  19340. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  19341. size is wrong
  19342. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  19343. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  19344. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  19345. * Release 0.1.0