ChangeLog 730 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639
  1. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Added aria2.shutdown and aria2.forceShutdown XML-RPC method.
  3. These methods, as their name implies, shutdown aria2. These
  4. methods are useful for Windows because it lacks signal mechanism.
  5. * doc/aria2c.1.txt
  6. * src/TimedHaltCommand.cc
  7. * src/XmlRpcMethodFactory.cc
  8. * src/XmlRpcMethodImpl.cc
  9. * src/XmlRpcMethodImpl.h
  10. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  11. Added forceHalt argument to TimedHaltCommand.
  12. Added requestForceHalt() to DownloadEngine.
  13. * src/DownloadEngine.cc
  14. * src/DownloadEngine.h
  15. * src/TimedHaltCommand.cc
  16. * src/TimedHaltCommand.h
  17. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  18. Possible fix for chunked encoding with Content-Length.
  19. * src/HttpResponseCommand.cc
  20. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  21. Don't send "Accept: default, gzip" by default. This is because
  22. some server responds with "Content-Encoding: gzip" for files which
  23. itself is gzipped file and aria2 inflates them. This is a problem
  24. if user don't want to inflate the file. Apparently this is server
  25. configuration error, but I cannot do anything about this. So turn
  26. this off. Added --http-accept-gzip option. If true is given to
  27. this option, aria2 sends 'Accept: deflate, gzip' request header
  28. and inflates response if remote server responds with
  29. 'Content-Encoding: gzip' or 'Content-Encoding: deflate'. This
  30. indicates we removed extension tgz hack in order not to inflate
  31. files with tgz extensions.
  32. * doc/aria2c.1.txt
  33. * src/HttpRequest.cc
  34. * src/HttpRequest.h
  35. * src/HttpRequestCommand.cc
  36. * src/HttpResponseCommand.cc
  37. * src/OptionHandlerFactory.cc
  38. * src/prefs.cc
  39. * src/prefs.h
  40. * src/usage_text.h
  41. * test/HttpRequestTest.cc
  42. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  43. Made aria2 not send
  44. "application/metalink4+xml,application/metalink+xml" in Accept
  45. header for web-seeding URIs and tracker request.
  46. * src/Metalink2RequestGroup.cc
  47. * src/TrackerWatcherCommand.cc
  48. * src/download_helper.cc
  49. * src/util.cc
  50. * src/util.h
  51. 2010-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  52. Added download_helper.{cc,h} to SRCS
  53. * src/Makefile.am
  54. * test/Makefile.am
  55. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  56. Added --dht-message-timeout option.
  57. * doc/aria2c.1.txt
  58. * src/DHTConstants.h
  59. * src/DHTMessageDispatcherImpl.cc
  60. * src/DHTMessageDispatcherImpl.h
  61. * src/DHTMessageTracker.cc
  62. * src/DHTMessageTracker.h
  63. * src/DHTReplaceNodeTask.h
  64. * src/DHTSetup.cc
  65. * src/DHTTaskFactoryImpl.cc
  66. * src/DHTTaskFactoryImpl.h
  67. * src/OptionHandlerFactory.cc
  68. * src/prefs.cc
  69. * src/prefs.h
  70. * src/usage_text.h
  71. * test/DHTMessageTrackerTest.cc
  72. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  73. Added --bt-tracker-connect-timeout and --bt-tracker-timeout
  74. option.
  75. * doc/aria2c.1.txt
  76. * src/OptionHandlerFactory.cc
  77. * src/TrackerWatcherCommand.cc
  78. * src/prefs.cc
  79. * src/prefs.h
  80. * src/usage_text.h
  81. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  82. Documented that specifying --seed-time=0 disables seeding after
  83. download completed.
  84. * doc/aria2c.1.txt
  85. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  86. Code cleanup
  87. * src/BtSetup.cc
  88. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  89. Drop connection if same Peer ID has been already seen.
  90. * src/DefaultBtInteractive.cc
  91. 2010-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  92. Fixed the bug that waiting download unintentionally starts when
  93. URIs are added to it using aria2.changeUri XML-RPC method. This
  94. also fixes the bug that causes segmentation fault when adding URIs
  95. to waiting download, which is a regression introduced by the
  96. previous change made to src/XmlRpcMethodImpl.cc
  97. * src/XmlRpcMethodImpl.cc
  98. 2010-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  99. Fixed compile error with g++-4.4 on FreeBSD.
  100. * src/util.h
  101. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  102. Fixed the bug that added URI using aria2.changeUri XML-RPC method
  103. is not used immediately if there is no URIs remaining before
  104. calling aria2.changeUri and the number of connection is less than
  105. the value in -s(or -C for Metalink downloads).
  106. * src/XmlRpcMethodImpl.cc
  107. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  108. Documented --always-resume and --max-resume-failure-tries option
  109. and exit status 8 in man page. Fixed typo.
  110. * doc/aria2c.1.txt
  111. * src/OptionHandlerFactory.cc
  112. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  113. Added --always-resume and --max-resume-failure-tries option. If
  114. --always-resume=false is given, when all given URIs does not
  115. support resume or aria2 encounters N URIs which does not support
  116. resume
  117. (N is the value specified using --max-resume-failure-tries
  118. option), aria2 download file from scratch. The default behavior
  119. is --always-resume=true, which means if all URIs do not support
  120. resume, download fails. I think this is OK because user normally
  121. don't like to see that partially downloaded file is
  122. overwritten(this is particularly true if file size is big). This
  123. option is useful when aria2 is used as download backend and
  124. graceful falling back to overwritten behavior is preferable.
  125. Added exit status value 8, which means download failed because
  126. server did not support resume.
  127. * src/AbstractCommand.cc
  128. * src/DefaultPieceStorage.cc
  129. * src/DownloadCommand.cc
  130. * src/DownloadResultCode.h
  131. * src/FileEntry.h
  132. * src/FtpNegotiationCommand.cc
  133. * src/HttpResponse.cc
  134. * src/HttpResponseCommand.cc
  135. * src/OptionHandlerFactory.cc
  136. * src/RequestGroup.cc
  137. * src/RequestGroup.h
  138. * src/SegmentMan.cc
  139. * src/SegmentMan.h
  140. * src/prefs.cc
  141. * src/prefs.h
  142. * src/usage_text.h
  143. * test/DefaultPieceStorageTest.cc
  144. * test/SegmentManTest.cc
  145. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  146. Added --remove-control-file option to -i list options.
  147. * doc/aria2c.1.txt
  148. * doc/xmlrpc/aria2rpc
  149. * src/download_helper.cc
  150. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  151. Added --remove-control-file option. This option removes control
  152. file(*.aria2 file) before download. Using with
  153. --allow-overwrite=true, download always starts from scratch. This
  154. will be useful for users behind proxy server which disables
  155. resume. For such proxy user, -C1 is also recommended for Metalink
  156. downloads to avoid establishing unnecessary connections.
  157. * doc/aria2c.1.txt
  158. * src/OptionHandlerFactory.cc
  159. * src/RequestGroup.cc
  160. * src/prefs.cc
  161. * src/prefs.h
  162. * src/usage_text.h
  163. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  164. Removed arrayLength. Defined A2_ARRAY_LEN as macro to calculate
  165. size of array at compile time.
  166. * src/array_fun.h
  167. * test/BitfieldManTest.cc
  168. * test/BtPortMessageTest.cc
  169. * test/DHTRoutingTableDeserializerTest.cc
  170. * test/DHTRoutingTableSerializerTest.cc
  171. * test/DownloadHelperTest.cc
  172. * test/LongestSequencePieceSelectorTest.cc
  173. * test/MultiDiskAdaptorTest.cc
  174. * test/OptionParserTest.cc
  175. * test/PriorityPieceSelectorTest.cc
  176. * test/array_funTest.cc
  177. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  178. Added vbegin() and vend() for fixed sized array.
  179. * src/DownloadHandlerConstants.cc
  180. * src/FeatureConfig.cc
  181. * src/OptionHandlerFactory.cc
  182. * src/ServerStat.cc
  183. * src/TimeA2.cc
  184. * src/XmlRpcMethod.cc
  185. * src/array_fun.h
  186. * src/download_helper.cc
  187. * src/messageDigest.cc
  188. * src/util.cc
  189. * test/BittorrentHelperTest.cc
  190. * test/DHTRoutingTableDeserializerTest.cc
  191. * test/DHTRoutingTableSerializerTest.cc
  192. * test/DefaultBtAnnounceTest.cc
  193. * test/DefaultBtProgressInfoFileTest.cc
  194. * test/DownloadContextTest.cc
  195. * test/DownloadHelperTest.cc
  196. * test/FeatureConfigTest.cc
  197. * test/FeedbackURISelectorTest.cc
  198. * test/HttpRequestTest.cc
  199. * test/InOrderURISelectorTest.cc
  200. * test/MSEHandshakeTest.cc
  201. * test/MultiDiskAdaptorTest.cc
  202. * test/MultiFileAllocationIteratorTest.cc
  203. * test/PriorityPieceSelectorTest.cc
  204. * test/RequestGroupManTest.cc
  205. * test/UtilTest.cc
  206. * test/XmlRpcMethodTest.cc
  207. * test/a2algoTest.cc
  208. * test/array_funTest.cc
  209. 2010-03-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  210. Simplified code using lastByteMask
  211. * src/BitfieldMan.cc
  212. * src/PieceStatMan.cc
  213. 2010-03-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  214. Rewritten lastByteMask
  215. * src/bitfield.h
  216. 2010-03-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  217. Redefined the maximum length of buffer used for HTTP header.
  218. * src/HttpHeaderProcessor.cc
  219. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  220. Code cleanup
  221. * src/SleepCommand.cc
  222. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  223. Do exact match if IP address is specified in --no-proxy.
  224. * src/AbstractCommand.cc
  225. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  226. Fixed the bug that socket is added to EventPoll object twice. This
  227. is because derived class FtpFinishDownloadCommand adds socket to
  228. EventPoll object while base class AbstractCommand does that
  229. already.
  230. * src/FtpFinishDownloadCommand.cc
  231. * src/FtpFinishDownloadCommand.h
  232. 2010-03-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  233. Defined gid_t as int64_t.
  234. * src/BtDependency.cc
  235. * src/BtStopDownloadCommand.cc
  236. * src/FtpNegotiationCommand.cc
  237. * src/HttpResponseCommand.cc
  238. * src/RequestGroup.cc
  239. * src/RequestGroup.h
  240. * src/RequestGroupMan.cc
  241. * src/TrackerWatcherCommand.cc
  242. * src/XmlRpcMethodImpl.cc
  243. * src/message.h
  244. * test/XmlRpcMethodTest.cc
  245. 2010-03-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  246. Defined cuid_t as int64_t. Removed texts containing "CUID#%D" from
  247. translatable texts because it is used in log and debugging
  248. purpose.
  249. * src/AbstractCommand.cc
  250. * src/ActivePeerConnectionCommand.cc
  251. * src/BtPieceMessage.cc
  252. * src/CUIDCounter.h
  253. * src/CheckIntegrityCommand.cc
  254. * src/CheckIntegrityDispatcherCommand.cc
  255. * src/Command.h
  256. * src/CreateRequestCommand.cc
  257. * src/DHTEntryPointNameResolveCommand.cc
  258. * src/DefaultBtInteractive.cc
  259. * src/DefaultBtMessageDispatcher.cc
  260. * src/DownloadCommand.cc
  261. * src/FileAllocationCommand.cc
  262. * src/FileAllocationDispatcherCommand.cc
  263. * src/FtpConnection.cc
  264. * src/FtpInitiateConnectionCommand.cc
  265. * src/FtpNegotiationCommand.cc
  266. * src/HttpConnection.cc
  267. * src/HttpInitiateConnectionCommand.cc
  268. * src/HttpListenCommand.cc
  269. * src/HttpResponse.cc
  270. * src/HttpServerBodyCommand.cc
  271. * src/HttpServerCommand.cc
  272. * src/HttpServerResponseCommand.cc
  273. * src/InitiateConnectionCommand.cc
  274. * src/InitiatorMSEHandshakeCommand.cc
  275. * src/MSEHandshake.cc
  276. * src/PeerAbstractCommand.cc
  277. * src/PeerConnection.cc
  278. * src/PeerInitiateConnectionCommand.cc
  279. * src/PeerInteractionCommand.cc
  280. * src/PeerListenCommand.cc
  281. * src/PeerReceiveHandshakeCommand.cc
  282. * src/SegmentMan.cc
  283. * src/SimpleBtMessage.cc
  284. * src/TrackerWatcherCommand.cc
  285. * src/message.h
  286. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  287. Use gid_t type for gid.
  288. * src/BtRegistry.cc
  289. * src/BtRegistry.h
  290. * src/DownloadResult.h
  291. * src/RequestGroup.cc
  292. * src/RequestGroup.h
  293. * src/RequestGroupMan.cc
  294. * src/RequestGroupMan.h
  295. * src/XmlRpcMethodImpl.cc
  296. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  297. Use cuid_t type for cuid.
  298. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  299. Added v key in DHT message. aria2's DHT version is independent of
  300. the package version and we defined it as 1 at the moment. It is
  301. defined as DHT_VERSION in src/DHTConstants.h. aria2's DHT version
  302. scheme is "A2"+2bytes DHT version number in network byte order.
  303. * src/DHTAbstractMessage.cc
  304. * src/DHTConstants.h
  305. * src/DHTMessage.cc
  306. * src/DHTMessage.h
  307. * src/DHTMessageFactoryImpl.cc
  308. * src/DHTQueryMessage.cc
  309. * src/DHTResponseMessage.cc
  310. * src/util.h
  311. * test/DHTAnnouncePeerMessageTest.cc
  312. * test/DHTAnnouncePeerReplyMessageTest.cc
  313. * test/DHTFindNodeMessageTest.cc
  314. * test/DHTFindNodeReplyMessageTest.cc
  315. * test/DHTGetPeersMessageTest.cc
  316. * test/DHTGetPeersReplyMessageTest.cc
  317. * test/DHTPingMessageTest.cc
  318. * test/DHTPingReplyMessageTest.cc
  319. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  320. Fixed the bug that value of numSeeders in aria2.tellStatus XML-RPC
  321. method response is integer, while manual says it is string. When
  322. peer's port is not listening port, set '0' to port in
  323. aria2.getPeers response.
  324. * src/XmlRpcMethodImpl.cc
  325. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  326. Lines starting "#" in -i list are treated as comments.
  327. Example:
  328. # this is comment
  329. http://example.org/file
  330. http://example.org/file2
  331. dir=/tmp
  332. # another comment
  333. out=myfile
  334. * doc/aria2c.1.txt
  335. * src/UriListParser.cc
  336. * test/filelist1.txt
  337. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  338. Accept IPv4 network address with CIDR block in --no-proxy option
  339. and no_proxy environment variable. Current implementation does
  340. not resolve hostname in URI to compare network address. So it is
  341. only effecive if URI has numeric IP addresses.
  342. * doc/aria2c.1.txt
  343. * src/AbstractCommand.cc
  344. * src/OptionHandlerFactory.cc
  345. * src/bitfield.h
  346. * src/usage_text.h
  347. * src/util.cc
  348. * src/util.h
  349. * test/UtilTest.cc
  350. * test/bitfieldTest.cc
  351. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  352. Reduced interval for metadatagetmode to quickly gather metadata.
  353. * src/BtSetup.cc
  354. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  355. Release 1.9.0
  356. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  357. Updated po templates.
  358. * po/aria2.pot
  359. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  360. Updated doc.
  361. * doc/aria2c.1.txt
  362. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  363. Documented about Metalink4 and LPD in README
  364. * RADME
  365. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  366. Few adjustment for timeouts in DHT. DHT message timeout is changed
  367. from 15 to 10. The interval of PeerLookup is first 5 seconds and
  368. it adds another 5 seconds in each retry.
  369. * src/DHTConstants.h
  370. * src/DHTGetPeersCommand.cc
  371. * src/DHTGetPeersCommand.h
  372. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  373. Changed log level from error to info for DHT message send error.
  374. * src/DHTMessageDispatcherImpl.cc
  375. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  376. Inspect all xt in magnet to find urn:btih.
  377. * src/bittorrent_helper.cc
  378. * test/BittorrentHelperTest.cc
  379. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  380. Use global option for DHTSetup.
  381. * src/DHTSetup.cc
  382. * src/DHTSetup.h
  383. * src/RequestGroup.cc
  384. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  385. Added bt-enable-lpt, reuse-uri
  386. and {http,https,ftp,all}-proxy-{user,passwd} options to -i list
  387. options.
  388. * doc/aria2c.1.txt
  389. * doc/xmlrpc/aria2rpc
  390. * src/download_helper.cc
  391. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  392. Use global option for PREF_LISTEN_PORT and PREF_BT_LPD_INTERFACE.
  393. * src/BtSetup.cc
  394. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  395. Resurrected --http-proxy-user and --http-proxy-passwd option.
  396. Added --https-proxy-user, --https-proxy-passwd, --ftp-proxy-user,
  397. --ftp-proxy-passwd, --all-proxy-user, --all-proxy-passwd option.
  398. * doc/aria2c.1.txt
  399. * src/OptionHandlerFactory.cc
  400. * src/OptionHandlerImpl.h
  401. * src/prefs.cc
  402. * src/prefs.h
  403. * src/usage_text.h
  404. * test/OptionHandlerTest.cc
  405. 2010-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  406. Updated Russian and Simplified Chinese translation. Thanks to all
  407. translators.
  408. * po/ru.po
  409. * po/zh_CN.po
  410. 2010-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  411. Updated po templates.
  412. * po/aria2.pot
  413. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  414. For LPD sockets, bind IN_ADDRANY because binding multicast address
  415. fails under Windows.
  416. * src/LpdMessageReceiver.cc
  417. * test/LpdMessageDispatcherTest.cc
  418. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  419. Fixed the bug that error message is not propagated to Exception.
  420. * src/SocketCore.cc
  421. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  422. Documented --bt-lpd-interface option in man page.
  423. * doc/aria2c.1.txt
  424. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  425. Bump up version number to 1.9.0
  426. * configure.ac
  427. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  428. Fixed the bug that FillRequestGroupCommand is not invoked when
  429. RequestGroupMan::createInitialCommand() creates no Command object.
  430. * src/FillRequestGroupCommand.cc
  431. * src/RequestGroupMan.cc
  432. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  433. Added debug logs.
  434. * src/FileEntry.cc
  435. * src/SegmentMan.cc
  436. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  437. Fixed unit test error with mingw32 build.
  438. * test/LpdMessageReceiverTest.cc
  439. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  440. Updated automake-1.11.1
  441. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  442. Fixed compile error and unit test error without openssl and
  443. gnutls.
  444. * src/MetalinkParserController.cc
  445. * test/MetalinkProcessorTest.cc
  446. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  447. Fixed unitest fails if openssl doesn't support sha-256.
  448. * src/MetalinkParserStateV4Impl.cc
  449. * test/MetalinkProcessorTest.cc
  450. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  451. Wait until message arrives(again)
  452. * test/LpdMessageReceiverTest.cc
  453. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  454. Added missing wallclock.h to SRCS.
  455. * src/Makefile.am
  456. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  457. Fixed compile error with --disable-bittorrent
  458. * test/Metalink2RequestGroupTest.cc
  459. * test/MetalinkParserControllerTest.cc
  460. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  461. Added --reuse-uri option. This option has existed quite long, but
  462. been hidden.
  463. * doc/aria2c.1.txt
  464. * src/OptionHandlerFactory.cc
  465. * src/usage_text.h
  466. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  467. Ignore filename parameter if it contains directory traversal
  468. directives.
  469. * src/util.cc
  470. * test/UtilTest.cc
  471. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  472. urldecode -> percentDecode
  473. * src/FtpConnection.cc
  474. * src/FtpNegotiationCommand.cc
  475. * src/HttpResponse.cc
  476. * src/Request.cc
  477. * src/magnet.cc
  478. * src/util.cc
  479. * src/util.h
  480. * test/UtilTest.cc
  481. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  482. urlencode -> percentEncode,
  483. torrentUrlencode -> torrentPercentEncode
  484. * src/BtHandshakeMessage.cc
  485. * src/BtHandshakeMessageValidator.h
  486. * src/DHTMessageFactoryImpl.cc
  487. * src/DefaultBtAnnounce.cc
  488. * src/HandshakeExtensionMessage.cc
  489. * src/HttpRequest.cc
  490. * src/XmlRpcMethodImpl.cc
  491. * src/bittorrent_helper.cc
  492. * src/util.cc
  493. * src/util.h
  494. * test/DHTAnnouncePeerMessageTest.cc
  495. * test/DHTGetPeersMessageTest.cc
  496. * test/DHTGetPeersReplyMessageTest.cc
  497. * test/UTPexExtensionMessageTest.cc
  498. * test/UtilTest.cc
  499. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  500. Fixed the bug that filename is percent encoded where it must be
  501. percent decoded in sendMdtm().
  502. * src/FtpConnection.cc
  503. * test/FtpConnectionTest.cc
  504. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  505. url -> uri in Request class.
  506. * src/AbstractCommand.cc
  507. * src/AdaptiveURISelector.cc
  508. * src/DefaultBtAnnounce.cc
  509. * src/FeedbackURISelector.cc
  510. * src/FileEntry.cc
  511. * src/FileEntry.h
  512. * src/HttpRequest.h
  513. * src/HttpResponse.cc
  514. * src/InitiateConnectionCommandFactory.cc
  515. * src/Metalink2RequestGroup.cc
  516. * src/OptionHandlerImpl.h
  517. * src/ProtocolDetector.cc
  518. * src/Request.cc
  519. * src/Request.h
  520. * src/XmlRpcMethodImpl.cc
  521. * test/AuthConfigFactoryTest.cc
  522. * test/FtpConnectionTest.cc
  523. * test/HttpRequestTest.cc
  524. * test/HttpResponseTest.cc
  525. * test/RequestTest.cc
  526. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  527. Added getServers XML-RPC method.
  528. * doc/aria2c.1.txt
  529. * src/FileEntry.h
  530. * src/XmlRpcMethodFactory.cc
  531. * src/XmlRpcMethodImpl.cc
  532. * src/XmlRpcMethodImpl.h
  533. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  534. Pool request when download finished.
  535. * src/DownloadCommand.cc
  536. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  537. Made 'fileIndex' parameter in aria2.changeUri XML-RPC method
  538. 1-based.
  539. * doc/aria2c.1.txt
  540. * src/XmlRpcMethodImpl.cc
  541. * test/XmlRpcMethodTest.cc
  542. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  543. Call RequestGroupMan::requestQueueCheck() when
  544. max-concurrent-downloads option is changed or new downloads are
  545. added/inserted into reserved list.
  546. * src/RequestGroupMan.cc
  547. * src/XmlRpcMethodImpl.cc
  548. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  549. Added aria2.forceRemove XML-RPC method.
  550. * doc/aria2c.1.txt
  551. * src/XmlRpcMethodFactory.cc
  552. * src/XmlRpcMethodImpl.cc
  553. * src/XmlRpcMethodImpl.h
  554. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  555. Added debug log.
  556. * src/AbstractCommand.cc
  557. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  558. Create CreateRequestCommand to the number of -s/-C when URIs are
  559. added by XML-RPC.
  560. * src/RequestGroup.cc
  561. * src/RequestGroup.h
  562. * src/XmlRpcMethodImpl.cc
  563. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  564. Added 'status' key to the response of getUri XML-RPC method.
  565. * doc/aria2c.1.txt
  566. * src/XmlRpcMethodImpl.cc
  567. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  568. Replaced Time::reset() call with assigning of global::wallclock.
  569. * src/BtLeecherStateChoke.cc
  570. * src/BtSeederStateChoke.cc
  571. * src/PeerSessionResource.cc
  572. * src/RequestSlot.cc
  573. * src/ServerStat.cc
  574. * src/SpeedCalc.cc
  575. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  576. Added changeUri XML-RPC method. This method removes/adds URIs
  577. dynamically.
  578. * doc/aria2c.1.txt
  579. * src/AbstractCommand.cc
  580. * src/DownloadContext.cc
  581. * src/DownloadContext.h
  582. * src/FileEntry.cc
  583. * src/FileEntry.h
  584. * src/Request.cc
  585. * src/Request.h
  586. * src/RequestGroup.cc
  587. * src/RequestGroupMan.cc
  588. * src/XmlRpcMethodFactory.cc
  589. * src/XmlRpcMethodImpl.cc
  590. * src/XmlRpcMethodImpl.h
  591. * test/FileEntryTest.cc
  592. * test/XmlRpcMethodTest.cc
  593. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  594. Rewritten copy ctor of RequestSlot to use initialization list.
  595. * src/RequestSlot.h
  596. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  597. Added Time global::wallclock to cache "current time" to reduce the
  598. call gettimeofday(). Global variables are now in namespace global.
  599. * src/AbstractCommand.cc
  600. * src/ActivePeerConnectionCommand.cc
  601. * src/AdaptiveURISelector.cc
  602. * src/BtLeecherStateChoke.cc
  603. * src/BtLeecherStateChoke.h
  604. * src/BtSeederStateChoke.cc
  605. * src/BtSeederStateChoke.h
  606. * src/BtStopDownloadCommand.cc
  607. * src/ConsoleStatCalc.cc
  608. * src/DHTBucket.cc
  609. * src/DHTGetPeersCommand.cc
  610. * src/DHTMessageTrackerEntry.cc
  611. * src/DHTNode.cc
  612. * src/DHTPeerAnnounceEntry.cc
  613. * src/DHTPeerAnnounceStorage.cc
  614. * src/DHTSetup.cc
  615. * src/DefaultBtAnnounce.cc
  616. * src/DefaultBtInteractive.cc
  617. * src/DefaultBtMessageDispatcher.cc
  618. * src/DefaultPeerStorage.cc
  619. * src/DefaultPieceStorage.cc
  620. * src/DownloadCommand.cc
  621. * src/DownloadEngine.cc
  622. * src/FileEntry.cc
  623. * src/HttpServerBodyCommand.cc
  624. * src/HttpServerCommand.cc
  625. * src/HttpServerResponseCommand.cc
  626. * src/LpdMessageDispatcher.cc
  627. * src/MultiUrlRequestInfo.cc
  628. * src/Peer.cc
  629. * src/Peer.h
  630. * src/PeerAbstractCommand.cc
  631. * src/PeerStat.h
  632. * src/RequestSlot.cc
  633. * src/RequestSlot.h
  634. * src/SegmentMan.cc
  635. * src/ServerStatMan.cc
  636. * src/SleepCommand.cc
  637. * src/SpeedCalc.cc
  638. * src/SpeedCalc.h
  639. * src/TimeA2.cc
  640. * src/TimeA2.h
  641. * src/TimeBasedCommand.cc
  642. * src/TimeSeedCriteria.h
  643. * src/UTMetadataRequestTracker.h
  644. * src/UTPexExtensionMessage.cc
  645. * src/wallclock.h
  646. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  647. Fixed the bug that util::itos(INT64_MIN) fails.
  648. * src/util.cc
  649. * src/util.h
  650. * test/UtilTest.cc
  651. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  652. Fixed memory leak in SocketBuffer when _bufq is not empty when
  653. SocketBuffer is deleted. Added BufEntry constructor and deleted
  654. static factory functions.
  655. * src/SocketBuffer.cc
  656. * src/SocketBuffer.h
  657. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  658. Only execute RequestGroupMan::fillRequestGroupFromReserver() when
  659. queue maintenance is requested by RequestGroup to avoid to call
  660. the function unnecessarily.
  661. * src/FillRequestGroupCommand.cc
  662. * src/RequestGroup.cc
  663. * src/RequestGroup.h
  664. * src/RequestGroupMan.cc
  665. * src/RequestGroupMan.h
  666. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  667. Don't use hash for Peer::id. Simple concatenation of ip address
  668. and port is enough.
  669. * src/Peer.cc
  670. * test/PeerTest.cc
  671. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  672. Enclosed log of DHTMessage::toString() with Logger::info().
  673. * src/DHTMessageDispatcherImpl.cc
  674. * src/DHTMessageReceiver.cc
  675. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  676. Rewritten util::toHex().
  677. * src/util.cc
  678. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  679. Removed SocketBuffer::feedAndSend(). Renamed
  680. SocketBuffer::feedSendBuffer() as SocketBuffer::pushStr().
  681. * src/FtpConnection.cc
  682. * src/HttpConnection.cc
  683. * src/HttpServer.cc
  684. * src/MSEHandshake.cc
  685. * src/PeerConnection.cc
  686. * src/SocketBuffer.cc
  687. * src/SocketBuffer.h
  688. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  689. Removed unused PeerConnection::sendMessage(). Updated doc.
  690. * src/PeerConnection.cc
  691. * src/PeerConnection.h
  692. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  693. Reduced copying/std::string instantiation in sending/receiving
  694. BitTorrent messages.
  695. * src/BtBitfieldMessage.cc
  696. * src/BtBitfieldMessage.h
  697. * src/BtExtendedMessage.cc
  698. * src/BtExtendedMessage.h
  699. * src/BtHandshakeMessage.cc
  700. * src/BtHandshakeMessage.h
  701. * src/BtKeepAliveMessage.cc
  702. * src/BtKeepAliveMessage.h
  703. * src/BtPieceMessage.cc
  704. * src/BtPieceMessage.h
  705. * src/BtPortMessage.cc
  706. * src/BtPortMessage.h
  707. * src/BtUnchokeMessage.h
  708. * src/DefaultBtMessageReceiver.cc
  709. * src/IndexBtMessage.cc
  710. * src/IndexBtMessage.h
  711. * src/PeerConnection.cc
  712. * src/PeerConnection.h
  713. * src/RangeBtMessage.cc
  714. * src/RangeBtMessage.h
  715. * src/SimpleBtMessage.cc
  716. * src/SimpleBtMessage.h
  717. * src/SocketBuffer.cc
  718. * src/SocketBuffer.h
  719. * src/ZeroBtMessage.cc
  720. * src/ZeroBtMessage.h
  721. * test/BtAllowedFastMessageTest.cc
  722. * test/BtBitfieldMessageTest.cc
  723. * test/BtCancelMessageTest.cc
  724. * test/BtChokeMessageTest.cc
  725. * test/BtExtendedMessageTest.cc
  726. * test/BtHandshakeMessageTest.cc
  727. * test/BtHaveAllMessageTest.cc
  728. * test/BtHaveMessageTest.cc
  729. * test/BtHaveNoneMessageTest.cc
  730. * test/BtInterestedMessageTest.cc
  731. * test/BtKeepAliveMessageTest.cc
  732. * test/BtNotInterestedMessageTest.cc
  733. * test/BtPieceMessageTest.cc
  734. * test/BtPortMessageTest.cc
  735. * test/BtRejectMessageTest.cc
  736. * test/BtRequestMessageTest.cc
  737. * test/BtSuggestPieceMessageTest.cc
  738. * test/BtUnchokeMessageTest.cc
  739. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  740. Rewritten SocketBuffer. Old implementation uses single std::string
  741. to store data and erase sent data, which is costly. New
  742. implementation uses deque to hold each data to avoid to mutate
  743. string.
  744. * src/SocketBuffer.cc
  745. * src/SocketBuffer.h
  746. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  747. Removed unused FileEntry::extracted
  748. * src/FileEntry.cc
  749. * src/FileEntry.h
  750. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  751. Wait until data arrives.
  752. * test/LpdMessageReceiverTest.cc
  753. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  754. In Metalink4, if size element contains invalid size, discard whole
  755. document. Added strict hash value check for metalink3/4.
  756. * src/MetalinkParserController.cc
  757. * src/MetalinkParserStateMachine.cc
  758. * src/MetalinkParserStateMachine.h
  759. * src/MetalinkParserStateV3Impl.cc
  760. * src/MetalinkParserStateV4Impl.cc
  761. * src/util.cc
  762. * src/util.h
  763. * test/MetalinkParserControllerTest.cc
  764. * test/MetalinkProcessorTest.cc
  765. * test/metalink4.xml
  766. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  767. Added strict attribute validation for metalink4. When
  768. specification violation is found, discard the whole document.
  769. * src/ExpatMetalinkProcessor.cc
  770. * src/MetalinkParserStateMachine.cc
  771. * src/MetalinkParserStateMachine.h
  772. * src/MetalinkParserStateV4Impl.cc
  773. * src/XML2SAXMetalinkProcessor.cc
  774. * test/Makefile.am
  775. * test/MetalinkProcessorTest.cc
  776. * test/metalink4-attrs.xml: Removed
  777. * test/metalink4-dirtraversal.xml: Removed
  778. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  779. Added test for Metaurl transaction.
  780. * src/MetalinkParserController.cc
  781. * test/MetalinkParserControllerTest.cc
  782. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  783. Avoid costly BtMessage::toString() if info level log is not
  784. required.
  785. * src/DefaultBtInteractive.cc
  786. * src/Logger.h
  787. * src/SimpleBtMessage.cc
  788. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  789. Reserved vector elements based on profiler results.
  790. * src/DefaultBtInteractive.cc
  791. * src/DefaultBtProgressInfoFile.cc
  792. 2010-03-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  793. Avoid to calculate end() iterator in each loop. std::deque is
  794. particularly slow. Make sure that recalculate end iterator if
  795. element is erased during loop.
  796. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  797. Use vector instead of deque for containers which is used for
  798. mostly read-only purpose.
  799. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  800. Fixed typo
  801. * test/Makefile.am
  802. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  803. Added metalink4-groupbymetaurl.xml to EXTRA_DIST
  804. * test/Makefile.am
  805. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  806. Small optimization: In updateTransferStatFor(), don't search peer
  807. ID twice.
  808. * src/DefaultPeerStorage.cc
  809. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  810. Use vector instead of deque for MetalinkEntry and MetalinkResource
  811. objects.
  812. * src/Metalink2RequestGroup.cc
  813. * src/Metalink2RequestGroup.h
  814. * src/MetalinkEntry.cc
  815. * src/MetalinkEntry.h
  816. * src/MetalinkHelper.cc
  817. * src/MetalinkHelper.h
  818. * src/Metalinker.cc
  819. * src/Metalinker.h
  820. * src/main.cc
  821. * test/MetalinkEntryTest.cc
  822. * test/MetalinkHelperTest.cc
  823. * test/MetalinkProcessorTest.cc
  824. * test/MetalinkerTest.cc
  825. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  826. Fixed the bug that grouped FileEntry objects are not used but
  827. instead all FileEntry objects are used for each metaurl group.
  828. * src/Metalink2RequestGroup.cc
  829. * test/Metalink2RequestGroupTest.cc
  830. * test/metalink4-groupbymetaurl.xml
  831. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  832. Use vector instead of deque for ChunkChecksum.
  833. * src/ChunkChecksum.h
  834. * src/MetalinkParserController.cc
  835. * src/MetalinkParserController.h
  836. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  837. Added MessageDigest::isStronger(). Now aria2 selects stronger hash
  838. algorithm in Metalink properly
  839. * src/MetalinkParserController.cc
  840. * src/MetalinkParserController.h
  841. * src/messageDigest.cc
  842. * src/messageDigest.h
  843. * test/MetalinkProcessorTest.cc
  844. * test/metalink4.xml
  845. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  846. Replaced null or control characters in file path with '_'. For
  847. MinGW32 build, additional characters which is not allowed in
  848. Windows kernel are also replaced. util::detectDirTraversal() now
  849. returns true if given string contains null or control characters.
  850. * src/DownloadContext.cc
  851. * src/DownloadContext.h
  852. * src/Metalink2RequestGroup.cc
  853. * src/MetalinkParserController.cc
  854. * src/bittorrent_helper.cc
  855. * src/util.cc
  856. * src/util.h
  857. * test/UtilTest.cc
  858. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  859. Discard metalink:file if its name attribute is empty string.
  860. Removed FileEntry instantiation in
  861. MetalinkParserController::setFileLengthOfEntry()
  862. * src/MetalinkParserController.cc
  863. * src/MetalinkParserStateV3Impl.cc
  864. * src/MetalinkParserStateV4Impl.cc
  865. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  866. Discard torrent file if path data in it contains directory
  867. traversal directives. Discard metalink:file element in Metalink3
  868. format if its name attribute contains directory traversal
  869. directives. Ignore name attribute of metalink:signature element
  870. in Metalink3 format if it contains directory traversal directives.
  871. * src/MetalinkParserStateV3Impl.cc
  872. * src/bittorrent_helper.cc
  873. * src/message.h
  874. * test/BittorrentHelperTest.cc
  875. * test/Makefile.am
  876. * test/MetalinkProcessorTest.cc
  877. * test/metalink3-dirtraversal.xml
  878. * test/test.xml
  879. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  880. Removed useless comment
  881. * src/MetalinkParserStateV4Impl.cc
  882. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  883. Supported name attribute of metalink::metaurl element and
  884. multi-file torrent with Metalink4. Files with same metaurl are
  885. grouped and downloaded in one RequestGroup.
  886. * src/BtDependency.cc
  887. * src/FileEntry.h
  888. * src/Metalink2RequestGroup.cc
  889. * src/Metalink2RequestGroup.h
  890. * src/MetalinkEntry.cc
  891. * src/MetalinkEntry.h
  892. * src/MetalinkHelper.cc
  893. * src/MetalinkHelper.h
  894. * src/MetalinkMetaurl.cc
  895. * src/MetalinkMetaurl.h
  896. * src/MetalinkParserController.cc
  897. * src/RequestGroup.cc
  898. * src/RequestGroup.h
  899. * src/bittorrent_helper.cc
  900. * test/BittorrentHelperTest.cc
  901. * test/BtDependencyTest.cc
  902. * test/MetalinkHelperTest.cc
  903. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  904. Store name attribute of metalink:metaurl element in MetalinkMetaurl.
  905. * src/MetalinkMetaurl.h
  906. * src/MetalinkParserController.cc
  907. * src/MetalinkParserController.h
  908. * src/MetalinkParserStateMachine.cc
  909. * src/MetalinkParserStateMachine.h
  910. * src/MetalinkParserStateV4Impl.cc
  911. * test/MetalinkProcessorTest.cc
  912. * test/metalink4-dirtraversal.xml
  913. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  914. Added MetalinkMetaurl class. It corresponds to metalink:metaurl
  915. element.
  916. * src/Makefile.am
  917. * src/Metalink2RequestGroup.cc
  918. * src/MetalinkEntry.cc
  919. * src/MetalinkEntry.h
  920. * src/MetalinkMetaurl.cc
  921. * src/MetalinkMetaurl.h
  922. * src/MetalinkParserController.cc
  923. * src/MetalinkParserController.h
  924. * src/MetalinkParserStateMachine.cc
  925. * src/MetalinkParserStateMachine.h
  926. * src/MetalinkParserStateV4Impl.cc
  927. * src/MetalinkParserStateV4Impl.h
  928. * test/MetalinkProcessorTest.cc
  929. 2010-02-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  930. Added Metalink4 support. Currently, name attribute of
  931. metalink::metaurl is ignored and multi-file torrent cannot be used
  932. with Metalink4.
  933. * doc/aria2c.1.txt
  934. * src/DownloadHandlerConstants.cc
  935. * src/ExpatMetalinkProcessor.cc
  936. * src/Makefile.am
  937. * src/Metalink2RequestGroup.cc
  938. * src/MetalinkEntry.cc
  939. * src/MetalinkEntry.h
  940. * src/MetalinkParserController.cc
  941. * src/MetalinkParserController.h
  942. * src/MetalinkParserState.h
  943. * src/MetalinkParserStateImpl.cc
  944. * src/MetalinkParserStateImpl.h
  945. * src/MetalinkParserStateMachine.cc
  946. * src/MetalinkParserStateMachine.h
  947. * src/MetalinkParserStateV3Impl.cc
  948. * src/MetalinkParserStateV3Impl.h
  949. * src/MetalinkParserStateV4Impl.cc
  950. * src/MetalinkParserStateV4Impl.h
  951. * src/MetalinkResource.cc
  952. * src/MetalinkResource.h
  953. * src/Metalinker.cc
  954. * src/RequestGroup.cc
  955. * src/RequestGroup.h
  956. * src/XML2SAXMetalinkProcessor.cc
  957. * src/messageDigest.cc
  958. * src/util.cc
  959. * src/util.h
  960. * test/Makefile.am
  961. * test/MetalinkEntryTest.cc
  962. * test/MetalinkParserControllerTest.cc
  963. * test/MetalinkProcessorTest.cc
  964. * test/MetalinkerTest.cc
  965. * test/UtilTest.cc
  966. * test/metalink4-attrs.xml
  967. * test/metalink4-dirtraversal.xml
  968. * test/metalink4.xml
  969. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  970. Added aiFlags argument to getInterfaceAddress(). Use
  971. AI_NUMERICHOST to find interface specified using
  972. --bt-lpd-interface option to avoid time-consuming address lookup.
  973. * src/BtSetup.cc
  974. * src/SocketCore.cc
  975. * src/SocketCore.h
  976. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  977. Return SharedHandle<LpdMessage>(new LpdMessage()) if received data
  978. is bad in LpdMessageReceiver.
  979. * src/LpdMessage.h
  980. * src/LpdMessageReceiver.cc
  981. * src/LpdMessageReceiver.h
  982. * src/LpdReceiveMessageCommand.cc
  983. * test/LpdMessageReceiverTest.cc
  984. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  985. Added --bt-lpd-interface option to specify the interface to use
  986. for Local Peer Discovery. LpdMessageDispatcher object now has its
  987. own socket. LpdMessageReceiver's socket is binded to multicast
  988. address to only receive multicast packets.
  989. * src/BtSetup.cc
  990. * src/LpdMessageDispatcher.cc
  991. * src/LpdMessageDispatcher.h
  992. * src/LpdMessageReceiver.cc
  993. * src/LpdMessageReceiver.h
  994. * src/LpdReceiveMessageCommand.cc
  995. * src/LpdReceiveMessageCommand.h
  996. * src/OptionHandlerFactory.cc
  997. * src/SocketCore.cc
  998. * src/SocketCore.h
  999. * src/prefs.cc
  1000. * src/prefs.h
  1001. * src/usage_text.h
  1002. * test/LpdMessageDispatcherTest.cc
  1003. * test/LpdMessageReceiverTest.cc
  1004. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1005. Put the portion of code to get interface addresses in
  1006. SocketCore::bindAddress() into newly added getInterfaceAddress().
  1007. * src/SocketCore.cc
  1008. * src/SocketCore.h
  1009. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1010. Rewritten util::parseInt() and parseUInt()
  1011. * src/util.cc
  1012. 2010-02-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1013. Fixed compile error with mingw32 cross compiler. Defined
  1014. a2_sockopt_t as void* for the target systems other than mingw32.
  1015. * src/SocketCore.cc
  1016. * src/a2netcompat.h
  1017. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1018. Removed 'always true' condition
  1019. * src/util.cc
  1020. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1021. Documented --bt-enable-lpd option in man page.
  1022. * doc/aria2c.1.txt
  1023. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1024. Added Local Peer Discovery. It is disabled by default. Use
  1025. --bt-enable-lpd to enable the function.
  1026. * src/BtConstants.h
  1027. * src/BtSetup.cc
  1028. * src/LpdDispatchMessageCommand.cc
  1029. * src/LpdDispatchMessageCommand.h
  1030. * src/LpdMessage.h
  1031. * src/LpdMessageDispatcher.cc
  1032. * src/LpdMessageDispatcher.h
  1033. * src/LpdMessageReceiver.cc
  1034. * src/LpdMessageReceiver.h
  1035. * src/LpdReceiveMessageCommand.cc
  1036. * src/LpdReceiveMessageCommand.h
  1037. * src/Makefile.am
  1038. * src/OptionHandlerFactory.cc
  1039. * src/Peer.cc
  1040. * src/Peer.h
  1041. * src/PeerInteractionCommand.cc
  1042. * src/SocketCore.cc
  1043. * src/SocketCore.h
  1044. * src/prefs.cc
  1045. * src/prefs.h
  1046. * src/usage_text.h
  1047. * src/util.cc
  1048. * src/util.h
  1049. * test/LpdMessageDispatcherTest.cc
  1050. * test/LpdMessageReceiverTest.cc
  1051. * test/Makefile.am
  1052. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1053. User-defined custom request headers specified by --header option
  1054. now override builtin headers if they have same name.
  1055. * src/HttpRequest.cc
  1056. * src/HttpRequest.h
  1057. * test/HttpRequestTest.cc
  1058. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1059. Rewirtten util::isNumber()
  1060. * src/util.cc
  1061. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1062. Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
  1063. because without it localized error messages are not printed
  1064. correctly.
  1065. * src/Platform.cc
  1066. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1067. Added unit tests for util::getContentDispositionFilename() from
  1068. http://greenbytes.de/tech/tc2231/ Fixed the function so that added
  1069. tests are passed.
  1070. * src/util.cc
  1071. * test/UtilTest.cc
  1072. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1073. Removed setlocale() for LC_CTYPE. It may affect isxdigit in
  1074. util.cc
  1075. * src/Platform.cc
  1076. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1077. Support RFC2231 "Parameter Value Character Set and Language
  1078. Information" in Content-Disposition header.
  1079. * src/HttpResponse.cc
  1080. * src/util.cc
  1081. * src/util.h
  1082. * test/UtilTest.cc
  1083. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1084. Print CXXFLAGS
  1085. * configure.ac
  1086. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1087. Small optimization for A2_WOULDBLOCK(e)
  1088. * src/SocketCore.cc
  1089. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1090. Removed test file
  1091. * test/CookieStorageTest.cc
  1092. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1093. Check both EAGAIN and EWOULDBLOCK
  1094. * src/SocketCore.cc
  1095. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1096. Removed ret == 0 checking for SSL_read(), SSL_write() and
  1097. SSL_peek() because the checks are done in the caller. In
  1098. SocketBuffer::send(), throw exception if nothing could be written
  1099. and socket error was not EWOULDBLOCK
  1100. * src/SocketBuffer.cc
  1101. * src/SocketCore.cc
  1102. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1103. Fixed error code handling so that it can handle Winsock2 error
  1104. code.
  1105. * src/SocketCore.cc
  1106. * src/SocketCore.h
  1107. 2010-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1108. Bump up version number to 1.9.0a
  1109. * configure.ac
  1110. * doc/aria2c.1.txt
  1111. 2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1112. Fixed the bug that aria2 doesn't handle return value if error
  1113. occurred before download begins.
  1114. * src/MultiUrlRequestInfo.cc
  1115. * src/main.cc
  1116. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1117. Removed SegmentManFactory class.
  1118. * src/AbstractSegmentManFactory.h
  1119. * src/DefaultSegmentManFactory.cc
  1120. * src/DefaultSegmentManFactory.h
  1121. * src/Makefile.am
  1122. * src/RequestGroup.cc
  1123. * src/RequestGroup.h
  1124. * src/SegmentManFactory.h
  1125. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1126. Destroyed digest context after getting calculated hash.
  1127. * src/Piece.cc
  1128. * src/Piece.h
  1129. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1130. Removed BitfieldManFactory class.
  1131. * src/BitfieldManFactory.cc
  1132. * src/BitfieldManFactory.h
  1133. * src/DefaultPieceStorage.cc
  1134. * src/Makefile.am
  1135. * src/PeerSessionResource.cc
  1136. * src/Piece.cc
  1137. * src/main.cc
  1138. * test/DefaultPieceStorageTest.cc
  1139. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1140. Removed unused methods from BitfieldMan class. Moved
  1141. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  1142. class.
  1143. * src/BitfieldMan.cc
  1144. * src/BitfieldMan.h
  1145. * src/BitfieldManFactory.cc
  1146. * src/BitfieldManFactory.h
  1147. * src/bitfield.h
  1148. * src/main.cc
  1149. * test/BitfieldManTest.cc
  1150. * test/DefaultPieceStorageTest.cc
  1151. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1152. Moved getFirstNMissingIndex to bitfield.h and made it return the
  1153. number of appended indexes.
  1154. * src/BitfieldMan.cc
  1155. * src/BitfieldMan.h
  1156. * src/Piece.cc
  1157. * src/Piece.h
  1158. * src/bitfield.h
  1159. * test/BitfieldManTest.cc
  1160. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1161. Added more tests.
  1162. * test/BitfieldManTest.cc
  1163. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1164. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  1165. unused block indexes at once instead of calling
  1166. getFirstMissingUnusedIndex() multiple times. Made use of it in
  1167. Piece class and DefaultBtRequestFactory class via Piece class.
  1168. * src/BitfieldMan.cc
  1169. * src/BitfieldMan.h
  1170. * src/DefaultBtRequestFactory.cc
  1171. * src/Piece.cc
  1172. * src/Piece.h
  1173. * test/BitfieldManTest.cc
  1174. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1175. Use std::make_pair(...)
  1176. * src/DHTMessageTracker.cc
  1177. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1178. Use std::make_pair(...)
  1179. * src/bittorrent_helper.cc
  1180. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1181. urlencode(removeFragment(...)) in parseUrl(...)
  1182. * src/Request.cc
  1183. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1184. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  1185. * src/AbstractCommand.cc
  1186. * src/AdaptiveURISelector.cc
  1187. * src/BtPieceMessage.cc
  1188. * src/BtPortMessage.cc
  1189. * src/CreateRequestCommand.cc
  1190. * src/DHTAbstractNodeLookupTask.cc
  1191. * src/DHTBucket.cc
  1192. * src/DHTGetPeersCommand.cc
  1193. * src/DHTMessageDispatcherImpl.cc
  1194. * src/DHTMessageFactoryImpl.cc
  1195. * src/DHTMessageTracker.cc
  1196. * src/DHTPeerAnnounceStorage.cc
  1197. * src/DHTRoutingTable.cc
  1198. * src/DHTSetup.cc
  1199. * src/DefaultBtAnnounce.cc
  1200. * src/DefaultBtInteractive.cc
  1201. * src/DefaultBtMessageDispatcher.cc
  1202. * src/DefaultBtMessageReceiver.cc
  1203. * src/DefaultBtProgressInfoFile.cc
  1204. * src/DefaultBtRequestFactory.cc
  1205. * src/DefaultPeerStorage.cc
  1206. * src/DefaultPieceStorage.cc
  1207. * src/DownloadCommand.cc
  1208. * src/DownloadEngine.cc
  1209. * src/EpollEventPoll.cc
  1210. * src/FileAllocationCommand.cc
  1211. * src/FileEntry.cc
  1212. * src/FtpNegotiationCommand.cc
  1213. * src/HandshakeExtensionMessage.cc
  1214. * src/HttpListenCommand.cc
  1215. * src/HttpServer.cc
  1216. * src/HttpSkipResponseCommand.cc
  1217. * src/IteratableChunkChecksumValidator.cc
  1218. * src/Logger.h
  1219. * src/MSEHandshake.cc
  1220. * src/MetalinkPostDownloadHandler.cc
  1221. * src/MultiDiskAdaptor.cc
  1222. * src/PeerAbstractCommand.cc
  1223. * src/PeerConnection.cc
  1224. * src/PeerListenCommand.cc
  1225. * src/PeerReceiveHandshakeCommand.cc
  1226. * src/RequestGroup.cc
  1227. * src/RequestGroupMan.cc
  1228. * src/SegmentMan.cc
  1229. * src/SelectEventPoll.cc
  1230. * src/ServerStat.cc
  1231. * src/SimpleBtMessage.cc
  1232. * src/SocketCore.cc
  1233. * src/TrackerWatcherCommand.cc
  1234. * src/UTMetadataDataExtensionMessage.cc
  1235. * src/UTMetadataRequestFactory.cc
  1236. * src/UTMetadataRequestTracker.cc
  1237. * src/XmlRpcMethod.cc
  1238. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1239. Changed log level from debug to info
  1240. * src/BtDependency.cc
  1241. * src/BtPostDownloadHandler.cc
  1242. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1243. Removed unused PeerSessionResource::_latency.
  1244. * src/BtConstants.h
  1245. * src/BtPieceMessage.cc
  1246. * src/Peer.cc
  1247. * src/Peer.h
  1248. * src/PeerSessionResource.cc
  1249. * src/PeerSessionResource.h
  1250. * test/PeerSessionResourceTest.cc
  1251. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1252. Fixed the bug that --file-allocation=falloc doesn't work with
  1253. single file download.
  1254. * src/AbstractSingleDiskAdaptor.cc
  1255. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1256. Release 1.8.2
  1257. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1258. Added Portuguese translation. Updated Ukrainian and Spanish
  1259. translation. Thanks to all translators.
  1260. * po/LINGUAS
  1261. * po/es.po
  1262. * po/pt.po
  1263. * po/uk.po
  1264. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1265. Remove fragment from redirected URI.
  1266. * src/Request.cc
  1267. * test/RequestTest.cc
  1268. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1269. Updated po templates.
  1270. * po/aria2.pot
  1271. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1272. Drop legacy ifdef for ares support and code cleanup.
  1273. * src/AsyncNameResolver.cc
  1274. * src/AsyncNameResolver.h
  1275. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1276. Call ares_library_init and ares_library_cleanup if they are
  1277. available. Some code cleanups.
  1278. * src/Platform.cc
  1279. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1280. Call ares_process_fd() each time after epoll to handle timeout.
  1281. * src/EpollEventPoll.cc
  1282. * src/EpollEventPoll.h
  1283. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1284. Suppressed type-cast compiler warning
  1285. * src/CookieStorage.cc
  1286. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1287. Fixed compile error on Mac OS X.
  1288. * src/CookieStorage.h
  1289. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1290. Removed cookietest.txt from Makefile.am
  1291. * test/Makefile.am
  1292. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1293. Updated version number in man page.
  1294. * doc/aria2c.1.txt
  1295. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1296. Rewritten help message for --allow-overwrite option.
  1297. * doc/aria2c.1.txt
  1298. * src/usage_text.h
  1299. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1300. Added bittorrent key to the response of tellStatus XML-RPC method.
  1301. The associated value of the key is a struct and contains data
  1302. retrieved from .torrent file, such as name, announce-list,
  1303. comment, etc.
  1304. * doc/aria2c.1.txt
  1305. * src/XmlRpcMethodImpl.cc
  1306. * src/XmlRpcMethodImpl.h
  1307. * test/XmlRpcMethodTest.cc
  1308. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1309. Removed parse(std::istream&) and parse(const std::string&) from
  1310. CookieParser.
  1311. * src/CookieParser.cc
  1312. * src/CookieParser.h
  1313. * test/CookieParserTest.cc
  1314. * test/cookietest.txt: Removed
  1315. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1316. Fixed the bug that cookie for domain a.b.c is not sent to the host
  1317. a.b.c if no other cookies are stored. Fixed the bug that
  1318. Cookie::markOriginServerOnly() is not called when cookies are
  1319. loaded from file/sqlite3 database.
  1320. * src/Cookie.h
  1321. * src/CookieStorage.cc
  1322. * src/NsCookieParser.cc
  1323. * src/Sqlite3MozCookieParser.cc
  1324. * test/CookieStorageTest.cc
  1325. * test/NsCookieParserTest.cc
  1326. * test/Sqlite3MozCookieParserTest.cc
  1327. * test/cookies.sqlite
  1328. * test/nscookietest.txt
  1329. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1330. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  1331. both _pieceStorage and _segmentMan are initialized or they are
  1332. not.
  1333. * src/RequestGroup.cc
  1334. * src/RequestGroup.h
  1335. * test/BtDependencyTest.cc
  1336. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1337. Bump up version number to 1.8.2
  1338. * configure.ac
  1339. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1340. Replaced "." with A2STR::DOT_C
  1341. * src/AbstractCommand.cc
  1342. * src/Cookie.cc
  1343. * src/DownloadContext.cc
  1344. * src/FtpConnection.cc
  1345. * src/RequestGroup.cc
  1346. * src/util.cc
  1347. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1348. Replaced isNumberAndDotsNotation() with isNumericHost().
  1349. isNumericHost() can handle IPv6 address.
  1350. * src/Cookie.cc
  1351. * src/CookieStorage.cc
  1352. * src/util.cc
  1353. * src/util.h
  1354. * test/CookieTest.cc
  1355. * test/UtilTest.cc
  1356. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1357. Included A2STR.h
  1358. * src/CookieStorage.cc
  1359. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1360. Rewritten Cookie storage.
  1361. * src/Cookie.cc
  1362. * src/Cookie.h
  1363. * src/CookieParser.cc
  1364. * src/CookieStorage.cc
  1365. * src/CookieStorage.h
  1366. * src/a2functional.h
  1367. * test/CookieParserTest.cc
  1368. * test/CookieStorageTest.cc
  1369. * test/CookieTest.cc
  1370. * test/HttpResponseTest.cc
  1371. * test/TestUtil.h
  1372. * test/a2functionalTest.cc
  1373. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1374. Handle redirected URI which is not properly percent encoded.
  1375. * src/Request.cc
  1376. * test/RequestTest.cc
  1377. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1378. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  1379. not found' in the N times(N is where --max-file-not-found=N, N>0)
  1380. in a row without single '200 OK' response.
  1381. * src/RequestGroup.cc.
  1382. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1383. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  1384. readout by 80 characters in mingw32 build. Catch exception in
  1385. DHTMessageReceiver::receiveMessage().
  1386. * src/AbstractDiskWriter.cc
  1387. * src/ConsoleStatCalc.cc
  1388. * src/DHTMessageReceiver.cc
  1389. * src/File.cc
  1390. * src/RequestGroupMan.cc
  1391. * src/a2io.h
  1392. * test/FileTest.cc
  1393. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1394. Fixed compile error with intel compiler
  1395. * src/XmlRpcMethodImpl.cc
  1396. * src/XmlRpcMethodImpl.h
  1397. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1398. Release 1.8.1
  1399. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1400. Updated Swedish, Russian and Italian translations. Thanks to all
  1401. translators.
  1402. * po/it.po
  1403. * po/ru.po
  1404. * po/sv.po
  1405. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1406. Fixed broken OptionParser::findByName().
  1407. * src/OptionParser.cc
  1408. * test/OptionParserTest.cc
  1409. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1410. Fixed test error without BitTorrent support.
  1411. * test/XmlRpcMethodTest.cc
  1412. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1413. Fixed compile error without GNUTLS/OpenSSL.
  1414. * src/util.cc
  1415. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1416. Changed compression level to Z_DEFAULT_COMPRESSION.
  1417. * src/GZipEncoder.cc
  1418. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1419. Added missing command line options: --http-no-cache,
  1420. --bt-save-metadata and --bt-metadata-only.
  1421. * doc/xmlrpc/aria2rpc
  1422. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1423. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  1424. client accepts gzip content encoding.
  1425. * src/A2STR.cc
  1426. * src/A2STR.h
  1427. * src/GZipEncoder.cc
  1428. * src/GZipEncoder.h
  1429. * src/HttpHeader.cc
  1430. * src/HttpHeader.h
  1431. * src/HttpServer.cc
  1432. * src/HttpServer.h
  1433. * src/HttpServerBodyCommand.cc
  1434. * src/HttpServerCommand.cc
  1435. * src/Makefile.am
  1436. * src/XmlRpcResponse.cc
  1437. * src/XmlRpcResponse.h
  1438. * test/GZipEncoderTest.cc
  1439. * test/Makefile.am
  1440. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1441. Added XML-RPC client sample code in Python.
  1442. * doc/aria2c.1.txt
  1443. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1444. Updated po templates.
  1445. * po/aria2.pot
  1446. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1447. Bump up version number to 1.8.1
  1448. * configure.ac
  1449. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1450. Added version number to man page. Updated copyright year in man
  1451. page.
  1452. * doc/aria2c.1.txt
  1453. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1454. Rewritten toTagString
  1455. * src/NameMatchOptionHandler.cc
  1456. * test/OptionHandlerTest.cc
  1457. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1458. Added dir and files key to the response struct of aria2.tellStatus
  1459. XML-RPC method. The value associated with files key is the list
  1460. of files. Its element is the same struct used in aria2.getFiles
  1461. XML-RPC method. Added uris key to the response struct of
  1462. aria2.getFiles XML-RPC method. The value associated with uris key
  1463. is the list of URIs. Its element is the same struct used in
  1464. aria2.getUris XML-RPC method.
  1465. * doc/aria2c.1.txt
  1466. * src/XmlRpcMethodImpl.cc
  1467. * test/XmlRpcMethodTest.cc
  1468. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1469. Added aria2.getSessionInfo XML-RPC method. This method returns a
  1470. struct containing Session ID, which is generated each time when
  1471. aria2 is invoked.
  1472. * doc/aria2c.1.txt
  1473. * doc/xmlrpc/aria2rpc
  1474. * src/DownloadEngine.cc
  1475. * src/DownloadEngine.h
  1476. * src/XmlRpcMethodFactory.cc
  1477. * src/XmlRpcMethodImpl.cc
  1478. * src/XmlRpcMethodImpl.h
  1479. * test/XmlRpcMethodTest.cc
  1480. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1481. Moved generateRandomKey() from bittorrent_helper to util.
  1482. * src/DHTBucket.cc
  1483. * src/DHTNode.cc
  1484. * src/bittorrent_helper.cc
  1485. * src/bittorrent_helper.h
  1486. * src/util.cc
  1487. * src/util.h
  1488. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1489. Updated doc about GID.
  1490. * doc/aria2c.1.txt
  1491. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1492. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  1493. accepts a negative integer. 'offset' == -1 points last download
  1494. in the waiting queue and 'offset' == -2 points the download before
  1495. the last download, and so on. The downloads in the response are in
  1496. reversed order.
  1497. * doc/aria2c.1.txt
  1498. * src/XmlRpcMethodImpl.cc
  1499. * src/XmlRpcMethodImpl.h
  1500. * test/XmlRpcMethodTest.cc
  1501. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1502. Added --human-readable option. This option, when true is given,
  1503. prints sizes and speed in human readable format(e.g., 1.2Ki,
  1504. 3.4Mi) in the console readout. The default value is true and it
  1505. looks exactly the same as aria2-1.8.0. So the 'new feature'
  1506. appears when false is given. In this case, sizes and speed are
  1507. printed without in bytes. No Ki, Mi units conversion is used.
  1508. This may be useful for a program to parse the output of aria2.
  1509. * doc/aria2c.1.txt
  1510. * src/ConsoleStatCalc.cc
  1511. * src/ConsoleStatCalc.h
  1512. * src/OptionHandlerFactory.cc
  1513. * src/main.cc
  1514. * src/prefs.cc
  1515. * src/prefs.h
  1516. * src/usage_text.h
  1517. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1518. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  1519. option accepts empty string "". When "" is given, it erases
  1520. previously defined proxy.
  1521. * doc/aria2c.1.txt
  1522. * src/OptionHandlerImpl.h
  1523. * src/usage_text.h
  1524. * test/OptionHandlerTest.cc
  1525. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1526. Code cleanup for proxy URI handling.
  1527. * src/AbstractCommand.cc
  1528. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1529. Added --bt-metadata-only option. If true is given to this option,
  1530. aria2 downloads metadata only. The file(s) described in metadata
  1531. will not be downloaded. This option has effect only when
  1532. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  1533. * doc/aria2c.1.txt
  1534. * src/OptionHandlerFactory.cc
  1535. * src/UTMetadataPostDownloadHandler.cc
  1536. * src/download_helper.cc
  1537. * src/prefs.cc
  1538. * src/prefs.h
  1539. * src/usage_text.h
  1540. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1541. Fixed memory leak. Commands stored in std::deque<Command*> are not
  1542. deleted when exception is thrown. Make sure that when passing
  1543. std::deque<Command*> to function to store Commands, handle
  1544. exception and delete these Commands.
  1545. * src/AbstractCommand.cc
  1546. * src/CheckIntegrityCommand.cc
  1547. * src/FileAllocationCommand.cc
  1548. * src/RequestGroup.cc
  1549. * src/TrackerWatcherCommand.cc
  1550. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1551. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  1552. * src/A2STR.cc
  1553. * src/A2STR.h
  1554. * src/FtpNegotiationCommand.cc
  1555. * src/HttpResponseCommand.cc
  1556. * src/util.cc
  1557. * src/util.h
  1558. * test/UtilTest.cc
  1559. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1560. Treat --dir="" as --dir="."
  1561. * src/FtpNegotiationCommand.cc
  1562. * src/HttpResponseCommand.cc
  1563. * src/Metalink2RequestGroup.cc
  1564. * src/UTMetadataPostDownloadHandler.cc
  1565. * src/bittorrent_helper.cc
  1566. * src/download_helper.cc
  1567. * src/util.cc
  1568. * src/util.h
  1569. * test/UtilTest.cc
  1570. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1571. Code clean up.
  1572. * src/main.cc
  1573. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1574. Reset GID to 1 when they reach maximum value. Rewritten
  1575. CUIDCounter::newID()
  1576. * src/CUIDCounter.h
  1577. * src/RequestGroup.cc
  1578. * src/RequestGroup.h
  1579. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1580. Documented --http-no-cache option in man page.
  1581. * doc/aria2c.1.txt
  1582. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1583. Added --http-no-cache option. When true is given, aria2 sends
  1584. Cache-Control: no-cache and Pragma: no-cache header to avoid
  1585. cached content. If false is given , these headers are not sent
  1586. and you can add Cache-Control header with a directive you like
  1587. using --header option.
  1588. * src/HttpRequest.cc
  1589. * src/HttpRequest.h
  1590. * src/HttpRequestCommand.cc
  1591. * src/OptionHandlerFactory.cc
  1592. * src/download_helper.cc
  1593. * src/prefs.cc
  1594. * src/prefs.h
  1595. * src/usage_text.h
  1596. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1597. Removed Logger from OptionParser. When OptionParser is used to
  1598. parse options at bootstrap, LogFactory is not configured yet
  1599. properly. When LogFactory is used in OptionParser, it initializes
  1600. itself to return a logger which has no ability to write log to the
  1601. disk.
  1602. * src/OptionParser.cc
  1603. * src/OptionParser.h
  1604. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1605. Added following sentance to the help message of --out option:
  1606. --out option is ignored when -Z is used.
  1607. * doc/aria2c.1.txt
  1608. * src/usage_text.h
  1609. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1610. Added --bt-save-metadata option to -i list options.
  1611. * doc/aria2c.1.txt
  1612. * src/download_helper.cc
  1613. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1614. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  1615. additional libraries.
  1616. * src/MultiUrlRequestInfo.cc
  1617. * src/NameResolver.cc
  1618. * src/SelectEventPoll.cc
  1619. * src/SelectEventPoll.h
  1620. * src/SocketCore.cc
  1621. * src/SocketCore.h
  1622. * src/a2netcompat.h
  1623. * src/daemon.cc
  1624. * src/main.cc
  1625. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1626. Fixed typo.
  1627. * src/DHTMessageReceiver.cc
  1628. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1629. Fixed the bug that causes segmentation fault if unknown option is
  1630. put in aria2.conf file. BUG#2928303
  1631. * src/OptionParser.cc
  1632. * src/OptionParser.h
  1633. * src/option_processing.cc
  1634. * test/OptionParserTest.cc
  1635. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1636. Ignore port message with port=0.
  1637. * src/BtPortMessage.cc
  1638. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1639. Run autoupdate
  1640. * configure.ac
  1641. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1642. Updated autoconf/automake auxiliary files.
  1643. * INSTALL
  1644. * config.guess
  1645. * config.sub
  1646. * depcomp
  1647. * install-sh
  1648. * m4/intldir.m4
  1649. * missing
  1650. * mkinstalldirs
  1651. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1652. Removed unused function.
  1653. * src/SharedHandle.h
  1654. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1655. Find pooled socket using all cached addresses.
  1656. * src/DNSCache.h
  1657. * src/DownloadEngine.cc
  1658. * src/DownloadEngine.h
  1659. * src/InitiateConnectionCommand.cc
  1660. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1661. Updated copyright year.
  1662. * src/version_usage.cc
  1663. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1664. Pool connection if _contentEncodingDecoder is used and server
  1665. supports persistent connection.
  1666. * src/HttpDownloadCommand.cc
  1667. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1668. Updated doc.
  1669. * src/DownloadCommand.cc
  1670. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1671. Untabify. Fixed one line in copyright which is longer than 80
  1672. columns.
  1673. * src
  1674. * test
  1675. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1676. Release 1.8.0
  1677. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1678. Updated po templates.
  1679. * po/aria2.pot
  1680. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1681. Documented --bt-save-metadata option in man page.
  1682. * doc/aria2c.1.txt
  1683. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1684. Fixed usage of --bt-save-metadata option.
  1685. * src/usage_text.h
  1686. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1687. Updated po templates.
  1688. * po/aria2.pot
  1689. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1690. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  1691. causes name resolution error when none of network interface has
  1692. IPv4 address.
  1693. * src/main.cc
  1694. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1695. Bump up version number to 1.8.0.
  1696. * configure.ac
  1697. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1698. Use info hash as a filename when saving BitTorrent metadata.
  1699. * src/UTMetadataPostDownloadHandler.cc
  1700. * test/UTMetadataPostDownloadHandlerTest.cc
  1701. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1702. Documented system.multicall XML-RPC method in man page.
  1703. * doc/aria2c.1.txt
  1704. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1705. Added signal handler for SIGHUP to save .aria2 file when terminal
  1706. is closed. The handler is the same one for SIGINT and SIGTERM.
  1707. * src/MultiUrlRequestInfo.cc
  1708. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1709. Defined method name in XmlRpcMethod subclasses.
  1710. * src/XmlRpcMethodFactory.cc
  1711. * src/XmlRpcMethodImpl.cc
  1712. * src/XmlRpcMethodImpl.h
  1713. * test/XmlRpcMethodTest.cc
  1714. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1715. Added system.multicall XML-RPC method.
  1716. * src/XmlRpcMethod.cc
  1717. * src/XmlRpcMethod.h
  1718. * src/XmlRpcMethodFactory.cc
  1719. * src/XmlRpcMethodImpl.cc
  1720. * src/XmlRpcMethodImpl.h
  1721. * test/XmlRpcMethodTest.cc
  1722. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1723. Check structure depth when decoding.
  1724. * src/bencode.cc
  1725. * src/bencode.h
  1726. * test/BencodeTest.cc
  1727. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1728. Documented tellStopped XML-RPC method in man page.
  1729. * doc/aria2c.1.txt
  1730. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1731. Added tellStopped XML-RPC method to aria2rpc.
  1732. * doc/xmlrpc/aria2rpc
  1733. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1734. Added tellStopped XML-RPC method. This method returns stopped
  1735. download in the specified range. It takes same parameters with
  1736. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  1737. * src/XmlRpcMethodFactory.cc
  1738. * src/XmlRpcMethodImpl.cc
  1739. * src/XmlRpcMethodImpl.h
  1740. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1741. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  1742. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  1743. when conducting unit tests because they fail if networking
  1744. interface is not configured with IPv4 address.
  1745. * src/NameResolver.cc
  1746. * src/SocketCore.cc
  1747. * src/SocketCore.h
  1748. * src/a2netcompat.h
  1749. * test/AllTest.cc
  1750. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1751. Fixed unit test error
  1752. * test/UTMetadataPostDownloadHandlerTest.cc
  1753. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1754. Defined static string constants for efficiency.
  1755. * src/XmlRpcMethodImpl.cc
  1756. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1757. Added --bt-save-metadata option. When true is given, it saves
  1758. metadata as .torrent file. This option has effect only when
  1759. BitTorrent Magnet URI is used. The filename is name in metadata
  1760. with suffix .torrent. The directory to be saved is the same
  1761. directory where download file is saved. If the same file already
  1762. exists, metdata is not saved.
  1763. * src/OptionHandlerFactory.cc
  1764. * src/UTMetadataPostDownloadHandler.cc
  1765. * src/UTMetadataPostDownloadHandler.h
  1766. * src/message.h
  1767. * src/prefs.cc
  1768. * src/prefs.h
  1769. * src/usage_text.h
  1770. * test/UTMetadataDataExtensionMessageTest.cc
  1771. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1772. Added util::saveAs() function. Use it in Signature::save().
  1773. * src/Signature.cc
  1774. * src/util.cc
  1775. * src/util.h
  1776. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1777. Upcase info hash in Magnet URI.
  1778. * doc/aria2c.1.txt
  1779. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1780. Refactored RequestGroupMan::changeReservedGroupPosition()
  1781. * src/RequestGroupMan.cc
  1782. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1783. Updated the description for aria2.addTorrent XML-RPC method.
  1784. * doc/aria2c.1.txt
  1785. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1786. Added changePosition to aria2rpc.
  1787. * doc/xmlrpc/aria2rpc
  1788. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1789. Documented changePosition XML-RPC method in man page.
  1790. * doc/aria2c.1.txt
  1791. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1792. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  1793. pos and how. This method changes the position of download denoted
  1794. by gid. If how is POS_SET, it moves the download to a position
  1795. relative to the beginning of the queue. If how is POS_CUR, it
  1796. moves the download to a position relative to the current
  1797. position. If how is POS_END, it moves the download to a position
  1798. relative to the end of the queue. If the destination position is
  1799. less than 0 or beyond the end of the queue, it moves the download
  1800. to the beginning or the end of the queue respectively. Returns
  1801. the destination position.
  1802. * src/RequestGroupMan.cc
  1803. * src/RequestGroupMan.h
  1804. * src/XmlRpcMethodFactory.cc
  1805. * src/XmlRpcMethodImpl.cc
  1806. * src/XmlRpcMethodImpl.h
  1807. * test/RequestGroupManTest.cc
  1808. * test/XmlRpcMethodTest.cc
  1809. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1810. Added getOption and getGlobalOption to aria2rpc.
  1811. * doc/xmlrpc/aria2rpc
  1812. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1813. Documented getOption and getGlobalOption XML-RPC method in man
  1814. page
  1815. * doc/aria2c.1.txt
  1816. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1817. Added getOption and getGlobalOption XML-RPC method. getOption
  1818. takes GID as a parameter and returns its options as struct.
  1819. getGlobalOption takes no parameter and returns global
  1820. options. Because global option is used as a template for the
  1821. option of newly added downloads, it includes options returned by
  1822. getOption.
  1823. * src/Option.h
  1824. * src/XmlRpcMethodFactory.cc
  1825. * src/XmlRpcMethodImpl.cc
  1826. * src/XmlRpcMethodImpl.h
  1827. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1828. Sort _optionHandlers in OptionParser by name in ascending order.
  1829. Use vector instead of deque for efficiency.
  1830. * src/OptionHandler.h
  1831. * src/OptionHandlerFactory.h
  1832. * src/OptionParser.cc
  1833. * src/OptionParser.h
  1834. * src/version_usage.cc
  1835. * test/OptionParserTest.cc
  1836. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1837. Code cleanup
  1838. * src/XmlRpcMethod.cc
  1839. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1840. Documented about followedBy and belongsTo in man page.
  1841. * doc/aria2c.1.txt
  1842. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1843. Added following 2 keys, followedBy and belongsTo, to the response
  1844. of tellStatus.
  1845. followedBy: List of GIDs which are generated by the consequence of
  1846. this download. For example, when aria2 downloaded Metalink file,
  1847. it generates downloads described in it(see *--follow-metalink*
  1848. option). This value is useful to track these auto generated
  1849. downloads. If there is no such downloads, this key will not be
  1850. included in the response.
  1851. belongsTo: GID of a parent download. Some downloads are a part of
  1852. another download. For example, if a file in Metalink has
  1853. BitTorrent resource, the download of .torrent is a part of that
  1854. file. If this download has no parent, this key will not be
  1855. included in the response.
  1856. * src/BtPostDownloadHandler.cc
  1857. * src/DownloadResult.h
  1858. * src/Metalink2RequestGroup.cc
  1859. * src/MetalinkPostDownloadHandler.cc
  1860. * src/RequestGroup.cc
  1861. * src/RequestGroup.h
  1862. * src/UTMetadataPostDownloadHandler.cc
  1863. * src/XmlRpcMethodImpl.cc
  1864. * src/XmlRpcMethodImpl.h
  1865. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1866. Assigned BObject in BDE() to avoid segmentation fault when calling
  1867. methods of BDE::none().
  1868. * src/BDE.cc
  1869. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1870. Show info hash in Magnet URI in upper case letters in -S output.
  1871. * src/bittorrent_helper.cc
  1872. * test/BittorrentHelperTest.cc
  1873. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1874. Removed old useless comment
  1875. * src/MultiUrlRequestInfo.cc
  1876. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1877. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  1878. not properly used in configure script and failed to detect gnutls.
  1879. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  1880. and the initialization of pkg-config is done in first occurrence
  1881. of PKG_CHECK_MODULES which is not executed because it is inside of
  1882. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  1883. * configure.ac
  1884. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1885. Release 1.7.2
  1886. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1887. Fixed the bug that RequestGroupMan::downloadFinished() returns
  1888. true even if all downloads haven't finished, especially when
  1889. PostDownloadHandler is involved. Changed the condition so that it
  1890. only returns true if both _requestGroups and _reservedGroups are
  1891. empty.
  1892. * src/RequestGroupMan.cc
  1893. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1894. Log listening port for BitTorrent/DHT in notice level.
  1895. * src/DHTConnectionImpl.cc
  1896. * src/PeerListenCommand.cc
  1897. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1898. Updated po templates.
  1899. * po/aria2.pot
  1900. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1901. Bump up version number to 1.7.2
  1902. * configure.ac
  1903. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1904. Changed default value of --enable-dht from 'false' to 'true'.
  1905. * doc/aria2c.1.txt
  1906. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1907. Enabled DHT by default because of Magnet URI support. To disable
  1908. DHT, use --enable-dht=false
  1909. * src/OptionHandlerFactory.cc
  1910. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1911. Print Magnet URI in -S output.
  1912. * src/AnnounceList.cc
  1913. * src/bittorrent_helper.cc
  1914. * src/bittorrent_helper.h
  1915. * test/BittorrentHelperTest.cc
  1916. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1917. Added --bt-prioritize-piece option to aria2rpc.
  1918. * doc/xmlrpc/aria2rpc
  1919. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1920. Refer Magnet URI in --help. Made some cosmetic changes.
  1921. * src/version_usage.cc
  1922. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1923. Updated -T and -M option.
  1924. * doc/aria2c.1.txt
  1925. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1926. Fixed typo
  1927. * doc/aria2c.1.txt
  1928. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1929. Fixed the bug that line separator is missing in horizontal bar.
  1930. * doc/xmlrpc/aria2mon
  1931. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1932. Updated usage text for --metalink-file option.
  1933. * src/usage_text.h
  1934. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1935. If '-' is given as an argument to --metalink-file option, aria2
  1936. reads Metalink file from stdin.
  1937. * src/OptionHandlerFactory.cc
  1938. * src/OptionHandlerImpl.h
  1939. * src/a2io.h
  1940. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1941. Fixed the bug that aria2 listens wrong port if --interface option
  1942. is used.
  1943. * src/SocketCore.cc
  1944. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1945. Fixed the bug that query parameter in magnet URI is not decoded.
  1946. * src/magnet.cc
  1947. * test/MagnetTest.cc
  1948. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1949. Specified defaultSize as an argument for easy testing.
  1950. * src/util.cc
  1951. * src/util.h
  1952. * test/UtilTest.cc
  1953. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1954. Release 1.7.1
  1955. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1956. Bump up version number to 1.7.1
  1957. * configure.ac
  1958. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1959. Fixed the bug --bt-prioritize-piece=tail is not working.
  1960. * src/util.cc
  1961. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1962. Release 1.7.0
  1963. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1964. Updated po templates.
  1965. * po/aria2.pot
  1966. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1967. Updated help message for --bt-prioritize-piece. Some cosmetic
  1968. changes.
  1969. * doc/aria2c.1.txt
  1970. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1971. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  1972. * src/usage_text.h
  1973. * src/util.cc
  1974. * test/UtilTest.cc
  1975. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1976. Updated Russian, Ukrainian, German and French translations.
  1977. Thanks to all translators involved.
  1978. * po/de.po
  1979. * po/fr.po
  1980. * po/ru.po
  1981. * po/uk.po
  1982. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1983. Mentioned about pkg-config
  1984. * README
  1985. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1986. Fixed typo. Referred --index-out option in BitTorrent notes.
  1987. * README
  1988. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1989. Store all addresses found by getifaddrs() and getaddrinfo(). In
  1990. bind, try all addresses until success
  1991. * src/SocketCore.cc
  1992. * src/SocketCore.h
  1993. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1994. Updated po templates.
  1995. * po/aria2.pot
  1996. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1997. Bump up version number to 1.7.0
  1998. * configure.ac
  1999. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2000. Fixed compile error if ENABLE_BITTORRENT is undefined.
  2001. * src/DefaultPieceStorage.cc
  2002. * src/DefaultPieceStorage.h
  2003. * src/PieceStorage.h
  2004. * src/UnknownLengthPieceStorage.cc
  2005. * src/UnknownLengthPieceStorage.h
  2006. * test/MockPieceStorage.h
  2007. * test/ProtocolDetectorTest.cc
  2008. * test/XmlRpcMethodTest.cc
  2009. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2010. Documented in man page that if getifaddrs() is missing,
  2011. --interface option doesn't accept interface name.
  2012. * doc/aria2c.1.txt
  2013. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2014. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  2015. * src/DefaultBtAnnounce.cc
  2016. * src/DefaultBtAnnounce.h
  2017. * test/DefaultBtAnnounceTest.cc
  2018. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2019. Fixed the bug that connection is always dropped if handshake
  2020. message in extension protocol don't have metadata_size.
  2021. src/HandshakeExtensionMessage.cc
  2022. * src/HandshakeExtensionMessage.cc
  2023. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2024. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  2025. text saying DHT is recommended when Magnet URI is provided.
  2026. * doc/aria2c.1.txt
  2027. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2028. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  2029. URI is supplied. Notify user that they should consider enabling
  2030. DHT if they use Magnet URI.
  2031. * src/RequestGroup.cc
  2032. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2033. Added --disable-ipv6 option to disable IPv6.
  2034. * doc/aria2c.1.txt
  2035. * src/InitiateConnectionCommand.cc
  2036. * src/NameResolver.cc
  2037. * src/NameResolver.h
  2038. * src/OptionHandlerFactory.cc
  2039. * src/main.cc
  2040. * src/prefs.cc
  2041. * src/prefs.h
  2042. * src/usage_text.h
  2043. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2044. Updated usage text for --bt-prioritize-piece option.
  2045. * doc/aria2c.1.txt
  2046. * src/usage_text.h
  2047. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2048. In configure script, if --with-PACKAGE and --enable-FEATURE are
  2049. given and PACKAGE is missing in the system or FEATURE cannot be
  2050. enabled, print error message and stop the script.
  2051. * configure.ac
  2052. * m4/aria2_arg.m4
  2053. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2054. Halt metadata download immediately when metadata download is done.
  2055. Don't wait unresponsive tracker.
  2056. * src/ByteArrayDiskWriter.h
  2057. * src/DefaultBtInteractive.cc
  2058. * src/DefaultExtensionMessageFactory.cc
  2059. * src/DefaultExtensionMessageFactory.h
  2060. * src/PeerInteractionCommand.cc
  2061. * src/UTMetadataDataExtensionMessage.cc
  2062. * src/UTMetadataDataExtensionMessage.h
  2063. * src/UTMetadataRequestExtensionMessage.cc
  2064. * test/UTMetadataDataExtensionMessageTest.cc
  2065. * test/UTMetadataRequestExtensionMessageTest.cc
  2066. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2067. Documented --interface option in man page.
  2068. * doc/aria2c.1.txt
  2069. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2070. Try resolved address in the order received from the resolver.
  2071. * src/DNSCache.h
  2072. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2073. Added debug logs.
  2074. * src/SocketCore.cc
  2075. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2076. Fixed type of tail to uint64_t
  2077. * src/util.cc
  2078. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2079. Added --interface option. This feature binds sockets to given
  2080. interface. You can specify interface name, IP address and
  2081. hostname.
  2082. * configure.ac
  2083. * src/OptionHandlerFactory.cc
  2084. * src/SocketCore.cc
  2085. * src/SocketCore.h
  2086. * src/main.cc
  2087. * src/message.h
  2088. * src/prefs.cc
  2089. * src/prefs.h
  2090. * src/usage_text.h
  2091. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2092. Updated man page for bt-prioritize-piece option in -i list.
  2093. * doc/aria2c.1.txt
  2094. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2095. Added bt-prioritize-piece option to -i list.
  2096. * src/download_helper.cc
  2097. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2098. Removed --http-auth-scheme option from man page.
  2099. * doc/aria2c.1.txt
  2100. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2101. Removed --http-auth-scheme option since it doesn't do nothing.
  2102. * src/OptionHandlerFactory.cc
  2103. * src/prefs.cc
  2104. * src/prefs.h
  2105. * src/usage_text.h
  2106. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2107. Adjusted the number of peer info which get_peers reply message can
  2108. carry.
  2109. * src/DHTGetPeersReplyMessage.cc
  2110. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2111. Added extension_message_test_helper.h to aria2c_SOURCES.
  2112. * test/Makefile.am
  2113. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2114. Documented --bt-prioritize-piece option in man page.
  2115. * doc/aria2c.1.txt
  2116. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2117. Added option --bt-prioritize-piece. This option instruct aria2 to
  2118. try to download first and last pieces of each file first. The
  2119. argument can contain 2 keywords:head and tail. To include both
  2120. keywords, they must be separated by comma. These keywords can take
  2121. one parameter, SIZE. For example , if head=SIZE is specified,
  2122. pieces in the range of first SIZE bytes of each file get higher
  2123. priority. tail=SIZE means the range of last SIZE bytes of each
  2124. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  2125. * src/DefaultPieceStorage.h
  2126. * src/Makefile.am
  2127. * src/OptionHandlerFactory.cc
  2128. * src/OptionHandlerImpl.h
  2129. * src/PriorityPieceSelector.cc
  2130. * src/PriorityPieceSelector.h
  2131. * src/RequestGroup.cc
  2132. * src/prefs.cc
  2133. * src/prefs.h
  2134. * src/usage_text.h
  2135. * src/util.cc
  2136. * src/util.h
  2137. * test/Makefile.am
  2138. * test/MockPieceSelector.h
  2139. * test/PriorityPieceSelectorTest.cc
  2140. * test/UtilTest.cc
  2141. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2142. Fixed typo
  2143. * src/HttpRequest.h
  2144. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2145. In Magnet URI with tr parameter, put each announce URI in separate
  2146. tier.
  2147. * src/bittorrent_helper.cc
  2148. * test/BittorrentHelperTest.cc
  2149. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2150. Renamed ExtensionMessage::getBencodedData() as
  2151. ExtensionMessage::getPayload()
  2152. * src/BtExtendedMessage.cc
  2153. * src/ExtensionMessage.h
  2154. * src/HandshakeExtensionMessage.cc
  2155. * src/HandshakeExtensionMessage.h
  2156. * src/UTMetadataDataExtensionMessage.cc
  2157. * src/UTMetadataDataExtensionMessage.h
  2158. * src/UTMetadataRejectExtensionMessage.cc
  2159. * src/UTMetadataRejectExtensionMessage.h
  2160. * src/UTMetadataRequestExtensionMessage.cc
  2161. * src/UTMetadataRequestExtensionMessage.h
  2162. * src/UTPexExtensionMessage.cc
  2163. * src/UTPexExtensionMessage.h
  2164. * test/HandshakeExtensionMessageTest.cc
  2165. * test/MockExtensionMessage.h
  2166. * test/UTMetadataDataExtensionMessageTest.cc
  2167. * test/UTMetadataRejectExtensionMessageTest.cc
  2168. * test/UTMetadataRequestExtensionMessageTest.cc
  2169. * test/UTPexExtensionMessageTest.cc
  2170. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2171. Updated man page for BitTorrent Magnet URI.
  2172. * doc/aria2c.1.txt
  2173. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2174. Call DownloadContext::setOwnerRequestGroup() in
  2175. RequestGroup::setDownloadContext().
  2176. * src/BtDependency.cc
  2177. * src/RequestGroup.cc
  2178. * src/RequestGroup.h
  2179. * src/download_helper.cc
  2180. * test/DefaultBtMessageDispatcherTest.cc
  2181. * test/DefaultExtensionMessageFactoryTest.cc
  2182. * test/HandshakeExtensionMessageTest.cc
  2183. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2184. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  2185. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  2186. from metadata, use new metadata2Torrent() function.
  2187. * src/BtDependency.cc
  2188. * src/UTMetadataPostDownloadHandler.cc
  2189. * src/bittorrent_helper.cc
  2190. * src/bittorrent_helper.h
  2191. * test/BittorrentHelperTest.cc
  2192. * test/BtDependencyTest.cc
  2193. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2194. Use createRequestGroupForUri to create the download for torrent
  2195. file.
  2196. * src/Metalink2RequestGroup.cc
  2197. * test/Metalink2RequestGroupTest.cc
  2198. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2199. Fixed typo
  2200. * src/DownloadContext.h
  2201. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2202. Use createRequestGroupForBitTorrent()
  2203. * src/BtPostDownloadHandler.cc
  2204. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2205. Added remove().
  2206. * src/Option.cc
  2207. * src/Option.h
  2208. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2209. Removed options which is only valid for URIs specified in
  2210. command-line. If they are left, because op is used as a template
  2211. for new RequestGroup(such as created in XML-RPC command,
  2212. BtPostDownloadHandler etc), they causes unintentional effect.
  2213. * src/main.cc
  2214. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2215. Refer to option value of PREF_OUT only in download_helper.
  2216. * src/FtpNegotiationCommand.cc
  2217. * src/HttpResponseCommand.cc
  2218. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2219. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  2220. * src/download_helper.cc
  2221. * src/download_helper.h
  2222. * src/XmlRpcMethodImpl.cc
  2223. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2224. Updated man page for changeOption XML-RPC method.
  2225. * doc/aria2c.1.txt
  2226. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2227. Added --bt-max-peers option to changeOption XML-RPC method.
  2228. * src/XmlRpcMethod.cc
  2229. * src/XmlRpcMethodImpl.cc
  2230. * test/XmlRpcMethodTest.cc
  2231. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2232. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  2233. * test/XmlRpcMethodTest.cc
  2234. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2235. Removed redundant DownloadContext::hasAttribute(...) calls.
  2236. * src/ConsoleStatCalc.cc
  2237. * src/RequestGroup.cc
  2238. * src/XmlRpcMethodImpl.cc
  2239. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2240. Changed the number of tracker request attempt from 5 to 2.
  2241. * src/TrackerWatcherCommand.cc
  2242. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2243. Use host and protocol in original URI, because URI selector
  2244. selects URI based on original URI, not redirected one.
  2245. * src/Request.cc
  2246. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2247. Fixed the bug which causes segmentation fault with tellWaiting
  2248. XML-RPC method when BitTorrent download is waiting. The key of
  2249. BtRegistry is changed from info hash to GID, because it is
  2250. registered per RequestGroup, not info hash.
  2251. * src/BtRegistry.cc
  2252. * src/BtRegistry.h
  2253. * src/BtSetup.cc
  2254. * src/ConsoleStatCalc.cc
  2255. * src/InitiatorMSEHandshakeCommand.cc
  2256. * src/PeerInitiateConnectionCommand.cc
  2257. * src/PeerInteractionCommand.cc
  2258. * src/PeerInteractionCommand.h
  2259. * src/PeerReceiveHandshakeCommand.cc
  2260. * src/RequestGroup.cc
  2261. * src/XmlRpcMethodImpl.cc
  2262. * test/BtRegistryTest.cc
  2263. * test/XmlRpcMethodTest.cc
  2264. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2265. Updated man page for changeOption XML-RPC method.
  2266. * doc/aria2c.1.txt
  2267. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2268. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  2269. method.
  2270. * src/XmlRpcMethod.cc
  2271. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2272. Documented about BitTorrent Magnet URI in man page.
  2273. * doc/aria2c.1.txt
  2274. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2275. Fixed the bug that trackers in BitTorrent Magnet URI are not
  2276. inherited to generated RequestGroup.
  2277. * src/UTMetadataPostDownloadHandler.cc
  2278. * test/UTMetadataPostDownloadHandlerTest.cc
  2279. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2280. Prepended "[METADATA]" before dn.
  2281. * src/bittorrent_helper.cc
  2282. * test/BittorrentHelperTest.cc
  2283. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2284. Rewritten Magnet URI parser.
  2285. * src/Makefile.am
  2286. * src/ProtocolDetector.cc
  2287. * src/bittorrent_helper.cc
  2288. * src/bittorrent_helper.h
  2289. * src/download_helper.cc
  2290. * src/magnet.cc
  2291. * src/magnet.h
  2292. * test/BittorrentHelperTest.cc
  2293. * test/MagnetTest.cc
  2294. * test/Makefile.am
  2295. * test/ProtocolDetectorTest.cc
  2296. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2297. Use hton64
  2298. * src/base32.cc
  2299. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2300. Added Base32 encoded BitTorrent Magnet Link support.
  2301. * src/Makefile.am
  2302. * src/base32.cc
  2303. * src/base32.h
  2304. * src/bittorrent_helper.cc
  2305. * test/Base32Test.cc
  2306. * test/BittorrentHelperTest.cc
  2307. * test/Makefile.am
  2308. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2309. Added BitTorrent Magnet Link support. Base32 encoded link is not
  2310. supported yet. Fixed typo in method name in RequestGroup. In
  2311. metadataGetMode, don't show "Your share ratio was ..." message.
  2312. * src/DefaultBtInteractive.cc
  2313. * src/DefaultBtInteractive.h
  2314. * src/DownloadHandlerFactory.cc
  2315. * src/DownloadHandlerFactory.h
  2316. * src/HandshakeExtensionMessage.cc
  2317. * src/Makefile.am
  2318. * src/Metalink2RequestGroup.cc
  2319. * src/PeerInteractionCommand.cc
  2320. * src/RequestGroup.cc
  2321. * src/RequestGroup.h
  2322. * src/UTMetadataPostDownloadHandler.cc
  2323. * src/UTMetadataPostDownloadHandler.h
  2324. * src/download_helper.cc
  2325. * test/HandshakeExtensionMessageTest.cc
  2326. * test/Makefile.am
  2327. * test/UTMetadataPostDownloadHandlerTest.cc
  2328. * test/UTMetadataRejectExtensionMessageTest.cc
  2329. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2330. In metadataGetMode, don't show SEEDING.
  2331. * src/ConsoleStatCalc.cc
  2332. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2333. Fixed ut_metadata data handling. Implemented
  2334. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  2335. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  2336. metadata_size is received.
  2337. * src/DefaultExtensionMessageFactory.cc
  2338. * src/DefaultExtensionMessageFactory.h
  2339. * src/HandshakeExtensionMessage.cc
  2340. * src/HandshakeExtensionMessage.h
  2341. * src/UTMetadataDataExtensionMessage.cc
  2342. * src/UTMetadataDataExtensionMessage.h
  2343. * src/UTMetadataRequestExtensionMessage.cc
  2344. * src/UTMetadataRequestFactory.cc
  2345. * src/UTMetadataRequestFactory.h
  2346. * src/UTMetadataRequestTracker.cc
  2347. * src/UTMetadataRequestTracker.h
  2348. * test/DefaultExtensionMessageFactoryTest.cc
  2349. * test/HandshakeExtensionMessageTest.cc
  2350. * test/MockBtMessage.h
  2351. * test/UTMetadataDataExtensionMessageTest.cc
  2352. * test/UTMetadataRequestExtensionMessageTest.cc
  2353. * test/UTMetadataRequestFactoryTest.cc
  2354. * test/UTMetadataRequestTrackerTest.cc
  2355. * test/extension_message_test_helper.h
  2356. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2357. Drop connection if ut_metadata reject message is received.
  2358. * src/UTMetadataRejectExtensionMessage.cc
  2359. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2360. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  2361. get high enough in that mode.
  2362. * src/ActivePeerConnectionCommand.cc
  2363. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2364. Added BitTorrent magnet link support to ProtocolDetector.
  2365. * src/ProtocolDetector.cc
  2366. * src/ProtocolDetector.h
  2367. * test/ProtocolDetectorTest.cc
  2368. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2369. Don't inject validator into BtMessage in metadataGetMode because
  2370. most of the checks depends on the total length of download but it
  2371. is unknown. Delegate metadataGetMode to BtMessage.
  2372. * src/DefaultBtMessageFactory.cc
  2373. * src/DefaultBtMessageFactory.h
  2374. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2375. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  2376. * src/DefaultPieceStorage.h
  2377. * src/PieceStorage.h
  2378. * src/UnknownLengthPieceStorage.h
  2379. * test/MockPieceStorage.h
  2380. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2381. Added markTotalLengthIsKnown().
  2382. * src/DownloadContext.h
  2383. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2384. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  2385. missing. If metadata is missing, always use DHT when it is ready.
  2386. * src/BtSetup.cc
  2387. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2388. Added parseMagnetLink(). Hex encoded info hash is supported.
  2389. Base32 encoded info hash is not supported yet.
  2390. * src/bittorrent_helper.cc
  2391. * src/bittorrent_helper.h
  2392. * test/BittorrentHelperTest.cc
  2393. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2394. Added FromHex()
  2395. * src/util.cc
  2396. * src/util.h
  2397. * test/UtilTest.cc
  2398. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2399. Added _metadataGetMode member variable. It toggles the action when
  2400. messages are received: usually they almost do nothing if
  2401. _metadataGetMode is true.
  2402. * src/AbstractBtMessage.cc
  2403. * src/AbstractBtMessage.h
  2404. * src/BtAllowedFastMessage.cc
  2405. * src/BtBitfieldMessage.cc
  2406. * src/BtCancelMessage.cc
  2407. * src/BtChokeMessage.cc
  2408. * src/BtHaveAllMessage.cc
  2409. * src/BtHaveMessage.cc
  2410. * src/BtInterestedMessage.cc
  2411. * src/BtNotInterestedMessage.cc
  2412. * src/BtPieceMessage.cc
  2413. * src/BtRejectMessage.cc
  2414. * src/BtRequestMessage.cc
  2415. * src/BtUnchokeMessage.cc
  2416. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2417. Added bencode::decode overload functions. They have extra argument
  2418. 'end', passed by reference. 'end' points to the beyond the last
  2419. position of data used in decoding process.
  2420. * src/bencode.cc
  2421. * src/bencode.h
  2422. * test/BencodeTest.cc
  2423. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2424. Initial support of Extension for Peers to Send Metadata
  2425. Files(BEP9). Currently aria2 only serves metadata and cannot get
  2426. metadata from swarm.
  2427. * src/BtConstants.h
  2428. * src/DefaultBtInteractive.cc
  2429. * src/DefaultExtensionMessageFactory.cc
  2430. * src/DefaultExtensionMessageFactory.h
  2431. * src/ExtensionMessage.h
  2432. * src/ExtensionMessageRegistry.h
  2433. * src/HandshakeExtensionMessage.cc
  2434. * src/HandshakeExtensionMessage.h
  2435. * src/Makefile.am
  2436. * src/PeerConnection.h
  2437. * src/PeerInteractionCommand.cc
  2438. * src/UTMetadataDataExtensionMessage.cc
  2439. * src/UTMetadataDataExtensionMessage.h
  2440. * src/UTMetadataExtensionMessage.cc
  2441. * src/UTMetadataExtensionMessage.h
  2442. * src/UTMetadataRejectExtensionMessage.cc
  2443. * src/UTMetadataRejectExtensionMessage.h
  2444. * src/UTMetadataRequestExtensionMessage.cc
  2445. * src/UTMetadataRequestExtensionMessage.h
  2446. * src/bittorrent_helper.cc
  2447. * src/bittorrent_helper.h
  2448. * test/BittorrentHelperTest.cc
  2449. * test/DefaultExtensionMessageFactoryTest.cc
  2450. * test/HandshakeExtensionMessageTest.cc
  2451. * test/Makefile.am
  2452. * test/UTMetadataDataExtensionMessageTest.cc
  2453. * test/UTMetadataRejectExtensionMessageTest.cc
  2454. * test/UTMetadataRequestExtensionMessageTest.cc
  2455. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2456. Cancel segment in prepareForRetry() because there is a chance that
  2457. the command has segments.
  2458. * src/CreateRequestCommand.cc
  2459. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2460. Fixed the bug that slow server is not knocked down in favor of
  2461. faster one.
  2462. * src/AbstractCommand.cc
  2463. * src/DefaultPieceStorage.cc
  2464. * src/DefaultPieceStorage.h
  2465. * src/PieceStorage.h
  2466. * src/UnknownLengthPieceStorage.cc
  2467. * src/UnknownLengthPieceStorage.h
  2468. * test/MockPieceStorage.h
  2469. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2470. Fixed the bug that Request object is not added to
  2471. _inFlightRequests in findFasterRequest().
  2472. * src/FileEntry.cc
  2473. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2474. Changed the strategry of how to increase the number of outstanding
  2475. requests. Now the number is doubled if there are no outstanding
  2476. requests after receiving messages.
  2477. * src/BtConstants.h
  2478. * src/DefaultBtInteractive.cc
  2479. * src/DefaultBtInteractive.h
  2480. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2481. Check socket for reading if there are outstanding requests.
  2482. * src/PeerInteractionCommand.cc
  2483. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2484. Moved frequently called methods to header file so they get
  2485. inlined.
  2486. * src/RequestSlot.cc
  2487. * src/RequestSlot.h
  2488. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2489. Copied in_addr instead of just casting from char* which might
  2490. violate strict aliasing rules.
  2491. * src/AsyncNameResolver.cc
  2492. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2493. Use dynamic_pointer_cast
  2494. * test/BtPieceMessageTest.cc
  2495. * test/BtRequestMessageTest.cc
  2496. * test/DefaultBtRequestFactoryTest.cc
  2497. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2498. Added testSetUrl20()
  2499. * test/RequestTest.cc
  2500. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2501. Code cleanup
  2502. * src/bittorrent_helper.cc
  2503. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2504. Use C++ style cast
  2505. * src/AsyncNameResolver.cc
  2506. * src/Base64.h
  2507. * src/BtBitfieldMessage.cc
  2508. * src/BtHandshakeMessage.cc
  2509. * src/DefaultBtMessageFactory.cc
  2510. * src/DefaultBtProgressInfoFile.cc
  2511. * src/EpollEventPoll.cc
  2512. * src/ExpatMetalinkProcessor.cc
  2513. * src/IteratableChecksumValidator.cc
  2514. * src/IteratableChunkChecksumValidator.cc
  2515. * src/MessageDigestHelper.cc
  2516. * src/Platform.cc
  2517. * src/RequestGroupMan.cc
  2518. * src/SingleFileAllocationIterator.cc
  2519. * src/Sqlite3MozCookieParser.cc
  2520. * src/XML2SAXMetalinkProcessor.cc
  2521. * src/Xml2XmlRpcRequestProcessor.cc
  2522. * src/util.cc
  2523. * src/util.h
  2524. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2525. Fixed integer potential alignment problem.
  2526. * src/bitfield.h
  2527. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2528. Applied a patch from tizianomueller to fix sigbus errors on Linux
  2529. sparc. I modified the patch to eliminate a cast to uint32_t* and
  2530. include file ordering.
  2531. * src/PeerListProcessor.h
  2532. * src/bittorrent_helper.cc
  2533. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2534. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  2535. * src/Request.cc
  2536. * src/util.cc
  2537. * src/util.h
  2538. * test/RequestTest.cc
  2539. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2540. Rewritten util::uitos()
  2541. * src/util.h
  2542. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2543. Code cleanup
  2544. * src/Request.cc
  2545. * src/Request.h
  2546. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2547. Rewritten Request::parseUrl()
  2548. * src/Request.cc
  2549. * test/RequestTest.cc
  2550. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2551. Removed unused macro SAFE_CHARS
  2552. * src/Request.cc
  2553. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2554. Updated doc
  2555. * src/DHTRoutingTableDeserializer.cc
  2556. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2557. Release 1.6.3
  2558. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2559. Removed unused function.
  2560. * test/DHTPeerAnnounceStorageTest.cc
  2561. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2562. Only decrement cols if cols > 0
  2563. * src/ConsoleStatCalc.cc
  2564. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2565. Updated Polish, Catalan, French, Italian, Russian and Japanese
  2566. translations. Thanks to all translators.
  2567. * po/ca.po
  2568. * po/fr.po
  2569. * po/it.po
  2570. * po/ja.po
  2571. * po/pl.po
  2572. * po/ru.po
  2573. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2574. Updated translation template
  2575. * po
  2576. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2577. Fixed compile error without ssl library.
  2578. * src/util.cc
  2579. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2580. Logged received nodes in get_peers reply message.
  2581. * src/DHTAbstractNodeLookupTask.cc
  2582. * src/DHTAbstractNodeLookupTask.h
  2583. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2584. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  2585. error occurred in DHTMessageDispatcherImpl::sendMessage().
  2586. * src/DHTMessageDispatcherImpl.cc
  2587. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2588. Don't reuse URI if Request pool is not empty.
  2589. * src/CreateRequestCommand.cc
  2590. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2591. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  2592. receive get_peers request for torrent which the client is now
  2593. downloading.
  2594. * src/BtSetup.cc
  2595. * src/DHTPeerAnnounceEntry.cc
  2596. * src/DHTPeerAnnounceEntry.h
  2597. * src/DHTPeerAnnounceStorage.cc
  2598. * src/DHTPeerAnnounceStorage.h
  2599. * src/RequestGroup.cc
  2600. * test/DHTPeerAnnounceEntryTest.cc
  2601. * test/DHTPeerAnnounceStorageTest.cc
  2602. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2603. Fixed the bug that in Windows environment new blank line is
  2604. inserted when console readout is updated.
  2605. * src/ConsoleStatCalc.cc
  2606. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2607. Throw exception if binding listening port is failed. Removed
  2608. RequestGroupMan::getInitialCommand(). Use
  2609. fillRequestGroupFromReserver() instead. Delete commands for
  2610. RequestGroup which has errors when it is being added.
  2611. * src/BtSetup.cc
  2612. * src/DownloadEngine.cc
  2613. * src/DownloadEngine.h
  2614. * src/DownloadEngineFactory.cc
  2615. * src/MultiUrlRequestInfo.cc
  2616. * src/RequestGroupMan.cc
  2617. * src/RequestGroupMan.h
  2618. * test/RequestGroupManTest.cc
  2619. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2620. Fixed the bug that when downloading more than one torrent,
  2621. listening port is not reported properly to tracker for 2nd or
  2622. later torrents.
  2623. * src/BtSetup.cc
  2624. * src/PeerListenCommand.cc
  2625. * src/PeerListenCommand.h
  2626. * src/RequestGroup.cc
  2627. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2628. Bump up version number to 1.6.3
  2629. * configure.ac
  2630. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2631. Removed Util.cc from POTFILES.in
  2632. * po/POTFILES.in
  2633. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2634. Updated man page for previous change.
  2635. * doc/aria2c.1.txt
  2636. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2637. If user name is embedded but password is missing in URI, first
  2638. resolve password using .netrc. If password is found in .netrc,
  2639. then use it as password. If not, use the password specified in
  2640. --ftp-passwd.
  2641. * src/AuthConfigFactory.cc
  2642. * src/Request.cc
  2643. * src/Request.h
  2644. * test/AuthConfigFactoryTest.cc
  2645. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2646. Fixed typo
  2647. * doc/aria2c.1.txt
  2648. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2649. Fixed typo
  2650. * src/usage_text.h
  2651. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2652. Added missing bitfield.cc
  2653. * src/bitfield.cc
  2654. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2655. Renamed Util.{cc,h} as util.{cc,h}
  2656. * src/Util.cc
  2657. * src/Util.h
  2658. * src/util.cc
  2659. * src/util.h
  2660. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2661. Moved static functions in Util class to namespace util.
  2662. * src
  2663. * test
  2664. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2665. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  2666. Moved generateRandomKey to bittorrent_helper.cc.
  2667. * src/DHTBucket.cc
  2668. * src/DHTGetPeersMessage.cc
  2669. * src/DHTGetPeersReplyMessage.cc
  2670. * src/DHTMessage.cc
  2671. * src/DHTNode.cc
  2672. * src/DHTTokenTracker.cc
  2673. * src/DHTUtil.cc: Removed.
  2674. * src/DHTUtil.h: Removed.
  2675. * src/Makefile.am
  2676. * src/Util.cc
  2677. * src/Util.h
  2678. * src/bitfield.h
  2679. * src/bittorrent_helper.cc
  2680. * src/bittorrent_helper.h
  2681. * test/ARC4Test.cc
  2682. * test/BNodeTest.cc
  2683. * test/DHTAnnouncePeerMessageTest.cc
  2684. * test/DHTAnnouncePeerReplyMessageTest.cc
  2685. * test/DHTFindNodeMessageTest.cc
  2686. * test/DHTFindNodeReplyMessageTest.cc
  2687. * test/DHTGetPeersMessageTest.cc
  2688. * test/DHTGetPeersReplyMessageTest.cc
  2689. * test/DHTPingMessageTest.cc
  2690. * test/DHTPingReplyMessageTest.cc
  2691. * test/DHTTokenTrackerTest.cc
  2692. * test/DHTUtilTest.cc: Removed.
  2693. * test/Makefile.am
  2694. * test/UtilTest.cc
  2695. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2696. Removed the call to trim() because trim() is called for each
  2697. element in split().
  2698. * src/CookieParser.cc
  2699. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2700. Replaced Util::slice() with split()
  2701. * src/AbstractCommand.cc
  2702. * src/CookieParser.cc
  2703. * src/File.cc
  2704. * src/HttpHeaderProcessor.cc
  2705. * src/HttpRequest.cc
  2706. * src/Metalink2RequestGroup.cc
  2707. * src/MetalinkParserController.cc
  2708. * src/Netrc.cc
  2709. * src/NsCookieParser.cc
  2710. * src/ParameterizedStringParser.cc
  2711. * src/ServerStatMan.cc
  2712. * src/UriListParser.cc
  2713. * src/Util.cc
  2714. * src/Util.h
  2715. * src/bittorrent_helper.cc
  2716. * test/UtilTest.cc
  2717. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2718. Use request->getDir() instead of "/" for embedded user/pass in
  2719. URI.
  2720. * src/AuthConfigFactory.cc
  2721. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2722. Fixed wrong insertion point for BasicCred.
  2723. * src/AuthConfigFactory.cc
  2724. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2725. Allowed non-regular file in LocalFilePathOptionHandler
  2726. * src/OptionHandlerImpl.h
  2727. * src/message.h
  2728. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2729. Fixed the bug that Netrc::parse() cannot recognize comment line.
  2730. * src/Netrc.cc
  2731. * src/Util.h
  2732. * test/NetrcTest.cc
  2733. * test/sample.netrc
  2734. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2735. Fixed typo
  2736. * src/BtDependency.cc
  2737. * src/BtRejectMessage.cc
  2738. * src/FtpConnection.cc
  2739. * src/HttpHeaderProcessor.h
  2740. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2741. Fixed lintian report in man page
  2742. * doc/aria2c.1.txt
  2743. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2744. Release 1.6.2
  2745. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2746. Updated Ukrainian translation. Thanks to all translators.
  2747. * po/uk.po
  2748. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2749. Updated translation template
  2750. * po
  2751. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2752. Bump up version number to 1.6.2
  2753. * configure.ac
  2754. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2755. Updated licence message in -v output.
  2756. * src/version_usage.cc
  2757. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2758. Replaced aria2 with aria2c in help message.
  2759. * src/version_usage.cc
  2760. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2761. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  2762. * src/version_usage.cc
  2763. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2764. Quoted localedir
  2765. * src/Makefile.am
  2766. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2767. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  2768. utime. Check header for utime.h.
  2769. * configure.ac
  2770. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2771. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  2772. * configure.ac
  2773. * src/daemon.cc
  2774. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2775. Don't set localedir manually. Leave it to autoconf.
  2776. * configure.ac
  2777. * src/Makefile.am
  2778. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2779. Added --install to ACLOCAL_AMFLAGS.
  2780. Removed m4 from SUBDIRS.
  2781. Updated automake 1.11 and autoconf 2.64.
  2782. Replaced some obsolute macros with new one.
  2783. * Makefile.am
  2784. * configure.ac
  2785. * m4/aria2_arg.m4
  2786. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2787. Removed Makefile.am in m4 directory.
  2788. * configure.ac
  2789. * m4/ChangeLog
  2790. * m4/Makefile.am
  2791. * m4/Makefile.in
  2792. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2793. Removed unused m4 macros.
  2794. * m4/intldir.m4
  2795. * m4/inttypes.m4
  2796. * m4/isc-posix.m4
  2797. * m4/libgnutls-extra.m4
  2798. * m4/ulonglong.m4
  2799. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2800. Fixed the bug that causes segmentation fault if
  2801. req->getCurrentUrl() contains printf formatting characters such as
  2802. %d. The statement that causes this bug is useless and removed.
  2803. * src/AbstractCommand.cc
  2804. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2805. * Release 1.6.1
  2806. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2807. Updated Simplified Chinese translation. Thanks to translators.
  2808. * po/zh_CN.po
  2809. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2810. Updated translation template
  2811. * po
  2812. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2813. Bump up version number to 1.6.1
  2814. * configure.ac
  2815. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2816. Changed interval from 120 to 60 for dropping inactive peer.
  2817. * src/DefaultBtInteractive.cc
  2818. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2819. Updated man page for --user-agent and --peer-id-prefix option.
  2820. * doc/aria2c.1.txt
  2821. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2822. Code clean up
  2823. * src/BtPostDownloadHandler.cc
  2824. * src/ContentTypeRequestGroupCriteria.cc
  2825. * src/ContentTypeRequestGroupCriteria.h
  2826. * src/DownloadHandlerConstants.cc
  2827. * src/DownloadHandlerConstants.h
  2828. * src/DownloadHandlerFactory.cc
  2829. * src/MetalinkPostDownloadHandler.cc
  2830. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2831. Don't save control file when aria2 exists while checking piece
  2832. hash(behavior of -V option). If control file doesn't exist when
  2833. aria2 launched, the completed length in saved control file will be
  2834. 0 byte and this confuses user. disableSaveControlFile() is called
  2835. in RequestGroup::processCheckIntegrityEntry().
  2836. enableSaveControlFile() will be called after hash checking is
  2837. done. See CheckIntegrityCommand.
  2838. * src/CheckIntegrityCommand.cc
  2839. * src/RequestGroup.cc
  2840. * src/RequestGroup.h
  2841. * src/RequestGroupMan.cc
  2842. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2843. Included version number in Peer ID and client version. Peer ID
  2844. now starts with "aria2/VERSION-", where VERSION is
  2845. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  2846. * src/DefaultBtInteractive.cc
  2847. * src/OptionHandlerFactory.cc
  2848. * src/bittorrent_helper.cc
  2849. * src/bittorrent_helper.h
  2850. * src/main.cc
  2851. * src/usage_text.h
  2852. * test/BittorrentHelperTest.cc
  2853. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2854. Fixed memory leak.
  2855. * src/DownloadCommand.cc
  2856. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2857. Removed server, port, user and passwd key from options before
  2858. XMLRPC::Client.call since they are not options of aria2.
  2859. * doc/xmlrpc/aria2mon
  2860. * doc/xmlrpc/aria2rpc
  2861. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2862. Included version number in user-agent string.
  2863. * src/OptionHandlerFactory.cc
  2864. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2865. Fixed the bug that the option values changed by XML-RPC
  2866. method(changeOption and changeGlobalOption) are overwritten to the
  2867. previous value by the next these request which doesn't contain
  2868. that option value. Supporse max-download-limit is initially 0. You
  2869. changed this value to 100K by changeOption. Then you issue
  2870. changeOption request to change max-upload-limit to 50K. This
  2871. second request doesn't contain xml-download-limit, so it is back
  2872. to initial value, 0. Another improvement is that exception is
  2873. thrown when changeOption and changeGlobalOption request contains
  2874. option name which doesn't allowed in each request.
  2875. * src/DownloadEngine.h
  2876. * src/XmlRpcMethod.cc
  2877. * src/XmlRpcMethod.h
  2878. * src/XmlRpcMethodImpl.cc
  2879. * src/download_helper.cc
  2880. * src/download_helper.h
  2881. * test/XmlRpcMethodTest.cc
  2882. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2883. Added missing MetalinkParserStateImpl.{cc,h}
  2884. * src/MetalinkParserStateImpl.cc
  2885. * src/MetalinkParserStateImpl.h
  2886. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2887. Put all MetalinkParserState subclasses into
  2888. MetalinkParserStateImpl.cc. Use stack to track element structure.
  2889. * src/FileMetalinkParserState.cc: Removed
  2890. * src/FileMetalinkParserState.h: Removed
  2891. * src/FilesMetalinkParserState.cc: Removed
  2892. * src/FilesMetalinkParserState.h: Removed
  2893. * src/FinMetalinkParserState.cc: Removed
  2894. * src/FinMetalinkParserState.h: Removed
  2895. * src/HashMetalinkParserState.cc: Removed
  2896. * src/HashMetalinkParserState.h: Removed
  2897. * src/InitialMetalinkParserState.cc: Removed
  2898. * src/InitialMetalinkParserState.h: Removed
  2899. * src/LanguageMetalinkParserState.cc: Removed
  2900. * src/LanguageMetalinkParserState.h: Removed
  2901. * src/Makefile.am
  2902. * src/MetalinkMetalinkParserState.cc: Removed
  2903. * src/MetalinkMetalinkParserState.h: Removed
  2904. * src/MetalinkParserState.h
  2905. * src/MetalinkParserStateMachine.cc
  2906. * src/MetalinkParserStateMachine.h
  2907. * src/OSMetalinkParserState.cc: Removed
  2908. * src/OSMetalinkParserState.h: Removed
  2909. * src/PieceHashMetalinkParserState.cc: Removed
  2910. * src/PieceHashMetalinkParserState.h: Removed
  2911. * src/PiecesMetalinkParserState.cc: Removed
  2912. * src/PiecesMetalinkParserState.h: Removed
  2913. * src/ResourcesMetalinkParserState.cc: Removed
  2914. * src/ResourcesMetalinkParserState.h: Removed
  2915. * src/SignatureMetalinkParserState.cc: Removed
  2916. * src/SignatureMetalinkParserState.h: Removed
  2917. * src/SizeMetalinkParserState.cc: Removed
  2918. * src/SizeMetalinkParserState.h: Removed
  2919. * src/SkipTagMetalinkParserState.cc: Removed
  2920. * src/SkipTagMetalinkParserState.h: Removed
  2921. * src/URLMetalinkParserState.cc: Removed
  2922. * src/URLMetalinkParserState.h: Removed
  2923. * src/VerificationMetalinkParserState.cc: Removed
  2924. * src/VerificationMetalinkParserState.h: Removed
  2925. * src/VersionMetalinkParserState.cc: Removed
  2926. * src/VersionMetalinkParserState.h: Removed
  2927. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2928. Move all functions in PeerMessageUtil to bittorrent_helper.
  2929. * src/BtBitfieldMessage.cc
  2930. * src/BtBitfieldMessageValidator.h
  2931. * src/BtExtendedMessage.cc
  2932. * src/BtHandshakeMessage.cc
  2933. * src/BtHandshakeMessageValidator.h
  2934. * src/BtPieceMessage.cc
  2935. * src/BtPieceMessageValidator.h
  2936. * src/BtPortMessage.cc
  2937. * src/DHTFindNodeReplyMessage.cc
  2938. * src/DHTGetPeersReplyMessage.cc
  2939. * src/DHTMessageFactoryImpl.cc
  2940. * src/DHTRoutingTableDeserializer.cc
  2941. * src/DHTRoutingTableSerializer.cc
  2942. * src/DHTTokenTracker.cc
  2943. * src/DefaultBtMessageFactory.cc
  2944. * src/IndexBtMessage.cc
  2945. * src/IndexBtMessage.h
  2946. * src/IndexBtMessageValidator.h
  2947. * src/Makefile.am
  2948. * src/PeerMessageUtil.cc: Removed.
  2949. * src/PeerMessageUtil.h: Removed.
  2950. * src/RangeBtMessage.cc
  2951. * src/RangeBtMessage.h
  2952. * src/RangeBtMessageValidator.h
  2953. * src/UTPexExtensionMessage.cc
  2954. * src/ZeroBtMessage.cc
  2955. * src/ZeroBtMessage.h
  2956. * src/bittorrent_helper.cc
  2957. * src/bittorrent_helper.h
  2958. * test/BittorrentHelperTest.cc
  2959. * test/BtAllowedFastMessageTest.cc
  2960. * test/BtBitfieldMessageTest.cc
  2961. * test/BtCancelMessageTest.cc
  2962. * test/BtChokeMessageTest.cc
  2963. * test/BtExtendedMessageTest.cc
  2964. * test/BtHandshakeMessageTest.cc
  2965. * test/BtHaveAllMessageTest.cc
  2966. * test/BtHaveMessageTest.cc
  2967. * test/BtHaveNoneMessageTest.cc
  2968. * test/BtInterestedMessageTest.cc
  2969. * test/BtNotInterestedMessageTest.cc
  2970. * test/BtPieceMessageTest.cc
  2971. * test/BtPortMessageTest.cc
  2972. * test/BtRejectMessageTest.cc
  2973. * test/BtRequestMessageTest.cc
  2974. * test/BtSuggestPieceMessageTest.cc
  2975. * test/BtUnchokeMessageTest.cc
  2976. * test/DHTFindNodeReplyMessageTest.cc
  2977. * test/DHTGetPeersReplyMessageTest.cc
  2978. * test/DHTMessageFactoryImplTest.cc
  2979. * test/DHTRoutingTableDeserializerTest.cc
  2980. * test/DHTRoutingTableSerializerTest.cc
  2981. * test/DefaultBtMessageFactoryTest.cc
  2982. * test/DefaultExtensionMessageFactoryTest.cc
  2983. * test/Makefile.am
  2984. * test/PeerListProcessorTest.cc
  2985. * test/PeerMessageUtilTest.cc: Removed.
  2986. * test/UTPexExtensionMessageTest.cc
  2987. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2988. Limit the size of values list when sending get_peers reply.
  2989. * src/DHTGetPeersReplyMessage.cc
  2990. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2991. Updated banner
  2992. * doc/xmlrpc/aria2rpc
  2993. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2994. Added missing help message for remove command.
  2995. * doc/xmlrpc/aria2rpc
  2996. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2997. Generated configure and config.h.in
  2998. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  2999. Add check for fork(), which is missing on MinGW
  3000. * src/daemon.cc
  3001. * configure.ac
  3002. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3003. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  3004. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  3005. Util::httpGMT().
  3006. * src/Util.cc
  3007. * src/Util.h
  3008. * test/UtilTest.cc
  3009. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3010. * Release 1.6.0
  3011. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3012. Fixed a path to xmlrpc/README.txt
  3013. * doc/Makefile.am
  3014. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3015. Added XML-RPC in -v Configuration output.
  3016. * src/FeatureConfig.cc
  3017. * src/FeatureConfig.h
  3018. * test/FeatureConfigTest.cc
  3019. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3020. Updated Bulgarian, Russian, Slovak and Japanese
  3021. translations. Thanks to all translators.
  3022. * po/bg.po
  3023. * po/ja.po
  3024. * po/ru.po
  3025. * po/sk.po
  3026. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3027. Removed --retry-wait option from aria2rpc
  3028. * doc/xmlrpc/aria2rpc
  3029. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3030. Removed --retry-wait option from man page.
  3031. * doc/aria2c.1.txt
  3032. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3033. Removed --retry-wait option since the current architecture doesn't
  3034. allow sleep for particular URI.
  3035. * src/AbstractCommand.cc
  3036. * src/OptionHandlerFactory.cc
  3037. * src/download_helper.cc
  3038. * src/prefs.cc
  3039. * src/prefs.h
  3040. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3041. Removed Retry-After header support. Since the current architecture
  3042. doesn't allow sleep for particular URI.
  3043. * src/HttpSkipResponseCommand.cc
  3044. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3045. Updated the help message for --daemon option.
  3046. * doc/aria2c.1.txt
  3047. * src/usage_text.h
  3048. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3049. Added our own daemon() function for systems which desn't have
  3050. daemon(3).
  3051. * configure.ac
  3052. * src/Makefile.am
  3053. * src/daemon.cc
  3054. * src/daemon.h
  3055. * src/option_processing.cc
  3056. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3057. Simplified File::getCurrentDir()
  3058. * src/File.cc
  3059. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3060. Use exit() instead of _exit
  3061. * src/RequestGroupMan.cc
  3062. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3063. Replaced "CATEGORY" with "TAGS".
  3064. * src/usage_text.h
  3065. * doc/aria2c.1.txt
  3066. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3067. Updated the help message for --help option.
  3068. * src/usage_text.h
  3069. * doc/aria2c.1.txt
  3070. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3071. Updated man page for added help tags.
  3072. * doc/aria2c.1.txt
  3073. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3074. Added help category #file. Added #file tag to the options related
  3075. to downloaded file.
  3076. * src/OptionHandlerFactory.cc
  3077. * src/help_tags.h
  3078. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3079. Added help categories: #cookie and #hook. Added #https tag to
  3080. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  3081. * src/OptionHandlerFactory.cc
  3082. * src/help_tags.h
  3083. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3084. Made MSG_NOT_FILE translatable.
  3085. * src/message.h
  3086. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3087. Updated man page for --help option.
  3088. * doc/aria2c.1.txt
  3089. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3090. Updated doc.
  3091. * src/XmlRpcMethod.h
  3092. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3093. Help category now starts with "#" to distinguish a category from
  3094. keyword search. For example, "http" categroy is now "#http". You
  3095. can type "--help=#http" to get explanation of options related to
  3096. http. If '#' is omitted, then the argument is treated as a keyword
  3097. and aria2 searches options whose name includes the keyword and
  3098. print matched ones. For example, "--help=http" will show options
  3099. whose name includes "http".
  3100. * src/OptionHandlerFactory.cc
  3101. * src/help_tags.h
  3102. * src/usage_text.h
  3103. * src/version_usage.cc
  3104. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3105. Documented missing experimental tag and newly added xml-rpc tag in
  3106. man page.
  3107. * doc/aria2c.1.txt
  3108. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3109. Added xml-rpc help tag. Tagged xml-rpc related options with
  3110. xml-rpc tag.
  3111. * src/OptionHandlerFactory.cc
  3112. * src/help_tags.h
  3113. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3114. Updated message when a path is not a file. Updated common message
  3115. for wrong option.
  3116. * src/OptionHandlerException.cc
  3117. * src/message.h
  3118. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3119. Use File::isFile() instead of File::exists(). Updated message when
  3120. a path is not a file.
  3121. * src/OptionHandlerImpl.cc
  3122. * src/message.h
  3123. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3124. Fixed the bug that server performence profile is not updated when
  3125. aria2c was terminated by emergency shutdown.
  3126. * src/TrackerWatcherCommand.cc
  3127. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3128. Use LocalFilePathOptionHandler for -T and -M option.
  3129. Updated message of MSG_FILE_NOT_EXIST.
  3130. * src/OptionHandlerFactory.cc
  3131. * src/message.h
  3132. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3133. Added LocalFilePathOptionHandler which check whether the specified
  3134. file path does exist or not.
  3135. * src/OptionHandlerImpl.cc
  3136. * src/message.h
  3137. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3138. Updated wiki page URI.
  3139. * README
  3140. * doc/aria2c.1.txt
  3141. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3142. Added README.txt for xmlrpc directory.
  3143. * doc/Makefile.am
  3144. * doc/xmlrpc/README.txt
  3145. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3146. Bump up version number to 1.6.0.
  3147. * configure.ac
  3148. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3149. Added XML-RPC client scripts written in ruby.
  3150. * doc/Makefile.am
  3151. * doc/xmlrpc/aria2mon
  3152. * doc/xmlrpc/aria2rpc
  3153. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3154. Added support for IPv6 literal address in URI. Now aria2 can
  3155. handle URI such as http://[::1]/
  3156. * src/HttpRequest.cc
  3157. * src/HttpRequest.h
  3158. * src/Request.cc
  3159. * src/Request.h
  3160. * test/HttpRequestTest.cc
  3161. * test/OptionHandlerTest.cc
  3162. * test/RequestTest.cc
  3163. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3164. Fixed the bug that HTTP request header for XML-RPC request is not
  3165. parsed properly.
  3166. * src/HttpHeader.cc
  3167. * src/HttpHeaderProcessor.cc
  3168. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3169. Fixed the bug that XML-RPC authorization might be done before HTTP
  3170. request header is fully received.
  3171. * src/HttpServerCommand.cc
  3172. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3173. Documented --xml-rpc-listen-all option in man page.
  3174. * doc/aria2c.1.txt
  3175. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3176. Added --xml-rpc-listen-all option. If true is given to this
  3177. option, aria2 listens incoming XML-RPC requests on all network
  3178. interfaces. If false is given, listens only on local loopback
  3179. interface. The default value is false.
  3180. * src/HttpListenCommand.cc
  3181. * src/OptionHandlerFactory.cc
  3182. * src/SocketCore.cc
  3183. * src/SocketCore.h
  3184. * src/prefs.cc
  3185. * src/prefs.h
  3186. * src/usage_text.h
  3187. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3188. * Release 1.5.2
  3189. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3190. Updated Ukrainian and Russian translations. Thanks to all
  3191. translators.
  3192. * po/ru.po
  3193. * po/uk.po
  3194. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3195. Bump up version number to 1.5.2
  3196. * configure.ac
  3197. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3198. Get comment, comment.utf-8, created by and creation date from
  3199. .torrent file and print them in -S output.
  3200. * src/bittorrent_helper.cc
  3201. * src/bittorrent_helper.h
  3202. * test/BittorrentHelperTest.cc
  3203. * test/test.torrent
  3204. * test/utf8.torrent
  3205. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3206. Show exact file size along in -S option output.
  3207. * src/Util.h
  3208. * src/bittorrent_helper.cc
  3209. * test/UtilTest.cc
  3210. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3211. Avoided unnecessary memory allocation in
  3212. BitfieldMan::getCompletedLength().
  3213. * src/BitfieldMan.cc
  3214. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3215. Fixed the bug that download fails if
  3216. SocketCore::establishConnection() throws exception and aria2
  3217. doesn't try another address.
  3218. * src/AbstractCommand.cc
  3219. * src/InitiateConnectionCommand.cc
  3220. * src/message.h
  3221. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3222. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  3223. detected properly.
  3224. * m4/sqlite3.m4
  3225. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3226. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  3227. because it causes compile error if PARAMS macro is defined.
  3228. * src/XmlRpcElements.cc
  3229. * src/XmlRpcElements.h
  3230. * src/XmlRpcRequestParserStateImpl.cc
  3231. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3232. * Release 1.5.1
  3233. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3234. Bump up version number to 1.5.1
  3235. * configure.ac
  3236. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3237. Fixed compile error without BitTorrent support
  3238. * src/DefaultBtProgressInfoFile.cc
  3239. * src/DownloadEngine.cc
  3240. * src/DownloadEngine.h
  3241. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3242. Added missing '=' in Download Results
  3243. * src/RequestGroupMan.cc
  3244. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3245. Fixed compiler warning
  3246. * src/DefaultBtProgressInfoFile.cc
  3247. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3248. Fixed compiler warning on 32bit systems.
  3249. * src/DownloadCommand.cc
  3250. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3251. Call flush from ServerStatMan::save()
  3252. * src/ServerStatMan.cc
  3253. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3254. Check stream status after file is opened.
  3255. * src/CookieStorage.cc
  3256. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3257. Rewritten Signature::save()
  3258. * src/Signature.cc
  3259. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3260. Rewritten RequestGroupMan::saveServerStat()
  3261. * src/RequestGroupMan.cc
  3262. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3263. Rewritten stream error handling
  3264. * src/DHTAutoSaveCommand.cc
  3265. * src/DHTRoutingTableDeserializer.cc
  3266. * src/DHTRoutingTableSerializer.cc
  3267. * src/DHTSetup.cc
  3268. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3269. Check stream status after file is opened.
  3270. * src/DefaultBtProgressInfoFile.cc
  3271. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3272. Rewritten stream error handling
  3273. * src/DefaultBtProgressInfoFile.cc
  3274. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3275. Make sure that stream is closed before renaming file. Unit test
  3276. fails on mingw32 in the previous implementation.
  3277. * src/CookieStorage.cc
  3278. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3279. Fixed the unit test error without sqlite3
  3280. * test/CookieStorageTest.cc
  3281. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3282. Fixed the undefined reference error
  3283. * test/HttpResponseTest.cc
  3284. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3285. * Release 1.5.0
  3286. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3287. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  3288. Ukrainian translations. Thanks to all translators.
  3289. * po/ru.po
  3290. * po/it.po
  3291. * po/da.po
  3292. * po/bg.po
  3293. * po/ja.po
  3294. * po/uk.po
  3295. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3296. Added missing src/Logger.cc
  3297. * src/Logger.cc
  3298. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3299. Rewritten Logger to avoiding constly virtual call.
  3300. * src/LogFactory.cc
  3301. * src/LogFactory.h
  3302. * src/Logger.h
  3303. * src/Makefile.am
  3304. * src/Makefile.in
  3305. * src/NullLogger.h: Removed.
  3306. * src/SimpleLogger.cc
  3307. * src/SimpleLogger.h
  3308. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3309. Updated doc
  3310. * src/main.cc
  3311. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3312. Updated debug log message
  3313. * src/AbstractCommand.cc
  3314. * src/message.h
  3315. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3316. Avoid to create zombie process when commands specified in
  3317. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  3318. X and NetBSD.
  3319. * src/main.cc
  3320. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3321. Fixed typo
  3322. * src/usage_text.h
  3323. * doc/aria2c.1.txt
  3324. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3325. Documented 'errorCode' of tellStatus in man page.
  3326. * doc/aria2c.1.txt
  3327. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3328. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  3329. This key is only available for stopped/completed downloads and its
  3330. value is the error code defined in EXIT STATUS in man page.
  3331. * src/XmlRpcMethodImpl.cc
  3332. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3333. Fixed the bug that session download length is not updated when
  3334. PeerStat is not fastest one.
  3335. * src/SegmentMan.cc
  3336. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3337. Updated doc.
  3338. * doc/aria2c.1.txt
  3339. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3340. Updated doc.
  3341. * src/AbstractCommand.cc
  3342. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3343. Handle the case when DownloadContext has no FileEntry.
  3344. * src/XmlRpcMethodImpl.cc
  3345. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3346. Handle the situation where struct option.name is char *.
  3347. * configure.ac
  3348. * src/OptionParser.cc
  3349. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3350. Code cleanup
  3351. * src/AbstractCommand.cc
  3352. * src/DownloadCommand.cc
  3353. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3354. Use option of each download to create AuthConfig instead of global
  3355. option.
  3356. * src/AuthConfigFactory.cc
  3357. * src/AuthConfigFactory.h
  3358. * src/FtpNegotiationCommand.cc
  3359. * src/HttpRequest.cc
  3360. * src/HttpRequest.h
  3361. * src/HttpRequestCommand.cc
  3362. * src/HttpSkipResponseCommand.cc
  3363. * src/MultiUrlRequestInfo.cc
  3364. * test/AuthConfigFactoryTest.cc
  3365. * test/FtpConnectionTest.cc
  3366. * test/HttpRequestTest.cc
  3367. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3368. Don't call prepareForRetry(1) if all segments are ignored in
  3369. SegmentMan.
  3370. * src/AbstractCommand.cc
  3371. * src/BitfieldMan.cc
  3372. * src/BitfieldMan.h
  3373. * src/SegmentMan.cc
  3374. * src/SegmentMan.h
  3375. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3376. Removed FileEntry::getAssociatedUris()
  3377. * src/FileEntry.h
  3378. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3379. Updated doc: TODO1.5 -> TODO
  3380. * src/FileEntry.cc
  3381. * src/HttpResponseCommand.cc
  3382. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3383. Added assertion fileEntries.size() == 1 if BitTorrent is not
  3384. involved.
  3385. * src/RequestGroup.cc
  3386. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3387. Eliminated duplicated filterBitfield initialization code.
  3388. * src/BitfieldMan.cc
  3389. * src/BitfieldMan.h
  3390. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3391. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  3392. relatively naive approach, though). For DownloadFailureException,
  3393. we handle the case when req is null properly.
  3394. * src/AbstractCommand.cc
  3395. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3396. Added function returning suffix of control file to
  3397. DefaultBtProgressInfoFile.
  3398. * src/DefaultBtProgressInfoFile.cc
  3399. * src/DefaultBtProgressInfoFile.h
  3400. * src/RequestGroup.cc
  3401. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3402. Documented getVersion in man page.
  3403. * doc/aria2c.1.txt
  3404. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3405. Documented type of offset and num for tellWaiting xml-rpc method.
  3406. * doc/aria2c.1.txt
  3407. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3408. Implemented getVersion xml-rpc method. This method returns struct
  3409. which has 2 key-value pairs: "version" key is associated to the
  3410. version of aria2, such as "1.5.0". "enabledFeatures" key is
  3411. associated to the list of enabled features, such as "Async DNS",
  3412. "BitTorrent".
  3413. * src/FeatureConfig.h
  3414. * src/XmlRpcMethodFactory.cc
  3415. * src/XmlRpcMethodImpl.cc
  3416. * src/XmlRpcMethodImpl.h
  3417. * test/XmlRpcMethodTest.cc
  3418. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3419. Removed TLS1.1 protocol support when aria2 is built with gnutls
  3420. for compatibility issue.
  3421. * src/SocketCore.cc
  3422. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3423. Fixed compile error with openSSL
  3424. * src/bittorrent_helper.cc
  3425. * src/messageDigest.h
  3426. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3427. Removed bad code: setting certificate type priority to key
  3428. exchange priority.
  3429. * src/SocketCore.cc
  3430. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3431. Disconnect seeder if client is also in seed state.
  3432. * src/BtBitfieldMessage.cc
  3433. * src/BtHaveAllMessage.cc
  3434. * src/BtHaveMessage.cc
  3435. * src/message.h
  3436. * test/BtBitfieldMessageTest.cc
  3437. * test/BtHaveAllMessageTest.cc
  3438. * test/BtHaveMessageTest.cc
  3439. * test/MockPieceStorage.h
  3440. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3441. Keep CreateRequestCommand in queue when no segment is available so
  3442. that they can pick up pieces which slow BitTorrent peers are
  3443. downloading.
  3444. * src/AbstractCommand.cc
  3445. * src/CreateRequestCommand.cc
  3446. * src/CreateRequestCommand.h
  3447. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3448. --bt-stop-timeout now only checks download speed.
  3449. * src/BtStopDownloadCommand.cc
  3450. * src/BtStopDownloadCommand.h
  3451. * src/BtSetup.cc
  3452. * src/usage_text.h
  3453. * doc/aria2c.1.txt
  3454. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3455. Fixed compile error regarding BUFSIZE.
  3456. * src/DownloadCommand.cc
  3457. * src/DownloadCommand.h
  3458. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3459. Documented tellWaiting xml-rpc method in man page.
  3460. * doc/aria2c.1.txt
  3461. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3462. Bump up version number to 1.5.0
  3463. * configure.ac
  3464. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3465. Removed resolved TODO1.5
  3466. * src/AbstractCommand.cc
  3467. * src/DownloadCommand.cc
  3468. * src/RequestGroup.cc
  3469. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3470. Release pooled and in-flight Request objectsand URIResult objects
  3471. in FileEntry after download completed.
  3472. * src/DownloadContext.cc
  3473. * src/DownloadContext.h
  3474. * src/FileEntry.cc
  3475. * src/FileEntry.h
  3476. * src/RequestGroup.cc
  3477. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3478. Set manual and source attribute in aria2c.1.txt
  3479. * doc/aria2c.1.txt
  3480. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3481. Documented that the default value of --use-head is 'false' in man
  3482. page.
  3483. * doc/aria2c.1.txt
  3484. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3485. Added bt-stop-timeout option to -i list.
  3486. * doc/aria2c.1.txt
  3487. * src/download_helper.cc
  3488. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3489. Fixed typo
  3490. * doc/aria2c.1.txt
  3491. * src/usage_text.h
  3492. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3493. Removed peer-id-prefix option from -i list.
  3494. * doc/aria2c.1.txt
  3495. * src/download_helper.cc
  3496. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3497. Fixed typo
  3498. * doc/aria2c.1.txt
  3499. * src/usage_text.h
  3500. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3501. Documented --bt-stop-timeout option in man page.
  3502. * doc/aria2c.1.txt
  3503. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3504. Updated README regarding multi-file torrent web-seeding.
  3505. * doc/README.txt
  3506. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3507. Updated man page regarding multi-file torrent web-seeding.
  3508. * doc/aria2c.1.txt
  3509. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3510. Updated doc
  3511. * src/version_usage.cc
  3512. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3513. Winsock select() doesn't work if no socket is in FD_SET. To
  3514. overcome this problem, a dummy socket is added to FD_SET and it is
  3515. given to select().
  3516. * src/SelectEventPoll.cc
  3517. * src/SelectEventPoll.h
  3518. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3519. Disabled --use-head option by default because --use-head=true
  3520. causes problems on some web sites.
  3521. * src/OptionHandlerFactory.cc
  3522. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3523. Print URL List in -S option for torrent.
  3524. * src/bittorrent_helper.cc
  3525. * src/bittorrent_helper.h
  3526. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3527. Allocate buffer in ctor of DownloadCommand.
  3528. * src/DownloadCommand.cc
  3529. * src/DownloadCommand.h
  3530. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3531. Removed DiskAdaptor::onDownloadComplete()
  3532. * src/DirectDiskAdaptor.cc
  3533. * src/DirectDiskAdaptor.h
  3534. * src/DiskAdaptor.h
  3535. * src/MultiDiskAdaptor.cc
  3536. * src/MultiDiskAdaptor.h
  3537. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3538. Committed missing BtStopDownloadCommand.{cc,h}
  3539. * src/BtStopDownloadCommand.cc
  3540. * src/BtStopDownloadCommand.h
  3541. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3542. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  3543. download if the download speed is 0 and the number of seeder is 0
  3544. in consecutive SEC seconds. By default, this function is disabled.
  3545. * src/BtSetup.cc
  3546. * src/Makefile.am
  3547. * src/OptionHandlerFactory.cc
  3548. * src/prefs.cc
  3549. * src/prefs.h
  3550. * src/usage_text.h
  3551. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3552. Removed the call to DiskAdaptor::onDownloadComplete() from
  3553. BtCheckIntegrityEntry and DefaultPieceStorage.
  3554. * src/BtCheckIntegrityEntry.cc
  3555. * src/DefaultPieceStorage.cc
  3556. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3557. Commented out throw statements when number of piece is 0 to
  3558. download 0 length torrent.
  3559. * src/bittorrent_helper.cc
  3560. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3561. Call RequestGroup::createNextCommandWithAdj() from
  3562. BtFileAllocationEntry if at least one FileEntry has URI. The
  3563. static function hasAssociatedUri in RequestGroup.cc is renamed as
  3564. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  3565. * src/BtFileAllocationEntry.cc
  3566. * src/FileEntry.h
  3567. * src/RequestGroup.cc
  3568. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3569. Generate peer ID after SimpleRandomizer is initialized.
  3570. * src/main.cc
  3571. * src/option_processing.cc
  3572. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3573. Removed unused method argument.
  3574. * src/CreateRequestCommand.cc
  3575. * src/RequestGroup.cc
  3576. * src/RequestGroup.h
  3577. * src/RequestGroupMan.cc
  3578. * src/TrackerWatcherCommand.cc
  3579. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3580. Made URI reusing function work.
  3581. * src/CreateRequestCommand.cc
  3582. * src/FileEntry.cc
  3583. * src/FileEntry.h
  3584. * test/FileEntryTest.cc
  3585. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3586. Add formerly fastest PeerStat's sessionDownloadLength to new
  3587. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  3588. bytes in a session.
  3589. * src/PeerStat.cc
  3590. * src/SegmentMan.cc
  3591. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3592. If pipelining is enabled, we can always pool socket.
  3593. * src/HttpDownloadCommand.cc
  3594. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3595. In a single file download, file size becomes known just after
  3596. downloading, set total length to FileEntry object when download
  3597. completed.
  3598. * src/DownloadCommand.cc
  3599. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3600. Use std::vector::reserve() for fileEntries and pieceHashes in
  3601. bittorrent_helper
  3602. * src/bittorrent_helper.cc
  3603. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3604. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  3605. Removed hidden option PREF_RESET_URI.
  3606. * src/AbstractCommand.cc
  3607. * src/OptionHandlerFactory.cc
  3608. * src/prefs.cc
  3609. * src/prefs.h
  3610. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3611. Removed unused variable/function.
  3612. * src/PeerStat.h
  3613. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3614. Show first URL in Download Results if file path is not available.
  3615. * src/FileEntry.h
  3616. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3617. Throw exception if file path doesn't exist in FTP URL.
  3618. * src/InitiateConnectionCommandFactory.cc
  3619. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3620. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  3621. * src/BitfieldMan.cc
  3622. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3623. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  3624. of PeerStat in SegmentMan. peerStats is used for calculating
  3625. download speed. Therefore all active PeerStats should be in
  3626. there. Another one is _fastestPeerStats and it only contains
  3627. fastest PeerStat for each hostname/protocol pair. They are used
  3628. for updating ServerStat.
  3629. * src/DownloadCommand.cc
  3630. * src/Request.h
  3631. * src/RequestGroupMan.cc
  3632. * src/SegmentMan.cc
  3633. * src/SegmentMan.h
  3634. * test/SegmentManTest.cc
  3635. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3636. Try all available addresses returned by DNS until it gets
  3637. connected in HTTP(S)/FTP download
  3638. * src/AbstractCommand.cc
  3639. * src/AbstractCommand.h
  3640. * src/AbstractProxyRequestCommand.cc
  3641. * src/AbstractProxyRequestCommand.h
  3642. * src/DNSCache.h
  3643. * src/DownloadEngine.cc
  3644. * src/DownloadEngine.h
  3645. * src/FtpInitiateConnectionCommand.cc
  3646. * src/FtpInitiateConnectionCommand.h
  3647. * src/FtpNegotiationCommand.cc
  3648. * src/FtpNegotiationCommand.h
  3649. * src/HttpInitiateConnectionCommand.cc
  3650. * src/HttpInitiateConnectionCommand.h
  3651. * src/HttpRequestCommand.cc
  3652. * src/HttpRequestCommand.h
  3653. * src/InitiateConnectionCommand.cc
  3654. * src/InitiateConnectionCommand.h
  3655. * test/DNSCacheTest.cc
  3656. * test/Makefile.am
  3657. * test/SimpleDNSCacheTest.cc
  3658. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3659. Updated doc
  3660. * src/download_helper.cc
  3661. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3662. Refactored fieldMan ctor.
  3663. * src/BitfieldMan.cc
  3664. * src/BitfieldMan.h
  3665. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3666. Don't print "No files to download." message if -S is given.
  3667. * src/main.cc
  3668. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3669. Set referer and method to newly created Request object.
  3670. * src/CreateRequestCommand.cc
  3671. * src/FileEntry.cc
  3672. * src/FileEntry.h
  3673. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3674. Removed ctor of AbstractCommand which doesn't take FileEntry.
  3675. * src/AbstractCommand.cc
  3676. * src/AbstractCommand.h
  3677. * src/CreateRequestCommand.cc
  3678. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3679. Get proxy download working
  3680. * src/AbstractProxyRequestCommand.cc
  3681. * src/AbstractProxyRequestCommand.h
  3682. * src/AbstractProxyResponseCommand.cc
  3683. * src/AbstractProxyResponseCommand.h
  3684. * src/FtpInitiateConnectionCommand.cc
  3685. * src/FtpTunnelRequestCommand.cc
  3686. * src/FtpTunnelRequestCommand.h
  3687. * src/FtpTunnelResponseCommand.cc
  3688. * src/FtpTunnelResponseCommand.h
  3689. * src/HttpInitiateConnectionCommand.cc
  3690. * src/HttpProxyRequestCommand.cc
  3691. * src/HttpProxyRequestCommand.h
  3692. * src/HttpProxyResponseCommand.cc
  3693. * src/HttpProxyResponseCommand.h
  3694. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3695. Use SegmentMan::getSegment(cuid) for single file download.
  3696. * src/AbstractCommand.cc
  3697. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3698. Fixed bufSize calculation
  3699. * src/DownloadCommand.cc
  3700. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3701. Don't append "/" if base URI ends with "/".
  3702. * src/bittorrent_helper.cc
  3703. * test/url-list-multiFile.torrent
  3704. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3705. HTTP pipelining is now working. Fixed Segmention fault in
  3706. BitfieldMan's copy ctor.
  3707. * src/AbstractCommand.cc
  3708. * src/BitfieldMan.cc
  3709. * src/BitfieldMan.h
  3710. * src/DownloadCommand.cc
  3711. * src/HttpDownloadCommand.cc
  3712. * src/HttpRequest.cc
  3713. * src/SegmentMan.cc
  3714. * src/SegmentMan.h
  3715. * test/BitfieldManTest.cc
  3716. * test/SegmentManTest.cc
  3717. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3718. Removed ServerHost. Same functionality is implemented using
  3719. FileEntry's in-flight Request objects.
  3720. * src/AbstractCommand.cc
  3721. * src/BtDependency.cc
  3722. * src/CreateRequestCommand.cc
  3723. * src/FileEntry.cc
  3724. * src/FileEntry.h
  3725. * src/FtpNegotiationCommand.cc
  3726. * src/HttpResponseCommand.cc
  3727. * src/Makefile.am
  3728. * src/Metalink2RequestGroup.cc
  3729. * src/RequestGroup.cc
  3730. * src/RequestGroup.h
  3731. * src/ServerHost.cc: Removed
  3732. * src/ServerHost.h: Removed
  3733. * test/BtDependencyTest.cc
  3734. * test/FileEntryTest.cc
  3735. * test/RequestGroupTest.cc
  3736. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3737. Rewritten PeerStat handling. In the previous implementation,
  3738. faster command tries to find slower command. In this new
  3739. implementation, slower command tries to find faster command.
  3740. PeerStat is now created in each HTTP/FTP request to get download
  3741. rate correctly. If the download range is small, the download rate
  3742. tends to small and this will occur at the later stage of download.
  3743. * src/AbstractCommand.cc
  3744. * src/DownloadCommand.cc
  3745. * src/FileEntry.cc
  3746. * src/FileEntry.h
  3747. * src/Request.cc
  3748. * src/Request.h
  3749. * src/RequestGroup.h
  3750. * src/RequestGroupMan.cc
  3751. * src/SegmentMan.cc
  3752. * src/SegmentMan.h
  3753. * test/SegmentManTest.cc
  3754. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3755. Removed _uris from RequestGroup. All functions that refer to _uris
  3756. were moved to FileEntry. Exit status code are now defined in
  3757. DownloadResultCode.h.
  3758. * src/AbstractCommand.cc
  3759. * src/AdaptiveURISelector.cc
  3760. * src/AdaptiveURISelector.h
  3761. * src/AutoSaveCommand.cc
  3762. * src/BtPostDownloadHandler.cc
  3763. * src/CheckIntegrityDispatcherCommand.cc
  3764. * src/CookieStorage.cc
  3765. * src/DHTAutoSaveCommand.cc
  3766. * src/DHTBucketRefreshCommand.cc
  3767. * src/DHTEntryPointNameResolveCommand.cc
  3768. * src/DHTInteractionCommand.cc
  3769. * src/DHTPeerAnnounceCommand.cc
  3770. * src/DHTTokenUpdateCommand.cc
  3771. * src/DlAbortEx.h
  3772. * src/DlRetryEx.h
  3773. * src/DownloadCommand.cc
  3774. * src/DownloadContext.h
  3775. * src/DownloadFailureException.h
  3776. * src/DownloadResult.h
  3777. * src/DownloadResultCode.h
  3778. * src/FeedbackURISelector.cc
  3779. * src/FeedbackURISelector.h
  3780. * src/FileEntry.cc
  3781. * src/FileEntry.h
  3782. * src/FtpNegotiationCommand.cc
  3783. * src/HttpListenCommand.cc
  3784. * src/HttpResponseCommand.cc
  3785. * src/HttpServerResponseCommand.cc
  3786. * src/HttpSkipResponseCommand.cc
  3787. * src/InOrderURISelector.cc
  3788. * src/InOrderURISelector.h
  3789. * src/Makefile.am
  3790. * src/Makefile.in
  3791. * src/Metalink2RequestGroup.cc
  3792. * src/MultiUrlRequestInfo.cc
  3793. * src/MultiUrlRequestInfo.h
  3794. * src/OptionHandlerFactory.cc
  3795. * src/PeerListenCommand.cc
  3796. * src/RecoverableException.h
  3797. * src/RequestGroup.cc
  3798. * src/RequestGroup.h
  3799. * src/RequestGroupMan.cc
  3800. * src/RequestGroupMan.h
  3801. * src/TimedHaltCommand.cc
  3802. * src/TrackerWatcherCommand.cc
  3803. * src/URIResult.cc
  3804. * src/URIResult.h
  3805. * src/URISelector.h
  3806. * src/XmlRpcMethodImpl.cc
  3807. * src/bittorrent_helper.cc
  3808. * src/bittorrent_helper.h
  3809. * src/download_helper.cc
  3810. * src/main.cc
  3811. * src/option_processing.cc
  3812. * test/BtDependencyTest.cc
  3813. * test/BtPostDownloadHandlerTest.cc
  3814. * test/CookieStorageTest.cc
  3815. * test/DefaultBtMessageDispatcherTest.cc
  3816. * test/DownloadHandlerFactoryTest.cc
  3817. * test/DownloadHelperTest.cc
  3818. * test/FeedbackURISelectorTest.cc
  3819. * test/FileEntryTest.cc
  3820. * test/InOrderURISelectorTest.cc
  3821. * test/Metalink2RequestGroupTest.cc
  3822. * test/MetalinkPostDownloadHandlerTest.cc
  3823. * test/RequestGroupManTest.cc
  3824. * test/RequestGroupTest.cc
  3825. * test/XmlRpcMethodTest.cc
  3826. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3827. Removed MockBtContext.h
  3828. * test/Makefile.am
  3829. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3830. Removed _currentRequest from StreamCheckIntegrityEntry and
  3831. StreamFileAllocationEntry.
  3832. * src/AbstractCommand.cc
  3833. * src/HttpResponseCommand.cc
  3834. * src/RequestGroup.cc
  3835. * src/StreamCheckIntegrityEntry.cc
  3836. * src/StreamCheckIntegrityEntry.h
  3837. * src/StreamFileAllocationEntry.cc
  3838. * src/StreamFileAllocationEntry.h
  3839. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3840. Rewritten DownloadContext and removed SingleFileDownloadContext
  3841. and BtContext and its derived classes. BitTorrent specific
  3842. attributes are now set by DownloadContext::setAttribute() with key
  3843. bittorrent::BITTORRENT.
  3844. * src/AbstractBtMessage.cc
  3845. * src/AbstractBtMessage.h
  3846. * src/AbstractCommand.cc
  3847. * src/AbstractCommand.h
  3848. * src/AbstractProxyRequestCommand.cc
  3849. * src/AbstractProxyResponseCommand.cc
  3850. * src/ActivePeerConnectionCommand.cc
  3851. * src/ActivePeerConnectionCommand.h
  3852. * src/AnnounceList.cc
  3853. * src/BtCheckIntegrityEntry.cc
  3854. * src/BtConstants.h
  3855. * src/BtContext.h: Removed
  3856. * src/BtDependency.cc
  3857. * src/BtExtendedMessage.cc
  3858. * src/BtPieceMessage.cc
  3859. * src/BtPieceMessage.h
  3860. * src/BtPostDownloadHandler.cc
  3861. * src/BtRegistry.cc
  3862. * src/BtRegistry.h
  3863. * src/BtSetup.cc
  3864. * src/CheckIntegrityCommand.cc
  3865. * src/CheckIntegrityEntry.cc
  3866. * src/ChecksumCheckIntegrityEntry.cc
  3867. * src/ConsoleStatCalc.cc
  3868. * src/ContentTypeRequestGroupCriteria.cc
  3869. * src/DHTGetPeersCommand.cc
  3870. * src/DHTGetPeersCommand.h
  3871. * src/DHTPeerLookupTask.cc
  3872. * src/DHTPeerLookupTask.h
  3873. * src/DHTTaskFactory.h
  3874. * src/DHTTaskFactoryImpl.cc
  3875. * src/DHTTaskFactoryImpl.h
  3876. * src/DefaultBtAnnounce.cc
  3877. * src/DefaultBtAnnounce.h
  3878. * src/DefaultBtContext.cc: Removed
  3879. * src/DefaultBtContext.h: Removed
  3880. * src/DefaultBtInteractive.cc
  3881. * src/DefaultBtInteractive.h
  3882. * src/DefaultBtMessageDispatcher.cc
  3883. * src/DefaultBtMessageDispatcher.h
  3884. * src/DefaultBtMessageFactory.cc
  3885. * src/DefaultBtMessageFactory.h
  3886. * src/DefaultBtMessageReceiver.cc
  3887. * src/DefaultBtMessageReceiver.h
  3888. * src/DefaultBtProgressInfoFile.cc
  3889. * src/DefaultBtRequestFactory.cc
  3890. * src/DefaultBtRequestFactory.h
  3891. * src/DefaultExtensionMessageFactory.cc
  3892. * src/DefaultExtensionMessageFactory.h
  3893. * src/DefaultPeerStorage.cc
  3894. * src/DefaultPeerStorage.h
  3895. * src/DefaultPieceStorage.cc
  3896. * src/DefaultSegmentManFactory.cc
  3897. * src/DiskAdaptor.cc
  3898. * src/DiskAdaptor.h
  3899. * src/DownloadContext.cc
  3900. * src/DownloadContext.h
  3901. * src/DownloadEngine.cc
  3902. * src/DownloadEngineFactory.cc
  3903. * src/DownloadHandler.cc
  3904. * src/DownloadResult.h
  3905. * src/FileAllocationCommand.cc
  3906. * src/FileAllocationDispatcherCommand.cc
  3907. * src/FileAllocationEntry.cc
  3908. * src/FileEntry.h
  3909. * src/FillRequestGroupCommand.cc
  3910. * src/FtpDownloadCommand.cc
  3911. * src/FtpFinishDownloadCommand.cc
  3912. * src/FtpInitiateConnectionCommand.cc
  3913. * src/FtpNegotiationCommand.cc
  3914. * src/FtpTunnelRequestCommand.cc
  3915. * src/FtpTunnelResponseCommand.cc
  3916. * src/HandshakeExtensionMessage.cc
  3917. * src/HandshakeExtensionMessage.h
  3918. * src/HaveEraseCommand.cc
  3919. * src/HttpDownloadCommand.cc
  3920. * src/HttpInitiateConnectionCommand.cc
  3921. * src/HttpProxyRequestCommand.cc
  3922. * src/HttpProxyResponseCommand.cc
  3923. * src/HttpRequest.cc
  3924. * src/HttpRequest.h
  3925. * src/HttpRequestCommand.cc
  3926. * src/HttpResponseCommand.cc
  3927. * src/HttpServerBodyCommand.cc
  3928. * src/HttpServerCommand.cc
  3929. * src/HttpSkipResponseCommand.cc
  3930. * src/InitiateConnectionCommandFactory.cc
  3931. * src/InitiatorMSEHandshakeCommand.cc
  3932. * src/InitiatorMSEHandshakeCommand.h
  3933. * src/IteratableChecksumValidator.cc
  3934. * src/IteratableChecksumValidator.h
  3935. * src/IteratableChunkChecksumValidator.cc
  3936. * src/MSEHandshake.cc
  3937. * src/MSEHandshake.h
  3938. * src/Makefile.am
  3939. * src/Makefile.in
  3940. * src/Metalink2RequestGroup.cc
  3941. * src/MetalinkPostDownloadHandler.cc
  3942. * src/MultiDiskAdaptor.cc
  3943. * src/MultiDiskAdaptor.h
  3944. * src/MultiFileAllocationIterator.cc
  3945. * src/MultiUrlRequestInfo.cc
  3946. * src/PeerChokeCommand.cc
  3947. * src/PeerChokeCommand.h
  3948. * src/PeerInitiateConnectionCommand.cc
  3949. * src/PeerInitiateConnectionCommand.h
  3950. * src/PeerInteractionCommand.cc
  3951. * src/PeerInteractionCommand.h
  3952. * src/PeerReceiveHandshakeCommand.cc
  3953. * src/PieceHashCheckIntegrityEntry.cc
  3954. * src/RealtimeCommand.cc
  3955. * src/ReceiverMSEHandshakeCommand.cc
  3956. * src/RequestGroup.cc
  3957. * src/RequestGroup.h
  3958. * src/RequestGroupEntry.cc
  3959. * src/RequestGroupMan.cc
  3960. * src/SeedCheckCommand.cc
  3961. * src/SeedCheckCommand.h
  3962. * src/SegmentMan.cc
  3963. * src/ShareRatioSeedCriteria.h
  3964. * src/SingleFileDownloadContext.cc: Removed
  3965. * src/SingleFileDownloadContext.h: Removed
  3966. * src/SleepCommand.cc
  3967. * src/StreamCheckIntegrityEntry.cc
  3968. * src/TrackerWatcherCommand.cc
  3969. * src/TrackerWatcherCommand.h
  3970. * src/UnknownLengthPieceStorage.cc
  3971. * src/Util.cc
  3972. * src/Util.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/BitfieldManTest.cc
  3980. * test/BittorrentHelperTest.cc
  3981. * test/BtCancelMessageTest.cc
  3982. * test/BtChokeMessageTest.cc
  3983. * test/BtDependencyTest.cc
  3984. * test/BtPieceMessageTest.cc
  3985. * test/BtPostDownloadHandlerTest.cc
  3986. * test/BtRegistryTest.cc
  3987. * test/BtRejectMessageTest.cc
  3988. * test/BtRequestMessageTest.cc
  3989. * test/DHTPeerAnnounceStorageTest.cc
  3990. * test/DefaultBtAnnounceTest.cc
  3991. * test/DefaultBtContextTest.cc: Removed
  3992. * test/DefaultBtMessageDispatcherTest.cc
  3993. * test/DefaultBtMessageFactoryTest.cc
  3994. * test/DefaultBtProgressInfoFileTest.cc
  3995. * test/DefaultBtRequestFactoryTest.cc
  3996. * test/DefaultExtensionMessageFactoryTest.cc
  3997. * test/DefaultPeerStorageTest.cc
  3998. * test/DefaultPieceStorageTest.cc
  3999. * test/DirectDiskAdaptorTest.cc
  4000. * test/DownloadContextTest.cc
  4001. * test/DownloadHandlerFactoryTest.cc
  4002. * test/DownloadHelperTest.cc
  4003. * test/HandshakeExtensionMessageTest.cc
  4004. * test/HttpRequestTest.cc
  4005. * test/HttpResponseTest.cc
  4006. * test/IteratableChecksumValidatorTest.cc
  4007. * test/IteratableChunkChecksumValidatorTest.cc
  4008. * test/MSEHandshakeTest.cc
  4009. * test/Makefile.am
  4010. * test/Makefile.in
  4011. * test/Metalink2RequestGroupTest.cc
  4012. * test/MetalinkPostDownloadHandlerTest.cc
  4013. * test/MockBtContext.h: Removed
  4014. * test/MockDHTTaskFactory.h
  4015. * test/MockDownloadContext.h: Removed
  4016. * test/MockPieceStorage.h
  4017. * test/MultiDiskAdaptorTest.cc
  4018. * test/MultiFileAllocationIteratorTest.cc
  4019. * test/RequestGroupManTest.cc
  4020. * test/RequestGroupTest.cc
  4021. * test/SegmentManTest.cc
  4022. * test/ShareRatioSeedCriteriaTest.cc
  4023. * test/SingleFileDownloadContextTest.cc: Removed
  4024. * test/UtilTest.cc
  4025. * test/XmlRpcMethodTest.cc
  4026. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4027. Added experimental support of WEB-Seeding for multi-file torrent.
  4028. Due to fundamental changes in file handling in HTTP/FTP code, many
  4029. functions are not working: PeerStat, ServerHost, proxy..etc
  4030. * src/AbstractCommand.cc
  4031. * src/AbstractCommand.h
  4032. * src/BitfieldMan.cc
  4033. * src/BitfieldMan.h
  4034. * src/CreateRequestCommand.cc
  4035. * src/CreateRequestCommand.h
  4036. * src/DefaultPieceStorage.cc
  4037. * src/DefaultPieceStorage.h
  4038. * src/DownloadCommand.cc
  4039. * src/DownloadCommand.h
  4040. * src/DownloadContext.cc
  4041. * src/DownloadContext.h
  4042. * src/FileEntry.cc
  4043. * src/FileEntry.h
  4044. * src/FtpDownloadCommand.cc
  4045. * src/FtpDownloadCommand.h
  4046. * src/FtpFinishDownloadCommand.cc
  4047. * src/FtpFinishDownloadCommand.h
  4048. * src/FtpInitiateConnectionCommand.cc
  4049. * src/FtpInitiateConnectionCommand.h
  4050. * src/FtpNegotiationCommand.cc
  4051. * src/FtpNegotiationCommand.h
  4052. * src/FtpTunnelResponseCommand.cc
  4053. * src/HttpDownloadCommand.cc
  4054. * src/HttpDownloadCommand.h
  4055. * src/HttpInitiateConnectionCommand.cc
  4056. * src/HttpInitiateConnectionCommand.h
  4057. * src/HttpProxyResponseCommand.cc
  4058. * src/HttpRequest.cc
  4059. * src/HttpRequest.h
  4060. * src/HttpRequestCommand.cc
  4061. * src/HttpRequestCommand.h
  4062. * src/HttpResponseCommand.cc
  4063. * src/HttpResponseCommand.h
  4064. * src/HttpSkipResponseCommand.cc
  4065. * src/HttpSkipResponseCommand.h
  4066. * src/InitiateConnectionCommand.cc
  4067. * src/InitiateConnectionCommand.h
  4068. * src/InitiateConnectionCommandFactory.cc
  4069. * src/InitiateConnectionCommandFactory.h
  4070. * src/Makefile.am
  4071. * src/PieceStorage.h
  4072. * src/RequestGroup.cc
  4073. * src/RequestGroup.h
  4074. * src/RequestGroupMan.cc
  4075. * src/SegmentMan.cc
  4076. * src/SegmentMan.h
  4077. * src/SingleFileDownloadContext.h
  4078. * src/StreamFileAllocationEntry.cc
  4079. * src/TrackerWatcherCommand.cc
  4080. * src/UnknownLengthPieceStorage.cc
  4081. * src/UnknownLengthPieceStorage.h
  4082. * src/array_fun.h
  4083. * src/bitfield.h
  4084. * src/download_helper.cc
  4085. * test/DownloadContextTest.cc
  4086. * test/Makefile.am
  4087. * test/MockDownloadContext.h
  4088. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4089. Added tellWaiting XML-RPC method.
  4090. * src/SingleFileDownloadContext.cc
  4091. * src/XmlRpcMethodFactory.cc
  4092. * src/XmlRpcMethodImpl.cc
  4093. * src/XmlRpcMethodImpl.h
  4094. * test/XmlRpcMethodTest.cc
  4095. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4096. Updated CookieStorageTest
  4097. * test/CookieStorageTest.cc
  4098. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4099. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  4100. handle excepion inside these functions.
  4101. * src/LibgnutlsTLSContext.cc
  4102. * src/LibgnutlsTLSContext.h
  4103. * src/LibsslTLSContext.cc
  4104. * src/LibsslTLSContext.h
  4105. * src/MultiUrlRequestInfo.cc
  4106. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4107. Added comment
  4108. * src/RequestGroup.cc
  4109. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4110. In CookieStorage::load() and saveNsFormat(), handle exception
  4111. inside the functions. When saving Cookies, first write temporary
  4112. file and after successful writes, then renames it to final
  4113. destination.
  4114. * src/CookieStorage.cc
  4115. * src/CookieStorage.h
  4116. * src/MultiUrlRequestInfo.cc
  4117. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4118. The default value of --dir option is the absolute path to the
  4119. current directory. If getcwd() is failed, then it is ".", which is
  4120. the same value with old implementation. This change is necessary
  4121. because after daemon() call, the current working directory is
  4122. changed to /.
  4123. * src/File.cc
  4124. * src/File.h
  4125. * src/OptionHandlerFactory.cc
  4126. * src/option_processing.cc
  4127. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4128. Call daemon() with arguments(0,0), which means daemon() changes
  4129. current working directory to / and redirects stdin, stdout and
  4130. stderr to /dev/null.
  4131. * src/option_processing.cc
  4132. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4133. Small performance optimizations.
  4134. * src/RequestGroupMan.cc
  4135. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4136. Added _xmlRpc member variable to RequestGroupMan to reduce the
  4137. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  4138. * src/RequestGroupMan.cc
  4139. * src/RequestGroupMan.h
  4140. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4141. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  4142. setNoWiat(true) if newly created command calls
  4143. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  4144. * src/HttpListenCommand.cc
  4145. * src/HttpServerBodyCommand.cc
  4146. * src/HttpServerCommand.cc
  4147. * src/HttpServerResponseCommand.cc
  4148. * src/InitiateConnectionCommand.cc
  4149. * src/RequestGroup.cc
  4150. * src/StreamFileAllocationEntry.cc
  4151. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4152. Removed include vector
  4153. * src/BtRegistry.h
  4154. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4155. Rewritten BtRegistry
  4156. * src/BtRegistry.cc
  4157. * src/BtRegistry.h
  4158. * src/BtSetup.cc
  4159. * src/ConsoleStatCalc.cc
  4160. * src/PeerInteractionCommand.cc
  4161. * src/PeerReceiveHandshakeCommand.cc
  4162. * src/ReceiverMSEHandshakeCommand.cc
  4163. * src/RequestGroup.cc
  4164. * src/XmlRpcMethodImpl.cc
  4165. * test/BtRegistryTest.cc
  4166. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4167. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  4168. * src/DefaultBtProgressInfoFile.cc
  4169. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4170. Throw an exception if position is less than 0.
  4171. * src/XmlRpcMethodImpl.cc
  4172. * test/XmlRpcMethodTest.cc
  4173. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4174. Use writeFilePath() in ConsoleStatCalc.cc
  4175. * src/ConsoleStatCalc.cc
  4176. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4177. Receive the return value as const reference from
  4178. DownloadContext::getFileEntries().
  4179. * src/DefaultPieceStorage.cc
  4180. * src/RequestGroupMan.cc
  4181. * src/XmlRpcMethodImpl.cc
  4182. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4183. DownloadContext now has _fileEntries so that
  4184. DownloadContext::getFileEntries() can returns its const reference.
  4185. * src/DefaultBtContext.cc
  4186. * src/DefaultBtContext.h
  4187. * src/DownloadContext.cc
  4188. * src/DownloadContext.h
  4189. * src/SingleFileDownloadContext.cc
  4190. * src/SingleFileDownloadContext.h
  4191. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4192. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  4193. writeFilePath() function template from RequestGroupMan.cc to
  4194. FileEntry.h
  4195. * src/FileEntry.h
  4196. * src/RequestGroupMan.cc
  4197. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4198. Documented 'position' parameter is starting from 0 in man page.
  4199. * doc/aria2c.1.txt
  4200. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4201. Updated doc.
  4202. * src/MSEHandshake.cc
  4203. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4204. Removed _acceptFeatures and its accessor functions from
  4205. RequestGroup since they are not used practically.
  4206. * src/HttpRequestCommand.cc
  4207. * src/RequestGroup.cc
  4208. * src/RequestGroup.h
  4209. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4210. Removed member _maxTries from RequestGroup class to avoid
  4211. duplicate option value. Those classes who refer this variable
  4212. should use option value of PREF_MAX_TRIES directly.
  4213. * src/AbstractCommand.cc
  4214. * src/RequestGroup.cc
  4215. * src/RequestGroup.h
  4216. * src/TrackerWatcherCommand.cc
  4217. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4218. * Release 1.4.1
  4219. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4220. Fixed compiler warnings on netbsd
  4221. * src/DHTConnectionImpl.cc
  4222. * src/PeerListenCommand.cc
  4223. * src/PeerSessionResource.cc
  4224. * src/SegmentMan.cc
  4225. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4226. Updated Ukrainian translation. Thanks to all translators.
  4227. * po/uk.po
  4228. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4229. Bump up version number to 1.4.1.
  4230. * configure.ac
  4231. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4232. Added unit tests for strjoin, strconcat and strappend.
  4233. * test/a2functionalTest.cc
  4234. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4235. Rewritten strconcat and strappend using operator+ instead of
  4236. append().
  4237. * src/a2functional.h
  4238. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4239. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  4240. is enabled.
  4241. * src/Makefile.am
  4242. * test/Makefile.am
  4243. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4244. Added countSeeder() function which counts seeder in the given
  4245. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  4246. * src/ConsoleStatCalc.cc
  4247. * src/Peer.h
  4248. * src/XmlRpcMethodImpl.cc
  4249. * test/PeerTest.cc
  4250. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4251. Documented missing seeder in getPeers xml-rpc method.
  4252. Documented uploadLength and numSeeders.
  4253. * doc/aria2c.1.txt
  4254. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4255. Added uploadLength and numSeeders to the response of tellStatus
  4256. xml-rpc method. Assert that PeerStorage instance is not null
  4257. instead of checking if statement. It should be non-null in this
  4258. context.
  4259. * src/XmlRpcMethodImpl.cc
  4260. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4261. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  4262. * src/XmlRpcResponse.cc
  4263. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4264. Avoid intermediate object during string concatenation.
  4265. * src/HttpRequest.cc
  4266. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4267. Added strjoin function template. Use it in pathJoin()
  4268. * src/Util.h
  4269. * src/a2functional.h
  4270. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4271. Avoid intermediate object during string concatenation. Replaced
  4272. post-increment unary operator with pre-increment one in for loop.
  4273. * src/AdaptiveURISelector.cc
  4274. * src/AnnounceList.cc
  4275. * src/AuthConfig.h
  4276. * src/BtBitfieldMessage.cc
  4277. * src/BtExtendedMessage.cc
  4278. * src/BtHandshakeMessage.cc
  4279. * src/BtPieceMessage.cc
  4280. * src/BtPortMessage.cc
  4281. * src/Cookie.cc
  4282. * src/DHTAnnouncePeerMessage.cc
  4283. * src/DHTAutoSaveCommand.cc
  4284. * src/DHTGetPeersReplyMessage.cc
  4285. * src/DHTNode.cc
  4286. * src/DHTQueryMessage.cc
  4287. * src/DHTResponseMessage.cc
  4288. * src/DHTUnknownMessage.cc
  4289. * src/DefaultBtAnnounce.cc
  4290. * src/DefaultBtContext.cc
  4291. * src/DefaultBtInteractive.cc
  4292. * src/DefaultBtProgressInfoFile.cc
  4293. * src/DefaultPeerStorage.cc
  4294. * src/DownloadEngine.cc
  4295. * src/FeatureConfig.cc
  4296. * src/File.cc
  4297. * src/FtpConnection.cc
  4298. * src/FtpNegotiationCommand.cc
  4299. * src/HandshakeExtensionMessage.cc
  4300. * src/HttpConnection.cc
  4301. * src/HttpRequest.cc
  4302. * src/HttpResponseCommand.cc
  4303. * src/HttpServer.cc
  4304. * src/IndexBtMessage.cc
  4305. * src/Metalink2RequestGroup.cc
  4306. * src/OptionHandlerImpl.h
  4307. * src/PStringBuildVisitor.cc
  4308. * src/Peer.cc
  4309. * src/PeerListenCommand.cc
  4310. * src/Piece.cc
  4311. * src/RangeBtMessage.cc
  4312. * src/Request.cc
  4313. * src/Request.h
  4314. * src/RequestGroup.cc
  4315. * src/RequestGroupMan.cc
  4316. * src/ServerStat.cc
  4317. * src/ServerStatMan.cc
  4318. * src/UTPexExtensionMessage.cc
  4319. * src/Util.cc
  4320. * src/a2functional.h
  4321. * src/download_helper.cc
  4322. * src/messageDigest.cc
  4323. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4324. Unchoke a peer randomly at first and second choke round in seed
  4325. state.
  4326. * src/BtSeederStateChoke.cc
  4327. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  4328. Added (sock_t) to quiet compiler warnings in MinGW
  4329. * src/SocketCore.cc
  4330. * src/SocketCore.h
  4331. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4332. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  4333. * src/EpollEventPoll.h
  4334. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  4335. Added fork() emulation using CreateProcess() in MinGW
  4336. * src/RequestGroupMan.cc
  4337. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4338. * Release 1.4.0
  4339. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4340. Added utf8.torrent to EXTRA_DIST
  4341. * test/Makefile.am
  4342. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4343. Fixed docs of aria2.addMetalink xml-rpc method.
  4344. * doc/aria2c.1.txt
  4345. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4346. Added Slovak translation. Updated Ukrainian and Brazilian
  4347. Portuguese translation. Thanks to all translators.
  4348. * po/sk.po
  4349. * po/uk.po
  4350. * po/pt_BR.po
  4351. * po/LINGUAS
  4352. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4353. Added test case for XmlRpcProcessor to fail to parse malformed
  4354. document.
  4355. * test/XmlRpcRequestProcessorTest.cc
  4356. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4357. Removed *.gmo files in po because they are generated on 'make
  4358. dist'
  4359. * po/*.gmo
  4360. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4361. Documented max-concurrent-downloads of changeGlobalOption method
  4362. in man page.
  4363. * doc/aria2c.1.txt
  4364. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4365. Added max-concurrent-downloads option to changeGlobalOption
  4366. xml-rpc method. Rewritten loop conditional in
  4367. RequestGroupMan::fillRequestGroupFromReserver().
  4368. * src/RequestGroupMan.cc
  4369. * src/RequestGroupMan.h
  4370. * src/XmlRpcMethod.cc
  4371. * src/XmlRpcMethodImpl.cc
  4372. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4373. Documented position parameter in man page.
  4374. * doc/aria2c.1.txt
  4375. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4376. Added 'position' parameter to addUri, addTorrent and addMetalink
  4377. xml-rpc method.
  4378. * src/RequestGroupMan.cc
  4379. * src/RequestGroupMan.h
  4380. * src/XmlRpcMethodImpl.cc
  4381. * test/XmlRpcMethodTest.cc
  4382. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4383. Removed Peer.cc from compile source list when --disable-bittorrent
  4384. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  4385. takes Peer.
  4386. * src/DefaultPieceStorage.cc
  4387. * src/DefaultPieceStorage.h
  4388. * src/Makefile.am
  4389. * src/PieceStorage.h
  4390. * src/UnknownLengthPieceStorage.cc
  4391. * src/UnknownLengthPieceStorage.h
  4392. * test/MockPieceStorage.h
  4393. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4394. Implemented getter methods in header files to give them more
  4395. chance of optimization.
  4396. Return const reference for SharadHandle if possible.
  4397. * src/AbstractAuthResolver.cc
  4398. * src/AbstractAuthResolver.h
  4399. * src/AbstractBtMessage.cc
  4400. * src/AbstractBtMessage.h
  4401. * src/AbstractSingleDiskAdaptor.cc
  4402. * src/AbstractSingleDiskAdaptor.h
  4403. * src/AsyncNameResolver.cc
  4404. * src/AsyncNameResolver.h
  4405. * src/BNode.cc
  4406. * src/BNode.h
  4407. * src/BitfieldMan.cc
  4408. * src/BitfieldMan.h
  4409. * src/BtAbortOutstandingRequestEvent.h
  4410. * src/BtExtendedMessage.cc
  4411. * src/BtExtendedMessage.h
  4412. * src/BtSeederStateChoke.cc
  4413. * src/BtSeederStateChoke.h
  4414. * src/Cookie.cc
  4415. * src/Cookie.h
  4416. * src/DHTBucket.cc
  4417. * src/DHTBucket.h
  4418. * src/DHTConnectionImpl.cc
  4419. * src/DHTConnectionImpl.h
  4420. * src/DHTFindNodeReplyMessage.cc
  4421. * src/DHTFindNodeReplyMessage.h
  4422. * src/DHTGetPeersReplyMessage.cc
  4423. * src/DHTGetPeersReplyMessage.h
  4424. * src/DHTInteractionCommand.cc
  4425. * src/DHTMessage.cc
  4426. * src/DHTMessage.h
  4427. * src/DHTMessageDispatcherImpl.cc
  4428. * src/DHTMessageEntry.cc
  4429. * src/DHTMessageReceiver.cc
  4430. * src/DHTMessageReceiver.h
  4431. * src/DHTMessageTrackerEntry.cc
  4432. * src/DHTMessageTrackerEntry.h
  4433. * src/DHTPeerAnnounceEntry.cc
  4434. * src/DHTPeerAnnounceEntry.h
  4435. * src/DHTPeerLookupTask.cc
  4436. * src/DHTPeerLookupTask.h
  4437. * src/DHTRoutingTableDeserializer.cc
  4438. * src/DHTRoutingTableDeserializer.h
  4439. * src/DefaultBtAnnounce.cc
  4440. * src/DefaultBtAnnounce.h
  4441. * src/DefaultBtMessageDispatcher.cc
  4442. * src/DefaultBtMessageDispatcher.h
  4443. * src/DefaultBtRequestFactory.cc
  4444. * src/DefaultBtRequestFactory.h
  4445. * src/DiskAdaptor.cc
  4446. * src/DiskAdaptor.h
  4447. * src/DownloadContext.cc
  4448. * src/DownloadContext.h
  4449. * src/DownloadEngine.cc
  4450. * src/DownloadEngine.h
  4451. * src/EpollEventPoll.cc
  4452. * src/EpollEventPoll.h
  4453. * src/FtpConnection.cc
  4454. * src/FtpConnection.h
  4455. * src/HttpConnection.cc
  4456. * src/HttpConnection.h
  4457. * src/HttpHeader.cc
  4458. * src/HttpHeader.h
  4459. * src/HttpRequest.cc
  4460. * src/HttpRequest.h
  4461. * src/HttpResponse.cc
  4462. * src/HttpResponse.h
  4463. * src/LibsslTLSContext.cc
  4464. * src/LibsslTLSContext.h
  4465. * src/MSEHandshake.cc
  4466. * src/MSEHandshake.h
  4467. * src/MetalinkEntry.cc
  4468. * src/MetalinkEntry.h
  4469. * src/MetalinkParserController.cc
  4470. * src/MetalinkParserController.h
  4471. * src/MetalinkParserStateMachine.cc
  4472. * src/MetalinkParserStateMachine.h
  4473. * src/MultiDiskAdaptor.cc
  4474. * src/MultiDiskAdaptor.h
  4475. * src/NetrcAuthResolver.cc
  4476. * src/NetrcAuthResolver.h
  4477. * src/Peer.cc
  4478. * src/Peer.h
  4479. * src/PeerSessionResource.cc
  4480. * src/PeerSessionResource.h
  4481. * src/Piece.cc
  4482. * src/Piece.h
  4483. * src/PieceStatMan.cc
  4484. * src/PieceStatMan.h
  4485. * src/Request.cc
  4486. * src/Request.h
  4487. * src/RequestGroup.cc
  4488. * src/RequestGroup.h
  4489. * src/RequestGroupMan.cc
  4490. * src/RequestGroupMan.h
  4491. * src/RequestSlot.cc
  4492. * src/RequestSlot.h
  4493. * src/SegmentMan.cc
  4494. * src/SegmentMan.h
  4495. * src/SelectEventPoll.cc
  4496. * src/SelectEventPoll.h
  4497. * src/ServerStat.cc
  4498. * src/ServerStat.h
  4499. * src/Signature.cc
  4500. * src/Signature.h
  4501. * src/URIResult.cc
  4502. * src/URIResult.h
  4503. * src/UTPexExtensionMessage.cc
  4504. * src/UTPexExtensionMessage.h
  4505. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4506. Fixed compile error without BitTorrent and Metalink support.
  4507. * src/XmlRpcMethod.cc
  4508. * src/XmlRpcMethodFactory.cc
  4509. * src/XmlRpcMethodImpl.cc
  4510. * src/XmlRpcMethodImpl.h
  4511. * test/XmlRpcMethodTest.cc
  4512. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4513. Rewritten the help message for --allow-overwrite option.
  4514. * doc/aria2c.1.txt
  4515. * src/usage_text.h
  4516. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4517. Fixed typo
  4518. * doc/aria2c.1.txt
  4519. * src/usage_text.h
  4520. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4521. Updated README for 1.4.0 release. Use new table syntax of
  4522. asciidoc.
  4523. * README
  4524. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4525. Documented --xml-rpc-max-request-size option in man page.
  4526. * doc/aria2c.1.txt
  4527. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4528. Moved C_* constants from BtContext to DefaultBtContext.
  4529. * src/BtContext.cc: Removed.
  4530. * src/BtContext.h
  4531. * src/DefaultBtContext.cc
  4532. * src/DefaultBtContext.h
  4533. * src/Makefile.am
  4534. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4535. Use name.utf-8 and path.utf-8 key in higher priority than name and
  4536. path key respectively when persing .torrent file.
  4537. * src/BtContext.cc
  4538. * src/BtContext.h
  4539. * src/DefaultBtContext.cc
  4540. * test/DefaultBtContextTest.cc
  4541. * test/utf8.torrent
  4542. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4543. Added --xml-rpc-max-request-size option to limit the size of
  4544. XML-RPC request.
  4545. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4546. Documented XML-RPC API in man page.
  4547. * doc/aria2c.1.txt
  4548. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4549. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  4550. will break strict-aliasing rules
  4551. * src/PeerConnection.cc
  4552. * test/DHTRoutingTableSerializerTest.cc
  4553. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4554. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  4555. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  4556. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  4557. PKG_CHECK_MODULES macro uses latter name.
  4558. * m4/sqlite3.m4
  4559. * src/Makefile.am
  4560. * test/Makefile.am
  4561. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4562. Fixed typo
  4563. * configure.ac
  4564. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4565. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  4566. presence of libgnutls using pkg-config first. If it fails, fall
  4567. back to old macro libgnutls.m4.
  4568. * configure.ac
  4569. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4570. Use s itself instead of !s.bad()
  4571. * src/CookieStorage.cc
  4572. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4573. Documented --on-download-* option and --save-cookies option in man
  4574. page.
  4575. * doc/aria2c.1.txt
  4576. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4577. Set possible values for --load-cookie option to "/path/to/file".
  4578. * src/OptionHandlerFactory.cc
  4579. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4580. Added --save-cookies option.
  4581. * src/Cookie.cc
  4582. * src/Cookie.h
  4583. * src/CookieStorage.cc
  4584. * src/CookieStorage.h
  4585. * src/MultiUrlRequestInfo.cc
  4586. * src/OptionHandlerFactory.cc
  4587. * src/prefs.cc
  4588. * src/prefs.h
  4589. * src/usage_text.h
  4590. * test/CookieStorageTest.cc
  4591. * test/CookieTest.cc
  4592. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4593. Removed tellAll XML-RPC command because its reponse tends to be
  4594. big if stopped/waiting downloads pile up.
  4595. * src/XmlRpcMethodFactory.cc
  4596. * src/XmlRpcMethodImpl.cc
  4597. * src/XmlRpcMethodImpl.h
  4598. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4599. Added the ability to execute command when download starts and
  4600. stops. You can also specify command for particular cases such as
  4601. complete/error download. Added --on-download-start,
  4602. --on-download-stop, --on-download-complete and --on-download-error
  4603. option.
  4604. * src/OptionHandlerFactory.cc
  4605. * src/RequestGroupMan.cc
  4606. * src/prefs.cc
  4607. * src/prefs.h
  4608. * src/usage_text.h
  4609. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4610. Fixed test error
  4611. * test/BencodeTest.cc
  4612. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4613. Added unit tests.
  4614. * test/XmlRpcMethodTest.cc
  4615. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4616. Made exception message more verbose.
  4617. * src/bencode.cc
  4618. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4619. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  4620. space in console readout. Also they are now shown in MiB/s if
  4621. speed > 1024KiB/s.
  4622. * src/ConsoleStatCalc.cc
  4623. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4624. Added SEED to console output, which represents the number of
  4625. seeders currently the client is connecting to.
  4626. * src/ConsoleStatCalc.cc
  4627. * src/ConsoleStatCalc.h
  4628. * src/DownloadEngine.cc
  4629. * src/NullStatCalc.h
  4630. * src/StatCalc.h
  4631. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4632. Added source filename(__FILE__) and line number(__LINE__) to
  4633. exception message.
  4634. * src/AbstractCommand.cc
  4635. * src/AbstractDiskWriter.cc
  4636. * src/AbstractProxyResponseCommand.cc
  4637. * src/BDE.h
  4638. * src/BtAllowedFastMessage.cc
  4639. * src/BtHandshakeMessageValidator.h
  4640. * src/BtHaveAllMessage.cc
  4641. * src/BtHaveNoneMessage.cc
  4642. * src/BtPieceMessage.cc
  4643. * src/BtRejectMessage.cc
  4644. * src/ChunkedDecoder.cc
  4645. * src/CookieStorage.cc
  4646. * src/DHTAnnouncePeerMessage.cc
  4647. * src/DHTEntryPointNameResolveCommand.cc
  4648. * src/DHTMessageFactoryImpl.cc
  4649. * src/DHTMessageTracker.cc
  4650. * src/DHTRoutingTableDeserializer.cc
  4651. * src/DHTRoutingTableSerializer.cc
  4652. * src/DHTSetup.cc
  4653. * src/DHTTokenTracker.cc
  4654. * src/DefaultBtAnnounce.cc
  4655. * src/DefaultBtContext.cc
  4656. * src/DefaultBtInteractive.cc
  4657. * src/DefaultBtMessageFactory.cc
  4658. * src/DefaultBtProgressInfoFile.cc
  4659. * src/DefaultExtensionMessageFactory.cc
  4660. * src/DlAbortEx.h
  4661. * src/DlRetryEx.h
  4662. * src/DownloadCommand.cc
  4663. * src/DownloadEngineFactory.cc
  4664. * src/DownloadFailureException.h
  4665. * src/Exception.cc
  4666. * src/Exception.h
  4667. * src/ExpatMetalinkProcessor.cc
  4668. * src/ExpatXmlRpcRequestProcessor.cc
  4669. * src/FallocFileAllocationIterator.cc
  4670. * src/FatalException.h
  4671. * src/FtpConnection.cc
  4672. * src/FtpFinishDownloadCommand.cc
  4673. * src/FtpInitiateConnectionCommand.cc
  4674. * src/FtpNegotiationCommand.cc
  4675. * src/GZipDecoder.cc
  4676. * src/HandshakeExtensionMessage.cc
  4677. * src/HttpConnection.cc
  4678. * src/HttpHeaderProcessor.cc
  4679. * src/HttpInitiateConnectionCommand.cc
  4680. * src/HttpResponse.cc
  4681. * src/HttpResponseCommand.cc
  4682. * src/HttpServer.cc
  4683. * src/HttpSkipResponseCommand.cc
  4684. * src/InitiateConnectionCommandFactory.cc
  4685. * src/IteratableChunkChecksumValidator.cc
  4686. * src/LibgcryptARC4Context.h
  4687. * src/LibgcryptARC4Decryptor.h
  4688. * src/LibgcryptARC4Encryptor.h
  4689. * src/LibgcryptDHKeyExchange.h
  4690. * src/LibgnutlsTLSContext.cc
  4691. * src/LibsslARC4Context.h
  4692. * src/LibsslARC4Decryptor.h
  4693. * src/LibsslARC4Encryptor.h
  4694. * src/LibsslDHKeyExchange.h
  4695. * src/LibsslTLSContext.cc
  4696. * src/MSEHandshake.cc
  4697. * src/MessageDigestHelper.cc
  4698. * src/MetalinkHelper.cc
  4699. * src/MultiDiskAdaptor.cc
  4700. * src/NameMatchOptionHandler.h
  4701. * src/NameResolver.cc
  4702. * src/Netrc.cc
  4703. * src/NsCookieParser.cc
  4704. * src/OptionHandlerException.cc
  4705. * src/OptionHandlerException.h
  4706. * src/OptionHandlerImpl.h
  4707. * src/OptionParser.cc
  4708. * src/ParameterizedStringParser.cc
  4709. * src/PeerAbstractCommand.cc
  4710. * src/PeerConnection.cc
  4711. * src/PeerMessageUtil.cc
  4712. * src/PeerReceiveHandshakeCommand.cc
  4713. * src/Platform.cc
  4714. * src/ReceiverMSEHandshakeCommand.cc
  4715. * src/RecoverableException.h
  4716. * src/RequestGroup.cc
  4717. * src/SimpleLogger.cc
  4718. * src/SocketCore.cc
  4719. * src/Sqlite3MozCookieParser.cc
  4720. * src/UTPexExtensionMessage.cc
  4721. * src/Util.cc
  4722. * src/XML2SAXMetalinkProcessor.cc
  4723. * src/Xml2XmlRpcRequestProcessor.cc
  4724. * src/XmlRpcMethodImpl.cc
  4725. * src/bencode.cc
  4726. * src/download_helper.cc
  4727. * src/messageDigest.h
  4728. * test/ExceptionTest.cc
  4729. * test/TestUtil.cc
  4730. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4731. Bump up version number to 1.4.0
  4732. * configure.ac
  4733. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4734. Added 2files.metalink to EXTRA_DIST
  4735. * test/Makefile.am
  4736. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4737. Added missing 2files.metalink
  4738. * test/2files.metalink
  4739. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4740. Show "[MEMORY]" prefix before filename in download summary if it
  4741. is downloaded into memory.
  4742. * src/DownloadResult.h
  4743. * src/RequestGroup.cc
  4744. * src/RequestGroupMan.cc
  4745. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4746. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  4747. * src/ExpatXmlRpcRequestProcessor.cc
  4748. * src/Xml2XmlRpcRequestProcessor.cc
  4749. * src/message.h
  4750. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4751. Defined const BDEs to avoid duplicate instantiation.
  4752. Defined MSG_GID_NOT_PROVIDED.
  4753. * src/XmlRpcMethodImpl.cc
  4754. * src/message.h
  4755. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4756. Code cleanup
  4757. * src/Xml2XmlRpcRequestProcessor.cc
  4758. * src/Xml2XmlRpcRequestProcessor.h
  4759. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4760. Defined ENABLE_XML_RPC
  4761. * configure.ac
  4762. * configure
  4763. * config.h.in
  4764. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4765. Added ExpatXmlRpcRequestProcessor
  4766. * src/ExpatXmlRpcRequestProcessor.cc
  4767. * src/ExpatXmlRpcRequestProcessor.h
  4768. * src/Makefile.am
  4769. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4770. Added tests for addTorrent and addMetalink command.
  4771. * test/TestUtil.cc
  4772. * test/TestUtil.h
  4773. * test/XmlRpcMethodTest.cc
  4774. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4775. Corrected the description of --file-allocation option.
  4776. * doc/aria2c.1.txt
  4777. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4778. Added tellAll command.
  4779. * src/XmlRpcMethodFactory.cc
  4780. * src/XmlRpcMethodImpl.cc
  4781. * src/XmlRpcMethodImpl.h
  4782. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4783. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  4784. * src/XmlRpcMethodImpl.cc
  4785. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4786. Added changeGlobalOption command. Currently,
  4787. max-overall-download-limit and max-overall-upload-limit option are
  4788. available.
  4789. * src/RequestGroupMan.h
  4790. * src/XmlRpcMethod.cc
  4791. * src/XmlRpcMethod.h
  4792. * src/XmlRpcMethodFactory.cc
  4793. * src/XmlRpcMethodImpl.cc
  4794. * src/XmlRpcMethodImpl.h
  4795. * test/XmlRpcMethodTest.cc
  4796. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4797. Added changeOption command. Currently, max-download-limit,
  4798. max-upload-limit option are available in this command.
  4799. * src/RequestGroup.h
  4800. * src/XmlRpcMethod.cc
  4801. * src/XmlRpcMethod.h
  4802. * src/XmlRpcMethodFactory.cc
  4803. * src/XmlRpcMethodImpl.cc
  4804. * src/XmlRpcMethodImpl.h
  4805. * test/XmlRpcMethodTest.cc
  4806. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4807. Added purgeDownloadResult command.
  4808. * src/RequestGroupMan.cc
  4809. * src/RequestGroupMan.h
  4810. * src/XmlRpcMethodFactory.cc
  4811. * src/XmlRpcMethodImpl.cc
  4812. * src/XmlRpcMethodImpl.h
  4813. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4814. Refactored.
  4815. * src/XmlRpcMethod.cc
  4816. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4817. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  4818. XmlRpcResponse.
  4819. * src/HttpServerBodyCommand.cc
  4820. * src/Makefile.am
  4821. * src/XmlRpcMethod.cc
  4822. * src/XmlRpcMethod.h
  4823. * src/XmlRpcMethodImpl.cc
  4824. * src/XmlRpcResponse.cc
  4825. * src/XmlRpcResponse.h
  4826. * test/XmlRpcMethodTest.cc
  4827. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4828. In XML-RPC option struct, header and index-out option can take
  4829. array as value.
  4830. * src/XmlRpcMethod.cc
  4831. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4832. Removed unused option member from PeerConnection.
  4833. * src/InitiatorMSEHandshakeCommand.cc
  4834. * src/PeerConnection.cc
  4835. * src/PeerConnection.h
  4836. * src/PeerInteractionCommand.cc
  4837. * src/PeerReceiveHandshakeCommand.cc
  4838. * src/ReceiverMSEHandshakeCommand.cc
  4839. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4840. Added "seeder" key to getPeers response.
  4841. * src/XmlRpcMethodImpl.cc
  4842. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4843. Added addMetalink XML-RPC command.
  4844. * src/XmlRpcMethodFactory.cc
  4845. * src/XmlRpcMethodImpl.cc
  4846. * src/XmlRpcMethodImpl.h
  4847. * src/download_helper.cc
  4848. * src/download_helper.h
  4849. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4850. Fixed the bug that POU peers are never choked in seeding.
  4851. * src/BtSeederStateChoke.cc
  4852. * src/BtSeederStateChoke.h
  4853. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4854. Added web-seeding URI handling in addTorrent command.
  4855. * src/XmlRpcMethodImpl.cc
  4856. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4857. Added "length" key to getFiles response.
  4858. * src/XmlRpcMethodImpl.cc
  4859. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4860. Moved --no-netrc option from ftp option section to http/ftp option
  4861. section.
  4862. * doc/aria2c.1.txt
  4863. * src/OptionHandlerFactory.cc
  4864. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4865. Removed garbage "\" character before '
  4866. * doc/aria2c.1.txt
  4867. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4868. Removed garbage "\" character before http.
  4869. * doc/aria2c.1.txt
  4870. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4871. Documented additional options that can be specified in -i list.
  4872. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  4873. and --xml-rpc-passwd. Removed --enable-http-server and
  4874. --http-server-listen-port.
  4875. * doc/aria2c.1.txt
  4876. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4877. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  4878. * src/DefaultPeerStorage.cc
  4879. * src/DefaultPeerStorage.h
  4880. * src/PeerStorage.h
  4881. * src/XmlRpcMethodImpl.cc
  4882. * test/MockPeerStorage.h
  4883. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4884. Put a call to Socket::isReadable() in try block.
  4885. * src/HttpServerBodyCommand.cc
  4886. * src/HttpServerCommand.cc
  4887. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4888. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  4889. exception , so it is now in try block.
  4890. * src/HttpServerResponseCommand.cc
  4891. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4892. Added "amChoking" and "peerChoking" key in getPeers response.
  4893. * src/XmlRpcMethodImpl.cc
  4894. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4895. Added test case for zero-length filter.
  4896. * test/BitfieldManTest.cc
  4897. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4898. getFiles command now returns file data for finished/stopped
  4899. downloads.
  4900. * src/XmlRpcMethodImpl.cc
  4901. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4902. DownloadResult now has the list of FileEntry. The download
  4903. summary displays the path of first selected file and the number of
  4904. remaining files for multi-file torrent.
  4905. * src/DownloadResult.h
  4906. * src/RequestGroup.cc
  4907. * src/RequestGroupMan.cc
  4908. * test/RequestGroupTest.cc
  4909. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4910. Fixed segmentation fault error when no file is selected in
  4911. multi-file torrent.
  4912. * src/BitfieldMan.cc
  4913. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4914. Escaped <,>,& character in XML-RPC response.
  4915. * src/XmlRpcMethod.cc
  4916. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4917. Throw DlAbortEx instead of FatalException during parsing options
  4918. because we don't want for aria2 to quit when bad option is passed
  4919. via XML-RPC.
  4920. * src/OptionHandlerException.cc
  4921. * src/OptionHandlerException.h
  4922. * src/OptionHandlerImpl.h
  4923. * src/OptionParser.cc
  4924. * src/OptionParser.h
  4925. * src/PStringSegment.cc
  4926. * src/ParameterizedStringParser.cc
  4927. * src/download_helper.cc
  4928. * test/ParameterizedStringParserTest.cc
  4929. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4930. Selecting files are now done in
  4931. DefaultBtContext::setFileFileter().
  4932. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  4933. functions are removed because they are no longer used. Creating
  4934. filter in BitfieldMan is done in new funtion
  4935. PieceStorage::setupFileFilter()
  4936. * src/BtContext.cc
  4937. * src/BtContext.h
  4938. * src/DefaultBtContext.cc
  4939. * src/DefaultBtContext.h
  4940. * src/DefaultPieceStorage.cc
  4941. * src/DefaultPieceStorage.h
  4942. * src/DiskAdaptor.cc
  4943. * src/DiskAdaptor.h
  4944. * src/PieceStorage.h
  4945. * src/RequestGroup.cc
  4946. * src/UnknownLengthPieceStorage.h
  4947. * src/XmlRpcMethodImpl.cc
  4948. * test/DefaultBtContextTest.cc
  4949. * test/MockBtContext.h
  4950. * test/MockPieceStorage.h
  4951. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4952. Fixed compile error on Mac OS X
  4953. * src/HttpServer.cc
  4954. * src/XmlRpcMethod.h
  4955. * src/XmlRpcMethodImpl.cc
  4956. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4957. Use std::binary_search instead of std::find
  4958. * src/DefaultPieceStorage.cc
  4959. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4960. Removed unnecessary BDE() call; leave them to implicit conversion.
  4961. * src/XmlRpcMethodImpl.cc
  4962. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4963. Return connections and gid in string
  4964. * src/XmlRpcMethodImpl.cc
  4965. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4966. Renamed addURI as addUri
  4967. * src/XmlRpcMethodFactory.cc
  4968. * src/XmlRpcMethodImpl.cc
  4969. * src/XmlRpcMethodImpl.h
  4970. * test/XmlRpcMethodTest.cc
  4971. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4972. Renamed addTorrentFile as addTorrent
  4973. * src/XmlRpcMethodFactory.cc
  4974. * src/XmlRpcMethodImpl.cc
  4975. * src/XmlRpcMethodImpl.h
  4976. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4977. The information for files, URIs, peers are removed from the
  4978. reponse of TellaActive, TellStatus command because they tend to be
  4979. large. Instead they can be retrieved by the dedicated commands:
  4980. getFiles, getUris and getPeers respectively.
  4981. * src/XmlRpcMethodFactory.cc
  4982. * src/XmlRpcMethodImpl.cc
  4983. * src/XmlRpcMethodImpl.h
  4984. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4985. Removed --max-overall-upload-limit and
  4986. --max-overall-download-limit option from listRequestOptions.
  4987. * src/download_helper.cc
  4988. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4989. Log incoming host in HttpListenCommand.
  4990. * src/HttpListenCommand.cc
  4991. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4992. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  4993. --xml-rpc-passwd option.
  4994. * src/HttpServer.cc
  4995. * src/HttpServer.h
  4996. * src/HttpServerCommand.cc
  4997. * src/OptionHandlerFactory.cc
  4998. * src/prefs.cc
  4999. * src/prefs.h
  5000. * src/usage_text.h
  5001. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5002. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  5003. processing 0 length request.
  5004. * src/HttpServerBodyCommand.cc
  5005. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5006. Removed --enable-http-server and --http-server-listen-port
  5007. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  5008. instead. The original feature for --enable-http-server that
  5009. reports download progress in HTML was officially removed. Persist
  5010. XML-RPC connection if client supports keep-alive.
  5011. * src/DownloadEngineFactory.cc
  5012. * src/HttpServerCommand.cc
  5013. * src/HttpServerResponseCommand.cc
  5014. * src/Makefile.am
  5015. * src/Makefile.in
  5016. * src/OptionHandlerFactory.cc
  5017. * src/RequestGroupMan.cc
  5018. * src/main.cc
  5019. * src/option_processing.cc
  5020. * src/prefs.cc
  5021. * src/prefs.h
  5022. * src/usage_text.h
  5023. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5024. Added "uris" key to the response of tellStatus command. Added
  5025. "connections" key to the response of tellStatus and tellActive
  5026. command.
  5027. * src/XmlRpcMethodImpl.cc
  5028. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5029. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  5030. Added TellStatusXmlRpcMethod. Remove command can now remove
  5031. waiting RequestGroup.
  5032. * src/RequestGroupMan.cc
  5033. * src/RequestGroupMan.h
  5034. * src/XmlRpcMethodFactory.cc
  5035. * src/XmlRpcMethodImpl.cc
  5036. * src/XmlRpcMethodImpl.h
  5037. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5038. Initialized _peerId
  5039. * src/Peer.cc
  5040. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5041. Return fault structure for error. FailXmlRpcMethod is renamed as
  5042. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  5043. in non-torrent download. Return single param value.
  5044. * src/XmlRpcMethod.cc
  5045. * src/XmlRpcMethodFactory.cc
  5046. * src/XmlRpcMethodImpl.cc
  5047. * src/XmlRpcMethodImpl.h
  5048. * test/XmlRpcMethodTest.cc
  5049. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5050. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  5051. command.
  5052. * src/RequestGroup.cc
  5053. * src/RequestGroup.h
  5054. * src/RequestGroupMan.cc
  5055. * src/XmlRpcMethodImpl.cc
  5056. * test/RequestGroupTest.cc
  5057. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5058. Added more options that can be specified in -i list and xml-rpc
  5059. add* command.
  5060. * src/download_helper.h
  5061. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5062. The available options in -i list should be listed in
  5063. listRequestOptions().
  5064. * src/download_helper.cc
  5065. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5066. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  5067. command.
  5068. * src/XmlRpcMethodImpl.cc
  5069. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5070. Now RequestGroup has its own copy of Option object. This will help
  5071. to give custom option for each RequestGroup.
  5072. addTorrentFile command now takes options.
  5073. * src/AbstractCommand.cc
  5074. * src/AbstractCommand.h
  5075. * src/AbstractProxyRequestCommand.cc
  5076. * src/ActivePeerConnectionCommand.cc
  5077. * src/ActivePeerConnectionCommand.h
  5078. * src/AdaptiveURISelector.cc
  5079. * src/BtCheckIntegrityEntry.cc
  5080. * src/BtDependency.cc
  5081. * src/BtDependency.h
  5082. * src/BtFileAllocationEntry.cc
  5083. * src/BtPostDownloadHandler.cc
  5084. * src/CheckIntegrityEntry.cc
  5085. * src/DownloadCommand.cc
  5086. * src/FtpDownloadCommand.cc
  5087. * src/FtpFinishDownloadCommand.cc
  5088. * src/FtpInitiateConnectionCommand.cc
  5089. * src/FtpNegotiationCommand.cc
  5090. * src/HttpInitiateConnectionCommand.cc
  5091. * src/HttpRequestCommand.cc
  5092. * src/HttpResponseCommand.cc
  5093. * src/HttpSkipResponseCommand.cc
  5094. * src/InitiateConnectionCommand.cc
  5095. * src/InitiateConnectionCommandFactory.cc
  5096. * src/InitiatorMSEHandshakeCommand.cc
  5097. * src/InitiatorMSEHandshakeCommand.h
  5098. * src/Metalink2RequestGroup.cc
  5099. * src/Metalink2RequestGroup.h
  5100. * src/MetalinkPostDownloadHandler.cc
  5101. * src/MultiUrlRequestInfo.cc
  5102. * src/MultiUrlRequestInfo.h
  5103. * src/PeerAbstractCommand.cc
  5104. * src/PeerInteractionCommand.cc
  5105. * src/PeerInteractionCommand.h
  5106. * src/PeerReceiveHandshakeCommand.cc
  5107. * src/PeerReceiveHandshakeCommand.h
  5108. * src/RequestGroup.cc
  5109. * src/RequestGroup.h
  5110. * src/TrackerWatcherCommand.cc
  5111. * src/TrackerWatcherCommand.h
  5112. * src/XmlRpcMethod.cc
  5113. * src/XmlRpcMethod.h
  5114. * src/XmlRpcMethodImpl.cc
  5115. * src/download_helper.cc
  5116. * src/download_helper.h
  5117. * src/main.cc
  5118. * test/BtDependencyTest.cc
  5119. * test/BtPostDownloadHandlerTest.cc
  5120. * test/DefaultBtMessageDispatcherTest.cc
  5121. * test/DownloadHandlerFactoryTest.cc
  5122. * test/DownloadHelperTest.cc
  5123. * test/Metalink2RequestGroupTest.cc
  5124. * test/MetalinkPostDownloadHandlerTest.cc
  5125. * test/RequestGroupManTest.cc
  5126. * test/RequestGroupTest.cc
  5127. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5128. Added tellActiveStatus xml-rpc command which reports download
  5129. status of active downloads.
  5130. * src/XmlRpcMethodFactory.cc
  5131. * src/XmlRpcMethodImpl.cc
  5132. * src/XmlRpcMethodImpl.h
  5133. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5134. Added addTorrentFile xml-rpc command which receives uploaded
  5135. torrent file and add download for it.
  5136. * src/RequestGroupMan.cc
  5137. * src/XmlRpcMethodFactory.cc
  5138. * src/XmlRpcMethodImpl.cc
  5139. * src/XmlRpcMethodImpl.h
  5140. * src/download_helper.cc
  5141. * src/download_helper.h
  5142. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5143. Added remove xml-rpc command which removes specified download.
  5144. There is a known issue: the removed unfinished downloads are
  5145. reported ERR when aria2 exits. They should be reported as INPR.
  5146. * src/RequestGroupMan.cc
  5147. * src/RequestGroupMan.h
  5148. * src/XmlRpcMethodFactory.cc
  5149. * src/XmlRpcMethodImpl.cc
  5150. * src/XmlRpcMethodImpl.h
  5151. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5152. If --enable-http-server is enabled, don't stop aria2 when all
  5153. download finished and don't quit when no files to download at
  5154. start up.
  5155. * src/RequestGroupMan.cc
  5156. * src/main.cc
  5157. * src/option_processing.cc
  5158. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5159. Added missing AM_CONDITIONAL
  5160. * configure.ac
  5161. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5162. Added xml-rpc functionality. Currently only addURI commad is
  5163. supported. To enable xml-rpc, run aria2 with
  5164. --enable-http-server. This option name is temporal and will be
  5165. changed. The feature that reports download progress in html format
  5166. is temporarily disabled.
  5167. * src/HttpServer.cc
  5168. * src/HttpServer.h
  5169. * src/HttpServerBodyCommand.cc
  5170. * src/HttpServerBodyCommand.h
  5171. * src/HttpServerCommand.cc
  5172. * src/HttpServerResponseCommand.cc
  5173. * src/Makefile.am
  5174. * src/OptionParser.cc
  5175. * src/OptionParser.h
  5176. * src/RequestGroupMan.cc
  5177. * src/RequestGroupMan.h
  5178. * src/XmlRpcMethod.cc
  5179. * src/XmlRpcMethod.h
  5180. * src/XmlRpcMethodFactory.cc
  5181. * src/XmlRpcMethodFactory.h
  5182. * src/XmlRpcMethodImpl.cc
  5183. * src/XmlRpcMethodImpl.h
  5184. * src/download_helper.cc
  5185. * src/download_helper.h
  5186. * test/Makefile.am
  5187. * test/XmlRpcMethodTest.cc
  5188. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5189. Added xml-rpc request parser. The supported value types are:
  5190. i4/int, string, double, struct, array, base64. Currently only
  5191. libxml2 version is provided.
  5192. * src/Xml2XmlRpcRequestProcessor.cc
  5193. * src/Xml2XmlRpcRequestProcessor.h
  5194. * src/XmlRpcElements.cc
  5195. * src/XmlRpcElements.h
  5196. * src/XmlRpcRequest.h
  5197. * src/XmlRpcRequestParserController.cc
  5198. * src/XmlRpcRequestParserController.h
  5199. * src/XmlRpcRequestParserState.h
  5200. * src/XmlRpcRequestParserStateImpl.cc
  5201. * src/XmlRpcRequestParserStateImpl.h
  5202. * src/XmlRpcRequestParserStateMachine.cc
  5203. * src/XmlRpcRequestParserStateMachine.h
  5204. * src/XmlRpcRequestProcessor.h
  5205. * test/XmlRpcRequestParserControllerTest.cc
  5206. * test/XmlRpcRequestProcessorTest.cc
  5207. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5208. * Release 1.3.3
  5209. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5210. Fixed compile error since r1202.
  5211. * src/ExpatMetalinkProcessor.cc
  5212. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5213. Updated Ukrainian, Russian and Simplified Chinese
  5214. translations. Thanks to all translators.
  5215. * po/ru.po
  5216. * po/uk.po
  5217. * po/zh_CN.po
  5218. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5219. Pass reference of Option object instead of pointer.
  5220. * src/download_helper.cc
  5221. * src/download_helper.h
  5222. * src/main.cc
  5223. * test/DownloadHelperTest.cc
  5224. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5225. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  5226. from option directly. Instead, get them from RequestGroup.
  5227. * src/ActivePeerConnectionCommand.cc
  5228. * src/ActivePeerConnectionCommand.h
  5229. * src/PeerReceiveHandshakeCommand.cc
  5230. * src/RequestGroup.h
  5231. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5232. Removed unused uploadLimitCheck and uploadLimit from
  5233. PeerAbstractCommand. Removed unused maxDownloadLimit from
  5234. PeerInteractionCommand.
  5235. * src/PeerAbstractCommand.cc
  5236. * src/PeerAbstractCommand.h
  5237. * src/PeerInteractionCommand.cc
  5238. * src/PeerInteractionCommand.h
  5239. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5240. Fixed broken file renaming feature since r1202.
  5241. * src/FtpNegotiationCommand.cc
  5242. * src/FtpNegotiationCommand.h
  5243. * src/HttpResponseCommand.cc
  5244. * src/RequestGroup.cc
  5245. * src/RequestGroup.h
  5246. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5247. Removed unused debug log
  5248. * src/SocketCore.cc
  5249. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5250. Generated configure and Makefile.in using autoconf 2.63 and
  5251. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  5252. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  5253. * configure.ac
  5254. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5255. Moved piece statistics stuff to new PieceStatMan class.
  5256. Refactored PieceSelector interface.
  5257. * src/DefaultPieceStorage.cc
  5258. * src/DefaultPieceStorage.h
  5259. * src/LongestSequencePieceSelector.cc
  5260. * src/LongestSequencePieceSelector.h
  5261. * src/Makefile.am
  5262. * src/PieceSelector.h
  5263. * src/PieceStatMan.cc
  5264. * src/PieceStatMan.h
  5265. * src/RarestPieceSelector.cc
  5266. * src/RarestPieceSelector.h
  5267. * src/RequestGroup.cc
  5268. * test/DefaultPieceStorageTest.cc
  5269. * test/InOrderPieceSelector.h
  5270. * test/Makefile.am
  5271. * test/PieceStatManTest.cc
  5272. * test/RarestPieceSelectorTest.cc
  5273. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5274. Added static member _protocolFamily to SocketCore. By default,
  5275. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  5276. address. Sometime SocketCore::bind() and
  5277. SocketCore::establishConnection() use difference protocl family
  5278. and latter cannot connect to former. To avoid this situation, we
  5279. limit protocol family to AF_INET for unit tests.
  5280. * src/SocketCore.cc
  5281. * src/SocketCore.h
  5282. * test/AllTest.cc
  5283. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5284. Avoid std::bad_alloc for negative bencode string length.
  5285. * src/bencode.cc
  5286. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5287. Supported segmented downloading with chunked transfer encoding and
  5288. content-length.
  5289. * src/DownloadCommand.cc
  5290. * src/HttpResponseCommand.cc
  5291. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5292. Bump up version number to 1.3.3
  5293. * configure.ac
  5294. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5295. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  5296. from 4096 to 65536 (for insanely large ftp login banners)
  5297. * src/FtpConnection.h
  5298. * test/FtpConnectionTest.cc
  5299. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5300. In DefaultBtContext::getActualBasePath(), return first
  5301. FileEntry::getPath() for single file torrent.
  5302. * src/DefaultBtContext.cc
  5303. * test/DefaultBtContextTest.cc
  5304. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5305. Removed directIOAllowed() from BinaryStream, DiskWriter,
  5306. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  5307. Removed _directIOAllowed member from DiskWriter.
  5308. * src/AbstractDiskWriter.cc
  5309. * src/AbstractDiskWriter.h
  5310. * src/AbstractSingleDiskAdaptor.cc
  5311. * src/AbstractSingleDiskAdaptor.h
  5312. * src/BinaryStream.h
  5313. * src/ByteArrayDiskWriter.h
  5314. * src/DefaultPieceStorage.cc
  5315. * src/DiskWriter.h
  5316. * src/MultiDiskAdaptor.cc
  5317. * src/MultiDiskAdaptor.h
  5318. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5319. Now the constructor of AbstractDiskWriter takes filename as an
  5320. argument and filename argument is removed from openFile(),
  5321. initAndOpenFile(), openExistingFile() interface. storeDir member
  5322. and its accessor functions are removed from DiskAdaptor because it
  5323. is not used anymore. size() member function of DefaultDiskWriter,
  5324. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  5325. opening file.
  5326. * src/AbstractDiskWriter.cc
  5327. * src/AbstractDiskWriter.h
  5328. * src/AbstractSingleDiskAdaptor.cc
  5329. * src/AbstractSingleDiskAdaptor.h
  5330. * src/ByteArrayDiskWriter.cc
  5331. * src/ByteArrayDiskWriter.h
  5332. * src/ByteArrayDiskWriterFactory.cc
  5333. * src/ByteArrayDiskWriterFactory.h
  5334. * src/DefaultDiskWriter.cc
  5335. * src/DefaultDiskWriter.h
  5336. * src/DefaultDiskWriterFactory.cc
  5337. * src/DefaultDiskWriterFactory.h
  5338. * src/DefaultPieceStorage.cc
  5339. * src/DirectDiskAdaptor.cc
  5340. * src/DirectDiskAdaptor.h
  5341. * src/DiskAdaptor.h
  5342. * src/DiskWriter.h
  5343. * src/DiskWriterFactory.h
  5344. * src/MessageDigestHelper.cc
  5345. * src/MultiDiskAdaptor.cc
  5346. * src/RequestGroup.cc
  5347. * src/UnknownLengthPieceStorage.cc
  5348. * src/Util.cc
  5349. * test/DefaultDiskWriterTest.cc
  5350. * test/DirectDiskAdaptorTest.cc
  5351. * test/FallocFileAllocationIteratorTest.cc
  5352. * test/MessageDigestHelperTest.cc
  5353. * test/MetalinkProcessorTest.cc
  5354. * test/MultiDiskAdaptorTest.cc
  5355. * test/MultiFileAllocationIteratorTest.cc
  5356. * test/SingleFileAllocationIteratorTest.cc
  5357. * test/UtilTest.cc
  5358. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5359. Fixed the bug that aria2 aborts when --select-file is used. This
  5360. bug was introduced in r1199.
  5361. * src/MultiDiskAdaptor.cc
  5362. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5363. Code cleanup
  5364. * test/MockPieceStorage.cc
  5365. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5366. Fixed the bug that read-only file with wrong file size will cause
  5367. error because it cannot be truncated to the correct size. Now if
  5368. file size is different than the expected one, re-open file in
  5369. writable mode.
  5370. * src/AbstractSingleDiskAdaptor.cc
  5371. * src/AbstractSingleDiskAdaptor.h
  5372. * src/BtCheckIntegrityEntry.cc
  5373. * src/DiskAdaptor.h
  5374. * src/MultiDiskAdaptor.h
  5375. * src/RequestGroup.cc
  5376. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5377. Fixed the bug that with --check-integrity option aria2 reports
  5378. downloaded file size is 0 even if some parts of file is correctly
  5379. downloaded. This bug is reproducible for the download that a file
  5380. includes last piece is missing. This bug doesn't reveal for
  5381. single-torrent with file allocation on.
  5382. * src/IteratableChecksumValidator.cc
  5383. * test/IteratableChecksumValidatorTest.cc
  5384. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5385. Avoid circular reference between RequestGroup and AdaptiveURISelector
  5386. * src/RequestGroupMan.cc
  5387. * src/AdaptiveURISelector.cc
  5388. * src/AdaptiveURISelector.h
  5389. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5390. * Release 1.3.2
  5391. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5392. Updated README
  5393. * README
  5394. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5395. Updated Ukrainian translations. Thanks to Alexander10.
  5396. * po/uk.po
  5397. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5398. Code cleanup
  5399. * src/MetalinkParserStateMachine.cc
  5400. * src/MetalinkParserStateMachine.h
  5401. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5402. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  5403. and expat simultaneously, MetalinkProcessor is now not base class
  5404. and it is directly implemented in XML2SAXMetalinkProcessor and
  5405. ExpatMetalinkProcessor.
  5406. * src/ExpatMetalinkProcessor.cc
  5407. * src/ExpatMetalinkProcessor.h
  5408. * src/Makefile.am
  5409. * src/MetalinkHelper.cc
  5410. * src/MetalinkProcessor.h
  5411. * src/MetalinkProcessorFactory.cc: Removed.
  5412. * src/MetalinkProcessorFactory.h: Removed
  5413. * src/XML2SAXMetalinkProcessor.cc
  5414. * src/XML2SAXMetalinkProcessor.h
  5415. * test/MetalinkProcessorTest.cc
  5416. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5417. Bump up version number to 1.3.2
  5418. * configure.ac
  5419. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5420. Added missing file.
  5421. * test/Makefile.am
  5422. * test/url-list-singleFileEndsWithSlash.torrent
  5423. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5424. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  5425. request.
  5426. * src/AnnounceList.cc
  5427. * src/AnnounceList.h
  5428. * src/BDE.cc: Added
  5429. * src/BDE.h: Added
  5430. * src/DHTAbstractMessage.cc
  5431. * src/DHTAbstractMessage.h
  5432. * src/DHTAnnouncePeerMessage.cc
  5433. * src/DHTAnnouncePeerMessage.h
  5434. * src/DHTAnnouncePeerReplyMessage.cc
  5435. * src/DHTAnnouncePeerReplyMessage.h
  5436. * src/DHTFindNodeMessage.cc
  5437. * src/DHTFindNodeMessage.h
  5438. * src/DHTFindNodeReplyMessage.cc
  5439. * src/DHTFindNodeReplyMessage.h
  5440. * src/DHTGetPeersMessage.cc
  5441. * src/DHTGetPeersMessage.h
  5442. * src/DHTGetPeersReplyMessage.cc
  5443. * src/DHTGetPeersReplyMessage.h
  5444. * src/DHTMessageFactory.h
  5445. * src/DHTMessageFactoryImpl.cc
  5446. * src/DHTMessageFactoryImpl.h
  5447. * src/DHTMessageReceiver.cc
  5448. * src/DHTMessageTracker.cc
  5449. * src/DHTMessageTracker.h
  5450. * src/DHTPingMessage.cc
  5451. * src/DHTPingMessage.h
  5452. * src/DHTPingReplyMessage.cc
  5453. * src/DHTPingReplyMessage.h
  5454. * src/DHTQueryMessage.cc
  5455. * src/DHTQueryMessage.h
  5456. * src/DHTResponseMessage.cc
  5457. * src/DHTResponseMessage.h
  5458. * src/DefaultBtAnnounce.cc
  5459. * src/DefaultBtContext.cc
  5460. * src/DefaultBtContext.h
  5461. * src/HandshakeExtensionMessage.cc
  5462. * src/Makefile.am
  5463. * src/PeerListProcessor.h
  5464. * src/UTPexExtensionMessage.cc
  5465. * src/bencode.cc
  5466. * src/bencode.h
  5467. * test/AnnounceListTest.cc
  5468. * test/BDETest.cc: Added
  5469. * test/BencodeTest.cc
  5470. * test/DHTAnnouncePeerMessageTest.cc
  5471. * test/DHTAnnouncePeerReplyMessageTest.cc
  5472. * test/DHTFindNodeMessageTest.cc
  5473. * test/DHTFindNodeReplyMessageTest.cc
  5474. * test/DHTGetPeersMessageTest.cc
  5475. * test/DHTGetPeersReplyMessageTest.cc
  5476. * test/DHTMessageFactoryImplTest.cc
  5477. * test/DHTMessageTrackerTest.cc
  5478. * test/DHTPingMessageTest.cc
  5479. * test/DHTPingReplyMessageTest.cc
  5480. * test/Makefile.am
  5481. * test/MockDHTMessageFactory.h
  5482. * test/PeerListProcessorTest.cc
  5483. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5484. Use url-list (web-seeding) only for single-file torrent. This is
  5485. basically the same behavior with Metalink file with torrent and
  5486. URIs.
  5487. * src/RequestGroup.cc
  5488. * src/DefaultBtContext.cc
  5489. * test/DefaultBtContextTest.cc
  5490. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5491. Rewritten expr
  5492. * src/array_fun.h
  5493. * test/array_funTest.cc
  5494. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5495. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  5496. * src/DefaultBtMessageDispatcher.cc
  5497. * src/a2algo.h
  5498. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5499. Removed ExtendedMessagingAware. Instead of using inheritance,
  5500. added ExtensionMessageRegistry and it is passed to
  5501. DefaultExtensionMessageFactory.
  5502. * src/DefaultBtInteractive.cc
  5503. * src/DefaultBtInteractive.h
  5504. * src/DefaultExtensionMessageFactory.cc
  5505. * src/DefaultExtensionMessageFactory.h
  5506. * src/ExtendedMessagingAware.h: Removed.
  5507. * src/ExtensionMessageFactory.h
  5508. * src/ExtensionMessageRegistry.h: Added.
  5509. * src/Makefile.am
  5510. * src/PeerInteractionCommand.cc
  5511. * test/DefaultExtensionMessageFactoryTest.cc
  5512. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5513. Fixed typo in log messages
  5514. * src/MSEHandshake.cc
  5515. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5516. Fixed the bug that prevents torrent download from finishing. The
  5517. bug doesn't reveal for all torrents. The torrents affected this
  5518. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  5519. of pieces.
  5520. * src/bitfield.h
  5521. * test/bitfieldTest.cc
  5522. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5523. Code cleanup
  5524. * src/PeerListProcessor.h
  5525. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5526. Removed RequestGroupAware
  5527. * src/AbstractCommand.cc
  5528. * src/AbstractCommand.h
  5529. * src/ActivePeerConnectionCommand.cc
  5530. * src/ActivePeerConnectionCommand.h
  5531. * src/DHTGetPeersCommand.cc
  5532. * src/DHTGetPeersCommand.h
  5533. * src/InitiatorMSEHandshakeCommand.cc
  5534. * src/InitiatorMSEHandshakeCommand.h
  5535. * src/Makefile.am
  5536. * src/PeerInitiateConnectionCommand.cc
  5537. * src/PeerInitiateConnectionCommand.h
  5538. * src/PeerInteractionCommand.cc
  5539. * src/PeerInteractionCommand.h
  5540. * src/RealtimeCommand.cc
  5541. * src/RealtimeCommand.h
  5542. * src/RequestGroupAware.cc: Removed
  5543. * src/RequestGroupAware.h: Removed
  5544. * src/SeedCheckCommand.cc
  5545. * src/SeedCheckCommand.h
  5546. * src/SleepCommand.cc
  5547. * src/TrackerWatcherCommand.cc
  5548. * src/TrackerWatcherCommand.h
  5549. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5550. Rewritten PeerListProcessor
  5551. * src/PeerListProcessor.h
  5552. * src/CompactPeerListProcessor.h: Removed
  5553. * src/CompactPeerListProcessor.cc: Removed
  5554. * src/DelegatingPeerListProcessor.cc: Removed.
  5555. * src/DefaultBtAnnounce.cc
  5556. * src/Makefile.am
  5557. * src/UTPexExtensionMessage.cc
  5558. * src/DefaultPeerListProcessor.h: Removed.
  5559. * src/DefaultPeerListProcessor.cc: Removed.
  5560. * src/DelegatingPeerListProcessor.h: Removed.
  5561. * test/Makefile.am
  5562. * test/PeerListProcessorTest.cc
  5563. * test/DefaultPeerListProcessorTest.cc: Removed.
  5564. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5565. Rewritten RequestGroupMan::calculateStat()
  5566. * src/RequestGroupMan.cc
  5567. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5568. Removed unnecessary virtual destructor for Request class.
  5569. * src/Request.cc
  5570. * src/Request.h
  5571. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5572. Avoid dynamic_pointer_cast.
  5573. * src/DHTGetPeersCommand.cc
  5574. * src/DHTGetPeersCommand.h
  5575. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5576. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  5577. BtEvent.
  5578. * src/AbstractBtEventListener.h: Removed.
  5579. * src/AbstractBtMessage.cc
  5580. * src/AbstractBtMessage.h
  5581. * src/BtAbortOutstandingRequestEvent.h
  5582. * src/BtCancelSendingPieceEvent.h
  5583. * src/BtChokedEvent.h: Removed.
  5584. * src/BtChokingEvent.h
  5585. * src/BtEvent.h: Removed
  5586. * src/BtEventListener.h: Removed.
  5587. * src/BtMessage.h
  5588. * src/BtPieceMessage.cc
  5589. * src/BtPieceMessage.h
  5590. * src/BtRequestMessage.cc
  5591. * src/BtRequestMessage.h
  5592. * src/DefaultBtMessageDispatcher.cc
  5593. * src/Makefile.am
  5594. * src/a2functional.h
  5595. * test/BtPieceMessageTest.cc
  5596. * test/BtRequestMessageTest.cc
  5597. * test/DefaultBtMessageDispatcherTest.cc
  5598. * test/MockBtMessage.h
  5599. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5600. Code cleanup
  5601. * src/RequestGroupMan.cc
  5602. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5603. Code cleanup
  5604. * src/DownloadCommand.cc
  5605. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5606. Fixed segmentation fault when GZipDecoder::decode() returns 0
  5607. byte.
  5608. * src/DownloadCommand.cc
  5609. * src/bitfield.h
  5610. * test/bitfieldTest.cc
  5611. Fixed the bug that causes infinite loop if broken web server
  5612. returns chunked response without last "0" chunk-size marker and
  5613. closes connection.
  5614. * src/DownloadCommand.cc
  5615. Instantiate properly configured HttpDownloadCommand for
  5616. non-resumable downlaods.
  5617. * src/HttpResponseCommand.cc
  5618. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5619. Rewritten array operation functions.
  5620. * src/BitfieldMan.cc
  5621. * src/array_fun.h
  5622. * test/array_funTest.cc
  5623. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5624. Removed unused variable 'query'
  5625. * src/Request.cc
  5626. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5627. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  5628. accidentally set to false in r1162.
  5629. * configure.ac
  5630. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5631. Code cleanup
  5632. * src/BNode.cc
  5633. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5634. Increase prefixLength for the bucket which doesn't own local node
  5635. ID when splitting bucket.
  5636. * src/DHTBucket.cc
  5637. * test/DHTBucketTest.cc
  5638. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5639. * Release 1.3.1
  5640. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5641. Bump up version number to 1.3.1
  5642. * configure.ac
  5643. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5644. Removed unused variable checkPoint. Also removed include directive
  5645. for TimeA2.h.
  5646. * src/SeedCheckCommand.h
  5647. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5648. Fixed the bug that upload limit exceeds the value specified in
  5649. --seed-ratio option depending on the timing of the execution of
  5650. SeedCheckCommand.
  5651. * src/SeedCheckCommand.cc
  5652. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5653. Fixed the bug that removed peer's session upload/download length
  5654. are counted twice in _cachedTransferStat before it is
  5655. re-calculated. This affected the calculation of shara ratio,
  5656. resulting aria2 wrongly determines that specified share ratio is
  5657. reached. Also fixed the typo in calculateStatFor function name.
  5658. * src/BtSetup.cc
  5659. * src/DefaultPeerStorage.cc
  5660. * src/ShareRatioSeedCriteria.h
  5661. * test/ShareRatioSeedCriteriaTest.cc
  5662. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5663. * Release 1.3.0
  5664. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5665. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  5666. Nynorsk translations. Thanks to all translators.
  5667. * po/es.po
  5668. * po/ja.po
  5669. * po/nn.po
  5670. * po/ru.po
  5671. * po/uk.po
  5672. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5673. Rewritten isInRange()
  5674. * src/DHTBucket.cc
  5675. * test/DHTBucketTest.cc
  5676. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5677. Fixed typo
  5678. * doc/aria2c.1.txt
  5679. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5680. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  5681. malloc/realloc is not used.
  5682. * src/configure.ac
  5683. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5684. BitfieldMan::getMissingIndexes family functions now takes unsigned
  5685. char* bitfield instead of stl container for efficiency.
  5686. PieceSelector::select now takes this
  5687. bitfield. RarestPieceSelector::select now also performs
  5688. efficiently for this change. bitfield namespace is introduced and
  5689. it has several helper functions to handle basic bitfield
  5690. operations such as test, count set bits, etc.
  5691. * src/BitfieldMan.cc
  5692. * src/BitfieldMan.h
  5693. * src/DefaultBtRequestFactory.cc
  5694. * src/DefaultPieceStorage.cc
  5695. * src/DefaultPieceStorage.h
  5696. * src/LongestSequencePieceSelector.cc
  5697. * src/LongestSequencePieceSelector.h
  5698. * src/Makefile.am
  5699. * src/Piece.cc
  5700. * src/Piece.h
  5701. * src/PieceSelector.h
  5702. * src/RarestPieceSelector.cc
  5703. * src/RarestPieceSelector.h
  5704. * src/Util.cc
  5705. * src/Util.h
  5706. * src/bitfield.h
  5707. * test/BitfieldManTest.cc
  5708. * test/LongestSequencePieceSelectorTest.cc
  5709. * test/Makefile.am
  5710. * test/RarestPieceSelectorTest.cc
  5711. * test/UtilTest.cc
  5712. * test/bitfieldTest.cc
  5713. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5714. Made accepted socket non-block.
  5715. * src/FtpNegotiationCommand.cc
  5716. * src/HttpListenCommand.cc
  5717. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5718. Guarded #ifdef HAVE_POSIX_FALLOCATE
  5719. * src/AbstractSingleDiskAdaptor.cc
  5720. * src/DefaultPieceStorage.cc
  5721. * src/DiskAdaptor.h
  5722. * src/DiskAdaptor.h
  5723. * src/MultiFileAllocationIterator.cc
  5724. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5725. Run
  5726. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  5727. in every 1 sec. The timeout of RequestSlot is 60s by default and
  5728. it doesn't need to be called every time when
  5729. DefaultBtInteractive::doInteractionProcessing() is called.
  5730. * src/DefaultBtInteractive.cc
  5731. * src/DefaultBtInteractive.h
  5732. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5733. Documented 'falloc' in man page.
  5734. * doc/aria2c.1.txt
  5735. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5736. Updated doc
  5737. * src/usage_text.h
  5738. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5739. Added 'falloc' parameter for --file-allocation option. 'falloc'
  5740. allocation mode uses posix_fallocate() system call to allocate
  5741. file on disk. If you are using newer file systems such as ext4
  5742. (with extents support), btrfs or xfs, 'falloc' is your best
  5743. choice. It allocates large(few GiB) files almost instantly. Don't
  5744. use 'falloc' with legacy file systems such as ext3 because it
  5745. takes almost same time as 'prealloc' and it blocks aria2 entirely
  5746. until allocation finishes. 'falloc' may not be available if your
  5747. system doesn't have posix_fallocate() system call.
  5748. * configure.ac
  5749. * src/AbstractDiskWriter.cc
  5750. * src/AbstractDiskWriter.h
  5751. * src/AbstractSingleDiskAdaptor.cc
  5752. * src/BinaryStream.h
  5753. * src/BtCheckIntegrityEntry.cc
  5754. * src/ByteArrayDiskWriter.h
  5755. * src/CheckIntegrityEntry.cc
  5756. * src/CheckIntegrityEntry.h
  5757. * src/DefaultPieceStorage.cc
  5758. * src/DiskAdaptor.cc
  5759. * src/DiskAdaptor.h
  5760. * src/DiskWriter.h
  5761. * src/FallocFileAllocationIterator.cc
  5762. * src/FallocFileAllocationIterator.h
  5763. * src/FileAllocationEntry.cc
  5764. * src/FileAllocationEntry.h
  5765. * src/Makefile.am
  5766. * src/MultiFileAllocationIterator.cc
  5767. * src/MultiFileAllocationIterator.h
  5768. * src/OptionHandlerFactory.cc
  5769. * src/RequestGroup.cc
  5770. * src/StreamCheckIntegrityEntry.cc
  5771. * src/prefs.cc
  5772. * src/prefs.h
  5773. * src/usage_text.h
  5774. * test/FallocFileAllocationIteratorTest.cc
  5775. * test/Makefile.am
  5776. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5777. Removed duplicate enableDirectIO() call.
  5778. * src/MultiFileAllocationIterator.cc
  5779. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5780. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  5781. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  5782. cost of std::rotate().
  5783. * src/RarestPieceSelector.cc
  5784. * src/RarestPieceSelector.h
  5785. * test/RarestPieceSelectorTest.cc
  5786. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5787. Updated usage doc for --bt-tracker-interval option.
  5788. * src/usage_text.h
  5789. * doc/aria2c.1.txt
  5790. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5791. Documented --bt-tracker-interval option in man page.
  5792. * doc/aria2c.1.txt
  5793. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5794. Added an option to specify the interval between tracker requests.
  5795. If non-zero value is specified, aria2 uses it and ignores the
  5796. interval value in the response of tracker. If zero is specified,
  5797. aria2 determines the inteval value based on the tarcker response
  5798. and download progress.
  5799. * src/DefaultBtAnnounce.cc
  5800. * src/DefaultBtAnnounce.h
  5801. * src/OptionHandlerFactory.cc
  5802. * src/RequestGroup.cc
  5803. * src/prefs.cc
  5804. * src/prefs.h
  5805. * src/usage_text.h
  5806. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5807. Added operator+=, operator-=, operator-
  5808. * src/TransferStat.cc
  5809. * src/TransferStat.h
  5810. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5811. Refactored RarestPieceSelector to reduce CPU load, especially for
  5812. addPieceStats.
  5813. * src/RarestPieceSelector.cc
  5814. * src/RarestPieceSelector.h
  5815. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5816. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  5817. getAllMissingBlockIndexes to reduce a call to
  5818. array_function_base::operator[].
  5819. * src/BitfieldMan.cc
  5820. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5821. Cached TransferStat/download speed to avoid to sum them up in each
  5822. call.
  5823. * src/DefaultPeerStorage.cc
  5824. * src/DefaultPeerStorage.h
  5825. * src/SegmentMan.cc
  5826. * src/SegmentMan.h
  5827. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5828. Typedefed cuid_t as int32_t in Command.h
  5829. * src/CUIDCounter.h
  5830. * src/Command.cc
  5831. * src/Command.h
  5832. * src/DownloadEngine.cc
  5833. * src/DownloadEngine.h
  5834. * src/PeerStat.h
  5835. * src/SegmentMan.cc
  5836. * src/SegmentMan.h
  5837. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5838. Reduced the number of calls to PeerStorage::calculateStat() and
  5839. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  5840. transfer rate.
  5841. * src/DefaultBtInteractive.cc
  5842. * src/DefaultBtMessageDispatcher.cc
  5843. * src/DefaultPeerStorage.cc
  5844. * src/DefaultPeerStorage.h
  5845. * src/DownloadCommand.cc
  5846. * src/DownloadEngine.cc
  5847. * src/PeerStorage.h
  5848. * src/SegmentMan.cc
  5849. * src/SegmentMan.h
  5850. * test/MockPeerStorage.h
  5851. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5852. Prepended _dir+"/" after joining path elements in torrent file.
  5853. * src/DefaultBtContext.cc
  5854. * test/DefaultBtContextTest.cc
  5855. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5856. Added missing IndexBtMessageValidator.h
  5857. * src/Makefile.am
  5858. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5859. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  5860. Chinese translations. Thank you for contributing our project.
  5861. * po/id.po
  5862. * po/it.po
  5863. * po/ru.po
  5864. * po/uk.po
  5865. * po/zh_CN.po
  5866. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5867. Updated README
  5868. * README
  5869. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5870. Bump up version number to 1.3.0
  5871. * configure.ac
  5872. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5873. Updated doc
  5874. * src/DefaultBtContext.h
  5875. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5876. Slice/joinPath for name of single torrent.
  5877. * src/DefaultBtContext.cc
  5878. * test/DefaultBtContextTest.cc
  5879. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5880. Updated man page: Documented --dry-run and --index-out
  5881. options. Changed the default value of --uri-selector and
  5882. --http-auth-challenge options. Removed --direct-file-mapping
  5883. option. Added example for --index-out
  5884. * doc/aria2c.1.txt
  5885. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5886. Updated TEXT_DRY_RUN
  5887. * src/usage_text.h
  5888. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5889. Changed the default value of --uri-selector option from 'inorder'
  5890. to 'feedback'
  5891. * src/OptionHandlerFactory.cc
  5892. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5893. Included current URI in exception message.
  5894. * src/AbstractCommand.cc
  5895. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5896. Renamed ServerStatURISelector as FeedbackURISelector.
  5897. * src/FeedbackURISelector.cc
  5898. * src/FeedbackURISelector.h
  5899. * src/Makefile.am
  5900. * src/RequestGroupMan.cc
  5901. * src/ServerStatURISelector.cc
  5902. * src/ServerStatURISelector.h
  5903. * test/FeedbackURISelectorTest.cc
  5904. * test/Makefile.am
  5905. * test/ServerStatURISelectorTest.cc
  5906. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5907. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  5908. all URIs are tested and their timeout is not reached.
  5909. * src/AdaptiveURISelector.cc
  5910. * src/AdaptiveURISelector.h
  5911. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5912. Changed the default value of --http-auth-challenge option to false.
  5913. * src/OptionHandlerFactory.cc
  5914. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5915. Reuse URIs when all unused URIs run out.
  5916. * src/OptionHandlerFactory.cc
  5917. * src/RequestGroup.cc
  5918. * src/prefs.cc
  5919. * src/prefs.h
  5920. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5921. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  5922. and BtRejectMessage are derived from RangeBtMessage class.
  5923. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  5924. derived from IndexBtMessage class. BtChokeMessage,
  5925. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  5926. BtNotInterestedMessage and BtUnchokeMessage are derived from
  5927. ZeroBtMessage class.
  5928. * src/AbstractBtMessage.cc
  5929. * src/AbstractBtMessage.h
  5930. * src/BtAllowedFastMessage.cc
  5931. * src/BtAllowedFastMessage.h
  5932. * src/BtAllowedFastMessageValidator.h: Removed
  5933. * src/BtBitfieldMessage.cc
  5934. * src/BtBitfieldMessage.h
  5935. * src/BtCancelMessage.cc
  5936. * src/BtCancelMessage.h
  5937. * src/BtCancelMessageValidator.h: Removed
  5938. * src/BtChokeMessage.cc
  5939. * src/BtChokeMessage.h
  5940. * src/BtExtendedMessage.cc
  5941. * src/BtExtendedMessage.h
  5942. * src/BtHandshakeMessage.cc
  5943. * src/BtHandshakeMessage.h
  5944. * src/BtHaveAllMessage.cc
  5945. * src/BtHaveAllMessage.h
  5946. * src/BtHaveMessage.cc
  5947. * src/BtHaveMessage.h
  5948. * src/BtHaveMessageValidator.h: Removed
  5949. * src/BtHaveNoneMessage.cc
  5950. * src/BtHaveNoneMessage.h
  5951. * src/BtInterestedMessage.cc
  5952. * src/BtInterestedMessage.h
  5953. * src/BtKeepAliveMessage.cc
  5954. * src/BtKeepAliveMessage.h
  5955. * src/BtNotInterestedMessage.cc
  5956. * src/BtNotInterestedMessage.h
  5957. * src/BtPieceMessage.cc
  5958. * src/BtPieceMessage.h
  5959. * src/BtPortMessage.cc
  5960. * src/BtPortMessage.h
  5961. * src/BtRejectMessage.cc
  5962. * src/BtRejectMessage.h
  5963. * src/BtRejectMessageValidator.h: Removed
  5964. * src/BtRequestMessage.cc
  5965. * src/BtRequestMessage.h
  5966. * src/BtRequestMessageValidator.h: Removed
  5967. * src/BtSuggestPieceMessage.cc
  5968. * src/BtSuggestPieceMessage.h
  5969. * src/BtSuggestPieceMessageValidator.h: Removed
  5970. * src/BtUnchokeMessage.cc
  5971. * src/BtUnchokeMessage.h
  5972. * src/DefaultBtMessageFactory.cc
  5973. * src/IndexBtMessage.cc
  5974. * src/IndexBtMessage.h
  5975. * src/IndexBtMessageValidator.h
  5976. * src/Makefile.am
  5977. * src/PeerMessageUtil.cc
  5978. * src/PeerMessageUtil.h
  5979. * src/RangeBtMessage.cc
  5980. * src/RangeBtMessage.h
  5981. * src/RangeBtMessageValidator.h
  5982. * src/SimpleBtMessage.cc
  5983. * src/SimpleBtMessage.h
  5984. * src/ZeroBtMessage.cc
  5985. * src/ZeroBtMessage.h
  5986. * test/BtRequestMessageTest.cc
  5987. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5988. Reverted usage_text.h to r1093 to avoid to lose translated
  5989. messages.
  5990. * src/usage_text.h
  5991. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5992. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  5993. declared as non-const previously is now const and defined in class
  5994. definition.
  5995. * src/AbstractBtMessage.cc
  5996. * src/AbstractBtMessage.h
  5997. * src/BtAllowedFastMessage.cc
  5998. * src/BtAllowedFastMessage.h
  5999. * src/BtBitfieldMessage.h
  6000. * src/BtCancelMessage.cc
  6001. * src/BtCancelMessage.h
  6002. * src/BtChokeMessage.cc
  6003. * src/BtChokeMessage.h
  6004. * src/BtExtendedMessage.cc
  6005. * src/BtExtendedMessage.h
  6006. * src/BtHandshakeMessage.cc
  6007. * src/BtHandshakeMessage.h
  6008. * src/BtHaveAllMessage.cc
  6009. * src/BtHaveAllMessage.h
  6010. * src/BtHaveMessage.cc
  6011. * src/BtHaveMessage.h
  6012. * src/BtHaveNoneMessage.cc
  6013. * src/BtHaveNoneMessage.h
  6014. * src/BtInterestedMessage.cc
  6015. * src/BtInterestedMessage.h
  6016. * src/BtKeepAliveMessage.cc
  6017. * src/BtKeepAliveMessage.h
  6018. * src/BtMessage.h
  6019. * src/BtNotInterestedMessage.cc
  6020. * src/BtNotInterestedMessage.h
  6021. * src/BtPieceMessage.h
  6022. * src/BtPortMessage.cc
  6023. * src/BtPortMessage.h
  6024. * src/BtRejectMessage.cc
  6025. * src/BtRejectMessage.h
  6026. * src/BtRequestMessage.cc
  6027. * src/BtRequestMessage.h
  6028. * src/BtSuggestPieceMessage.cc
  6029. * src/BtSuggestPieceMessage.h
  6030. * src/BtUnchokeMessage.cc
  6031. * src/BtUnchokeMessage.h
  6032. * src/SimpleBtMessage.cc
  6033. * src/SimpleBtMessage.h
  6034. * test/MockBtMessage.h
  6035. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6036. Use FileEntry::exists()
  6037. * src/MultiDiskAdaptor.cc
  6038. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6039. Added exists()
  6040. * src/FileEntry.cc
  6041. * src/FileEntry.h
  6042. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6043. Added missing prefix dir.
  6044. * src/download_helper.cc
  6045. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6046. Removed --direct-file-mapping option and CopyDiskAdaptor.
  6047. * src/CopyDiskAdaptor.cc: Removed
  6048. * src/CopyDiskAdaptor.h: Removed
  6049. * src/DefaultPieceStorage.cc
  6050. * src/Makefile.am
  6051. * src/OptionHandlerFactory.cc
  6052. * src/prefs.cc
  6053. * src/prefs.h
  6054. * src/usage_text.h
  6055. * test/CopyDiskAdaptorTest.cc: Removed
  6056. * test/Makefile.am
  6057. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6058. Rewritten isSameFileBeingDownloaded()
  6059. * src/RequestGroupMan.cc
  6060. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6061. Removed getName() from DownloadContext. getName() is declared in
  6062. BtContext.
  6063. * src/BtContext.h
  6064. * src/DownloadContext.h
  6065. * src/SingleFileDownloadContext.cc
  6066. * src/SingleFileDownloadContext.h
  6067. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  6068. in AbstractSingleDiskAdaptor.
  6069. * src/AbstractSingleDiskAdaptor.h
  6070. * src/DiskAdaptor.h
  6071. * src/MultiDiskAdaptor.h
  6072. * src/RequestGroup.cc
  6073. Removed setTopDir() and getTopDir() and getTopDirPath() from
  6074. MultiDiskAdaptor.
  6075. * src/DefaultPieceStorage.cc
  6076. * src/MultiDiskAdaptor.cc
  6077. * src/MultiDiskAdaptor.h
  6078. * test/MultiDiskAdaptorTest.cc
  6079. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6080. FileEntry::getPath() contains store(top level) directory to
  6081. simplify path handling operation. In the previous implementation,
  6082. store directory is concatenated to FileEntry::getPath() in
  6083. DownloadContext.
  6084. * src/BtDependency.cc
  6085. * src/BtPostDownloadHandler.cc
  6086. * src/CopyDiskAdaptor.cc
  6087. * src/DefaultBtContext.cc
  6088. * src/DirectDiskAdaptor.cc
  6089. * src/FileEntry.cc
  6090. * src/FileEntry.h
  6091. * src/FtpNegotiationCommand.cc
  6092. * src/HttpResponse.cc
  6093. * src/HttpResponseCommand.cc
  6094. * src/Metalink2RequestGroup.cc
  6095. * src/MultiDiskAdaptor.cc
  6096. * src/MultiDiskAdaptor.h
  6097. * src/MultiFileAllocationIterator.cc
  6098. * src/RequestGroup.cc
  6099. * src/SingleFileDownloadContext.cc
  6100. * src/SingleFileDownloadContext.h
  6101. * src/download_helper.cc
  6102. * test/BtDependencyTest.cc
  6103. * test/CopyDiskAdaptorTest.cc
  6104. * test/DefaultBtContextTest.cc
  6105. * test/DefaultBtProgressInfoFileTest.cc
  6106. * test/DirectDiskAdaptorTest.cc
  6107. * test/DownloadHelperTest.cc
  6108. * test/FileEntryTest.cc
  6109. * test/MultiDiskAdaptorTest.cc
  6110. * test/MultiFileAllocationIteratorTest.cc
  6111. * test/RequestGroupTest.cc
  6112. * test/SingleFileDownloadContextTest.cc
  6113. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6114. Fixed compiler warning
  6115. * src/download_helper.cc
  6116. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6117. Throw exception if same infohash torrent is now downloading.
  6118. * src/RequestGroup.cc
  6119. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6120. Added --dry-run option. In this mode, aria2 just checks whether
  6121. the remote file is available and doesn't download data. This
  6122. option has effect on HTTP/FTP downloads and BitTorrent downloads
  6123. are canceled in this mode.
  6124. * src/FtpNegotiationCommand.cc
  6125. * src/HttpResponseCommand.cc
  6126. * src/HttpResponseCommand.h
  6127. * src/OptionHandlerFactory.cc
  6128. * src/RequestGroup.cc
  6129. * src/RequestGroupMan.cc
  6130. * src/prefs.cc
  6131. * src/prefs.h
  6132. * src/usage_text.h
  6133. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6134. Fixed compiler waring
  6135. * test/UriListParserTest.cc
  6136. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6137. Parse options in -i list using OptionParser.
  6138. * src/UriListParser.cc
  6139. * src/UriListParser.h
  6140. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6141. Don't reset URI in retry to avoid additional round trips because
  6142. of redirects.
  6143. * src/AbstractCommand.cc
  6144. * src/OptionHandlerFactory.cc
  6145. * src/prefs.cc
  6146. * src/prefs.h
  6147. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6148. Declared hide() in OptionHandler.
  6149. * src/NameMatchOptionHandler.h
  6150. * src/OptionHandler.h
  6151. * src/OptionHandlerImpl.h
  6152. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6153. Updated doc
  6154. * src/Peer.h
  6155. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6156. Added log message in setStatusInternal()
  6157. * src/ServerStat.cc
  6158. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6159. Call ServerStat::setError() in AbstractCommand::onAbort() to
  6160. effectively exclude failed server.
  6161. * src/AbstractCommand.cc
  6162. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6163. Added --index-out option to specify each file path for torrent.
  6164. Here index shown in --show-files option is used to specify which
  6165. file path should be altered. For example, to change the file path
  6166. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  6167. option multiple times: --index-out=1=aria2.tar.bz2
  6168. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  6169. available. This option can be specified in -i list.
  6170. * src/DefaultBtContext.cc
  6171. * src/DefaultBtContext.h
  6172. * src/MultiDiskAdaptor.cc
  6173. * src/MultiDiskAdaptor.h
  6174. * src/MultiFileAllocationIterator.cc
  6175. * src/OptionHandlerFactory.cc
  6176. * src/OptionHandlerImpl.h
  6177. * src/Util.cc
  6178. * src/Util.h
  6179. * src/download_helper.cc
  6180. * src/prefs.cc
  6181. * src/prefs.h
  6182. * src/usage_text.h
  6183. * test/DefaultBtContextTest.cc
  6184. * test/MultiDiskAdaptorTest.cc
  6185. * test/MultiFileAllocationIteratorTest.cc
  6186. * test/UtilTest.cc
  6187. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6188. Use Util::pathJoin()
  6189. * src/MetalinkParserController.cc
  6190. * test/test.xml
  6191. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6192. Use Util::pathJoin()
  6193. * src/DefaultBtContext.cc
  6194. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6195. Added Util::pathJoin()
  6196. * src/Util.h
  6197. * test/UtilTest.cc
  6198. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6199. Applied basename function to remove directory element in
  6200. content-disposition value.
  6201. Return empty string if content-disposition value is ".." or ".".
  6202. * src/Util.cc
  6203. * test/UtilTest.cc
  6204. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6205. Added --max-overall-download-limit in man page.
  6206. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  6207. * doc/aria2c.1.txt
  6208. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6209. Added --max-overall-download-limit option. Now --max-upload-limit
  6210. option is not ignored when --max-overall-upload-limit option has
  6211. non-zero value. aria2 checks download(upload) speed in the order:
  6212. first checks overall speed limit and if it is not exceeded, then
  6213. checks speed limit per download. Thus you can specify both
  6214. value. For example, set --max-overall-download-limit=1M and
  6215. --max-download-limit=500K to prevent from one download from eating
  6216. all overall speed limit.
  6217. * src/DefaultBtInteractive.cc
  6218. * src/DefaultBtInteractive.h
  6219. * src/DefaultBtMessageDispatcher.cc
  6220. * src/DefaultBtMessageDispatcher.h
  6221. * src/DownloadCommand.cc
  6222. * src/DownloadCommand.h
  6223. * src/FtpNegotiationCommand.cc
  6224. * src/HttpResponseCommand.cc
  6225. * src/OptionHandlerFactory.cc
  6226. * src/PeerInteractionCommand.cc
  6227. * src/RequestGroup.cc
  6228. * src/RequestGroup.h
  6229. * src/RequestGroupMan.cc
  6230. * src/RequestGroupMan.h
  6231. * src/prefs.cc
  6232. * src/prefs.h
  6233. * src/usage_text.h
  6234. * test/DefaultBtMessageDispatcherTest.cc
  6235. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6236. Documented select-file option in Input File section.
  6237. Documented --http-auth-challenge option.
  6238. * doc/aria2c.1.txt
  6239. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6240. Now select-file can be specified in the uri list(-i list).
  6241. * src/BtContext.cc
  6242. * src/BtContext.h
  6243. * src/RequestGroup.cc
  6244. * src/Sequence.h
  6245. * src/download_helper.cc
  6246. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6247. Made the upper value of --max-concurrent-downloads options unlimited.
  6248. * src/OptionHandlerFactory.cc
  6249. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6250. Fixed the bug that disk writer is not created even if it shares
  6251. same piece with the preceding file if the length of previous file
  6252. is 0.
  6253. * src/MultiDiskAdaptor.cc
  6254. * test/MultiDiskAdaptorTest.cc
  6255. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6256. In BitTorrent, Open files in read-only mode for hash check. After
  6257. that, re-open file in read/write mode only when the download is
  6258. not finished.
  6259. * src/AbstractDiskWriter.cc
  6260. * src/AbstractDiskWriter.h
  6261. * src/AbstractSingleDiskAdaptor.cc
  6262. * src/AbstractSingleDiskAdaptor.h
  6263. * src/BtCheckIntegrityEntry.cc
  6264. * src/DiskAdaptor.h
  6265. * src/DiskWriter.h
  6266. * src/MultiDiskAdaptor.cc
  6267. * src/MultiDiskAdaptor.h
  6268. * src/RequestGroup.cc
  6269. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6270. Added --http-auth-challenge option. If it is set to true(by
  6271. default), aria2 sends HTTP authorization header only when it is
  6272. requested by the server. If false is set, then authorization
  6273. header is always sent to the server. This is useful for servers
  6274. that don't respond 401 code when authentication is required.
  6275. There is an exception: if username and password are embedded in
  6276. URI, authorization header is always sent to the server regardless
  6277. of this option.
  6278. * src/AuthConfigFactory.cc
  6279. * src/HttpSkipResponseCommand.cc
  6280. * src/OptionHandlerFactory.cc
  6281. * src/prefs.cc
  6282. * src/prefs.h
  6283. * src/usage_text.h
  6284. * test/AuthConfigFactoryTest.cc
  6285. * test/HttpRequestTest.cc
  6286. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6287. * Release 1.2.0
  6288. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6289. Updated Spanish, Ukrainian, Russian and Japanese translations.
  6290. Thanks to all translators.
  6291. * po/es.po
  6292. * po/ja.po
  6293. * po/ru.po
  6294. * po/uk.po
  6295. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6296. Call deleteSocketForReadCheck() before socket is closed.
  6297. * src/HttpListenCommand.cc
  6298. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6299. Defined virtual destructor for BObject.
  6300. * src/bencode.h
  6301. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6302. Rewritten BDE to make it efficient.
  6303. * src/bencode.cc
  6304. * src/bencode.h
  6305. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6306. Removed function throw list.
  6307. * src/bencode.cc
  6308. * src/bencode.h
  6309. * test/BencodeTest.cc
  6310. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6311. Enclosed all URLs in double quotes in command-line examples.
  6312. * doc/aria2c.1.txt
  6313. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6314. Updated reference/see also section.
  6315. * README
  6316. * doc/aria2c.1.txt
  6317. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6318. Reorganized man page based on man man-pages.
  6319. * doc/aria2c.1.txt
  6320. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6321. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  6322. because same documents are available in man page. Added
  6323. References section.
  6324. * README
  6325. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6326. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  6327. PERFORMANCE PROFILE section.
  6328. * doc/aria2c.1.txt
  6329. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6330. Rewritten the section for configuration file.
  6331. * README
  6332. * doc/aria2c.1.txt
  6333. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6334. Fixed the segmentation fault during execution of choking algorithm
  6335. in leecher state because of broken compare operator
  6336. implementation.
  6337. * src/BtLeecherStateChoke.cc
  6338. * src/BtLeecherStateChoke.h
  6339. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6340. Open file in binary mode.
  6341. * src/CookieStorage.cc
  6342. * src/DHTSetup.cc
  6343. * src/DHTUtil.cc
  6344. * src/Netrc.cc
  6345. * src/NsCookieParser.cc
  6346. * src/ProtocolDetector.cc
  6347. * src/RequestGroupMan.cc
  6348. * src/Signature.cc
  6349. * src/bencode.cc
  6350. * src/download_helper.cc
  6351. * src/option_processing.cc
  6352. * test/CookieParserTest.cc
  6353. * test/DefaultBtProgressInfoFileTest.cc
  6354. * test/FileTest.cc
  6355. * test/GZipDecoderTest.cc
  6356. * test/RequestGroupManTest.cc
  6357. * test/SignatureTest.cc
  6358. * test/SingleFileAllocationIteratorTest.cc
  6359. * test/UriListParserTest.cc
  6360. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6361. Removed operator[] because it is ambiguous with built-in []
  6362. operator.
  6363. * src/array_fun.h
  6364. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6365. Fixed compile error
  6366. * src/OptionParser.cc
  6367. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6368. Added missing call to arrayWrapperConst
  6369. * test/array_funTest.cc
  6370. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6371. Use array_wrapper instead of array_ptr.
  6372. * src/DHTRoutingTableDeserializer.cc
  6373. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6374. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  6375. * src/array_fun.h
  6376. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6377. Added array_wrapper template.
  6378. * src/array_fun.h
  6379. * test/array_funTest.cc
  6380. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6381. Use operator T* of array_ptr.
  6382. * src/OptionParser.cc
  6383. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6384. Use localhost instead of 127.0.0.1
  6385. * test/FtpConnectionTest.cc
  6386. * test/MSEHandshakeTest.cc
  6387. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6388. Added operator T*
  6389. * src/array_fun.h
  6390. * test/array_funTest.cc
  6391. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6392. Use dynamically allocated char array to detect memory access
  6393. violation.
  6394. * src/DHTRoutingTableDeserializer.cc
  6395. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6396. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  6397. defined.
  6398. * src/PeerMessageUtil.cc
  6399. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6400. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  6401. * configure.ac
  6402. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6403. Added a check to see struct sockaddr_in has sin_len member.
  6404. * configure.ac
  6405. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6406. Fixed buffer overrun.
  6407. * src/DHTRoutingTableDeserializer.cc
  6408. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6409. Added LL for long long int constant.
  6410. * test/FtpConnectionTest.cc
  6411. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6412. Casted to unsigned int to suppress compiler warning on netbsd.
  6413. * src/BtRuntime.h
  6414. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6415. Assign the value of tv.tv_sec to time_t timesec instead of giving
  6416. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  6417. type time_t.
  6418. * src/SimpleLogger.cc
  6419. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6420. Added test for FtpConnection::receiveSizeResponse().
  6421. * test/FtpConnectionTest.cc
  6422. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6423. Fix epoll error on the old kernel 2.6.8 or ealier.
  6424. * src/EpollEventPoll.cc
  6425. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6426. Use Util::parseLLInt instead of sscanf for portability. The
  6427. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  6428. * src/FtpConnection.cc
  6429. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6430. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  6431. block. It should not filter anything.
  6432. * src/BitfieldMan.cc
  6433. * src/ConsoleStatCalc.cc
  6434. * test/BitfieldManTest.cc
  6435. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6436. Fixed the bug that the boolean options that don't take arguments
  6437. don't work.
  6438. * src/OptionHandlerImpl.h
  6439. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6440. Fixed broken selected file BitTorrent download.
  6441. * src/MultiDiskAdaptor.cc
  6442. * test/MultiDiskAdaptorTest.cc
  6443. * test/MultiFileAllocationIteratorTest.cc
  6444. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6445. Fixed #define guard for EpollEventPoll
  6446. * src/EpollEventPoll.h
  6447. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6448. Wait 2 seconds. 1 second is sometimes not enough.
  6449. * test/TimeSeedCriteriaTest.cc
  6450. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6451. Use localhost instead of 127.0.0.1.
  6452. * test/DHTConnectionImplTest.cc
  6453. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6454. Suppressed compiler warning.
  6455. * src/AdaptiveURISelector.cc
  6456. * src/DefaultPieceStorage.cc
  6457. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6458. Defined virtual destructor.
  6459. * src/MetalinkParserState.h
  6460. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6461. Give NULL for second argument of getaddrinfo instead of "0".
  6462. * src/NameResolver.cc
  6463. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6464. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  6465. included strptime doesn't parse data for this format.
  6466. * src/FtpConnection.cc
  6467. * test/FtpConnectionTest.cc
  6468. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6469. Removed tests giving -1 for unsigned argument.
  6470. * test/SingleFileDownloadContextTest.cc
  6471. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6472. Don't use sha256 in tests because it might not be supported by the
  6473. SSL library.
  6474. * test/MetalinkProcessorTest.cc
  6475. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6476. Removed tests giving -1 for unsigned argument.
  6477. * test/AlphaNumberDecoratorTest
  6478. * test/BitfieldManTest.cc
  6479. * test/DefaultBtContextTest.cc
  6480. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6481. Fixed compile error without libcares when epoll is available.
  6482. * src/EpollEventPoll.cc
  6483. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6484. Included fstream instead of iostream.
  6485. * test/SignatureTest.cc
  6486. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6487. Removed #include <algorithm>
  6488. * test/RequestGroupTest.cc
  6489. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6490. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  6491. using RequestGroup::extractURIResult().
  6492. * src/AdaptiveURISelector.cc
  6493. * src/RequestGroup.cc
  6494. * src/RequestGroup.h
  6495. * test/RequestGroupTest.cc
  6496. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6497. Added tests for array_ptr.
  6498. * test/array_funTest.cc
  6499. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6500. Don't send ip parameter to a tracker if ip parameter is empty
  6501. string.
  6502. * src/DefaultBtAnnounce.cc
  6503. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6504. Adjusted line feed.
  6505. * src/version_usage.cc
  6506. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6507. Print tags, possible values when OptionHandlerException is caught.
  6508. * src/option_processing.cc
  6509. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6510. Changed the message for FatalException.
  6511. * src/OptionParser.cc
  6512. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6513. Documented --bt-external-ip option in man page. Updated man pages
  6514. for --proxy-method option.
  6515. * doc/aria2c.1.txt
  6516. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6517. Use GET method for FTP via HTTP proxy.
  6518. * src/FtpInitiateConnectionCommand.cc
  6519. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6520. Changed the default value of --proxy-method option from 'tunnel'
  6521. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  6522. option.
  6523. * src/AbstractCommand.cc
  6524. * src/AbstractCommand.h
  6525. * src/FtpInitiateConnectionCommand.cc
  6526. * src/HttpDownloadCommand.cc
  6527. * src/HttpInitiateConnectionCommand.cc
  6528. * src/HttpInitiateConnectionCommand.h
  6529. * src/OptionHandlerFactory.cc
  6530. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6531. Initialized _logger
  6532. * src/SelectEventPoll.cc
  6533. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6534. Defined a copy constructor for the same type.
  6535. * src/SharedHandle.h
  6536. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6537. Added OptionParser::parseArg() which internally uses getopt_long
  6538. to parse command-line options. All command-line options are now
  6539. configured by OptionHandler. No manual editing of struct option*
  6540. is required any more.
  6541. * src/NameMatchOptionHandler.h
  6542. * src/OptionHandler.h
  6543. * src/OptionHandlerFactory.cc
  6544. * src/OptionHandlerImpl.h
  6545. * src/OptionParser.cc
  6546. * src/OptionParser.h
  6547. * src/array_fun.h
  6548. * src/main.cc
  6549. * src/option_processing.cc
  6550. * test/OptionHandlerTest.cc
  6551. * test/OptionParserTest.cc
  6552. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6553. Fixed configure error with --disable-epoll
  6554. * configure.ac
  6555. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6556. Fixed compile error when HAVE_EPOLL is not defined.
  6557. Fixed linker error on bigendian systems.
  6558. * src/SocketCore.cc
  6559. * src/SocketCore.h
  6560. * test/DefaultBtProgressInfoFileTest.cc
  6561. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6562. Added --bt-external-ip option. You can specify the external IP
  6563. address to report to a BitTorrent tracker. Although this function
  6564. is named 'external', it can accept any kind of IP addresses.
  6565. * src/DefaultBtAnnounce.cc
  6566. * src/OptionHandlerFactory.cc
  6567. * src/option_processing.cc
  6568. * src/prefs.cc
  6569. * src/prefs.h
  6570. * src/usage_text.h
  6571. * test/DefaultBtAnnounceTest.cc
  6572. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6573. Extracted the algorithm to find the longest incremental sequence
  6574. as max_sequence template.
  6575. * src/LongestSequencePieceSelector.cc
  6576. * src/a2algo.h
  6577. * test/Makefile.am
  6578. * test/a2algoTest.cc
  6579. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6580. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  6581. * src/usage_text.h
  6582. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6583. Updated doc for --uri-selector, --http-server-listen-port and
  6584. --enable-http-server option. Documented --event-poll option.
  6585. * doc/aria2c.1.txt
  6586. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6587. Updated doc for --enable-http-server.
  6588. * src/usage_text.h
  6589. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6590. Documented --http-server-listen-port and --enable-http-server in
  6591. man page.
  6592. * doc/aria2c.1.txt
  6593. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6594. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  6595. translations. Thanks to all translators.
  6596. * po/es.po
  6597. * po/id.po
  6598. * po/it.po
  6599. * po/ru.po
  6600. * po/uk.po
  6601. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6602. Bump up version number to 1.2.0
  6603. * configure.ac
  6604. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6605. BtContext::getAnnounceTiers() now returns const reference.
  6606. * src/BtContext.h
  6607. * src/DefaultBtContext.cc
  6608. * src/DefaultBtContext.h
  6609. * test/MockBtContext.h
  6610. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6611. Change the number of retries for tracker request based on the
  6612. number of available tracker in a torrent file.
  6613. * src/TrackerWatcherCommand.cc
  6614. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6615. Added _maxTries property to RequestGroup and assign the option
  6616. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  6617. RequestGroup::getMaxTries() instead of
  6618. Option::getAsInt(PREF_MAX_TRIES).
  6619. * src/AbstractCommand.cc
  6620. * src/RequestGroup.cc
  6621. * src/RequestGroup.h
  6622. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6623. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  6624. Mandriva. I modified the patch: make RequestGroup have the
  6625. timeout value and AdaptiveURISelector directly modifies that
  6626. value.
  6627. * src/AbstractCommand.cc
  6628. * src/AdaptiveURISelector.cc
  6629. * src/AdaptiveURISelector.h
  6630. * src/FtpNegotiationCommand.cc
  6631. * src/RequestGroup.cc
  6632. * src/RequestGroup.h
  6633. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6634. Fixed compiler warning
  6635. * test/IteratableChecksumValidatorTest.cc
  6636. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6637. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  6638. integrated downloads. This PieceSelector subclass finds the
  6639. longest continuous sequence in the available missing pieces and
  6640. selects the last index of such sequence. This makes HTTP/FTP
  6641. connections less interrupted by the pieces obtained by BitTorrent
  6642. peers.
  6643. * src/DefaultPieceStorage.cc
  6644. * src/DefaultPieceStorage.h
  6645. * src/LongestSequencePieceSelector.cc
  6646. * src/LongestSequencePieceSelector.h
  6647. * src/Makefile.am
  6648. * src/PieceSelector.h
  6649. * src/RarestPieceSelector.h
  6650. * src/RequestGroup.cc
  6651. * test/BtDependencyTest.cc
  6652. * test/DefaultPieceStorageTest.cc
  6653. * test/IteratableChecksumValidatorTest.cc
  6654. * test/LongestSequencePieceSelectorTest.cc
  6655. * test/Makefile.am
  6656. * test/SegmentManTest.cc
  6657. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6658. Fixed the bug that the average speed is wrong in
  6659. http/ftp/BitTorrent integrated download. Only the download bytes
  6660. in BitTorrent were considered.
  6661. * src/RequestGroup.cc
  6662. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6663. Choose port for BitTorrent/DHT randomly from the specified range.
  6664. * src/DHTConnectionImpl.cc
  6665. * src/PeerListenCommand.cc
  6666. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6667. Send HTTP Authorization header only if it is requested by the
  6668. server(response 401). There are some exceptions. The authorization
  6669. header for proxy is always sent if it is available without request
  6670. by the server. If username/password is specified in the URI, it
  6671. is immediately sent to the server without request by the server.
  6672. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  6673. SharedHandle<AuthConfig>().
  6674. NetrcAuthResolver::resolveAuthConfig() returns
  6675. SharedHandle<AuthConfig>() if no AuthConfig is available.
  6676. * src/AbstractAuthResolver.cc
  6677. * src/AbstractProxyRequestCommand.cc
  6678. * src/AuthConfigFactory.cc
  6679. * src/AuthConfigFactory.h
  6680. * src/HttpConnection.cc
  6681. * src/HttpRequest.cc
  6682. * src/HttpRequest.h
  6683. * src/HttpResponse.cc
  6684. * src/HttpResponseCommand.cc
  6685. * src/HttpSkipResponseCommand.cc
  6686. * test/AuthConfigFactoryTest.cc
  6687. * test/HttpRequestTest.cc
  6688. * test/HttpResponseTest.cc
  6689. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6690. Remove leading "--" from help keyword and a substring after "="
  6691. from help keyword, so that one can query options by '-h--max-' or
  6692. '-hmax-peers=10'.
  6693. * src/option_processing.cc
  6694. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6695. Rewritten PStringVisitor and its implementation.
  6696. * src/PStringBuildVisitor.cc
  6697. * src/PStringBuildVisitor.h
  6698. * src/PStringDatum.h
  6699. * src/PStringNumLoop.h
  6700. * src/PStringSegment.cc
  6701. * src/PStringSegment.h
  6702. * src/PStringSelect.h
  6703. * src/PStringVisitor.h
  6704. * src/download_helper.cc
  6705. * test/PStringBuildVisitorTest.cc
  6706. * test/ParameterizedStringParserTest.cc
  6707. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6708. Persist connection between the built-in HTTP server and a client
  6709. if a client supports keep-alive. Fixed the bug that aria2 exits
  6710. when the HTTP server receives EOF from a client.
  6711. * src/HttpServer.cc
  6712. * src/HttpServer.h
  6713. * src/HttpServerCommand.cc
  6714. * src/HttpServerCommand.h
  6715. * src/HttpServerResponseCommand.cc
  6716. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6717. Added experimental built-in HTTP server. Currently, when a client
  6718. accesses to the server, it responds with the current download
  6719. progress. By default, it is disabled. To enable the server, give
  6720. --enable-http-server option. To change the default port number
  6721. for the server to listen to, use --http-server-listen-port option.
  6722. The response HTML is very simple and refreshes it self each 1
  6723. second. Because of this refresh, you see flicker in normal web
  6724. browser such as Firefox. I recommend to use console-based browser
  6725. such as elinks, w3m. To connect to the server, run 'elinks
  6726. http://localhost:6800/' while running aria2. Please replace port
  6727. number '6800'(which is default) with your preference.
  6728. * src/DownloadEngineFactory.cc
  6729. * src/HttpHeader.cc
  6730. * src/HttpHeader.h
  6731. * src/HttpHeaderProcessor.cc
  6732. * src/HttpHeaderProcessor.h
  6733. * src/HttpListenCommand.cc
  6734. * src/HttpListenCommand.h
  6735. * src/HttpServer.cc
  6736. * src/HttpServer.h
  6737. * src/HttpServerCommand.cc
  6738. * src/HttpServerCommand.h
  6739. * src/HttpServerResponseCommand.cc
  6740. * src/HttpServerResponseCommand.h
  6741. * src/Makefile.am
  6742. * src/OptionHandlerFactory.cc
  6743. * src/Util.cc
  6744. * src/Util.h
  6745. * src/help_tags.h
  6746. * src/option_processing.cc
  6747. * src/prefs.cc
  6748. * src/prefs.h
  6749. * src/usage_text.h
  6750. * test/HttpHeaderProcessorTest.cc
  6751. * test/UtilTest.cc
  6752. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6753. Removed.
  6754. * src/CheckIntegrityMan.cc
  6755. * src/FileAllocationMan.cc
  6756. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6757. Made (piece) hash check sequential for each RequestGroup because
  6758. simultaneous hash check is slower than sequential execution.
  6759. * src/CheckIntegrityCommand.cc
  6760. * src/CheckIntegrityDispatcherCommand.cc
  6761. * src/CheckIntegrityDispatcherCommand.h
  6762. * src/CheckIntegrityMan.h
  6763. * src/ConsoleStatCalc.cc
  6764. * src/DownloadCommand.cc
  6765. * src/DownloadEngine.cc
  6766. * src/DownloadEngine.h
  6767. * src/DownloadEngineFactory.cc
  6768. * src/Makefile.am
  6769. * src/Makefile.in
  6770. * src/RequestGroup.cc
  6771. * src/StatCalc.h
  6772. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6773. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  6774. SequentialDispatcherCommand.
  6775. * src/FileAllocationDispatcherCommand.cc
  6776. * src/SequentialDispatcherCommand.h
  6777. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6778. Rewritten FileAllocationDispatcherCommand using brand new
  6779. SequentialDispatcherCommand.
  6780. * src/DownloadEngineFactory.cc
  6781. * src/FileAllocationCommand.cc
  6782. * src/FileAllocationDispatcherCommand.cc
  6783. * src/FileAllocationDispatcherCommand.h
  6784. * src/Makefile.am
  6785. * src/SequentialDispatcherCommand.h
  6786. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6787. Replaced FileAllocationMan with
  6788. SequentialPicker<FileAllocationEntry>.
  6789. * src/BtCheckIntegrityEntry.cc
  6790. * src/ConsoleStatCalc.cc
  6791. * src/DownloadEngine.cc
  6792. * src/DownloadEngine.h
  6793. * src/DownloadEngineFactory.cc
  6794. * src/FileAllocationCommand.cc
  6795. * src/FileAllocationDispatcherCommand.cc
  6796. * src/FileAllocationMan.h
  6797. * src/Makefile.am
  6798. * src/SequentialPicker.h
  6799. * src/StatCalc.h
  6800. * src/StreamCheckIntegrityEntry.cc
  6801. * test/Makefile.am
  6802. * test/SequentialPickerTest.cc
  6803. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6804. Added doc for adaptive URI selector.
  6805. * doc/aria2c.1.txt
  6806. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6807. Added doc for adaptive URI selector.
  6808. * src/usage_text.h
  6809. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6810. Added doc for --bt-max-peers option.
  6811. * doc/aria2c.1.txt
  6812. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6813. Added doc for --bt-hash-check-seed option.
  6814. * doc/aria2c.1.txt
  6815. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6816. Documented exit codes.
  6817. * doc/aria2c.1.txt
  6818. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6819. Added --bt-max-peers option to specify the maximum number of peers
  6820. per torrent. 0 means unlimited number of peers.
  6821. * src/ActivePeerConnectionCommand.cc
  6822. * src/BtRuntime.h
  6823. * src/DefaultPeerStorage.cc
  6824. * src/DefaultPeerStorage.h
  6825. * src/OptionHandlerFactory.cc
  6826. * src/RequestGroup.cc
  6827. * src/option_processing.cc
  6828. * src/prefs.cc
  6829. * src/prefs.h
  6830. * src/usage_text.h
  6831. * test/DefaultPeerStorageTest.cc
  6832. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6833. Added --bt-hash-check-seed option. If true is given to this
  6834. option, after hash check using --check-integrity option and file
  6835. is complete, continue to seed file. If you want to check file and
  6836. download it only when it is damaged or incomplete, set this option
  6837. to false. This option has effect only on BitTorrent download.
  6838. The default value is true(This is the same behavior with the
  6839. previous release).
  6840. * src/BtCheckIntegrityEntry.cc
  6841. * src/OptionHandlerFactory.cc
  6842. * src/option_processing.cc
  6843. * src/prefs.cc
  6844. * src/prefs.h
  6845. * src/usage_text.h
  6846. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6847. Updated copyright year.
  6848. * src/version_usage.cc
  6849. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6850. Rewritten the usage text for --bt-request-peer-speed-limit option.
  6851. * doc/aria2c.1.txt
  6852. * src/usage_text.h
  6853. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6854. Made the max value of split option unlimited.
  6855. * doc/aria2c.1.txt
  6856. * src/OptionHandlerFactory.cc
  6857. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6858. Fixed compile warning/error.
  6859. * src/DownloadResult.h
  6860. * src/HttpDownloadCommand.cc
  6861. * src/ServerStat.cc
  6862. * test/RequestGroupTest.cc
  6863. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6864. Added --event-poll option to select the method for polling events.
  6865. The available methods are "select" and "epoll". "epoll" is
  6866. available on Linux only. The earlier release has the compile
  6867. option to choose from these methods.
  6868. * configure.ac
  6869. * src/RequestGroupMan.cc
  6870. * src/OptionHandlerFactory.cc
  6871. * src/EpollEventPoll.h
  6872. * src/StreamFileAllocationEntry.cc
  6873. * src/a2io.h
  6874. * src/SelectEventPoll.h
  6875. * src/option_processing.cc
  6876. * src/prefs.h
  6877. * src/EpollEventPoll.cc
  6878. * src/EventPoll.h
  6879. * src/SocketCore.h
  6880. * src/Makefile.am
  6881. * src/main.cc
  6882. * src/DownloadEngine.h
  6883. * src/SelectEventPoll.cc
  6884. * src/DownloadEngine.cc
  6885. * src/SocketCore.cc
  6886. * src/DownloadEngineFactory.cc
  6887. * src/Makefile.in
  6888. * src/prefs.cc
  6889. * src/usage_text.h
  6890. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6891. Included RecoverableException.h from main.cc
  6892. * src/main.cc
  6893. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6894. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  6895. now returns last error encountered in the HTTP/FTP downloads as a
  6896. exit status value. If all downloads finished successfully, aria2
  6897. returns 0. The error code is defined in src/DownloadResult.h.
  6898. The error occurred in the download currently in progress is not
  6899. reported as a last error. If no error has encountered but there
  6900. are in progress or waiting downloads, aria2 returns 7.
  6901. * src/AbstractCommand.cc
  6902. * src/DlAbortEx.h
  6903. * src/DlRetryEx.h
  6904. * src/DownloadCommand.cc
  6905. * src/DownloadFailureException.h
  6906. * src/DownloadResult.h
  6907. * src/FtpNegotiationCommand.cc
  6908. * src/HttpSkipResponseCommand.cc
  6909. * src/Makefile.am
  6910. * src/MultiUrlRequestInfo.cc
  6911. * src/MultiUrlRequestInfo.h
  6912. * src/RecoverableException.h
  6913. * src/RequestGroup.cc
  6914. * src/RequestGroup.h
  6915. * src/RequestGroupMan.cc
  6916. * src/RequestGroupMan.h
  6917. * src/URIResult.cc
  6918. * src/URIResult.h
  6919. * src/main.cc
  6920. * src/option_processing.cc
  6921. * test/RequestGroupTest.cc
  6922. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6923. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  6924. patch adds AdaptiveURISelector, which selects one of the bests
  6925. mirrors for first and reserved connections. For supplementary
  6926. ones, it returns mirrors which has not been tested yet, and if
  6927. each of them already tested, returns mirrors which has to be
  6928. tested again. Otherwise, it doesn't return anymore mirrors.
  6929. * src/AdaptiveURISelector.cc
  6930. * src/AdaptiveURISelector.h
  6931. * src/FtpNegotiationCommand.cc
  6932. * src/HttpResponseCommand.cc
  6933. * src/Makefile.am
  6934. * src/Makefile.in
  6935. * src/OptionHandlerFactory.cc
  6936. * src/RequestGroup.cc
  6937. * src/RequestGroup.h
  6938. * src/RequestGroupMan.cc
  6939. * src/ServerStat.cc
  6940. * src/ServerStat.h
  6941. * src/ServerStatMan.cc
  6942. * src/SpeedCalc.cc
  6943. * src/URISelector.h
  6944. * src/prefs.cc
  6945. * src/prefs.h
  6946. * test/RequestGroupManTest.cc
  6947. * test/ServerStatManTest.cc
  6948. * test/ServerStatTest.cc
  6949. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6950. Fixed unit test error.
  6951. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  6952. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6953. * Release 1.1.2
  6954. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6955. Updated Russian translation. Thanks to the translators.
  6956. * po/ru.po
  6957. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6958. Added the description of --use-head option to man page.
  6959. * doc/aria2c.1.txt
  6960. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6961. Bump up version number to 1.1.2
  6962. * configure.ac
  6963. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6964. Added --use-head option to toggle whether HEAD method should be
  6965. used in the first HTTP request. By default aria2 uses HEAD method
  6966. as the first request. When the server doesn't recognize HEAD, then
  6967. give aria2 --use-head=false to force aria2 to use GET method
  6968. instead.
  6969. * src/OptionHandlerFactory.cc
  6970. * src/RequestGroupMan.cc
  6971. * src/option_processing.cc
  6972. * src/prefs.cc
  6973. * src/prefs.h
  6974. * src/usage_text.h
  6975. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6976. Fixed the bug that BitTorrent download doesn't finish when REJECT
  6977. message is received before CHOKE message. The old implementation
  6978. doen't clear the use-bit of the piece when recieved REJECT
  6979. message.
  6980. * src/DefaultBtMessageDispatcher.cc
  6981. * test/DefaultBtMessageDispatcherTest.cc
  6982. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6983. * Release 1.1.1
  6984. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6985. Bump up version number to 1.1.1.
  6986. * configure.ac
  6987. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6988. Fixed the bug that --summary-interval=0 doesn't work. The summary
  6989. is printed repeatedly.
  6990. * src/ConsoleStatCalc.cc
  6991. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6992. * Release 1.1.0
  6993. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6994. Added ifdef clause for conditional compilation.
  6995. * src/main.cc
  6996. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6997. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  6998. translations. Thanks to all translators.
  6999. * po/ja.po
  7000. * po/ru.po
  7001. * po/uk.po
  7002. * po/zh_CN.po
  7003. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7004. Added the preceding ">>> " before the message "Printing the
  7005. contents of file..." to make the output more readable.
  7006. * src/main.cc
  7007. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7008. Added try-catch block in the loop in showFiles() to continue the
  7009. operation even if the exception occurred in one file.
  7010. * src/main.cc (showFiles)
  7011. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7012. Made messages in showFiles() translatable.
  7013. * po/aria2.pot
  7014. * src/main.cc
  7015. * src/message.h
  7016. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7017. Print the contents of Torrent/Metalink files are printed without
  7018. -T/-M options.
  7019. * src/main.cc
  7020. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7021. Escaped '--' with '\--'
  7022. * README
  7023. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7024. Updated "How to build" section in README. Mentioned about
  7025. --with-ca-bundle compile option.
  7026. * README
  7027. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7028. Bump up version number to 1.1.0.
  7029. * configure.ac
  7030. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7031. Added a note for --dht-listen-port option.
  7032. * doc/aria2c.1.txt
  7033. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7034. Update doc for --realtime-chunk-checksum option.
  7035. * doc/aria2c.1.txt
  7036. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7037. Update doc for --realtime-chunk-checksum option.
  7038. * src/usage_text.h
  7039. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7040. Updated French, Japanese, Russian and Ukrainian translations.
  7041. Thanks to all translators.
  7042. * po/fr.po
  7043. * po/ja.po
  7044. * po/ru.po
  7045. * po/uk.po
  7046. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7047. Renamed aria2c.pot to aria2.pot
  7048. * po/aria2.pot
  7049. * po/aria2c.pot: Removed.
  7050. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7051. Removed MetaEntry.h
  7052. * src/Makefile.am
  7053. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7054. Rename file by appending digits if a local file exists and its
  7055. file size is larger than that of remote file with --continue
  7056. option. The old implementation just throws exception in such case.
  7057. * src/RequestGroup.cc
  7058. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7059. Fixed the bug that download progress summary is not printed in the
  7060. interval specified by the option.
  7061. * src/ConsoleStatCalc.cc
  7062. * src/ConsoleStatCalc.h
  7063. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7064. Fixed compiler warning
  7065. * src/Cookie.cc
  7066. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7067. Fixed the cookie implementation based on RFC2965.
  7068. Now if a value in domain field is not started with dot, then
  7069. prepend dot. That means a cookie with domain=sf.net is sent to
  7070. wiki.sf.net.
  7071. * src/Cookie.cc
  7072. * test/CookieParserTest.cc
  7073. * test/CookieStorageTest.cc
  7074. * test/CookieTest.cc
  7075. * test/NsCookieParserTest.cc
  7076. * test/Sqlite3MozCookieParserTest.cc
  7077. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7078. Fixed the bug that causes corrupted downloads if HTTP pipelining
  7079. is enabled and the server doesn't support keep-alive.
  7080. * src/AbstractCommand.cc
  7081. * src/DownloadCommand.cc
  7082. * src/HttpDownloadCommand.cc
  7083. * src/HttpDownloadCommand.h
  7084. * src/HttpResponseCommand.cc
  7085. * src/Request.cc
  7086. * src/Request.h
  7087. * test/RequestTest.cc
  7088. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7089. Removed Dictionary/List/Data and its related classes.
  7090. * src/BencodeVisitor.cc: Removed.
  7091. * src/BencodeVisitor.h: Removed.
  7092. * src/Data.cc: Removed.
  7093. * src/Data.h: Removed.
  7094. * src/Dictionary.cc: Removed.
  7095. * src/Dictionary.h: Removed.
  7096. * src/List.cc: Removed.
  7097. * src/List.h: Removed.
  7098. * src/Makefile.am
  7099. * src/MetaEntry.h: Removed.
  7100. * src/MetaEntryVisitor.h: Removed.
  7101. * src/MetaFileUtil.cc: Removed.
  7102. * src/MetaFileUtil.h: Removed.
  7103. * test/BencodeVisitorTest.cc: Removed.
  7104. * test/DataTest.cc: Removed.
  7105. * test/DictionaryTest.cc: Removed.
  7106. * test/ListTest.cc: Removed.
  7107. * test/Makefile.am
  7108. * test/MetaFileUtilTest.cc: Removed.
  7109. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7110. Removed include of MetaEntry.h
  7111. * test/DHTMessageTrackerEntryTest.cc
  7112. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7113. Use BDE instead of Dictionary/List/Data.
  7114. * src/AnnounceList.cc
  7115. * src/AnnounceList.h
  7116. * test/AnnounceListTest.cc
  7117. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7118. Use BDE instead of Dictionary/List/Data.
  7119. * src/DHTAbstractMessage.cc
  7120. * src/DHTAbstractMessage.h
  7121. * src/DHTAnnouncePeerMessage.cc
  7122. * src/DHTAnnouncePeerMessage.h
  7123. * src/DHTAnnouncePeerReplyMessage.cc
  7124. * src/DHTAnnouncePeerReplyMessage.h
  7125. * src/DHTFindNodeMessage.cc
  7126. * src/DHTFindNodeMessage.h
  7127. * src/DHTFindNodeReplyMessage.cc
  7128. * src/DHTFindNodeReplyMessage.h
  7129. * src/DHTGetPeersMessage.cc
  7130. * src/DHTGetPeersMessage.h
  7131. * src/DHTGetPeersReplyMessage.cc
  7132. * src/DHTGetPeersReplyMessage.h
  7133. * src/DHTMessageFactory.h
  7134. * src/DHTMessageFactoryImpl.cc
  7135. * src/DHTMessageFactoryImpl.h
  7136. * src/DHTMessageReceiver.cc
  7137. * src/DHTMessageTracker.cc
  7138. * src/DHTMessageTracker.h
  7139. * src/DHTPingMessage.cc
  7140. * src/DHTPingMessage.h
  7141. * src/DHTPingReplyMessage.cc
  7142. * src/DHTPingReplyMessage.h
  7143. * src/DHTQueryMessage.cc
  7144. * src/DHTQueryMessage.h
  7145. * src/DHTResponseMessage.cc
  7146. * src/DHTResponseMessage.h
  7147. * test/DHTAnnouncePeerMessageTest.cc
  7148. * test/DHTAnnouncePeerReplyMessageTest.cc
  7149. * test/DHTFindNodeMessageTest.cc
  7150. * test/DHTFindNodeReplyMessageTest.cc
  7151. * test/DHTGetPeersMessageTest.cc
  7152. * test/DHTGetPeersReplyMessageTest.cc
  7153. * test/DHTMessageFactoryImplTest.cc
  7154. * test/DHTMessageTrackerTest.cc
  7155. * test/DHTPingMessageTest.cc
  7156. * test/DHTPingReplyMessageTest.cc
  7157. * test/MockDHTMessageFactory.h
  7158. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7159. Added tests the case where length < 0 is specified.
  7160. * test/BencodeTest.cc
  7161. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7162. Fixed memory leak in decoderawstring()
  7163. * src/bencode.cc
  7164. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7165. Added missing #ifdef guard. Added uc() function for String and
  7166. removeKey() for Dict.
  7167. * src/bencode.cc
  7168. * src/bencode.h
  7169. * test/BencodeTest.cc
  7170. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7171. Use BDE instead of Dictionary/List/Data.
  7172. * src/HandshakeExtensionMessage.cc
  7173. * src/HandshakeExtensionMessage.h
  7174. * test/HandshakeExtensionMessageTest.cc
  7175. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7176. Added --max-overall-upload-limit option. This option limits the
  7177. overall upload speed. Stated in help message that the existing
  7178. --max-upload-limit option limits the upload speed per each
  7179. torrent. Man page is also updated.
  7180. * doc/aria2c.1.txt
  7181. * src/DefaultBtMessageDispatcher.cc
  7182. * src/DefaultBtMessageDispatcher.h
  7183. * src/OptionHandlerFactory.cc
  7184. * src/PeerInteractionCommand.cc
  7185. * src/option_processing.cc
  7186. * src/prefs.cc
  7187. * src/prefs.h
  7188. * src/usage_text.h
  7189. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7190. Use BDE instead of Dictionary/List/Data classes.
  7191. * src/CompactPeerListProcessor.cc
  7192. * src/CompactPeerListProcessor.h
  7193. * src/DefaultBtAnnounce.cc
  7194. * src/DefaultBtContext.cc
  7195. * src/DefaultBtContext.h
  7196. * src/DefaultPeerListProcessor.cc
  7197. * src/DefaultPeerListProcessor.h
  7198. * src/DelegatingPeerListProcessor.cc
  7199. * src/DelegatingPeerListProcessor.h
  7200. * src/PeerListProcessor.h
  7201. * src/UTPexExtensionMessage.cc
  7202. * src/Util.h
  7203. * src/message.h
  7204. * test/DefaultBtContextTest.cc
  7205. * test/DefaultPeerListProcessorTest.cc
  7206. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7207. Added bencode helper functions and BDE class.
  7208. They will replace MetaFileUtil and Dictionary/List/Data classes.
  7209. * src/Makefile.am
  7210. * src/bencode.cc
  7211. * src/bencode.h
  7212. * test/BencodeTest.cc
  7213. * test/Makefile.am
  7214. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7215. Fixed the bug that bad URI is sent to the tracker when the announe
  7216. URI in torrent file includes query.
  7217. * src/DefaultBtAnnounce.cc
  7218. * test/DefaultBtAnnounceTest.cc
  7219. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7220. Added Option::blank().
  7221. Use !Option::blank(name) instead of Option::defined(name) for
  7222. the options that take filename.
  7223. * src/MultiUrlRequestInfo.cc
  7224. * src/Option.cc
  7225. * src/Option.h
  7226. * src/main.cc
  7227. * src/option_processing.cc
  7228. * test/OptionTest.cc
  7229. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7230. Documented the default value of --check-certificate option in man
  7231. page.
  7232. * doc/aria2c.1.txt
  7233. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7234. Enabled --check-certificate by default. Added compile
  7235. time(configure) option --with-ca-bundle to specify CA bundle.
  7236. Warn if --check-certificate=true and --ca-certificate is not
  7237. specified or loading CA certificate is failed.
  7238. * configure.ac
  7239. * src/MultiUrlRequestInfo.cc
  7240. * src/OptionHandlerFactory.cc
  7241. * src/message.h
  7242. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7243. Mentioned https tag in help option.
  7244. * doc/aria2c.1.txt
  7245. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7246. Added `https' tag to help option category. Added https tag to
  7247. --ca-certificate, --certificate, --check-certificate and
  7248. --private-key option.
  7249. * src/OptionHandlerFactory.cc
  7250. * src/help_tags.h
  7251. * src/option_processing.cc
  7252. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7253. Changed the package name from `aria2c' to `aria2' in order to fix
  7254. the packaging issue in Debian and Fedora. The name of the
  7255. executable is not changed.
  7256. * configure.ac
  7257. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7258. Fixed typos
  7259. * src/usage_text.h
  7260. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7261. Fixed typos and updated doc.
  7262. * README
  7263. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7264. Fixed typos
  7265. * doc/aria2c.1.txt
  7266. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7267. Fixed typos
  7268. * src/usage_text.h
  7269. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7270. Print a message when no files to download.
  7271. * src/download_helper.cc
  7272. * src/main.cc
  7273. * src/message.h
  7274. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7275. RFC3986 complied Percent-Encoding(urlencode).
  7276. Use uppercase hexadecimal digits for encoded text instead of lowercase
  7277. ones.
  7278. * src/Request.cc
  7279. * src/Util.cc
  7280. * src/Util.h
  7281. * test/BtHandshakeMessageTest.cc
  7282. * test/DefaultBtAnnounceTest.cc
  7283. * test/DefaultBtContextTest.cc
  7284. * test/RequestTest.cc
  7285. * test/UtilTest.cc
  7286. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7287. Fixed the bug that prevents aria2 from downloading 0-length files
  7288. via HTTP/FTP.
  7289. * src/DefaultBtContext.cc
  7290. * src/DefaultBtContext.h
  7291. * src/DownloadContext.h
  7292. * src/FtpNegotiationCommand.cc
  7293. * src/HttpResponseCommand.cc
  7294. * src/HttpResponseCommand.h
  7295. * src/RequestGroup.cc
  7296. * src/SingleFileDownloadContext.cc
  7297. * src/SingleFileDownloadContext.h
  7298. * test/BtPostDownloadHandlerTest.cc
  7299. * test/MetalinkPostDownloadHandlerTest.cc
  7300. * test/MockBtContext.h
  7301. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7302. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  7303. * src/option_processing.cc
  7304. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7305. Applied aria2-1.0.1-mingw.patch.
  7306. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  7307. mingw.
  7308. Collected 4th and 5th argument types for getsockopt and setsockopt.
  7309. * src/SocketCore.cc
  7310. * src/a2netcompat.h
  7311. * test/SocketCoreTest.cc
  7312. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7313. * Release 1.0.1
  7314. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7315. Updated Ukrainian and Norwegian Nynorsk translations.
  7316. Thanks to all translators.
  7317. * po/nn.po
  7318. * po/uk.po
  7319. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7320. Don't show download result when -S option is used.
  7321. * src/main.cc
  7322. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7323. Bump up version number to 1.0.1
  7324. * configure.ac
  7325. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7326. Closed files after the test cases in MultiDiskWriterTest::
  7327. testResetDiskWriterEntries(). This will fix the unit test error
  7328. in mingw32 build.
  7329. * test/MultiDiskWriterTest.cc
  7330. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7331. Use HEAD method to get file size from HTTP server for segmented
  7332. downloading.
  7333. The request to the BitTorrent Tracker always uses GET method because
  7334. the response of the tracker is small and it doesn't need segmented
  7335. download.
  7336. * src/FtpNegotiationCommand.cc
  7337. * src/HttpRequest.cc
  7338. * src/HttpResponseCommand.cc
  7339. * src/HttpSkipResponseCommand.cc
  7340. * src/RequestGroup.cc
  7341. * src/RequestGroup.h
  7342. * src/TrackerWatcherCommand.cc
  7343. * test/HttpRequestTest.cc
  7344. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7345. Fixed the bug that causes floating exception when -T option is used and
  7346. no URIs are given.
  7347. * src/download_helper.cc
  7348. * test/DownloadHelperTest.cc
  7349. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  7350. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  7351. errors in MinGW:
  7352. Closed file after saving server stats (RequestGroupMan.cc)
  7353. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  7354. Ignored case & handled 2-digit years (strptime.c)
  7355. Added missing suseconds_t definition (a2time.h)
  7356. Fixed socket CLOSE() define (SocketCore.cc)
  7357. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  7358. Changed utime() test values from x000 to x00000 as MinGW failed on
  7359. values less than timezone offset from Unix epoch
  7360. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  7361. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  7362. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  7363. handle negative dates (CookieParserTest.cc)
  7364. * src/a2time.h
  7365. * src/FtpConnection.cc
  7366. * src/RequestGroupMan.cc
  7367. * src/SocketCore.cc
  7368. * src/strptime.c
  7369. * test/CookieParserTest.cc
  7370. * test/CopyDiskAdaptorTest.cc
  7371. * test/FileTest.cc
  7372. * test/FtpConnectionTest.cc
  7373. * test/MultiDiskAdaptorTest.cc
  7374. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7375. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  7376. * doc/aria2c.1.txt
  7377. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7378. * Release 1.0.0
  7379. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7380. Added '~' to reserved characters.
  7381. * src/Util.cc
  7382. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7383. Do not urlencode Request::url in setUrl() because we want unmodified
  7384. URL using Request::getUrl()
  7385. * src/Request.cc
  7386. * src/Request.h
  7387. * test/RequestTest.cc
  7388. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7389. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  7390. Thanks to all translators.
  7391. * po/bg.po
  7392. * po/fr.po
  7393. * po/ja.po
  7394. * po/ru.po
  7395. * po/uk.po
  7396. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7397. Bump up version number to 1.0.0
  7398. * configure.ac
  7399. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7400. Added nosqlite3 build to build_test.sh.
  7401. Renamed noxml as expat.
  7402. * build_test.sh
  7403. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7404. Updated INPUT FILE section.
  7405. * doc/aria2c.1.txt
  7406. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7407. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  7408. on big endian systems because test .aria2 files are made for little
  7409. endian systems.
  7410. * test/DefaultBtProgressInfoFileTest.cc
  7411. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7412. Dropped ares support.
  7413. * README
  7414. * configure.ac
  7415. * m4/libares.m4: Removed.
  7416. * src/AsyncNameResolver.cc
  7417. * src/Makefile.am
  7418. * test/Makefile.am
  7419. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7420. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  7421. Removed const qualifier from DiskWriter::size().
  7422. * src/AbstractDiskWriter.cc
  7423. * src/AbstractDiskWriter.h
  7424. * src/ByteArrayDiskWriter.cc
  7425. * src/ByteArrayDiskWriter.h
  7426. * src/DiskWriter.h
  7427. * test/ByteArrayDiskWriterTest.cc
  7428. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7429. Fixed the bug that causes segmentation fault/bus error during executing
  7430. choking algorithm while seeding. This is caused by improper
  7431. implementation of compare function which returns inconsistent results
  7432. depending on the timing of last unchoke.
  7433. * src/BtSeederStateChoke.cc
  7434. * src/BtSeederStateChoke.h
  7435. * src/DefaultPeerStorage.cc
  7436. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7437. Removed TODO
  7438. * TODO
  7439. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7440. Added a section that explains how to pass argument to options that
  7441. takes optional arguments with its short form.
  7442. * doc/aria2c.1.txt
  7443. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7444. Added -u for the short form of --max-upload-limit option.
  7445. * doc/aria2c.1.txt
  7446. * src/option_processing.cc
  7447. * src/usage_text.h
  7448. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7449. Added -V for the short form of --check-integrity option.
  7450. Now the argument of --check-integrity option is optional:
  7451. if it is omitted, it is evaluated as true.
  7452. * doc/aria2c.1.txt
  7453. * src/option_processing.cc
  7454. * src/usage_text.h
  7455. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7456. Made the default value of --ftp-pasv option set to true and it can take
  7457. true/false values.
  7458. * src/OptionHandlerFactory.cc
  7459. * src/option_processing.cc
  7460. * src/usage_text.h
  7461. * doc/aria2c.1.txt
  7462. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7463. Given custom random number generator to std::random_shuffle.
  7464. * src/AnnounceList.cc
  7465. * src/BtLeecherStateChoke.cc
  7466. * src/BtSeederStateChoke.cc
  7467. * src/DefaultBtRequestFactory.cc
  7468. * src/MetalinkEntry.cc
  7469. * src/RarestPieceSelector.cc
  7470. * src/SimpleRandomizer.cc
  7471. * src/SimpleRandomizer.h
  7472. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7473. Now the default value of --enable-direct-io is true.
  7474. * src/OptionHandlerFactory.cc
  7475. * doc/aria2c.1.txt
  7476. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7477. Erase peer before executing onReturningPeer and onErasingPeer
  7478. because choking algorithm called from onReturningPeer doesn't
  7479. like erasing peer in the active peer list.
  7480. * src/DefaultPeerStorage.cc
  7481. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7482. Instead of creating special filename in createDownloadResult() if
  7483. inMemoryDownload() is true, now it is done in getFilePath().
  7484. * src/RequestGroup.cc
  7485. * test/RequestGroupTest.cc
  7486. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7487. Print "[MEMORY]" and filename if a file is not saved in disk and just
  7488. processed in memory. This is the fix for previous comment out.
  7489. * src/MemoryBufferPreDownloadHandler.cc
  7490. * src/RequestGroup.cc
  7491. * src/RequestGroup.h
  7492. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7493. Commented out the code which sets virtual directory path "[MEMORY]"
  7494. propagate directory to store to following RequestGroup.
  7495. * src/MemoryBufferPreDownloadHandler.cc
  7496. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7497. Bump up version number to 1.0.0b
  7498. * configure.ac
  7499. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7500. Added input_uris.txt to EXTRA_DIST
  7501. * test/Makefile.am
  7502. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7503. Removed PeerObject.h from Makefile.am
  7504. * src/Makefile.am
  7505. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7506. Avoid slow seeding
  7507. * src/PeerInteractionCommand.cc
  7508. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7509. Updated usage for -i option.
  7510. * src/usage_text.h (TEXT_INPUT_FILE)
  7511. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7512. Added INPUT FILE section to man page.
  7513. Escaped fake URLs.
  7514. * doc/aria2c.1.txt
  7515. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7516. Fixed wrong note position for -o option.
  7517. * doc/aria2c.1.txt
  7518. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7519. Fixed compile error without SSL/XML library.
  7520. * src/DefaultBtProgressInfoFile.cc
  7521. * src/DefaultBtProgressInfoFile.h
  7522. * src/FileMetalinkParserState.cc
  7523. * src/RequestGroup.h
  7524. * src/SocketCore.cc
  7525. * src/SocketCore.h
  7526. * src/VerificationMetalinkParserState.cc
  7527. * src/download_helper.h
  7528. * src/main.cc
  7529. * test/DefaultBtProgressInfoFileTest.cc
  7530. * test/DownloadHelperTest.cc
  7531. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7532. Rewritten URI handling functions. They are now provided as a testable
  7533. functions.
  7534. * src/Makefile.am
  7535. * src/RequestGroup.cc
  7536. * src/RequestGroup.h
  7537. * src/download_helper.cc
  7538. * src/download_helper.h
  7539. * src/main.cc
  7540. * test/DownloadHelperTest.cc
  7541. * test/Makefile.am
  7542. * test/input_uris.txt
  7543. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7544. Quickly terminate commands when ctrl-c is pressed.
  7545. * src/DownloadEngine.cc
  7546. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7547. Quickly terminate idle commands when download finished.
  7548. * src/AbstractCommand.cc
  7549. * src/DownloadCommand.cc
  7550. * src/DownloadEngine.cc
  7551. * src/DownloadEngine.h
  7552. * src/SleepCommand.cc
  7553. * src/SleepCommand.h
  7554. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7555. Added the ability to specify output filename and directory in input
  7556. file.
  7557. Additional parameters are added in the following line of URIs
  7558. with proceeding white space(s), 1 parameter in 1 line.
  7559. The parameter names are the same with the command-line option name
  7560. without proceeding "--". Not all the options are available here:
  7561. at the moment, 'dir' and 'out' options are avialable.
  7562. Please note that out option has no effect against Metalink or BitTorrent
  7563. downloads.
  7564. Example input file:
  7565. http://host/foo-1.1.tar.bz2
  7566. out=foo.tar.bz2
  7567. dir=/tmp/downloads
  7568. http://host/thundermonkey-2.0.tar.bz2
  7569. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  7570. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  7571. thundermonkey-2.0.tar.bz2 is saved as
  7572. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  7573. * src/BtPostDownloadHandler.cc
  7574. * src/Metalink2RequestGroup.cc
  7575. * src/Metalink2RequestGroup.h
  7576. * src/MetalinkPostDownloadHandler.cc
  7577. * src/UriListParser.cc
  7578. * src/UriListParser.h
  7579. * src/main.cc
  7580. * test/Metalink2RequestGroupTest.cc
  7581. * test/UriListParserTest.cc
  7582. * test/filelist1.txt
  7583. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7584. Fixed error when SSL library is not found.
  7585. * configure.ac
  7586. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7587. Cross referenced among -s, -C and -j options.
  7588. Updated usage of -C and -s options.
  7589. * src/usage_text.h
  7590. * doc/aria2c.1.txt
  7591. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7592. Fixed bad cast in 32bit platforms.
  7593. * test/DefaultPieceStorageTest.cc
  7594. (DefaultPieceStorageTest::testGetCompletedLength)
  7595. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7596. Fixed unit test fails on 32bit platforms.
  7597. * test/CookieParserTest.cc
  7598. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7599. Show an average download speed in Download results.
  7600. * src/BtFileAllocationEntry.cc
  7601. * src/DefaultPieceStorage.cc
  7602. * src/DownloadContext.cc
  7603. * src/DownloadContext.h
  7604. * src/DownloadResult.h
  7605. * src/RequestGroup.cc
  7606. * src/RequestGroupMan.cc
  7607. * src/StreamFileAllocationEntry.cc
  7608. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7609. Fixed the bug that metalink file is not processed if Content-Type
  7610. field has a paramter.
  7611. * src/HttpResponse.cc
  7612. * src/HttpResponse.h
  7613. * test/HttpResponseTest.cc
  7614. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7615. Removed unused code.
  7616. * src/DefaultBtAnnounce.cc
  7617. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7618. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  7619. the value larger than DefaultPieceStorage::getTotalLength() when
  7620. in flight pieces are involved.
  7621. * src/DefaultPieceStorage.cc
  7622. * test/DefaultPieceStorageTest.cc
  7623. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7624. Bump up version number to 1.0.0a.
  7625. * configure.ac
  7626. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7627. Updated configure.ac
  7628. * configure.ac
  7629. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7630. Added usege for proxy.
  7631. * doc/aria2c.1.txt
  7632. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7633. Added usage for --ca-certificate, --certificate, --private-key and
  7634. --check-certificate options.
  7635. * doc/aria2c.1.txt
  7636. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7637. Updated man page
  7638. * doc/aria2c.1.txt
  7639. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7640. Added --no-proxy option. It receives comman separated hostname or
  7641. domains to which proxy should not be used.
  7642. aria2 honors the environment variable no_proxy to override no-proxy
  7643. value in configuration file. The user can override the environment
  7644. variable no_proxy with --no-proxy command-line option.
  7645. * src/AbstractCommand.cc
  7646. * src/OptionHandlerFactory.cc
  7647. * src/option_processing.cc
  7648. * src/prefs.cc
  7649. * src/prefs.h
  7650. * src/usage_text.h
  7651. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7652. Added the ability to verify peer in SSL/TLS using given CA certificates.
  7653. The CA certificates are specified in --ca-certificate option.
  7654. By default, the verification is disabled. Use --check-certificate
  7655. option to enable it.
  7656. * src/HttpRequestCommand.cc
  7657. * src/LibgnutlsTLSContext.cc
  7658. * src/LibgnutlsTLSContext.h
  7659. * src/LibsslTLSContext.cc
  7660. * src/LibsslTLSContext.h
  7661. * src/MultiUrlRequestInfo.cc
  7662. * src/OptionHandlerFactory.cc
  7663. * src/SocketCore.cc
  7664. * src/SocketCore.h
  7665. * src/a2functional.h
  7666. * src/message.h
  7667. * src/option_processing.cc
  7668. * src/prefs.cc
  7669. * src/prefs.h
  7670. * src/usage_text.h
  7671. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7672. Added client certificate authentication for SSL/TLS.
  7673. Currently a private key must be decrypted for use with aria2.
  7674. If a user accidentally gives encrypted file to aria2 then following
  7675. thing happens:
  7676. If encrypted private key is given to aria2, it behaves differently
  7677. depending on the ssl library it uses. If aria2 built with openssl then
  7678. openssl prompts the user for password. If aria2 build with gnutls then
  7679. aria2 exists with error at start up.
  7680. * src/DownloadEngineFactory.cc
  7681. * src/MultiUrlRequestInfo.cc
  7682. * src/OptionHandlerFactory.cc
  7683. * src/option_processing.cc
  7684. * src/prefs.cc
  7685. * src/prefs.h
  7686. * src/usage_text.h
  7687. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7688. Introduced TLSContext that holds TLS related data that can be shared
  7689. with multiple SSL connections.
  7690. * src/DownloadEngineFactory.cc
  7691. * src/LibgnutlsTLSContext.cc
  7692. * src/LibgnutlsTLSContext.h
  7693. * src/LibsslTLSContext.cc
  7694. * src/LibsslTLSContext.h
  7695. * src/Makefile.am
  7696. * src/SocketCore.cc
  7697. * src/SocketCore.h
  7698. * src/TLSContext.h
  7699. * src/message.h
  7700. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7701. Fixed the bug that the DiskWriter of the first FileEntry whose
  7702. `needsFileAllocation' property is false is not created
  7703. even if it shares a piece with next FileEntry which `requested' property
  7704. is true.
  7705. Fixed the bug that zero-length file is not created if pre file
  7706. allocation is not done.
  7707. * src/MultiDiskAdaptor.cc
  7708. * src/MultiDiskAdaptor.h
  7709. * test/MultiDiskAdaptorTest.cc
  7710. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7711. Added the ability to pool proxy connection.
  7712. The conneciton in FTP with proxy-method=GET is not pooled.
  7713. Proxy-Connection header will not be sent when sending CONNECT method.
  7714. * src/DownloadEngine.cc
  7715. * src/DownloadEngine.h
  7716. * src/FtpFinishDownloadCommand.cc
  7717. * src/FtpInitiateConnectionCommand.cc
  7718. * src/FtpNegotiationCommand.cc
  7719. * src/HttpDownloadCommand.cc
  7720. * src/HttpInitiateConnectionCommand.cc
  7721. * src/HttpRequest.cc
  7722. * src/HttpRequest.h
  7723. * src/HttpResponse.cc
  7724. * src/HttpSkipResponseCommand.cc
  7725. * test/HttpRequestTest.cc
  7726. * test/HttpResponseTest.cc
  7727. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7728. Handle date before epoch.
  7729. To create *bad* Time object, call Time::null().
  7730. * src/CookieParser.cc
  7731. * src/FtpConnection.cc
  7732. * src/FtpConnection.h
  7733. * src/FtpNegotiationCommand.cc
  7734. * src/RequestGroup.cc
  7735. * src/TimeA2.cc
  7736. * src/TimeA2.h
  7737. * test/CookieParserTest.cc
  7738. * test/FtpConnectionTest.cc
  7739. * test/TimeTest.cc
  7740. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7741. Added support for following envrionment variables: http_proxy,
  7742. https_proxy, ftp_proxy and all_proxy.
  7743. Each variable is equivalent to the aria2 option whose name is the
  7744. variable name with '_' replaced with '-'.
  7745. They overrides options specified in aria2.conf file.
  7746. The envrionment variables can be overrode using command-line option.
  7747. * src/option_processing.cc
  7748. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7749. Renamed --http-proxy-method as --proxy-method.
  7750. * src/AbstractCommand.cc
  7751. * src/FtpInitiateConnectionCommand.cc
  7752. * src/HttpInitiateConnectionCommand.cc
  7753. * src/OptionHandlerFactory.cc
  7754. * src/option_processing.cc
  7755. * src/prefs.cc
  7756. * src/prefs.h
  7757. * src/usage_text.h
  7758. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7759. Deprecated --http-proxy-user and --http-proxy-passwd options.
  7760. Added --https-proxy, --ftp-proxy and --all-proxy options.
  7761. Above 3 options and --http-proxy option can handle proxy in URL format
  7762. like: http://user:passwd@host:port.
  7763. If a proxy requires user/password, they must be specified in a URL.
  7764. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  7765. instead.
  7766. * src/AbstractCommand.cc
  7767. * src/AbstractCommand.h
  7768. * src/AbstractProxyRequestCommand.cc
  7769. * src/AbstractProxyRequestCommand.h
  7770. * src/AuthConfigFactory.cc
  7771. * src/AuthConfigFactory.h
  7772. * src/FtpFinishDownloadCommand.cc
  7773. * src/FtpInitiateConnectionCommand.cc
  7774. * src/FtpInitiateConnectionCommand.h
  7775. * src/FtpNegotiationCommand.cc
  7776. * src/FtpTunnelRequestCommand.cc
  7777. * src/FtpTunnelRequestCommand.h
  7778. * src/HttpDownloadCommand.cc
  7779. * src/HttpInitiateConnectionCommand.cc
  7780. * src/HttpInitiateConnectionCommand.h
  7781. * src/HttpProxyRequestCommand.cc
  7782. * src/HttpProxyRequestCommand.h
  7783. * src/HttpRequest.cc
  7784. * src/HttpRequest.h
  7785. * src/HttpRequestCommand.cc
  7786. * src/HttpRequestCommand.h
  7787. * src/HttpSkipResponseCommand.cc
  7788. * src/InitiateConnectionCommand.cc
  7789. * src/InitiateConnectionCommand.h
  7790. * src/OptionHandlerFactory.cc
  7791. * src/OptionHandlerImpl.h
  7792. * src/Request.cc
  7793. * src/option_processing.cc
  7794. * src/prefs.cc
  7795. * src/prefs.h
  7796. * src/usage_text.h
  7797. * test/AuthConfigFactoryTest.cc
  7798. * test/HttpRequestTest.cc
  7799. * test/OptionHandlerTest.cc
  7800. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7801. Execute choking algorithm when unchoked and interested peer is
  7802. disconected.
  7803. * src/DefaultPeerStorage.cc
  7804. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7805. Added testcase for BtNotInterestedMessage from unchoked peer.
  7806. * test/BtNotInterestedMessageTest.cc
  7807. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7808. Execute choking algorithm when BtInterestedMessage arrives from
  7809. unchoked peer.
  7810. * src/BtInterestedMessage.cc
  7811. * src/BtInterestedMessage.h
  7812. * src/DefaultBtMessageFactory.cc
  7813. * test/BtInterestedMessageTest.cc
  7814. * test/MockPeerStorage.h
  7815. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7816. AuthConfigFactory is now part of DownloadEngine.
  7817. * src/AbstractProxyRequestCommand.cc
  7818. * src/AuthConfigFactory.h
  7819. * src/DownloadEngine.cc
  7820. * src/DownloadEngine.h
  7821. * src/FtpConnection.cc
  7822. * src/FtpConnection.h
  7823. * src/FtpNegotiationCommand.cc
  7824. * src/HttpConnection.cc
  7825. * src/HttpRequest.cc
  7826. * src/HttpRequest.h
  7827. * src/HttpRequestCommand.cc
  7828. * src/HttpResponse.cc
  7829. * src/HttpResponseCommand.cc
  7830. * src/HttpSkipResponseCommand.cc
  7831. * src/MultiUrlRequestInfo.cc
  7832. * src/main.cc
  7833. * test/FtpConnectionTest.cc
  7834. * test/HttpRequestTest.cc
  7835. * test/HttpResponseTest.cc
  7836. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7837. Corrected catched exception type.
  7838. * src/ServerStatMan.cc
  7839. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7840. DNSCache is now part of DownloadEngine.
  7841. * src/DNSCache.h
  7842. * src/DownloadEngine.cc
  7843. * src/DownloadEngine.h
  7844. * src/InitiateConnectionCommand.cc
  7845. * src/MultiUrlRequestInfo.cc
  7846. * test/Makefile.am
  7847. * test/Makefile.in
  7848. * test/SimpleDNSCacheTest.cc
  7849. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7850. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  7851. DownloadEngine.
  7852. * src/ActivePeerConnectionCommand.cc
  7853. * src/BtSetup.cc
  7854. * src/CUIDCounter.h
  7855. * src/DHTSetup.cc
  7856. * src/DownloadCommand.cc
  7857. * src/DownloadEngine.cc
  7858. * src/DownloadEngine.h
  7859. * src/DownloadEngineFactory.cc
  7860. * src/FileAllocationDispatcherCommand.cc
  7861. * src/InitiatorMSEHandshakeCommand.cc
  7862. * src/PeerInitiateConnectionCommand.cc
  7863. * src/PeerInteractionCommand.cc
  7864. * src/PeerListenCommand.cc
  7865. * src/RequestGroup.cc
  7866. * src/StreamFileAllocationEntry.cc
  7867. * src/TrackerWatcherCommand.cc
  7868. * src/main.cc
  7869. * test/RequestGroupManTest.cc
  7870. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7871. Implemented commented code in BtSeederStateChoke
  7872. * src/BtSeederStateChoke.cc
  7873. * src/Peer.cc
  7874. * src/Peer.h
  7875. * src/PeerInteractionCommand.cc
  7876. * src/PeerSessionResource.cc
  7877. * src/PeerSessionResource.h
  7878. * test/MockBtMessageDispatcher.h
  7879. * test/PeerSessionResourceTest.cc
  7880. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7881. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  7882. its object.
  7883. * src/AbstractBtMessage.cc
  7884. * src/ActivePeerConnectionCommand.cc
  7885. * src/ActivePeerConnectionCommand.h
  7886. * src/BtContextAwareCommand.cc
  7887. * src/BtContextAwareCommand.h
  7888. * src/BtExtendedMessage.cc
  7889. * src/BtExtendedMessage.h
  7890. * src/BtInterestedMessage.cc
  7891. * src/BtInterestedMessage.h
  7892. * src/BtNotInterestedMessage.cc
  7893. * src/BtNotInterestedMessage.h
  7894. * src/BtRegistry.cc
  7895. * src/BtRegistry.h
  7896. * src/BtSeederStateChoke.cc
  7897. * src/BtSetup.cc
  7898. * src/DHTGetPeersCommand.cc
  7899. * src/DHTGetPeersCommand.h
  7900. * src/DHTPeerAnnounceEntry.cc
  7901. * src/DHTPeerAnnounceEntry.h
  7902. * src/DHTPeerAnnounceStorage.cc
  7903. * src/DHTPeerAnnounceStorage.h
  7904. * src/DHTPeerLookupTask.cc
  7905. * src/DHTPeerLookupTask.h
  7906. * src/DHTSetup.cc
  7907. * src/DHTSetup.h
  7908. * src/DHTTaskFactory.h
  7909. * src/DHTTaskFactoryImpl.cc
  7910. * src/DHTTaskFactoryImpl.h
  7911. * src/DefaultBtAnnounce.cc
  7912. * src/DefaultBtInteractive.cc
  7913. * src/DefaultBtInteractive.h
  7914. * src/DefaultBtMessageDispatcher.cc
  7915. * src/DefaultBtMessageDispatcher.h
  7916. * src/DefaultBtMessageFactory.cc
  7917. * src/DefaultBtMessageFactory.h
  7918. * src/DefaultBtMessageReceiver.cc
  7919. * src/DefaultBtProgressInfoFile.cc
  7920. * src/DefaultBtProgressInfoFile.h
  7921. * src/DefaultBtRequestFactory.cc
  7922. * src/DefaultBtRequestFactory.h
  7923. * src/DefaultExtensionMessageFactory.cc
  7924. * src/DefaultExtensionMessageFactory.h
  7925. * src/DefaultPeerStorage.cc
  7926. * src/DefaultPeerStorage.h
  7927. * src/DownloadEngine.cc
  7928. * src/DownloadEngine.h
  7929. * src/InitiatorMSEHandshakeCommand.cc
  7930. * src/InitiatorMSEHandshakeCommand.h
  7931. * src/MSEHandshake.cc
  7932. * src/MSEHandshake.h
  7933. * src/Makefile.am
  7934. * src/Makefile.in
  7935. * src/PeerChokeCommand.cc
  7936. * src/PeerChokeCommand.h
  7937. * src/PeerInitiateConnectionCommand.cc
  7938. * src/PeerInitiateConnectionCommand.h
  7939. * src/PeerInteractionCommand.cc
  7940. * src/PeerInteractionCommand.h
  7941. * src/PeerObject.h
  7942. * src/PeerReceiveHandshakeCommand.cc
  7943. * src/PeerReceiveHandshakeCommand.h
  7944. * src/ReceiverMSEHandshakeCommand.cc
  7945. * src/RequestGroup.cc
  7946. * src/RequestGroup.h
  7947. * src/RequestGroupMan.cc
  7948. * src/RequestGroupMan.h
  7949. * src/SeedCheckCommand.cc
  7950. * src/SeedCheckCommand.h
  7951. * src/ShareRatioSeedCriteria.h
  7952. * src/SimpleBtMessage.cc
  7953. * src/TrackerWatcherCommand.cc
  7954. * src/TrackerWatcherCommand.h
  7955. * src/UTPexExtensionMessage.cc
  7956. * src/UTPexExtensionMessage.h
  7957. * test/BtCancelMessageTest.cc
  7958. * test/BtChokeMessageTest.cc
  7959. * test/BtExtendedMessageTest.cc
  7960. * test/BtInterestedMessageTest.cc
  7961. * test/BtNotInterestedMessageTest.cc
  7962. * test/BtPieceMessageTest.cc
  7963. * test/BtPortMessageTest.cc
  7964. * test/BtRegistryTest.cc
  7965. * test/BtRejectMessageTest.cc
  7966. * test/BtRequestMessageTest.cc
  7967. * test/DHTPeerAnnounceEntryTest.cc
  7968. * test/DHTPeerAnnounceStorageTest.cc
  7969. * test/DefaultBtMessageDispatcherTest.cc
  7970. * test/DefaultBtMessageFactoryTest.cc
  7971. * test/DefaultBtProgressInfoFileTest.cc
  7972. * test/DefaultBtRequestFactoryTest.cc
  7973. * test/DefaultExtensionMessageFactoryTest.cc
  7974. * test/MSEHandshakeTest.cc
  7975. * test/MockDHTTaskFactory.h
  7976. * test/ShareRatioSeedCriteriaTest.cc
  7977. * test/UTPexExtensionMessageTest.cc
  7978. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7979. Fixed compiler warning.
  7980. * test/UtilTest.cc
  7981. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7982. Treat Cookie object as session cookie if expiry = 0 is given.
  7983. With this change, you can specify session scoped cookies in an external
  7984. file setting expiry value to 0.
  7985. * src/Cookie.cc
  7986. * src/Cookie.h
  7987. * test/CookieParserTest.cc
  7988. * test/CookieStorageTest.cc
  7989. * test/CookieTest.cc
  7990. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7991. Changed signature of DHTMessageFactory::createResponseMessage().
  7992. Removed unused validateIDMatch.
  7993. * src/DHTMessageFactory.h
  7994. * src/DHTMessageFactoryImpl.cc
  7995. * src/DHTMessageFactoryImpl.h
  7996. * src/DHTMessageTracker.cc
  7997. * test/DHTMessageFactoryImplTest.cc
  7998. * test/MockDHTMessageFactory.h
  7999. Dropped DHT message coming from same ID of localhost.
  8000. * src/DHTMessageReceiver.cc
  8001. Rejected adding node whose ID is the same as localhost's.
  8002. * src/DHTRoutingTable.cc
  8003. * test/BtPortMessageTest.cc
  8004. * test/DHTRoutingTableTest.cc
  8005. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8006. Pool connection when redirection occurs with Content-Length = 0.
  8007. * src/HttpSkipResponseCommand.cc
  8008. * src/HttpSkipResponseCommand.h
  8009. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8010. Fixed the bug that causes time out when redirection occurs with
  8011. content-length 0.
  8012. * src/HttpResponseCommand.cc
  8013. * src/HttpSkipResponseCommand.cc
  8014. * src/HttpSkipResponseCommand.h
  8015. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8016. Now each status legends is shown only when it appears in Download
  8017. Result. If Download Result has no item, then status legend will not
  8018. be printed.
  8019. * src/RequestGroupMan.cc
  8020. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8021. Removed duplicate creation of OptionHandlers.
  8022. * src/option_processing.cc
  8023. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8024. Fixed the bug that causes segmentation fault when accessing files which
  8025. don't exist or are not included in --select-file option while
  8026. validating chunk checksum.
  8027. * src/MultiDiskAdaptor.cc
  8028. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8029. Fixed compiler warning.
  8030. * test/UtilTest.cc
  8031. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8032. Included cstdlib. This fixed the compile error with g++-4.3.2.
  8033. * src/IteratableChecksumValidator.cc
  8034. * src/IteratableChunkChecksumValidator.cc
  8035. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8036. * Release 0.16.2
  8037. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8038. Added Serbian translation. Updated Ukrainian translation.
  8039. Thanks to all translators.
  8040. * po/sr.po
  8041. * po/uk.po
  8042. * po/LINGUAS
  8043. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8044. Bump up version number to 0.16.2
  8045. * configure.ac
  8046. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8047. Added length equality test to operator== to drop a piece message
  8048. whose length does not match to the requested one.
  8049. * src/RequestSlot.cc
  8050. * test/DefaultBtMessageDispatcherTest.cc
  8051. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8052. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  8053. recieved.
  8054. In this fix, if a request larger than 16KiB length is received, aria2
  8055. disconnects the peer.
  8056. * src/BtConstants.h
  8057. * src/PeerMessageUtil.cc
  8058. * src/PeerMessageUtil.h
  8059. * test/BtRequestMessageTest.cc
  8060. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8061. * Release 0.16.1
  8062. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8063. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  8064. * doc/aria2c.1.txt
  8065. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8066. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  8067. Updated French, Simplified Chinese and Japanese translations.
  8068. Thanks to all translators.
  8069. en@quot and en@boldquot are also added.
  8070. * po/LINGUAS
  8071. * po/fr.po
  8072. * po/ja.po
  8073. * po/uk.po
  8074. * po/vi.po
  8075. * po/zh_CN.po
  8076. * po/zh_TW.po
  8077. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8078. Bump up version number to 0.16.1.
  8079. * configure.ac
  8080. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8081. Updated README.
  8082. * README
  8083. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8084. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  8085. not to replace '--' with em dash character.
  8086. * doc/aria2c.1.txt
  8087. * doc/makeman
  8088. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8089. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  8090. every SEC seconds.
  8091. * src/DownloadEngineFactory.cc
  8092. * src/OptionHandlerFactory.cc
  8093. * src/option_processing.cc
  8094. * src/usage_text.h
  8095. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8096. Fixed compile warning on linux-amd64
  8097. * src/FtpConnection.cc
  8098. * src/IteratableChunkChecksumValidator.cc
  8099. * src/MultiDiskAdaptor.cc
  8100. Fixed the bug that unit test fails on linux-amd64
  8101. * test/UtilTest.cc
  8102. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8103. Added --dht-file-path option to change the path to dht.dat, which is a
  8104. serialized DHT routing table.
  8105. * src/OptionHandlerFactory.cc
  8106. * src/option_processing.cc
  8107. * src/usage_text.h
  8108. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8109. Fixed possible underflow.
  8110. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  8111. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8112. Fixed the bug that last character in URI is not encoded.
  8113. * src/Request.cc
  8114. * test/RequestTest.cc
  8115. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8116. Fixed the bug that referer header field contains fragment.
  8117. Now Request class removes fragment part of URI and encodes it
  8118. in Request::setUri() and setReferer().
  8119. * src/Request.h
  8120. * src/Request.cc
  8121. * test/RequestTest.cc
  8122. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8123. Added missing m4 macros.
  8124. * m4/cppunit.m4
  8125. * m4/libgcrypt.m4
  8126. * m4/libgnutls-extra.m4
  8127. * m4/libgnutls.m4
  8128. * m4/libxml2.m4
  8129. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8130. Fixed compile error with gcc-4.4(snapshot)
  8131. * src/File.cc
  8132. * src/FtpConnection.cc
  8133. * src/OptionHandlerImpl.h
  8134. * src/Util.cc
  8135. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8136. Removed assert()
  8137. * src/SocketBuffer.cc (SocketBuffer::send)
  8138. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8139. Changed the type of _numNewConnection to unsigned int.
  8140. * src/ActivePeerConnectionCommand.cc
  8141. * src/ActivePeerConnectionCommand.h
  8142. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8143. * Release 0.16.0
  8144. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8145. Updated doc
  8146. * README
  8147. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8148. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  8149. translations. Thanks to all translators.
  8150. * po/bg.po
  8151. * po/de.po
  8152. * po/fr.po
  8153. * po/ja.po
  8154. * po/zh_CN.po
  8155. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8156. Bump up version number to 0.16.0.
  8157. * configure.ac
  8158. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8159. Casted entry->maxConnections to int32_t for std::min<T> with T =
  8160. int32_t.
  8161. Changed the type of count to int32_t.
  8162. * src/Metalink2RequestGroup.cc
  8163. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8164. Added test for Time::elapsed(time_t).
  8165. * test/TimeTest.cc
  8166. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8167. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  8168. Util::difftv() should be used instead.
  8169. * src/TimeA2.cc
  8170. * src/TimeA2.h
  8171. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8172. Made socket for dht connections non-blocking
  8173. * src/DHTAbstractMessage.cc
  8174. * src/DHTAbstractMessage.h
  8175. * src/DHTConnection.h
  8176. * src/DHTConnectionImpl.cc
  8177. * src/DHTConnectionImpl.h
  8178. * src/DHTMessage.h
  8179. * src/DHTMessageDispatcherImpl.cc
  8180. * src/DHTMessageDispatcherImpl.h
  8181. * src/DHTUnknownMessage.cc
  8182. * src/DHTUnknownMessage.h
  8183. * src/SocketCore.cc
  8184. * src/SocketCore.h
  8185. * test/MockDHTMessage.h
  8186. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8187. Changed the type of offset to int.
  8188. * src/ParameterizedStringParser.cc
  8189. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8190. Made getAsInt() return int32_t
  8191. * src/Option.h
  8192. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8193. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  8194. build.
  8195. * configure.ac
  8196. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8197. Use sqlite3_open if sqlite3_open_v2 is not available.
  8198. * src/Sqlite3MozCookieParser.cc
  8199. * src/Sqlite3MozCookieParser.h
  8200. * m4/sqlite3.m4
  8201. * test/Sqlite3MozCookieParserTest.cc
  8202. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8203. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  8204. * src/BtPieceMessage.cc
  8205. * src/DHTPeerAnnounceStorage.cc
  8206. * src/DefaultPieceStorage.cc
  8207. * src/DownloadCommand.cc
  8208. * src/DownloadEngine.cc
  8209. * src/FtpConnection.cc
  8210. * src/PeerConnection.cc
  8211. * src/PeerMessageUtil.cc
  8212. * src/RequestGroup.cc
  8213. * src/RequestGroupMan.cc
  8214. * src/SimpleBtMessage.cc
  8215. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8216. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  8217. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  8218. * src/AbstractDiskWriter.cc
  8219. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8220. Don't set Request::supportsPersistentConnection() in HttpConnection
  8221. since this code is also used in AbstractProxyResponseCommand.
  8222. Moved those code to HttpResponse.
  8223. * src/HttpResponse.cc
  8224. * src/HttpResponse.h
  8225. * src/HttpConnection.cc
  8226. * src/HttpConnection.h
  8227. * src/HttpResponseCommand.cc
  8228. * test/HttpResponseTest.cc
  8229. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8230. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  8231. The configuration is minimum: no torrent, no metalink, so there may be
  8232. other compile error on their code.
  8233. * src/a2netcompat.h
  8234. * src/File.cc
  8235. * src/File.h
  8236. * src/SocketCore.cc
  8237. * src/SocketCore.h
  8238. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8239. Made a socket of incoming peer non-blocking.
  8240. * src/PeerListenCommand.cc
  8241. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8242. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  8243. whole message data is not sent in one send() call.
  8244. * src/BtPieceMessage.cc
  8245. * src/BtPieceMessage.h
  8246. * src/PeerConnection.cc
  8247. * src/PeerConnection.h
  8248. * src/SimpleBtMessage.cc
  8249. * src/SimpleBtMessage.h
  8250. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8251. Fixed the bug that aria2 downloads faster than max-download-limit when
  8252. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  8253. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  8254. , instead of sum of them.
  8255. * src/ActivePeerConnectionCommand.cc
  8256. * src/DefaultBtInteractive.cc
  8257. * src/DownloadCommand.cc
  8258. * src/PeerInteractionCommand.cc
  8259. * src/PeerReceiveHandshakeCommand.cc
  8260. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8261. Fixed the bug that HTTPS download fails.
  8262. * src/AbstractCommand.cc
  8263. * src/AbstractCommand.h
  8264. * src/DownloadCommand.cc
  8265. * src/FtpConnection.cc
  8266. * src/HttpConnection.cc
  8267. * src/HttpRequestCommand.cc
  8268. * src/HttpResponseCommand.cc
  8269. * src/HttpSkipResponseCommand.cc
  8270. * src/MSEHandshake.cc
  8271. * src/PeerConnection.cc
  8272. * src/SocketCore.cc
  8273. * src/SocketCore.h
  8274. Fixed the bug that aria2 doesn't download whole content body and cannot
  8275. reuse connection if chunked transfer encoding and gzip content encoding
  8276. are set.
  8277. * src/DownloadCommand.cc
  8278. * src/HttpSkipResponseCommand.cc
  8279. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8280. Updated man page.
  8281. * doc/aria2c.1.txt
  8282. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8283. When error occurred while aria2 was parsing an .aria2.conf file, print
  8284. the usage of the option that caused error.
  8285. * src/option_processing.cc
  8286. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8287. Fixed compile error on OptionHandlerException
  8288. * src/Makefile.am
  8289. * src/OptionHandlerException.cc
  8290. * src/OptionHandlerException.h
  8291. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8292. Moved message of the error to OptionHandlerException.h
  8293. * src/NameMatchOptionHandler.h
  8294. * src/OptionHandlerException.h
  8295. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8296. When error occurs while aria2 is parsing an command-line option, print
  8297. the usage of the option.
  8298. * src/Makefile.am
  8299. * src/NameMatchOptionHandler.h
  8300. * src/OptionHandlerException.h
  8301. * src/option_processing.cc
  8302. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8303. Reverted previous change.
  8304. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  8305. username is not in URI.
  8306. * src/HttpRequest.cc
  8307. * src/Request.cc
  8308. * test/HttpRequestTest.cc
  8309. * test/RequestTest.cc
  8310. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8311. Now colon is required for username and password in FTP URL, like:
  8312. ftp://username:password@host.
  8313. If colon is not there, aria2 don't parse it as a username. For example,
  8314. aria2 don't retrieve username from ftp://username@host.
  8315. This fix was made in order to login FTP server via non-transparent ftp
  8316. proxy.
  8317. * src/Request.cc
  8318. * test/RequestTest.cc
  8319. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8320. Use netrc for HTTP.
  8321. Now FTP user/password is sent in Authorization header when
  8322. --ftp-via-http-proxy=get is given.
  8323. * src/AuthConfigFactory.cc
  8324. * src/HttpRequest.cc
  8325. * src/HttpRequest.h
  8326. * src/NetrcAuthResolver.cc
  8327. * src/NetrcAuthResolver.h
  8328. * src/OptionHandlerFactory.cc
  8329. * src/option_processing.cc
  8330. * src/prefs.cc
  8331. * src/prefs.h
  8332. * test/AuthConfigFactoryTest.cc
  8333. * test/HttpRequestTest.cc
  8334. * test/NetrcAuthResolverTest.cc
  8335. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8336. Issue PWD command first and get working directory and use it as a prefix
  8337. for CWD command.
  8338. * src/DownloadEngine.cc
  8339. * src/DownloadEngine.h
  8340. * src/FtpConnection.cc
  8341. * src/FtpConnection.h
  8342. * src/FtpFinishDownloadCommand.cc
  8343. * src/FtpInitiateConnectionCommand.cc
  8344. * src/FtpNegotiationCommand.cc
  8345. * src/FtpNegotiationCommand.h
  8346. * test/FtpConnectionTest.cc
  8347. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8348. Removed default user/pass for FTP user/pass, since it should not have
  8349. precedence over netrc configuration by default.
  8350. * src/OptionHandlerFactory.cc
  8351. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8352. Added debug log for socket event.
  8353. * src/AbstractCommand.cc
  8354. * src/PeerAbstractCommand.cc
  8355. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8356. Log microseconds.
  8357. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  8358. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8359. Replaced HelpItem.cc with OptionHandler.cc.
  8360. * po/POTFILES.in
  8361. Updated po files with 'make update-po'
  8362. * po/aria2c.pot
  8363. * po/*.po
  8364. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8365. Removed possible values from the text.
  8366. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  8367. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8368. Removed unused preferences:
  8369. PREF_NO_PREALLOCATION
  8370. PREF_STDOUT_LOG
  8371. PREF_TRACKER_MAX_TRIES
  8372. PREF_DIRECT_DOWNLOAD_TIMEOUT
  8373. PREF_MIN_SEGMENT_SIZE
  8374. * src/option_processing.cc
  8375. * src/prefs.cc
  8376. * src/prefs.h
  8377. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8378. Integrated HelpItem into OptionParser to ease the workload for adding
  8379. new options. Removed default value from usage text.
  8380. * src/HelpItem.cc: Removed.
  8381. * src/HelpItem.h: Removed.
  8382. * src/HelpItemFactory.cc: Removed.
  8383. * src/HelpItemFactory.h: Removed.
  8384. * src/Makefile.am
  8385. * src/Makefile.in
  8386. * src/NameMatchOptionHandler.h
  8387. * src/OptionHandler.cc
  8388. * src/OptionHandler.h
  8389. * src/OptionHandlerFactory.cc
  8390. * src/OptionHandlerImpl.h
  8391. * src/OptionParser.cc
  8392. * src/OptionParser.h
  8393. * src/TagContainer.cc: Removed.
  8394. * src/TagContainer.h: Removed.
  8395. * src/TaggedItem.cc: Removed.
  8396. * src/TaggedItem.h: Removed.
  8397. * src/main.cc
  8398. * src/option_processing.cc
  8399. * src/usage_text.h
  8400. * src/version_usage.cc
  8401. * test/HelpItemTest.cc: Removed.
  8402. * test/Makefile.am
  8403. * test/Makefile.in
  8404. * test/OptionHandlerTest.cc
  8405. * test/OptionParserTest.cc
  8406. * test/TagContainerTest.cc: Removed.
  8407. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8408. Moved `TransferStat stat = ...' to inside the `if' clause.
  8409. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  8410. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8411. Fixed the bug that a block in a piece is requested when same block is
  8412. already requested to the same peer in end game mode.
  8413. * src/BtRequestFactory.h
  8414. * src/DefaultBtInteractive.cc
  8415. * src/DefaultBtRequestFactory.cc
  8416. * src/DefaultBtRequestFactory.h
  8417. * src/DefaultPieceStorage.cc
  8418. * src/DefaultPieceStorage.h
  8419. * src/PieceStorage.h
  8420. * src/UnknownLengthPieceStorage.cc
  8421. * src/UnknownLengthPieceStorage.h
  8422. * test/DefaultBtRequestFactoryTest.cc
  8423. * test/DefaultPieceStorageTest.cc
  8424. * test/MockBtRequestFactory.h
  8425. * test/MockPieceStorage.h
  8426. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8427. Removed _uploadLength and _downloadLength from PeerSessionResource
  8428. and use PeerStat::_sessionUploadLength and
  8429. PeerStat::_sessionDownloadLength.
  8430. * src/PeerSessionResource.cc
  8431. * src/PeerSessionResource.h
  8432. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8433. Fixed the bug that prefixLength of split bucket which doesn't include
  8434. local node ID is incremented.
  8435. * src/DHTBucket.cc
  8436. * src/DHTBucket.h
  8437. * test/DHTBucketTest.cc
  8438. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8439. Added cookies.sqlite to EXTRA_DIST
  8440. * test/Makefile.am
  8441. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8442. Added Turkish translation. Updated French, German, Russian and
  8443. Simplified Chinese translations. Thanks to all translators.
  8444. * po/LINGUAS
  8445. * po/de.po
  8446. * po/fr.po
  8447. * po/ru.po
  8448. * po/tr.po
  8449. * po/zh_CN.po
  8450. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8451. Added deliminating text to the beginning of the log so that one can find
  8452. where the log starts easily.
  8453. * src/main.cc
  8454. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8455. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  8456. to fix compile error when async DNS is not enabled by configuration.
  8457. * src/AbstractCommand.cc
  8458. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8459. If establishing conneciton to a server is failed, then mark error on
  8460. its ServerStat.
  8461. Added the cause of error to log when error event occurred.
  8462. Moved message string to message.h for translation.
  8463. * src/AbstractCommand.cc
  8464. * src/AbstractCommand.h
  8465. * src/FtpNegotiationCommand.cc
  8466. * src/HttpRequestCommand.cc
  8467. * src/PeerAbstractCommand.cc
  8468. * src/message.h
  8469. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8470. Added the function to get error message from socket.
  8471. * src/SocketCore.cc
  8472. * src/SocketCore.h
  8473. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8474. Added convenient method RequestGroupMan::getOrCreateServerStat()
  8475. * src/RequestGroupMan.cc
  8476. * src/RequestGroupMan.h
  8477. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8478. If error event is received in epoll, then abort download immediately.
  8479. * src/AbstractCommand.cc
  8480. * src/Command.cc
  8481. * src/Command.h
  8482. * src/DownloadEngine.cc
  8483. * src/PeerAbstractCommand.cc
  8484. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8485. Added usage message for --uri-selector, --server-stat-of,
  8486. --server-stat-in, --server-stat-timeout options.
  8487. * src/HelpItemFactory.cc
  8488. * src/usage_text.h
  8489. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8490. Added upper limit of FTP response buffer. The current implementation
  8491. uses 4096bytes as a limit.
  8492. * src/FtpConnection.cc
  8493. * src/FtpConnection.h
  8494. * test/FtpConnectionTest.cc
  8495. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8496. Use non-blocking socket for TCP communication to avoid possible
  8497. blocking due to buffer full.
  8498. * src/AbstractProxyRequestCommand.cc
  8499. * src/FtpConnection.cc
  8500. * src/FtpConnection.h
  8501. * src/FtpNegotiationCommand.cc
  8502. * src/FtpNegotiationCommand.h
  8503. * src/HttpConnection.cc
  8504. * src/HttpConnection.h
  8505. * src/HttpRequestCommand.cc
  8506. * src/InitiatorMSEHandshakeCommand.cc
  8507. * src/InitiatorMSEHandshakeCommand.h
  8508. * src/MSEHandshake.cc
  8509. * src/MSEHandshake.h
  8510. * src/Makefile.am
  8511. * src/PeerConnection.cc
  8512. * src/PeerConnection.h
  8513. * src/PeerInteractionCommand.cc
  8514. * src/PeerListenCommand.cc
  8515. * src/ReceiverMSEHandshakeCommand.cc
  8516. * src/ReceiverMSEHandshakeCommand.h
  8517. * src/SocketBuffer.cc
  8518. * src/SocketBuffer.h
  8519. * src/SocketCore.cc
  8520. * src/SocketCore.h
  8521. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8522. Call setStatusRealtime() in constructor.
  8523. * src/RealtimeCommand.cc
  8524. * src/RealtimeCommand.h
  8525. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8526. Call Download::setNoWait(true) to execute newly created command without
  8527. a pause.
  8528. * src/AbstractCommand.cc
  8529. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8530. Added --max-file-not-found=NUM option. If aria2 receives `file not
  8531. found' error from HTTP/FTP server NUM times without getting single
  8532. bytes of data, then force the download to fail.
  8533. Basically aria2 tris all URIs available. So if long list of URIs are
  8534. specified in Metalink, then aria2 will take a long time to fail
  8535. eventually if all URIs are outdated. This option eases this situation
  8536. to limit the number of servers to try.
  8537. * src/FtpNegotiationCommand.cc
  8538. * src/HelpItemFactory.cc
  8539. * src/HttpResponseCommand.cc
  8540. * src/OptionHandlerFactory.cc
  8541. * src/PeerStat.h
  8542. * src/RequestGroup.cc
  8543. * src/RequestGroup.h
  8544. * src/SegmentMan.cc
  8545. * src/SegmentMan.h
  8546. * src/option_processing.cc
  8547. * src/prefs.cc
  8548. * src/prefs.h
  8549. * src/usage_text.h
  8550. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8551. Fixed the bug that bulkReceiveResponse() reads all received data as a
  8552. response even if more than one response is in it.
  8553. * src/FtpConnection.cc
  8554. * src/FtpConnection.h
  8555. * test/FtpConnectionTest.cc
  8556. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8557. Merged from stable-0.15
  8558. * m4/libcares.m4
  8559. Use pkg-config
  8560. * m4/sqlite3.m4
  8561. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8562. Removed unnecessary if statement.
  8563. * src/DefaultPieceStorage.cc (initPieceStorage)
  8564. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8565. Added --connect-timeout option to specify connect timeout in seconds.
  8566. This option is in effect for HTTP/FTP/proxy server. The timeout for
  8567. connecting to BitTorrent peer is not controlled by this option.
  8568. * src/AbstractProxyRequestCommand.cc
  8569. * src/FtpNegotiationCommand.cc
  8570. * src/HelpItemFactory.cc
  8571. * src/HttpRequestCommand.cc
  8572. * src/OptionHandlerFactory.cc
  8573. * src/option_processing.cc
  8574. * src/prefs.cc
  8575. * src/prefs.h
  8576. * src/usage_text.h
  8577. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8578. Added help message for -R option.
  8579. * src/HelpItemFactory.cc
  8580. * src/usage_text.h
  8581. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8582. Added the message that the time is in local time zone.
  8583. * src/RequestGroup.cc
  8584. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8585. Implemented the ability to get timestamp from remote FTP server using
  8586. MDTM command described in RFC3659.
  8587. * src/FtpConnection.cc
  8588. * src/FtpConnection.h
  8589. * src/FtpNegotiationCommand.cc
  8590. * src/FtpNegotiationCommand.h
  8591. * test/FtpConnectionTest.cc
  8592. * test/Makefile.am
  8593. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8594. Implemented the ability to get timestamp from remote HTTP server and
  8595. apply it to local file. To enable this feature, --remote-time option
  8596. is added. No usage text has been written yet.
  8597. If several servers returns difference timestamp, then aria2 uses latest
  8598. one.
  8599. * src/CopyDiskAdaptor.cc
  8600. * src/CopyDiskAdaptor.h
  8601. * src/DirectDiskAdaptor.cc
  8602. * src/DirectDiskAdaptor.h
  8603. * src/DiskAdaptor.h
  8604. * src/File.cc
  8605. * src/File.h
  8606. * src/HttpHeader.cc
  8607. * src/HttpHeader.h
  8608. * src/HttpResponse.cc
  8609. * src/HttpResponse.h
  8610. * src/HttpResponseCommand.cc
  8611. * src/HttpResponseCommand.h
  8612. * src/MultiDiskAdaptor.cc
  8613. * src/MultiDiskAdaptor.h
  8614. * src/OptionHandlerFactory.cc
  8615. * src/RequestGroup.cc
  8616. * src/RequestGroup.h
  8617. * src/RequestGroupMan.cc
  8618. * src/option_processing.cc
  8619. * src/prefs.cc
  8620. * src/prefs.h
  8621. * test/CopyDiskAdaptorTest.cc
  8622. * test/FileTest.cc
  8623. * test/Makefile.am
  8624. * test/Makefile.in
  8625. * test/MultiDiskAdaptorTest.cc
  8626. * test/TestUtil.cc
  8627. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8628. Fixed the bug that DiskWriterEntry is not created when its
  8629. FileEntry.isRequested() is false and it doesn't share a piece with
  8630. other FileEntries that are requested. This bug causes segmentation fault
  8631. in the end.
  8632. * src/MultiDiskAdaptor.cc
  8633. * src/MultiDiskAdaptor.h
  8634. * src/MultiFileAllocationIterator.cc
  8635. * test/MultiDiskAdaptorTest.cc
  8636. * test/MultiFileAllocationIteratorTest.cc
  8637. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8638. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  8639. called if the number of file entries are greater than max open files.
  8640. * src/AbstractSingleDiskAdaptor.cc
  8641. * src/AbstractSingleDiskAdaptor.h
  8642. * src/DiskAdaptor.h
  8643. * src/MultiDiskAdaptor.cc
  8644. * src/MultiDiskAdaptor.h
  8645. * test/MultiDiskAdaptorTest.cc
  8646. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8647. Added a constuctor that receives struct timeval.
  8648. Added operator<.
  8649. * src/TimeA2.cc
  8650. * src/TimeA2.h
  8651. * test/TimeTest.cc
  8652. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8653. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  8654. * src/CookieParser.cc
  8655. * test/CookieParserTest.cc
  8656. * test/HttpResponseTest.cc
  8657. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8658. Implmented the functions to parse date.
  8659. * src/TimeA2.cc
  8660. * src/TimeA2.h
  8661. * test/TimeTest.cc
  8662. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8663. Added "Firefox3 Cookie" feature to FeatureConfig
  8664. * src/FeatureConfig.cc
  8665. * src/FeatureConfig.h
  8666. * test/FeatureConfigTest.cc
  8667. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8668. Bump up version number to 0.16.0b
  8669. * configure.ac
  8670. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8671. Use pkg-config if is is available.
  8672. * m4/openssl.m4
  8673. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8674. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  8675. * src/BtAnnounce.h
  8676. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8677. If an error occurred with a URI, remove identical URI from remaining
  8678. URI list because it is likely that same error occurred in the end and it
  8679. is waste of time.
  8680. * src/AbstractCommand.cc
  8681. * src/RequestGroup.cc
  8682. * src/RequestGroup.h
  8683. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8684. Removed wrong comment.
  8685. * src/DefaultPeerStorage.cc
  8686. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8687. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  8688. Added return value of getpid() to argument of srand() to achieve more
  8689. randomized value.
  8690. * src/SimpleRandomizer.cc
  8691. * src/SimpleRandomizer.h
  8692. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8693. Contact tracker frequently when the number of connections are 0 and
  8694. download is not finished yet.
  8695. * src/ActivePeerConnectionCommand.cc
  8696. * src/BtAnnounce.h
  8697. * src/DefaultBtAnnounce.cc
  8698. * src/DefaultBtAnnounce.h
  8699. * test/MockBtAnnounce.h
  8700. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8701. Moved threshold values to UTPexExtensionMessage.
  8702. * src/DefaultBtInteractive.cc
  8703. * src/Peer.cc
  8704. * src/Peer.h
  8705. * src/UTPexExtensionMessage.cc
  8706. * src/UTPexExtensionMessage.h
  8707. * test/UTPexExtensionMessageTest.cc
  8708. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8709. Added _incoming member to Peer class and made it true if the peer
  8710. initiated connection. Don't add those peer to UTPex message.
  8711. If extended handshake is received, assign _incoming to false.
  8712. * src/DefaultBtInteractive.cc
  8713. * src/HandshakeExtensionMessage.cc
  8714. * src/Peer.cc
  8715. * src/Peer.h
  8716. * src/PeerListenCommand.cc
  8717. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8718. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  8719. Encoding Decoder. Removed size threshold for turning off on the fly
  8720. inflation because resulting file may or may not be inflated depending
  8721. on the file size and I think it is not expected by users.
  8722. This change fixes segmentation fault when Metalink file contains gzipped
  8723. file and its filesize is provided.
  8724. * src/HttpResponseCommand.cc
  8725. * src/HttpResponseCommand.h
  8726. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8727. Made Cookie immutable.
  8728. * src/Cookie.cc
  8729. * src/Cookie.h
  8730. * src/CookieParser.cc
  8731. * src/CookieParser.h
  8732. * src/CookieStorage.cc
  8733. * test/CookieParserTest.cc
  8734. * test/CookieStorageTest.cc
  8735. * test/NsCookieParserTest.cc
  8736. * test/Sqlite3MozCookieParserTest.cc
  8737. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8738. Removed CookieBox, CookieBoxFactory.
  8739. * src/CookieBox.cc
  8740. * src/CookieBox.h
  8741. * src/CookieBoxFactory.cc
  8742. * src/CookieBoxFactory.h
  8743. * src/Makefile.am
  8744. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8745. Use CookieStorage class instead of CookieBox class.
  8746. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  8747. * src/AbstractProxyRequestCommand.cc
  8748. * src/CookieStorage.cc
  8749. * src/DownloadEngine.cc
  8750. * src/DownloadEngine.h
  8751. * src/HttpConnection.cc
  8752. * src/HttpConnection.h
  8753. * src/HttpRequest.cc
  8754. * src/HttpRequest.h
  8755. * src/HttpRequestCommand.cc
  8756. * src/HttpResponse.cc
  8757. * src/HttpResponseCommand.cc
  8758. * src/HttpSkipResponseCommand.cc
  8759. * src/Makefile.am
  8760. * src/MultiUrlRequestInfo.cc
  8761. * src/Request.cc
  8762. * src/Request.h
  8763. * src/main.cc
  8764. * test/AllTest.cc
  8765. * test/CookieStorageTest.cc
  8766. * test/CookieTest.cc
  8767. * test/HttpRequestTest.cc
  8768. * test/HttpResponseTest.cc
  8769. * test/Makefile.am
  8770. * test/NsCookieParserTest.cc
  8771. * test/Sqlite3MozCookieParserTest.cc
  8772. * test/nscookietest.txt
  8773. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8774. Updated
  8775. * test/Cookies.sqlite
  8776. * test/nscookietest.txt
  8777. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8778. Added tests for CookieStorage::load()
  8779. * test/CookieStorageTest.cc
  8780. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8781. Added CookieStorage class which is based on RFC2109 and manages cookies
  8782. more strictly than CookieBox and CookieBoxFactory class.
  8783. * src/CookieStorage.cc
  8784. * src/CookieStorage.h
  8785. * src/Cookie.cc
  8786. * src/Cookie.h
  8787. * test/CookieStorageTest.cc
  8788. * test/CookieTest.cc
  8789. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8790. Fixed the bug that commands are created more than the number of pieces.
  8791. * src/RequestGroup.cc
  8792. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8793. Fixed infinite loop bug in FTP when SIZE command failed.
  8794. * src/FtpNegotiationCommand.cc
  8795. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8796. Removed DirectDiskAdaptorTest.h
  8797. * test/Makefile.am
  8798. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8799. Fixed chunk checksum validation cannot detect trailing garbage data.
  8800. BUG#2074141
  8801. * src/AbstractSingleDiskAdaptor.cc
  8802. * src/AbstractSingleDiskAdaptor.h
  8803. * src/CheckIntegrityEntry.cc
  8804. * src/CheckIntegrityEntry.h
  8805. * src/DiskAdaptor.h
  8806. * src/MultiDiskAdaptor.cc
  8807. * src/MultiDiskAdaptor.h
  8808. * src/RequestGroup.cc
  8809. * test/DirectDiskAdaptorTest.cc
  8810. * test/MultiDiskAdaptorTest.cc
  8811. * test/TestUtil.cc
  8812. * test/TestUtil.h
  8813. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8814. Bump up version number of dht.dat file to 3. In version 3 format, time
  8815. is stored in 64bit, network byte order.
  8816. New build can load old format(version 2) but it saves the file in new
  8817. format. It means once you used new build, your dht.dat becomes
  8818. incompatible with older build.
  8819. * src/DHTRoutingTableDeserializer.cc
  8820. * src/DHTRoutingTableSerializer.cc
  8821. * test/DHTRoutingTableSerializerTest.cc
  8822. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8823. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  8824. * test/Makefile.am
  8825. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8826. Bump up version number of .aria2 control file to 0001.
  8827. New aria2 can still load version 0000 file but it saves the file in
  8828. version 0001 format. It means that new aria2 can resume download
  8829. started by old aria2 but the opposite is not true.
  8830. * src/DefaultBtProgressInfoFile.cc
  8831. * src/DefaultBtProgressInfoFile.h
  8832. * test/DefaultBtProgressInfoFileTest.cc
  8833. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8834. Added ntoh64 and hton64 as inline functions.
  8835. * src/Util.cc
  8836. * test/UtilTest.cc
  8837. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8838. Added sqlite3 depenency and Firefox3 cookie support.
  8839. * README
  8840. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8841. State that firefox3 cookie is supported explicitly in the usage.
  8842. * src/usage_text.h
  8843. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8844. Externalized message.
  8845. * src/RequestGroupMan.cc
  8846. * src/message.h
  8847. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8848. Save temporary file first and rename to the destination on success.
  8849. Added test cases.
  8850. * src/RequestGroupMan.cc
  8851. * test/RequestGroupManTest.cc
  8852. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8853. Fixed the bug that the number of connected peer is exceeding the limit
  8854. (55 by default) in seeding mode.
  8855. Multiplied 0.8 to _maxUploadSpeedLimit.
  8856. * src/ActivePeerConnectionCommand.cc
  8857. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8858. Clear table item.
  8859. * src/Dictionary.cc
  8860. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8861. Fixed error handling of lseek.
  8862. * src/AbstractDiskWriter.cc
  8863. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8864. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  8865. style cookie file.
  8866. * src/usage_text.h
  8867. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8868. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  8869. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  8870. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  8871. * src/Util.cc
  8872. * src/Util.h
  8873. * src/CookieParser.cc
  8874. * test/UtilTest.cc
  8875. * test/CookieParserTest.cc
  8876. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8877. Separate the implementation to load old mozilla format of cookie to
  8878. NsCookieParser class.
  8879. * src/CookieBoxFactory.cc
  8880. * src/CookieBoxFactory.h
  8881. * src/NsCookieParser.cc
  8882. * src/NsCookieParser.h
  8883. * test/NsCookieParserTest.cc
  8884. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8885. Made parse() const
  8886. * src/Sqlite3MozCookieParser.cc
  8887. * src/Sqlite3MozCookieParser.h
  8888. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8889. Added firefox3 cookie support based on the patch submitted by
  8890. tizianomueller.
  8891. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  8892. this functionality.
  8893. * configure.ac
  8894. * m4/sqlite3.m4
  8895. * src/CookieBoxFactory.cc
  8896. * src/CookieBoxFactory.h
  8897. * src/Makefile.am
  8898. * src/Makefile.in
  8899. * src/Sqlite3MozCookieParser.cc
  8900. * src/Sqlite3MozCookieParser.h
  8901. * src/main.cc
  8902. * test/CookieBoxFactoryTest.cc
  8903. * test/Makefile.am
  8904. * test/Makefile.in
  8905. * test/Sqlite3MozCookieParserTest.cc
  8906. * test/badcookies.sqlite
  8907. * test/cookies.sqlite
  8908. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8909. Added Danish and Greek translations.
  8910. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  8911. Great thanks to all translators.
  8912. * po/LINGUAS
  8913. * po/el.po
  8914. * po/da.po
  8915. * po/es.po
  8916. * po/ca.po
  8917. * po/nn.po
  8918. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8919. Fixed man page: --follow-bittorrent should be --follow-torrent
  8920. * doc/aria2c.1.txt
  8921. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8922. Fixed: numCommand is less than the value specified in -C option.
  8923. * src/RequestGroup.cc
  8924. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8925. Fixed occasional assertion failure in PieceSegment.
  8926. Calling PieceStorage::getMissingPiece(size_t) was missing after
  8927. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  8928. creation of duplicate segments and one of the segment was finished then
  8929. assertion failure was caused.
  8930. * src/SegmentMan.cc
  8931. * test/SegmentManTest.cc
  8932. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8933. Added options to load/save the server's performance/status to a file
  8934. and the timeout to drop their data.
  8935. --server-stat-of=FILE specifies the file to which performance data
  8936. is saved.
  8937. --server-stat-if=FILE specifies the file to read previously saved
  8938. by --server-stat-of option. Might be used with --uri-selector=feedback.
  8939. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  8940. TIMEOUT is specified in seconds and the default value is 24hours.
  8941. * src/MultiUrlRequestInfo.cc
  8942. * src/OptionHandlerFactory.cc
  8943. * src/RequestGroupMan.cc
  8944. * src/RequestGroupMan.h
  8945. * src/ServerStatMan.cc
  8946. * src/ServerStatMan.h
  8947. * src/option_processing.cc
  8948. * src/prefs.cc
  8949. * src/prefs.h
  8950. * test/ServerStatManTest.cc
  8951. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8952. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  8953. * src/ServerStatMan.cc
  8954. * src/ServerStatMan.h
  8955. * test/ServerStatManTest.cc
  8956. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8957. Implemented ServerStatMan::load(...) function and its test case.
  8958. * src/ServerStat.cc
  8959. * src/ServerStat.h
  8960. * src/ServerStatMan.cc
  8961. * test/ServerStatManTest.cc
  8962. * test/ServerStatTest.cc
  8963. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8964. Use time_t instead of int32_t. Use int64_t where milli second is
  8965. expected.
  8966. * src/TimeA2.cc
  8967. * src/TimeA2.h
  8968. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8969. Implemented ServerStatMan::save(...) function and its test case.
  8970. * src/ServerStat.cc
  8971. * src/ServerStat.h
  8972. * src/ServerStatMan.cc
  8973. * src/ServerStatMan.h
  8974. * test/ServerStatManTest.cc
  8975. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8976. Now aria2 uses name attribute in Metalink as local filename in
  8977. BitTorrent downloads. BUG#2033999
  8978. * src/BtContext.h
  8979. * src/BtDependency.cc
  8980. * src/DefaultBtContext.cc
  8981. * src/DefaultBtContext.h
  8982. * src/SingleFileDownloadContext.cc
  8983. * src/SingleFileDownloadContext.h
  8984. * test/BtDependencyTest.cc
  8985. * test/DefaultBtContextTest.cc
  8986. * test/MockBtContext.h
  8987. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8988. Added AC_C_BIGENDIAN
  8989. * src/configure.ac
  8990. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8991. Limited numCommand less than or equal to the number of piece.
  8992. * src/RequestGroup.cc
  8993. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8994. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  8995. directive.
  8996. * test/DefaultPieceStorageTest.cc
  8997. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8998. Fixed memory leak in test code
  8999. * test/AnnounceListTest.cc
  9000. * test/DefaultPeerListProcessorTest.cc
  9001. * test/DefaultPeerStorageTest.cc
  9002. * test/MetaFileUtilTest.cc
  9003. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9004. Fixed wrong argument passing to BitfieldMan::isBitSet()
  9005. * src/DefaultPieceStorage.cc
  9006. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9007. Initialized _directIOAllowed
  9008. * src/MultiDiskAdaptor.cc
  9009. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9010. Fixed memory leak
  9011. * src/GZipDecoder.cc
  9012. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9013. Fixed memory leak
  9014. * src/MetalinkParserStateMachine.cc
  9015. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9016. Fixed memory leak
  9017. * src/Dictionary.cc
  9018. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9019. Fixed memory leak
  9020. * src/IteratableChunkChecksumValidator.h
  9021. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9022. Fixed unmatched malloc/free.
  9023. * src/IteratableChunkChecksumValidator.cc
  9024. * src/IteratableChecksumValidator.cc
  9025. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9026. Removed max chunk size check. This change fixes BUG#2040169
  9027. * src/ChunkedDecoder.cc
  9028. * src/ChunkedDecoder.h
  9029. * test/ChunkedDecoderTest.cc
  9030. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9031. Implemented download speed based URI selection algorithm.
  9032. Introduced new option --uri-selector.
  9033. If --uri-selector=feedback is given, aria2 uses download speed observed
  9034. in the previous downloads and chooses fastest server in the URI list.
  9035. Currently at most 10 URIs are considered to introduce randomeness for
  9036. finding better servers. The speed is average download speed in the
  9037. downloads.
  9038. On the other hand, if --uri-selector=inorder is given, which is default,
  9039. URI is tried in order in URI list.
  9040. The usage text for the new option has not been written yet.
  9041. * src/AbstractCommand.cc
  9042. * src/DownloadCommand.cc
  9043. * src/DownloadEngine.cc
  9044. * src/DownloadEngineFactory.cc
  9045. * src/InOrderURISelector.cc
  9046. * src/InOrderURISelector.h
  9047. * src/OptionHandlerFactory.cc
  9048. * src/PeerStat.h
  9049. * src/RequestGroup.cc
  9050. * src/RequestGroup.h
  9051. * src/RequestGroupMan.cc
  9052. * src/RequestGroupMan.h
  9053. * src/SegmentMan.cc
  9054. * src/SegmentMan.h
  9055. * src/ServerStat.cc
  9056. * src/ServerStat.h
  9057. * src/ServerStatMan.cc
  9058. * src/ServerStatMan.h
  9059. * src/ServerStatURISelector.cc
  9060. * src/ServerStatURISelector.h
  9061. * src/URISelector.h
  9062. * src/option_processing.cc
  9063. * src/prefs.cc
  9064. * src/prefs.h
  9065. * test/InOrderURISelectorTest.cc
  9066. * test/RequestGroupManTest.cc
  9067. * test/ServerStatManTest.cc
  9068. * test/ServerStatURISelectorTest.cc
  9069. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9070. * Release 0.15.1+2
  9071. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9072. Bump up version number to 0.15.1+2
  9073. * configure.ac
  9074. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9075. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  9076. * m4/aria2_arg.m4
  9077. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9078. * Release 0.15.1+1
  9079. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9080. Bump up version number to 0.15.1+1
  9081. * configure.ac
  9082. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9083. Fixed the bug that causes segmentaion fault when resuming download
  9084. using metalink without size tag. Reproducible only using HTTP URI.
  9085. * src/HttpResponseCommand.cc
  9086. * src/FtpNegotiationCommand.cc
  9087. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9088. * Release 0.15.1
  9089. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9090. Updated Bulgarian and French translations, thanks to all translators.
  9091. * po/bg.po
  9092. * po/fr.po
  9093. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9094. Bump up version number to 0.15.1
  9095. * configure.ac
  9096. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9097. Avoid repeated call of gettimeofday() when calculating speed.
  9098. * src/SpeedCalc.cc
  9099. * src/SpeedCalc.h
  9100. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9101. Removed writable check when socket's send buffer is full in BitTorrent
  9102. downloads to lower CPU usage.
  9103. * src/PeerInteractionCommand.cc
  9104. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9105. Fixed broken gzip inflation.
  9106. Turn off segmented downloading if gzip content is smaller than or equal
  9107. to 1MiB and inflate the data on the fly, because HTTP response header
  9108. doesn't contain the length of inflated file we can't determin where
  9109. the chunk of data should be written.
  9110. On the other hand, if gzip content is larger than 1MB, then turn off
  9111. on the fly inflation, because some servers returns "content-type: gzip"
  9112. for *.tgz, *.gz files.
  9113. * src/DownloadCommand.cc
  9114. * src/HttpResponseCommand.cc
  9115. * src/HttpResponseCommand.h
  9116. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9117. Applied tizianomueller's patch to fix compile error.
  9118. * test/BitfieldManTest.cc
  9119. * test/BtRequestMessageTest.cc
  9120. * test/DefaultBtContextTest.cc
  9121. * test/DefaultDiskWriterTest.cc
  9122. * test/DefaultPieceStorageTest.cc
  9123. * test/HttpHeaderProcessorTest.cc
  9124. * test/HttpResponseTest.cc
  9125. * test/Metalink2RequestGroupTest.cc
  9126. * test/MetalinkParserControllerTest.cc
  9127. * test/MetalinkProcessorTest.cc
  9128. * test/PeerSessionResourceTest.cc
  9129. * test/UtilTest.cc
  9130. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9131. * Release 0.15.0
  9132. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9133. Reordered src files in POTFILES.in so that usage text appears first.
  9134. * po/POTFILES.in
  9135. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9136. Bump up version number to 0.15.0
  9137. * configure.ac
  9138. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9139. Added Bulgarian translation.
  9140. Updated Catalan, Spanish, French and Japanese translations.
  9141. Thanks to all translators.
  9142. * po/LINGUAS
  9143. * po/bg.po
  9144. * po/ca.po
  9145. * po/es.po
  9146. * po/fr.po
  9147. * po/ja.po
  9148. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9149. Updated feature list. Added libz for dependency section.
  9150. Added a description about unit testing using CppUnit.
  9151. * README
  9152. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9153. Added a test for libz. Quoted where it is necessary.
  9154. * build_test.sh
  9155. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9156. Added GZip to `Enabled Features' list.
  9157. * src/FeatureConfig.cc
  9158. * src/FeatureConfig.h
  9159. * test/FeatureConfigTest.cc
  9160. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9161. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  9162. the transfer has not yet started.
  9163. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  9164. * src/SegmentMan.cc
  9165. * src/SegmentMan.h
  9166. * test/SegmentManTest.cc
  9167. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9168. Cache last calculated average download/upload speed.
  9169. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  9170. cached value.
  9171. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  9172. * src/PeerStat.h
  9173. * src/SpeedCalc.cc
  9174. * src/SpeedCalc.h
  9175. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9176. Call parseUrl directly.
  9177. * src/Request.cc (resetUrl)
  9178. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9179. Supported absolute/relative path in Location header field.
  9180. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  9181. * src/HttpHeader.cc
  9182. * src/HttpHeader.h
  9183. * src/HttpResponse.cc
  9184. * src/HttpSkipResponseCommand.cc
  9185. * src/Request.cc
  9186. * test/HttpHeaderTest.cc
  9187. * test/HttpResponseTest.cc
  9188. * test/RequestTest.cc
  9189. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9190. Changed help text for --load-cookie option.
  9191. * doc/aria2c.1.txt
  9192. * src/usage_text.h
  9193. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9194. Regenerated test/Makefile.in to remove stale ChangeLog.
  9195. * test/Makefile.in
  9196. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9197. Updated po files.
  9198. * po/aria2c.pot
  9199. * po/*.po
  9200. * po/*.gmo
  9201. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9202. Bump up version number to 0.15.0b
  9203. * configure.ac
  9204. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9205. Externalize messages.
  9206. * src/RequestGroupMan.cc
  9207. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  9208. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9209. Use File::exists() instead of File::isFile() to allow non-regular file
  9210. such as block special files.
  9211. * src/AbstractDiskWriter.cc
  9212. * src/MultiDiskWriter.cc
  9213. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9214. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  9215. * src/gai_strerror.h
  9216. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9217. Fixed compile error. Thanks gknauf for the patch.
  9218. * src/asctime_r.c
  9219. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9220. Included asctime_r.h from a2time.h.
  9221. * src/a2time.h
  9222. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9223. Added a message "aria2 doesn't verify signature" to log message when
  9224. signature file is saved.
  9225. * src/RequestGroupMan.cc
  9226. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9227. Added the ability to save signature when download is completed if
  9228. signature is available. The filename of signature file is the path to
  9229. download file followed by ".sig". If it already exists, then signature
  9230. will not be saved.
  9231. * src/RequestGroupMan.cc
  9232. * src/Signature.cc
  9233. * test/SignatureTest.cc
  9234. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9235. Updated the descriptions for --bt-seed-unverified.
  9236. * doc/aria2c.1
  9237. * doc/aria2c.1.html
  9238. * doc/aria2c.1.txt
  9239. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9240. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  9241. that this is not going to verify files using piece hashes.
  9242. * src/HelpItemFactory.cc
  9243. * src/OptionHandlerFactory.cc
  9244. * src/RequestGroup.cc
  9245. * src/option_processing.cc
  9246. * src/prefs.cc
  9247. * src/prefs.h
  9248. * src/usage_text.h
  9249. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9250. Added the ability to retrieve signature from Metalink file.
  9251. A retrieved signature is stored in Signature class and it is held by
  9252. DownloadContext class. Note that aria2 doesn't verify signature.
  9253. * src/DownloadContext.cc
  9254. * src/DownloadContext.h
  9255. * src/Makefile.am
  9256. * src/Makefile.in
  9257. * src/Metalink2RequestGroup.cc
  9258. * src/MetalinkEntry.cc
  9259. * src/MetalinkEntry.h
  9260. * src/MetalinkParserController.cc
  9261. * src/MetalinkParserController.h
  9262. * src/MetalinkParserStateMachine.cc
  9263. * src/MetalinkParserStateMachine.h
  9264. * src/Signature.cc
  9265. * src/Signature.h
  9266. * src/SignatureMetalinkParserState.cc
  9267. * src/SignatureMetalinkParserState.h
  9268. * src/VerificationMetalinkParserState.cc
  9269. * src/VerificationMetalinkParserState.h
  9270. * test/Metalink2RequestGroupTest.cc
  9271. * test/MetalinkParserControllerTest.cc
  9272. * test/MetalinkProcessorTest.cc
  9273. * test/test.xml
  9274. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9275. Close DiskAdaptor after renaming file.
  9276. * src/RequestGroup.cc
  9277. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9278. Corrected indentation
  9279. * src/DefaultBtProgressInfoFile.cc
  9280. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9281. Moved the calls of std::ios::exceptions() inside of try-catch block
  9282. because if an error occurred in constructor of std::fstream, then
  9283. exception is thrown immediately when std::ios::exceptions() is called
  9284. which results unhandled exception and aria2c aborts.
  9285. * src/DefaultBtProgressInfoFile.cc
  9286. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9287. Added the test for the previous change in DefaultBtContext.cc
  9288. * test/DefaultBtContextTest.cc
  9289. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9290. Fixed the bug that causes infinite loop when the number of pieces are
  9291. fewer than allowed fast set size which is 10 by default.
  9292. * src/DefaultBtContext.cc
  9293. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9294. Updated the descriptions for -j, -s. Added --bt-seed.
  9295. * doc/aria2c.1
  9296. * doc/aria2c.1.html
  9297. * doc/aria2c.1.txt
  9298. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9299. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  9300. aria2 seeds previously downloaded files without validating piece hashs.
  9301. * src/HelpItemFactory.cc
  9302. * src/OptionHandlerFactory.cc
  9303. * src/RequestGroup.cc
  9304. * src/option_processing.cc
  9305. * src/prefs.cc
  9306. * src/prefs.h
  9307. * src/usage_text.h
  9308. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9309. Updated DESCRIPTION of man page.
  9310. * doc/aria2c.1
  9311. * doc/aria2c.1.html
  9312. * doc/aria2c.1.txt
  9313. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9314. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  9315. Don't define `struct addrinfo' when __sun is defined.
  9316. * src/getaddrinfo.h
  9317. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9318. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  9319. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  9320. second argument is of type `struct _stati64'. Otherwise it is defined as
  9321. `struct stat'.
  9322. * src/AbstractDiskWriter.cc
  9323. * src/File.cc
  9324. * src/File.h
  9325. * src/a2io.h
  9326. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9327. Fixed the compile error in hurd-i386
  9328. See the original bug report:
  9329. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  9330. * src/a2io.h
  9331. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9332. Code cleanup.
  9333. * src/PeerAbstractCommand.cc
  9334. * src/PeerAbstractCommand.h
  9335. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9336. Removed TransferEncoding.
  9337. * src/DownloadCommand.cc
  9338. * src/DownloadCommand.h
  9339. * src/HttpResponseCommand.cc
  9340. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9341. Updated po files.
  9342. * po/aria2c.pot
  9343. * po/*.po
  9344. * po/*.gmo
  9345. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9346. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  9347. * src/A2STR.cc
  9348. * src/A2STR.h
  9349. * src/ChunkedDecoder.cc
  9350. * src/ChunkedDecoder.h
  9351. * src/ChunkedEncoding.cc: Removed
  9352. * src/ChunkedEncoding.h: Removed
  9353. * src/DownloadCommand.cc
  9354. * src/DownloadCommand.h
  9355. * src/HttpDownloadCommand.cc
  9356. * src/HttpResponse.cc
  9357. * src/HttpResponse.h
  9358. * src/HttpResponseCommand.cc
  9359. * src/HttpSkipResponseCommand.cc
  9360. * src/HttpSkipResponseCommand.h
  9361. * src/Makefile.am
  9362. * src/TransferEncoding.h: Removed
  9363. * test/ChunkedDecoderTest.cc
  9364. * test/ChunkedEncodingTest.cc: Removed
  9365. * test/HttpResponseTest.cc
  9366. * test/Makefile.am
  9367. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9368. Use append instead of insert.
  9369. * src/GZipDecoder.cc
  9370. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9371. Updated doc
  9372. * src/Decoder.h
  9373. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9374. Updated usage text for -s option.
  9375. * src/usage_text.h
  9376. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9377. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  9378. * src/Request.cc
  9379. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9380. Cleaned up configure.ac.
  9381. * configure.ac
  9382. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9383. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  9384. AC_ARG_ENABLE.
  9385. * configure.ac
  9386. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9387. Added gzip, deflate decoding support in HTTP using libz. If compiled
  9388. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  9389. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  9390. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  9391. fly and writes decoded data to a local disk.
  9392. * README
  9393. * README.html
  9394. * configure.ac
  9395. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  9396. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  9397. * m4/libz.m4
  9398. * src/Decoder.h
  9399. * src/DownloadCommand.cc
  9400. * src/DownloadCommand.h
  9401. * src/Exception.h
  9402. * src/GZipDecoder.cc
  9403. * src/GZipDecoder.h
  9404. * src/HttpHeader.cc
  9405. * src/HttpHeader.h
  9406. * src/HttpRequest.cc
  9407. * src/HttpRequest.h
  9408. * src/HttpResponse.cc
  9409. * src/HttpResponse.h
  9410. * src/HttpResponseCommand.cc
  9411. * src/Makefile.am
  9412. * test/GZipDecoderTest.cc
  9413. * test/HttpRequestTest.cc
  9414. * test/HttpResponseTest.cc
  9415. * test/Makefile.am
  9416. * test/Makefile.in
  9417. * test/gzip_decode_test.gz
  9418. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9419. Clarified usage of -j option.
  9420. * src/usage_text.h
  9421. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9422. Disabled getting size from the response of RETR.
  9423. If SIZE command failed, then disable resuming and segmented downloading.
  9424. * src/FtpConnection.cc
  9425. * src/FtpConnection.h
  9426. * src/FtpNegotiationCommand.cc
  9427. * src/FtpNegotiationCommand.h
  9428. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9429. Use digits to find first byte of file size, which makes the intention
  9430. of the code clearer.
  9431. * src/FtpConnection.cc
  9432. Don't call validateTotalLength() when size is 0.
  9433. * src/FtpNegotiationCommand.cc
  9434. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9435. Updated po files.
  9436. * po/aria2c.pot
  9437. * po/*.gmo
  9438. * po/*.po
  9439. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9440. Clarified usage text for --split option.
  9441. * src/usage_text.h
  9442. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9443. Bump up version number to 0.15.0dev. "dev" means "development"
  9444. version, which means I started the development of the next release!
  9445. * src/configure.ac
  9446. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9447. If FTP server returns negative response with REST raw command and
  9448. requested range is not 0, throw exception. If requested range is 0,
  9449. continue download a file from 0 byte.
  9450. * src/FtpNegotiationCommand.cc
  9451. * src/FtpNegotiationCommand.h
  9452. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9453. Supported FTP server which don't recognize SIZE raw command.
  9454. If SIZE raw command is failed, aria2 will try to get file size
  9455. from the response of RETR raw command. If both attempts are failed,
  9456. then resuming and segmented downloading are disabled.
  9457. * src/FtpConnection.cc
  9458. * src/FtpConnection.h
  9459. * src/FtpNegotiationCommand.cc
  9460. * src/FtpNegotiationCommand.h
  9461. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9462. * Release 0.14.0+1
  9463. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9464. Bump up version number to 0.14.0+1
  9465. * src/configure.ac
  9466. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9467. Fixed the code that refers static member variable from non-static
  9468. context.
  9469. * src/DefaultPeerStorage.cc
  9470. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9471. * Release 0.14.0
  9472. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9473. Added build test script
  9474. * build_test.sh
  9475. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9476. Updated ja.po
  9477. * src/ja.po
  9478. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9479. Bump up version number to 0.14.0
  9480. * src/configure.ac
  9481. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9482. Updated ja.po and fr.po. Great thanks for french translators and
  9483. Sebastien WILLEMIJNS.
  9484. * po/fr.po
  9485. * po/ja.po
  9486. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9487. Added configure option to enable/disable epoll support.
  9488. * configure.ac
  9489. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9490. Updated man page.
  9491. * doc/aria2c.1.txt
  9492. * doc/aria2c.1
  9493. * doc/aria2c.1.html
  9494. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9495. Added missing default value '5' to the usage of --split option.
  9496. * src/HelpItemFactory.cc
  9497. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9498. Filled up pieces based on the number of missing blocks, rather than
  9499. simplay the number of piece * block length.
  9500. * src/BtRequestFactory.h
  9501. * src/DefaultBtInteractive.cc
  9502. * src/DefaultBtInteractive.h
  9503. * src/DefaultBtRequestFactory.cc
  9504. * src/DefaultBtRequestFactory.h
  9505. * src/Piece.cc
  9506. * src/Piece.h
  9507. * test/BitfieldManTest.cc
  9508. * test/DefaultBtRequestFactoryTest.cc
  9509. * test/MockBtRequestFactory.h
  9510. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9511. Made _epEvents a member variable.
  9512. * src/DownloadEngine.cc
  9513. * src/DownloadEngine.h
  9514. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9515. Cancel download if http redirect is bounded more than 20 times.
  9516. * src/AbstractCommand.cc
  9517. * src/HttpSkipResponseCommand.cc
  9518. * src/Request.cc
  9519. * src/Request.h
  9520. * test/RequestTest.cc
  9521. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9522. Fixed unhandled exception(removed keyword `new').
  9523. * src/SocketCore.cc (initEPOLL)
  9524. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9525. Removed visit(const MetaEntry*)
  9526. * src/MetaEntryVisitor.h:
  9527. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  9528. and made them virtual.
  9529. * src/BencodeVisitor.h
  9530. * src/BencodeVisitor.cc
  9531. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9532. Updated po files.
  9533. * po/aria2c.pot
  9534. * po/*.po
  9535. * po/*.gmo
  9536. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9537. Moved the call setWriteCheckSocket inside the previous clause to reduce
  9538. the number of socket to watch out.
  9539. * src/PeerInteractionCommand.cc
  9540. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9541. When there is not enough space in disk when writing a chunk of data,
  9542. aria2 now prints the message to the console to warn user and aborts
  9543. its download. Not all downloads are canceled because some downloads
  9544. may use another disk or partition. BUG#1640332
  9545. * src/AbstractDiskWriter.cc
  9546. * src/PeerAbstractCommand.cc
  9547. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  9548. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  9549. setHaltRequested(true) to cancel download.
  9550. * src/PeerInteractionCommand.h
  9551. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9552. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  9553. socket from int to sock_t as sockets are unsigned in Windows.
  9554. For AsyncNameResolver, DownloadEngine, I did additional modification
  9555. for the portion of the code changed according to epoll support.
  9556. I defined sock_t in a2netcompat.h to use sock_t without including
  9557. SocketCore.h.
  9558. * src/AsyncNameResolver.cc
  9559. * src/AsyncNameResolver.h
  9560. * src/DownloadEngine.cc
  9561. * src/DownloadEngine.h
  9562. * src/SocketCore.cc
  9563. * src/SocketCore.h
  9564. * src/a2netcompat.h
  9565. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9566. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  9567. changes in the patch were applied.
  9568. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  9569. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  9570. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  9571. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9572. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  9573. a2io.h and common.h were modified.
  9574. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  9575. MinGW.
  9576. * src/common.h: Changed off_t to 64 bit in MinGW.
  9577. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9578. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  9579. only a2netcompat.h is modified.
  9580. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  9581. directives.
  9582. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9583. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  9584. only gai_strerror.h is modified.
  9585. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  9586. winsock errors in MinGW.
  9587. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9588. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  9589. follow sources are applied.
  9590. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  9591. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  9592. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  9593. I included locale.h from Platform.cc.
  9594. * src/main.cc: Moved common setup/teardown code to Platform class.
  9595. * test/AllTest.cc: Use Platform class.
  9596. Set locale to C in AllTest.cc to prevent the messages to be localized.
  9597. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9598. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  9599. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  9600. * test/HttpRequestTest.cc: Casted to off_t where it should.
  9601. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9602. Applied Ross's aria2-0.13.2+1-mingw.patch and
  9603. aria2-0.13.2+1-mingw-2.patch.
  9604. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  9605. systems which don't have termious.h. I moved the directive inside of
  9606. if(isTTY) { ... clause so that line is wiped out without termious.h.
  9607. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  9608. anyway.
  9609. * src/asctime_r.h
  9610. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  9611. I added 2nd argument to the prototype declaration.
  9612. * src/StringFormat.cc: Get rid of vasprintf.
  9613. * src/getaddrinfo.h: Fixed constants.
  9614. * configure.ac: Added the check for asctime_r function.
  9615. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  9616. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9617. Added writable test for Socket when the sending message is in progress.
  9618. Usually the sending message is piece message. Without wriable check,
  9619. upload latency is dropped to more than 1sec.
  9620. * src/PeerInteractionCommand.cc
  9621. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9622. Create only requested files and files which shares a piece with
  9623. requested file in multi-torrent downloads. Directory structures are
  9624. also created in the same rule.
  9625. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  9626. DiskWriterEntry as in the previous implementation.
  9627. * src/MultiDiskWriter.cc
  9628. * src/MultiFileAllocationIterator.cc
  9629. * src/MultiFileAllocationIterator.h
  9630. * test/MultiFileAllocationIteratorTest.cc
  9631. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9632. Commented out -lprofiler
  9633. * src/Makefile.am
  9634. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9635. Bump up version number to 0.14.0b.
  9636. * src/configure.ac
  9637. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9638. Actively establish connection to peers in seeding, when peer cache
  9639. is not full and max upload speed limit is not reached.
  9640. * src/ActivePeerConnectionCommand.cc
  9641. * src/ActivePeerConnectionCommand.h
  9642. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9643. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  9644. to make room more fleshy, recently found peers.
  9645. Peer::_badConditionStartTime is not used anymore. Consider to remove
  9646. it.
  9647. * src/DefaultPeerStorage.cc
  9648. * test/DefaultPeerStorageTest.cc
  9649. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9650. Returns cached data only when the previous receiveHandshake() is called
  9651. with peek = true.
  9652. * src/PeerConnection.cc (receiveHandshake)
  9653. * src/PeerConnection.h (receiveHandshake)
  9654. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9655. Changed default value of -s option from 1 to 5.
  9656. Also max value of -s option is changed from 5 to 16.
  9657. * src/HelpItemFactory.cc
  9658. * src/OptionHandlerFactory.cc
  9659. * src/option_processing.cc
  9660. * src/usage_text.h
  9661. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9662. Changed -s options behavior. Now it means the number of connections
  9663. made simultaneously in each http/ftp download.
  9664. If 1 URL is specified, the behavior is the same with old implementation.
  9665. If -s N is given and more than N URLs are specified, first N URLs are
  9666. used and remaining URLs are used for backup. If less than N URLs are
  9667. specified, some of URLs are used more than once so that totally N
  9668. connections are made simultaneously.
  9669. * src/main.cc
  9670. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9671. Included missing iosfwd or ostream header.
  9672. * src/RequestGroupMan.cc
  9673. * src/TaggedItem.cc
  9674. * src/TaggedItem.h
  9675. * src/Util.cc
  9676. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9677. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  9678. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  9679. * src/HttpConnection.cc: Included missing sstream.
  9680. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9681. Added --bt-max-open-files option.
  9682. * src/DefaultPieceStorage.cc
  9683. * src/HelpItemFactory.cc
  9684. * src/MultiDiskAdaptor.cc
  9685. * src/MultiDiskAdaptor.h
  9686. * src/OptionHandlerFactory.cc
  9687. * src/option_processing.cc
  9688. * src/prefs.cc
  9689. * src/prefs.h
  9690. * src/usage_text.h
  9691. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9692. Fixed the bug that aria2 aborts when a path to a directory is given
  9693. in command-line.
  9694. * src/ProtocolDetector.cc
  9695. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9696. Limited the number files opened in each BitTorrent download. The default
  9697. value is 100. The option to change this value will be added.
  9698. * src/MultiDiskAdaptor.cc
  9699. * src/MultiDiskAdaptor.h
  9700. * src/MultiFileAllocationIterator.cc
  9701. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9702. Fixed the bug that HTTP downloads don't start with old libraries.
  9703. * src/HttpHeaderProcessor.cc
  9704. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9705. Use empty() instead of size() > 0.
  9706. * src/HttpConnection.cc
  9707. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9708. Drop connection if the incoming peer ID is the same with localhost's
  9709. one. The previous implementation drops connection when incoming peer's
  9710. IP address is the same with localhost's one.
  9711. * src/PeerListenCommand.cc
  9712. * src/DefaultBtInteractive.cc
  9713. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9714. Returns cached data without checking whether socket is readable
  9715. if the cache is available.
  9716. * src/PeerConnection.cc (receiveHandshake)
  9717. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9718. Included stdint.h
  9719. * src/common.h
  9720. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9721. Removed duplicate HAVE_GETTIMEOFDAY
  9722. * src/Makefile.am
  9723. * src/Makefile.in
  9724. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9725. Use interval as a minInterval when minInterval is not supplied.
  9726. * src/DefaultBtAnnounce.cc
  9727. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9728. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  9729. attempt is failed, then 2nd attempt get kicked out more quickly.
  9730. And it is now static const member of DefaultBtAnnounce.
  9731. * src/DefaultBtAnnounce.h
  9732. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9733. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  9734. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  9735. * src/ActivePeerConnectionCommand.cc
  9736. * src/BtConstants.h
  9737. * src/BtRuntime.h
  9738. * src/DHTGetPeersCommand.cc
  9739. * src/DefaultBtAnnounce.cc
  9740. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  9741. BtRuntime::MAX_PEERS.
  9742. * src/DefaultPeerStorage.h
  9743. * src/InitiatorMSEHandshakeCommand.cc
  9744. * src/PeerInitiateConnectionCommand.cc
  9745. * src/PeerInteractionCommand.cc
  9746. * src/PeerReceiveHandshakeCommand.cc
  9747. * src/TrackerWatcherCommand.cc
  9748. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9749. Always Connect to _numNewConnection
  9750. * src/ActivePeerConnectionCommand.cc
  9751. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9752. Made `begin' unsigned int.
  9753. * src/GrowSegment.h
  9754. * src/Piece.cc
  9755. * src/Piece.h
  9756. * src/PiecedSegment.cc
  9757. * src/PiecedSegment.h
  9758. * src/Segment.h
  9759. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9760. Calculate piece hash when data is arrived if the data is arrived in
  9761. order. This removes additional read operation for hash calculation.
  9762. If the data is arrived in out of order, the hash is calucated when the
  9763. piece is completed. This is the same behavior as the old implementation.
  9764. * src/BtPieceMessage.cc
  9765. * src/DefaultBtProgressInfoFile.cc
  9766. * src/DefaultPieceStorage.cc
  9767. * src/DownloadCommand.cc
  9768. * src/DownloadCommand.h
  9769. * src/DownloadEngine.cc
  9770. * src/GrowSegment.cc
  9771. * src/GrowSegment.h
  9772. * src/Piece.cc
  9773. * src/Piece.h
  9774. * src/PiecedSegment.cc
  9775. * src/PiecedSegment.h
  9776. * src/Segment.h
  9777. * test/PieceTest.cc
  9778. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9779. Try to keep the ordering of outgoing piece message.
  9780. * src/DefaultBtMessageDispatcher.cc
  9781. (DefaultBtMessageDispatcher::sendMessages)
  9782. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9783. Fixed busy loop when error/hup epoll events occur.
  9784. * src/AbstractCommand.cc
  9785. * src/PeerAbstractCommand.cc
  9786. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9787. Added --bt-request-peer-speed-limit option, which was a constant
  9788. SLOW_SPEED_THRESHOLD.
  9789. * src/ActivePeerConnectionCommand.cc
  9790. * src/ActivePeerConnectionCommand.h
  9791. * src/BtConstants.h
  9792. * src/HelpItemFactory.cc
  9793. * src/OptionHandlerFactory.cc
  9794. * src/PeerReceiveHandshakeCommand.cc
  9795. * src/option_processing.cc
  9796. * src/prefs.cc
  9797. * src/prefs.h
  9798. * src/usage_text.h
  9799. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9800. Removed repeated call of getTopDirPath(). Instead, call it once and
  9801. cache the result.
  9802. * src/MultiDiskAdaptor.cc
  9803. * src/MultiDiskAdaptor.h
  9804. (mkdir, openFile, initAndOpenFile, openExistingFile)
  9805. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9806. Fixed compile error on debian etch.
  9807. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  9808. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  9809. it is undefined.
  9810. * src/Util.cc (ULLONG_MAX)
  9811. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9812. Added epoll support. Use epoll if it is available. If not, use select.
  9813. When async dns is enabled in compile time, epoll support is enabled
  9814. only when aria2 is built with c-ares. This condition statement is
  9815. defined in a2io.h.
  9816. Currently aria2 supports both c-ares and ares, but ares is maintained
  9817. for quite a while and debian already has c-ares package, ares support
  9818. will be dropped in the future version.
  9819. * configure.ac
  9820. * src/AbstractCommand.cc
  9821. * src/AsyncNameResolver.cc
  9822. * src/AsyncNameResolver.h
  9823. * src/Command.cc
  9824. * src/Command.h
  9825. * src/DownloadEngine.cc
  9826. * src/DownloadEngine.h
  9827. * src/PeerAbstractCommand.cc
  9828. * src/SocketCore.cc
  9829. * src/SocketCore.h
  9830. * src/a2io.h
  9831. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9832. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  9833. directive.
  9834. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9835. Do not do write operation to /dev/null file.
  9836. * src/LogFactory.cc
  9837. * src/SimpleLogger.cc
  9838. Replaced vasprintf with vsnprintf
  9839. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  9840. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9841. * src/BtRequestMessage.cc
  9842. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  9843. for segmentation fault caused by previous commit.
  9844. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9845. Reduced the usage of gettimeofday().
  9846. * src/DefaultBtMessageDispatcher.cc
  9847. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  9848. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  9849. * src/RequestSlot.cc
  9850. * src/RequestSlot.h
  9851. (RequestSlot::isTimeout)
  9852. Made RequestSlot have a reference to Piece object to avoid find
  9853. Piece repeatedly.
  9854. * src/DefaultBtMessageDispatcher.cc
  9855. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  9856. * src/RequestSlot.cc
  9857. * src/RequestSlot.h
  9858. (RequestSlot::getPiece)
  9859. * test/DefaultBtMessageDispatcherTest.cc
  9860. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9861. * src/TimeA2.cc
  9862. * src/TimeA2.h
  9863. (Time::difference): New function.
  9864. (Time::elapsed): Done optimization.
  9865. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9866. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  9867. directive.
  9868. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9869. * src/option_processing.cc: Added missing `defined' keyword to #if
  9870. directive.
  9871. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9872. Bump up version number to 0.13.2+1
  9873. * src/configure.ac
  9874. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9875. Refactored broken outstanding piece handling.
  9876. * src/DefaultPieceStorage.cc
  9877. * src/DefaultPieceStorage.h
  9878. * src/Piece.cc
  9879. * src/Piece.h
  9880. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9881. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  9882. name collision of static variable and predefined macro.
  9883. * src/BtContext.cc
  9884. * src/BtContext.h
  9885. * src/CookieBoxFactory.cc
  9886. * src/CookieBoxFactory.h
  9887. * src/CookieParser.cc
  9888. * src/CookieParser.h
  9889. * src/DefaultBtContext.cc
  9890. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9891. * src/RequestGroup.cc
  9892. (RequestGroup::createInitialCommand): Use empty() instead of size().
  9893. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9894. * Release 0.13.2
  9895. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9896. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  9897. * po/fr.po
  9898. * po/ja.po
  9899. * po/aria2c.pot
  9900. * po/*.po
  9901. * po/*.gmo
  9902. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9903. Bump up version number to 0.13.2
  9904. * src/configure.ac
  9905. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9906. Refactord.
  9907. * src/RequestGroupMan.cc
  9908. (removeStoppedGroup)
  9909. (fillRequestGroupFromReserver)
  9910. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9911. Fixed compile error on Ubuntu.
  9912. * src/BtPieceMessage.cc
  9913. * src/MessageDigestHelper.cc
  9914. * src/Util.cc
  9915. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9916. Fixed compile error when configured with --disable-bittorrent
  9917. * test/DownloadHandlerFactoryTest.cc
  9918. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9919. Done make update-po
  9920. * po/aria2c.pot
  9921. * po/*.po
  9922. * po/*.gmo
  9923. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9924. Bump up version number to 0.13.2rc.
  9925. * src/configure.ac
  9926. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9927. Made option name bold. Updated SYNOPSIS to make it more readable.
  9928. * doc/aria2c.1.txt
  9929. * doc/aria2c.1
  9930. * doc/aria2c.1.html
  9931. * src/version_usage.cc
  9932. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9933. Refactored. Use std::string instead of size and char*.
  9934. * Data.cc
  9935. * Data.h
  9936. * test/Data.cc
  9937. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9938. Added trimSelf(). Rewritten trim() to use trimSelf().
  9939. * Util.cc
  9940. * Util.h
  9941. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9942. * src/ChunkChecksum.h (getChecksum): Return const reference.
  9943. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9944. Fixed compile error when configured with --disable-metalink.
  9945. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  9946. * test/FeatureConfigTest.cc
  9947. * test/DownloadHandlerFactoryTest.cc
  9948. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9949. Fixed compile error when configured with --without-gnutls
  9950. --without-openssl
  9951. * src/main.cc
  9952. * test/DefaultBtProgressInfoFileTest.cc
  9953. * test/SegmentManTest.cc
  9954. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9955. Fixed compile error with OpenSSL.
  9956. * src/IteratableChunkChecksumValidator.cc
  9957. * src/LibsslDHKeyExchange.h
  9958. * src/MessageDigestHelper.cc
  9959. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9960. Revert the default value of --max-concurrent-downloads to 5.
  9961. Revert the default value of --metalink-servers to 5.
  9962. Man pages was also updated.
  9963. * src/option_processing.cc
  9964. * doc/aria2c.1.txt
  9965. * doc/aria2c.1.html
  9966. * doc/aria2c.1
  9967. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9968. Returns const reference:
  9969. DownloadContext::getPieceHash, DownloadContext::getName,
  9970. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  9971. BtContext::getInfoHashAsString,
  9972. * src/BtContext.h
  9973. * src/DefaultBtContext.cc
  9974. * src/DefaultBtContext.h
  9975. * src/DownloadContext.h
  9976. * src/SingleFileDownloadContext.h
  9977. * test/MockBtContext.h
  9978. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9979. * src/RequestGroup.h (getDir): Removed.
  9980. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9981. Returns const reference. The internal urlencode function was optimized
  9982. a little bit.
  9983. * src/Request.cc
  9984. * src/Request.h
  9985. * src/HttpRequest.cc
  9986. * src/HttpRequest.h
  9987. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9988. Defined option name and possible values as std::string to reduce
  9989. temporary string object creation in runtime.
  9990. * src/HelpItemFactory.cc
  9991. * src/LogFactory.cc
  9992. * src/Option.cc
  9993. * src/OptionHandlerFactory.cc
  9994. * src/option_processing.cc
  9995. * src/prefs.cc
  9996. * src/prefs.h
  9997. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9998. Return const reference.
  9999. * src/DownloadHandlerConstants.cc
  10000. * src/DownloadHandlerConstants.h
  10001. (getMetalinkExtensions)
  10002. (getMetalinkContentTypes)
  10003. (getBtExtensions)
  10004. (getBtContentTypes)
  10005. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10006. * src/HttpHeader.cc (get): Rewritten.
  10007. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10008. Make HttpHeader::getFirst(...) return const reference.
  10009. * src/HttpHeader.cc
  10010. * src/HttpHeader.h
  10011. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10012. Use Option::getAsBool(...) instead of Option::get(...) and compare
  10013. it with V_TRUE.
  10014. * src/DefaultPieceStorage.cc
  10015. * src/DownloadCommand.cc
  10016. * src/FtpNegotiationCommand.cc
  10017. * src/HttpRequest.cc
  10018. * src/InitiateConnectionCommand.cc
  10019. * src/RequestGroup.cc
  10020. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10021. Made Option::get(...) return const reference of std::string.
  10022. * src/Option.cc
  10023. * src/Option.h
  10024. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10025. Replaced std:copy with insert.
  10026. * src/DefaultBtMessageDispatcher.cc
  10027. * src/DefaultPieceStorage.cc
  10028. * src/DownloadEngineFactory.cc
  10029. * src/RequestGroup.cc
  10030. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10031. Included SocketCore.h to fix compiler warning.
  10032. * src/InitiateConnectionCommand.cc
  10033. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10034. Put piece selection strategy algorithm to RarestPieceSelector class,
  10035. Added a switch to choose whether randomized selection so that unit
  10036. tests emit same results in, possibly, win32.
  10037. * src/DefaultPieceStorage.cc
  10038. * src/DefaultPieceStorage.h
  10039. * src/RarestPieceSelector.cc
  10040. * src/RarestPieceSelector.h
  10041. * test/DefaultPieceStorageTest.cc
  10042. * test/RarestPieceSelectorTest.cc
  10043. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10044. Don't pool connection if HTTP proxy is enabled.
  10045. * src/FtpFinishDownloadCommand.cc
  10046. * src/FtpNegotiationCommand.cc
  10047. * src/HttpSkipResponseCommand.cc
  10048. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10049. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  10050. * src/AbstractCommand.cc
  10051. * src/AbstractCommand.h
  10052. * src/ActivePeerConnectionCommand.cc
  10053. * src/FtpInitiateConnectionCommand.cc
  10054. * src/HttpInitiateConnectionCommand.cc
  10055. * src/InitiateConnectionCommandFactory.cc
  10056. * src/PeerAbstractCommand.cc
  10057. * src/PeerAbstractCommand.h
  10058. * src/PeerInitiateConnectionCommand.cc
  10059. * src/TrackerWatcherCommand.cc
  10060. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10061. Sort RequestSlot in ascending order and manipulate them using
  10062. lower_bound.
  10063. * src/DefaultBtMessageDispatcher.cc
  10064. * src/DefaultBtMessageDispatcher.h
  10065. (getMessageQueue): Added const qualifier.
  10066. (getRequestSlots): Added const qualifier.
  10067. (sendMessages): Use empty() instead of size().
  10068. (doCancelSendingPieceAction): Use HandleEvent object.
  10069. (doAbortOutstandingRequestAction): Rewritten.
  10070. (doChokedAction): Rewritten.
  10071. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  10072. (isOutstandingRequest): Rewritten.
  10073. (getOutstandingRequest): Rewritten.
  10074. (removeOutstandingRequest): Rewritten.
  10075. (addOutstandingRequest): Rewritten.
  10076. * src/RequestSlot.cc
  10077. * src/RequestSlot.h
  10078. (operator=): Rewritten.
  10079. (operator!=): New function.
  10080. (operator<): New function.
  10081. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10082. * src/DefaultBtRequestFactory.cc
  10083. (doChokedAction): Rewritten.
  10084. (removeCompletedPiece): Rewritten.
  10085. (removeTargetPiece): Rewritten.
  10086. (createRequestMessages): Added the debug log.
  10087. (createRequestMessagesOnEndGame: Added the debug log.
  10088. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10089. Added the debug log message.
  10090. * src/BtPieceMessage.cc (doReceivedAction)
  10091. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10092. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  10093. used lower_bound to process them rather than linear search.
  10094. * src/DHTPeerAnnounceStorage.cc
  10095. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10096. Call subtractPieceStats from ~PeerInteractionCommand only when the
  10097. peer has at least one completed piece.
  10098. * src/Peer.cc
  10099. * src/Peer.h
  10100. * src/PeerInteractionCommand.cc
  10101. * src/PeerSessionResource.cc
  10102. * src/PeerSessionResource.h
  10103. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10104. Removed unnecessary sorting
  10105. * src/DefaultPieceStorage (DefaultPieceStorage)
  10106. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10107. Rewritten the portion of the code that mangaes allowed fast indexes.
  10108. * src/PeerSessionResource.cc
  10109. * src/PeerSessionResource.h
  10110. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10111. Removed the invalid string including '\r' from ru.po and
  10112. did make update-po.
  10113. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10114. Added --log-level and --summary-interval to man page.
  10115. * doc/aria2c.1.txt
  10116. * doc/aria2c.1.html
  10117. * doc/aria2c.1
  10118. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10119. Added --log-level option to specify log level. Log messages under
  10120. the specified level are not output. Default value is `debug'.
  10121. * src/HelpItemFactory.cc
  10122. * src/LogFactory.cc
  10123. * src/LogFactory.h
  10124. * src/Logger.h
  10125. * src/OptionHandlerFactory.cc
  10126. * src/SimpleLogger.cc
  10127. * src/SimpleLogger.h
  10128. * src/main.cc
  10129. * src/option_processing.cc
  10130. * src/prefs.h
  10131. * src/usage_text.h
  10132. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10133. Print download progress summary of all parallel downloads in specified
  10134. interval, default 60 secs. While aria2 could download several files
  10135. in parallel (see -j option), it displayed just first download progress,
  10136. and the other downloads are hidden from the users. This new feature
  10137. prints all downloads currently in-progress to the console so that you
  10138. can check the status of all downloads. The interval can be adjusted
  10139. by --summary-interval option.
  10140. The progress readout is now cut so that all fits in the one line of
  10141. console.
  10142. * src/ConsoleStatCalc.cc
  10143. * src/ConsoleStatCalc.h
  10144. * src/HelpItemFactory.cc
  10145. * src/OptionHandlerFactory.cc
  10146. * src/RequestGroupMan.cc
  10147. * src/RequestGroupMan.h
  10148. * src/main.cc
  10149. * src/option_processing.cc
  10150. * src/prefs.h
  10151. * src/usage_text.h
  10152. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10153. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  10154. * src/DownloadEngine.cc (DownloadEngine)
  10155. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10156. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  10157. defined.
  10158. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  10159. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10160. Use erase+lower_bound+insert instead of sort.
  10161. * src/DefaultPieceStorage.cc (addPieceStats)
  10162. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10163. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  10164. * src/A2STR.cc
  10165. * src/A2STR.h
  10166. * src/OptionParser.cc (parse)
  10167. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10168. Defined fake filename `[tracker.announce]' as static const std::string.
  10169. * src/TrackerWatcherCommand.cc (createRequestGroup)
  10170. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10171. Defined default filename `index.html' as static const std::string
  10172. * src/SingleFileDownloadContext.cc
  10173. * src/SingleFileDownloadContext.h
  10174. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10175. Defined "[MEMORY]" as static const std::string.
  10176. * src/MemoryBufferPreDownloadHandler.cc (execute)
  10177. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10178. Defined control file's version number as static const std::string.
  10179. * src/DefaultBtProgressInfoFile.cc
  10180. * src/DefaultBtProgressInfoFile.h
  10181. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10182. Use Request::METHOD_GET
  10183. * src/RequestGroup.cc (createNextCommandWithAdj)
  10184. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10185. Defined "OK", "ERR", "INPR" as static const std::string
  10186. * src/RequestGroupMan.cc (showDownloadResults)
  10187. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10188. Defined default client used in extended handshake as static const
  10189. std::string
  10190. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  10191. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10192. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  10193. * src/HttpConnection.cc (eraseConfidentialInfo)
  10194. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10195. Defined default ftp user and password as static const std::string
  10196. * src/AuthConfigFactory.cc
  10197. * src/AuthConfigFactory.h
  10198. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10199. Defined strings used in netrc as static const std::string
  10200. * src/Netrc.cc
  10201. * src/Netrc.h
  10202. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10203. Defined HTTP status as static const std::string
  10204. * src/AbstractProxyResponseCommand.cc
  10205. * src/HttpHeader.cc
  10206. * src/HttpHeader.h
  10207. * src/HttpResponse.cc
  10208. * src/HttpResponseCommand.cc
  10209. * src/HttpSkipResponseCommand.cc
  10210. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10211. Defined "\r\n", "A", "I" as static const std::string
  10212. * src/A2STR.cc
  10213. * src/A2STR.h
  10214. * src/FtpConnection.cc
  10215. * src/FtpConnection.h
  10216. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10217. Added COLON_C(".") and used it in Request::parseUrl()
  10218. * src/A2STR.cc
  10219. * src/A2STR.h
  10220. * src/Request.cc (parseUrl)
  10221. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10222. Changed the type of padName from `const std::string&' to `const char*'.
  10223. * src/MSEHandshake.cc (verifyPadLength)
  10224. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10225. Defined "sha1" as static const std::string.
  10226. * src/MetalinkParserController.cc
  10227. * src/MetalinkParserController.h
  10228. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10229. Defined message digest algorithm name as static const std::string
  10230. * src/DHTTokenTracker.cc
  10231. * src/DHTUtil.cc
  10232. * src/DefaultBtContext.cc
  10233. * src/MSEHandshake.cc
  10234. * src/MessageDigestHelper.cc
  10235. * src/Peer.cc
  10236. * src/messageDigest.cc
  10237. * src/messageDigest.h
  10238. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10239. Made string literals used in SAX parser static const std::string.
  10240. * src/FileMetalinkParserState.cc
  10241. * src/FileMetalinkParserState.h
  10242. * src/FilesMetalinkParserState.cc
  10243. * src/FilesMetalinkParserState.h
  10244. * src/InitialMetalinkParserState.cc
  10245. * src/InitialMetalinkParserState.h
  10246. * src/MetalinkMetalinkParserState.cc
  10247. * src/MetalinkMetalinkParserState.h
  10248. * src/PiecesMetalinkParserState.cc
  10249. * src/PiecesMetalinkParserState.h
  10250. * src/ResourcesMetalinkParserState.cc
  10251. * src/ResourcesMetalinkParserState.h
  10252. * src/VerificationMetalinkParserState.cc
  10253. * src/VerificationMetalinkParserState.h
  10254. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10255. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  10256. * src/A2STR.cc
  10257. * src/A2STR.h
  10258. * src/File.cc
  10259. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10260. Defined static const std::string IP("ip"), PORT("port") and use them
  10261. instead of string literals.
  10262. * src/DefaultPeerListProcessor.cc
  10263. * src/DefaultPeerListProcessor.h
  10264. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10265. Made string literals for torrent file processing static const
  10266. std::string.
  10267. * src/BtContext.cc
  10268. * src/BtContext.h
  10269. * src/DefaultBtContext.cc
  10270. * src/DefaultBtContext.h
  10271. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10272. Made string literal for tracker response static const std::string
  10273. * src/BtAnnounce.cc
  10274. * src/BtAnnounce.h
  10275. * src/DefaultBtAnnounce.cc
  10276. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10277. Use DHTMessage::T instead of "t".
  10278. * src/DHTMessageTracker.cc (messageArrived)
  10279. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10280. Made keyName static const. Made trimmed charset static const
  10281. std::string.
  10282. * src/Util.cc (getContentDispositionFilename)
  10283. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10284. Made USER_AGENT const. Made "/" static const std::string.
  10285. * src/A2STR.cc
  10286. * src/A2STR.h
  10287. * src/HttpRequest.cc
  10288. * src/HttpRequest.h
  10289. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10290. Made string listeral to static const std::string:
  10291. "Content-Range", "Content-Length"
  10292. * src/HttpHeader.cc
  10293. * src/HttpHeader.h
  10294. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10295. Made string listeral to static const std::string.
  10296. * src/HttpConnection.cc
  10297. * src/HttpHeader.cc
  10298. * src/HttpHeader.h
  10299. * src/HttpResponse.cc
  10300. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10301. Made string listeral to static const std::string.
  10302. * src/A2STR.cc
  10303. * src/A2STR.h
  10304. * src/SimpleLogger.cc
  10305. * src/SimpleLogger.h
  10306. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10307. Made string literal to static const std::string.
  10308. Rewritten CookieParser::setField.
  10309. * src/A2STR.cc
  10310. * src/A2STR.h
  10311. * src/CookieBoxFactory.cc
  10312. * src/CookieBoxFactory.h
  10313. * src/CookieParser.cc
  10314. * src/CookieParser.h
  10315. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10316. Made string literal to static const std::string
  10317. * src/DHTAbstractMessage.cc
  10318. * src/DHTAnnouncePeerMessage.cc
  10319. * src/DHTAnnouncePeerMessage.h
  10320. * src/DHTAnnouncePeerReplyMessage.cc
  10321. * src/DHTAnnouncePeerReplyMessage.h
  10322. * src/DHTFindNodeMessage.cc
  10323. * src/DHTFindNodeMessage.h
  10324. * src/DHTFindNodeReplyMessage.cc
  10325. * src/DHTFindNodeReplyMessage.h
  10326. * src/DHTGetPeersMessage.cc
  10327. * src/DHTGetPeersMessage.h
  10328. * src/DHTGetPeersReplyMessage.cc
  10329. * src/DHTGetPeersReplyMessage.h
  10330. * src/DHTMessage.cc
  10331. * src/DHTMessage.h
  10332. * src/DHTMessageFactoryImpl.cc
  10333. * src/DHTMessageReceiver.cc
  10334. * src/DHTPingMessage.cc
  10335. * src/DHTPingMessage.h
  10336. * src/DHTPingReplyMessage.cc
  10337. * src/DHTPingReplyMessage.h
  10338. * src/DHTQueryMessage.cc
  10339. * src/DHTQueryMessage.h
  10340. * src/DHTResponseMessage.cc
  10341. * src/DHTResponseMessage.h
  10342. * src/DHTUnknownMessage.cc
  10343. * src/DHTUnknownMessage.h
  10344. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10345. Made string literal to static const std::string
  10346. * src/BtChokeMessage.cc (toString)
  10347. * src/BtHaveAllMessage.cc (toString)
  10348. * src/BtHaveNoneMessage.cc (toString)
  10349. * src/BtInterestedMessage.cc (toString)
  10350. * src/BtNotInterestedMessage.cc (toString)
  10351. * src/BtUnchokeMessage.cc (toString)
  10352. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10353. Replaced "" with static const variable A2STR::NIL.
  10354. Replaced string comparison against "" with std::string::empty().
  10355. Added PROTO_* to Request class and use them as a protocol string
  10356. constant.
  10357. Made "started", "stopped", "completed" static const variable in
  10358. AnnounceList class.
  10359. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10360. Updated translations. Great thanks to translators.
  10361. * po/ca.po
  10362. * po/de.po
  10363. * po/fr.po
  10364. * po/it.po
  10365. * po/ja.po
  10366. * po/ru.po
  10367. * po/zh_CN.po
  10368. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10369. Updated man page; categorized options and fixed typo.
  10370. * doc/aria2c.1.txt
  10371. * doc/aria2c.1.html
  10372. * doc/aria2c.1
  10373. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10374. Removed const ref
  10375. * src/MetalinkEntry.cc (AddProtocolPreference)
  10376. * src/RequestGroup.cc (FindServerHostByHostname)
  10377. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10378. Rewritten Accept-Features handling.
  10379. * src/HttpRequestCommand.cc (createHttpRequest)
  10380. * src/a2functional.h
  10381. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10382. Changed method signature:
  10383. DHTAbstractNodeLookupTask::toEntries
  10384. * src/DHTAbstractNodeLookupTask.cc
  10385. * src/DHTAbstractNodeLookupTask.h
  10386. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10387. Changed method signature:
  10388. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  10389. * src/BtContext.h
  10390. * src/DefaultBtContext.cc
  10391. * src/DefaultBtContext.h
  10392. * src/DefaultBtInteractive.cc
  10393. * test/DefaultBtContextTest.cc
  10394. * test/MockBtContext.h
  10395. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10396. Changed method signature:
  10397. MultiFileAllocationIterator::makeDiskWriterEntries
  10398. * src/MultiFileAllocationIterator.cc
  10399. * src/MultiFileAllocationIterator.h
  10400. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10401. Changed method sinature:
  10402. MetalinkEntry::toFileEntry,
  10403. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  10404. Metalinker::queryEntry
  10405. * src/Metalink2RequestGroup.cc
  10406. * src/MetalinkEntry.cc
  10407. * src/MetalinkEntry.h
  10408. * src/MetalinkHelper.cc
  10409. * src/MetalinkHelper.h
  10410. * src/Metalinker.cc
  10411. * src/Metalinker.h
  10412. * src/main.cc
  10413. * test/MetalinkHelperTest.cc
  10414. * test/MetalinkerTest.cc
  10415. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10416. Changed method sinature:
  10417. RequestGroup::getURIs
  10418. * src/RequestGroup.cc
  10419. * src/RequestGroup.h
  10420. * test/Metalink2RequestGroupTest.cc
  10421. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10422. Changed method signature:
  10423. PeerListProcessor::extractPeer
  10424. * src/CompactPeerListProcessor.cc
  10425. * src/CompactPeerListProcessor.h
  10426. * src/DefaultBtAnnounce.cc
  10427. * src/DefaultPeerListProcessor.cc
  10428. * src/DefaultPeerListProcessor.h
  10429. * src/DelegatingPeerListProcessor.cc
  10430. * src/DelegatingPeerListProcessor.h
  10431. * src/PeerListProcessor.h
  10432. * src/UTPexExtensionMessage.cc
  10433. * test/DefaultPeerListProcessorTest.cc
  10434. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10435. Changed method signature:
  10436. BtRequestFactory::createRequestMessages,
  10437. BtRequestFactory::createRequestMessagesOnEndGame
  10438. * src/BtRequestFactory.h
  10439. * src/DefaultBtInteractive.cc
  10440. * src/DefaultBtRequestFactory.cc
  10441. * src/DefaultBtRequestFactory.h
  10442. * test/DefaultBtRequestFactoryTest.cc
  10443. * test/MockBtRequestFactory.h
  10444. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10445. Changed method signature:
  10446. PieceStorage::getInFlightPieces
  10447. * src/DefaultBtProgressInfoFile.cc
  10448. * src/DefaultPieceStorage.cc
  10449. * src/DefaultPieceStorage.h
  10450. * src/PieceStorage.h
  10451. * src/UnknownLengthPieceStorage.cc
  10452. * src/UnknownLengthPieceStorage.h
  10453. * test/DefaultBtProgressInfoFileTest.cc
  10454. * test/MockPieceStorage.h
  10455. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10456. Changed method signature:
  10457. PostDownloadHandler::getNextRequestGroups
  10458. Metalink2RequestGroup::generate
  10459. RequestGroup::postDownloadProcessing
  10460. * src/BtPostDownloadHandler.cc
  10461. * src/BtPostDownloadHandler.h
  10462. * src/Metalink2RequestGroup.cc
  10463. * src/Metalink2RequestGroup.h
  10464. * src/MetalinkPostDownloadHandler.cc
  10465. * src/MetalinkPostDownloadHandler.h
  10466. * src/PostDownloadHandler.h
  10467. * src/RequestGroup.cc
  10468. * src/RequestGroup.h
  10469. * src/RequestGroupMan.cc
  10470. * src/main.cc
  10471. * test/BtPostDownloadHandlerTest.cc
  10472. * test/Metalink2RequestGroupTest.cc
  10473. * test/MetalinkPostDownloadHandlerTest.cc
  10474. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10475. Rewritten AccRequestGroup
  10476. * src/main.cc
  10477. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10478. Rewritten.
  10479. * src/TaggedItem.cc (toTagString)
  10480. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10481. Rewritten Accept-Features handling.
  10482. * src/HttpRequestCommand.cc (createHttpRequest)
  10483. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10484. Rewritten accept types handling.
  10485. * HttpRequest.cc (createRequest)
  10486. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10487. Rewritten
  10488. * src/FeatureConfig.cc (featureSummary)
  10489. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10490. Changed method signature:
  10491. PeerStorage::getActivePeers
  10492. * src/DHTPeerAnnounceEntry.cc
  10493. * src/DefaultPeerStorage.cc
  10494. * src/DefaultPeerStorage.h
  10495. * src/PeerStorage.h
  10496. * test/DefaultPeerStorageTest.cc
  10497. * test/MockPeerStorage.h
  10498. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10499. Changed method signature:
  10500. DHTPeerAnnounceStorage::getPeers,
  10501. DHTPeerAnnounceEntry::getPeers
  10502. * src/DHTGetPeersMessage.cc
  10503. * src/DHTPeerAnnounceEntry.cc
  10504. * src/DHTPeerAnnounceEntry.h
  10505. * src/DHTPeerAnnounceStorage.cc
  10506. * src/DHTPeerAnnounceStorage.h
  10507. * test/DHTAnnouncePeerMessageTest.cc
  10508. * test/DHTPeerAnnounceEntryTest.cc
  10509. * test/DHTPeerAnnounceStorageTest.cc
  10510. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10511. Changed method signature:
  10512. NameResolver::resolve
  10513. * src/DHTEntryPointNameResolveCommand.cc
  10514. * src/InitiateConnectionCommand.cc
  10515. * src/NameResolver.cc
  10516. * src/NameResolver.h
  10517. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10518. Changed method signature:
  10519. PieceStorage::getAdvertisedPieceIndexes
  10520. * src/DefaultBtInteractive.cc
  10521. * src/DefaultPieceStorage.cc
  10522. * src/DefaultPieceStorage.h
  10523. * src/PieceStorage.h
  10524. * src/UnknownLengthPieceStorage.h
  10525. * test/MockPieceStorage.h
  10526. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10527. Changed method signature:
  10528. SegmentMan::getInFlightSegment
  10529. * src/AbstractCommand.cc
  10530. * src/SegmentMan.cc
  10531. * src/SegmentMan.h
  10532. * test/SegmentManTest.cc
  10533. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10534. Changed method signature:
  10535. DHTAbstractNodeLookupTask::getNodesFromMessage
  10536. * src/DHTAbstractNodeLookupTask.cc
  10537. * src/DHTAbstractNodeLookupTask.h
  10538. * src/DHTNodeLookupTask.cc
  10539. * src/DHTNodeLookupTask.h
  10540. * src/DHTPeerLookupTask.cc
  10541. * src/DHTPeerLookupTask.h
  10542. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10543. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  10544. * src/AbstractCommand.cc
  10545. * src/BtCheckIntegrityEntry.cc
  10546. * src/BtCheckIntegrityEntry.h
  10547. * src/BtFileAllocationEntry.cc
  10548. * src/BtFileAllocationEntry.h
  10549. * src/BtSetup.cc
  10550. * src/BtSetup.h
  10551. * src/CheckIntegrityCommand.cc
  10552. * src/CheckIntegrityEntry.h
  10553. * src/ChecksumCheckIntegrityEntry.cc
  10554. * src/ChecksumCheckIntegrityEntry.h
  10555. * src/DHTSetup.cc
  10556. * src/DHTSetup.h
  10557. * src/DownloadEngine.cc
  10558. * src/FileAllocationCommand.cc
  10559. * src/FileAllocationEntry.h
  10560. * src/RequestGroup.cc
  10561. * src/RequestGroup.h
  10562. * src/RequestGroupMan.cc
  10563. * src/RequestGroupMan.h
  10564. * src/StreamCheckIntegrityEntry.cc
  10565. * src/StreamCheckIntegrityEntry.h
  10566. * src/StreamFileAllocationEntry.cc
  10567. * src/StreamFileAllocationEntry.h
  10568. * src/TrackerWatcherCommand.cc
  10569. * src/a2functional.h
  10570. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10571. Changed method signature:
  10572. BNode::findClosestKNodes, BNode:: enumerateBucket,
  10573. DHTBucket::getGoodNodes,
  10574. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  10575. * src/BNode.cc
  10576. * src/BNode.h
  10577. * src/DHTAbstractNodeLookupTask.cc
  10578. * src/DHTAutoSaveCommand.cc
  10579. * src/DHTBucket.cc
  10580. * src/DHTBucket.h
  10581. * src/DHTBucketRefreshTask.cc
  10582. * src/DHTFindNodeMessage.cc
  10583. * src/DHTGetPeersMessage.cc
  10584. * src/DHTRoutingTable.cc
  10585. * src/DHTRoutingTable.h
  10586. * test/BNodeTest.cc
  10587. * test/DHTBucketTest.cc
  10588. * test/DHTRoutingTableTest.cc
  10589. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10590. In piece selection functions, Pass std::deque<...> by reference rather
  10591. than returning it.
  10592. * src/BitfieldMan.cc
  10593. * src/BitfieldMan.h
  10594. * src/DefaultBtRequestFactory.cc
  10595. * src/DefaultPieceStorage.cc
  10596. * src/Piece.cc
  10597. * src/Piece.h
  10598. * test/BitfieldManTest.cc
  10599. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10600. Implemented rarest piece first piece selection strategy.
  10601. * src/AbstractBtMessage.cc
  10602. * src/AbstractBtMessage.h
  10603. * src/BitfieldMan.cc
  10604. * src/BitfieldMan.h
  10605. * src/BtBitfieldMessage.cc
  10606. * src/BtHaveAllMessage.cc
  10607. * src/BtHaveMessage.cc
  10608. * src/DefaultPieceStorage.cc
  10609. * src/DefaultPieceStorage.h
  10610. * src/PeerInteractionCommand.cc
  10611. * src/PieceStorage.h
  10612. * src/UnknownLengthPieceStorage.h
  10613. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10614. Rewritten readData and writeData.
  10615. * src/MultiDiskAdaptor.cc
  10616. * src/MultiDiskAdaptor.h
  10617. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10618. Move \n out of the message "Usage: ...".
  10619. * src/version_usage.cc
  10620. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10621. Bump up version number to 0.13.2b.
  10622. * configure.ac
  10623. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10624. Added const qualifier to argument Exception& e.
  10625. * src/Logger.h
  10626. * src/SimpleLogger.cc
  10627. * src/SimpleLogger.h
  10628. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10629. Pool connection when CWD, SIZE command fails.
  10630. * src/FtpNegotiationCommand.cc
  10631. * src/FtpNegotiationCommand.h
  10632. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10633. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  10634. * src/HttpResponseCommand.cc
  10635. * src/HttpSkipResponseCommand.cc
  10636. * src/HttpSkipResponseCommand.h
  10637. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10638. Pool connection when a server returns 4xx, 5xx responses.
  10639. * src/HttpNullDownloadCommand.cc
  10640. * src/HttpNullDownloadCommand.h
  10641. * src/HttpResponse.cc
  10642. * src/HttpResponse.h
  10643. * src/HttpResponseCommand.cc
  10644. * src/HttpResponseCommand.h
  10645. * test/HttpResponseTest.cc
  10646. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10647. Print usage when no URL is specifed or bad command-line option is
  10648. specified.
  10649. * src/HelpItemFactory.cc
  10650. * src/help_tags.h
  10651. * src/option_processing.cc
  10652. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10653. Removed duplicate log message.
  10654. * src/AbstractCommand.cc (asyncResolveHostname)
  10655. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10656. Updated man page: --async-dns and --ftp-reuse-connection were added.
  10657. Changed -j option's default value from 5 to 1.
  10658. Added new examples using protocol auto detection feature.
  10659. Removed -T, -M usage where it can be omitted.
  10660. * doc/aria2c.1.txt
  10661. * doc/aria2c.1.html
  10662. * doc/aria2c.1.txt
  10663. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10664. Updated command-line usage text, so that it tells users that they
  10665. can specify any number of torrent files and metalink files in
  10666. command-line.
  10667. * src/version_usage.cc
  10668. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10669. Changed the default value of -j option to 1.
  10670. * src/HelpItemFactory.cc
  10671. * src/option_processing.cc
  10672. * src/usage_text.h
  10673. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10674. Added the ability to reuse connection in FTP and it is enabled by
  10675. default. It can be disabled by --ftp-reuse-connection=false option.
  10676. * src/Command.cc
  10677. * src/DownloadCommand.cc
  10678. * src/FtpDownloadCommand.cc
  10679. * src/FtpDownloadCommand.h
  10680. * src/FtpFinishDownloadCommand.cc
  10681. * src/FtpFinishDownloadCommand.h
  10682. * src/FtpInitiateConnectionCommand.cc
  10683. * src/FtpNegotiationCommand.cc
  10684. * src/FtpNegotiationCommand.h
  10685. * src/HelpItemFactory.cc
  10686. * src/Makefile.am
  10687. * src/Makefile.in
  10688. * src/OptionHandlerFactory.cc
  10689. * src/option_processing.cc
  10690. * src/prefs.h
  10691. * src/usage_text.h
  10692. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10693. Call Command::transitStatus() before calling Command::execute(),
  10694. so that the status change made in execute() is not cleared.
  10695. * src/DownloadEngine.cc
  10696. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10697. Removed forward declaration of SocketCore class.
  10698. * src/HttpDownloadCommand.h
  10699. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10700. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  10701. in InitiateConnectionCommandFactory. They should be set only when
  10702. the protocol is HTTP or HTTPS.
  10703. * src/InitiateConnectionCommandFactory.cc
  10704. * src/RequestGroup.cc
  10705. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10706. Fixed infinite loop in checksum checking.
  10707. * src/IteratableChecksumValidator.cc
  10708. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10709. Set _supportsPersistentConnection to true by default.
  10710. * src/Request.cc
  10711. * src/RequestGroup.cc
  10712. * test/HttpRequestTest.cc
  10713. * test/RequestTest.cc
  10714. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10715. Added timeout to socket pool. The default timeout is 15 seconds,
  10716. which is the same value Apache uses.
  10717. * src/DownloadEngine.cc
  10718. * src/DownloadEngine.h
  10719. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10720. Fixed misuse of multimap::find()
  10721. * src/HttpHeader.cc
  10722. * test/HttpHeaderTest.cc
  10723. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10724. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  10725. option.
  10726. The asynchronous DNS is not capable of IPv6 yet.
  10727. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  10728. least for HTTP download.
  10729. * src/AbstractCommand.cc
  10730. * src/AbstractCommand.h
  10731. * src/AsyncNameResolver.cc
  10732. * src/AsyncNameResolver.h
  10733. * src/DHTEntryPointNameResolveCommand.cc
  10734. * src/DHTEntryPointNameResolveCommand.h
  10735. * src/DownloadEngine.cc
  10736. * src/DownloadEngine.h
  10737. * src/FtpInitiateConnectionCommand.cc
  10738. * src/FtpInitiateConnectionCommand.h
  10739. * src/HelpItemFactory.cc
  10740. * src/HttpInitiateConnectionCommand.cc
  10741. * src/HttpInitiateConnectionCommand.h
  10742. * src/InitiateConnectionCommand.cc
  10743. * src/InitiateConnectionCommand.h
  10744. * src/Makefile.am
  10745. * src/Makefile.in
  10746. * src/NameResolver.cc
  10747. * src/NameResolver.h
  10748. * src/OptionHandlerFactory.cc
  10749. * src/SocketCore.cc
  10750. * src/SocketCore.h
  10751. * src/Util.cc
  10752. * src/Util.h
  10753. * src/option_processing.cc
  10754. * src/prefs.h
  10755. * src/usage_text.h
  10756. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10757. Updated man page: --quiet, --header were added.
  10758. --metalink-servers and --enable-http-keep-alive option were updated.
  10759. * doc/aria2c.1
  10760. * doc/aria2c.1.html
  10761. * doc/aria2c.1.txt
  10762. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10763. Enable HTTP keep-alive by default.
  10764. * src/HelpItemFactory.cc
  10765. * src/option_processing.cc
  10766. * src/usage_text.h
  10767. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10768. Disable http keep-alive if the remote server is not HTTP/1.1.
  10769. * src/HttpConnection.cc
  10770. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10771. Receive content body of 302 response so that the connection can be
  10772. reused later when http keep-alive is enabled.
  10773. * src/HttpNullDownloadCommand.cc
  10774. * src/HttpNullDownloadCommand.h
  10775. * src/HttpResponseCommand.cc
  10776. * src/HttpResponseCommand.h
  10777. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10778. const SharedHandle<Request> -> const SharedHandle<Request>&
  10779. * src/FtpDowndloadCommand.cc
  10780. * src/FtpDowndloadCommand.h
  10781. * src/HttpDownloadCommand.cc
  10782. * src/HttpDownloadCommand.h
  10783. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10784. Fixed the bug that the control file(.aria2 file) is not renamed
  10785. according to tryAutoFileRenaming().
  10786. tryAutoFileRenaming() was rewritten so that if both renamed file and
  10787. its control file exist, use them and continue download.
  10788. The old implementation didn't take into account of control file's
  10789. existence, so basically you couldn't continue download of renamed file.
  10790. * src/BtProgressInfoFile.h
  10791. * src/DefaultBtProgressInfoFile.cc
  10792. * src/DefaultBtProgressInfoFile.h
  10793. * src/NullProgressInfoFile.h
  10794. * src/RequestGroup.cc
  10795. * test/DefaultBtProgressInfoFileTest.cc
  10796. * test/MockBtProgressInfoFile.h
  10797. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10798. Change the default value of --metalink-servers option from `5' to `1'.
  10799. * src/HelpItemFactory.cc
  10800. * src/option_processing.cc
  10801. * src/usage_text.h
  10802. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10803. Reimplemented transparent metalink using Accept request header.
  10804. * src/HttpRequest.cc
  10805. * src/HttpRequest.h
  10806. * src/HttpRequestCommand.cc
  10807. * src/Metalink2RequestGroup.cc
  10808. * src/RequestGroup.cc
  10809. * src/RequestGroup.h
  10810. * test/HttpRequestTest.cc
  10811. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10812. Bump up version number to 0.13.2a
  10813. * configure.ac
  10814. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10815. Updated configure.ac using the result of autoscan.
  10816. * configure.ac
  10817. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10818. Fixed compilation error without gcrypt/openssl.
  10819. * src/DownloadCommand.cc
  10820. * src/DownloadCommand.h
  10821. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10822. Reorganized version information so that it can be displayed in a
  10823. standard terminal screen without scrolling.
  10824. Removed http, ftp from Configuration section, because they are always
  10825. enabled.
  10826. * src/FeatureConfig.cc
  10827. * src/FeatureConfig.h
  10828. * src/main.cc
  10829. * src/messageDigest.cc
  10830. * src/messageDigest.h
  10831. * src/version_usage.cc
  10832. * test/FeatureConfigTest.cc
  10833. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10834. Masked user ID in log.
  10835. * src/FtpConnection.cc (sendUser)
  10836. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10837. Removed query part from filename in HTTP download. The query part means
  10838. the substring after "?" in URL. Firefox seems do the same thing.
  10839. A query part is sometimes very long and not suitable to filename,
  10840. so I think it is better to remove it from filename.
  10841. * src/HttpRequest.cc
  10842. * src/HttpRequest.h
  10843. * src/Request.cc
  10844. * src/Request.h
  10845. * test/HttpRequestTest.cc
  10846. * test/RequestTest.cc
  10847. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10848. Rewritten Exception class. Throw exception object, not its pointer and
  10849. catch by reference, so that remove problematic delete operator for
  10850. catched exception.
  10851. * src/Exception.cc
  10852. * src/Exception.h
  10853. * test/ExceptionTest.cc
  10854. * src/*: All files throwing/catching exception.
  10855. * test/*: All files throwing/catching exception.
  10856. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10857. Now auto protocol detection is enabled without -Z option.
  10858. But there is a important difference between with/without -Z optoin.
  10859. For example, if you type:
  10860. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  10861. then, aria2 interprets there are 3 request groups:
  10862. (1) http://host/file, http://mirror/file <-- multi-source download
  10863. (2) file1.torrent
  10864. (3) file2.metalink
  10865. On the other hand, if you invoke above command with -Z option, it is
  10866. interpreted as 4 request groups:
  10867. (1) http://host/file
  10868. (2) file1.torrent
  10869. (3) file2.metalink
  10870. (4) http://mirror/file
  10871. I think usually user don't mix multi-source URLs and torrent files, so
  10872. there is no big problem here.
  10873. * src/main.cc
  10874. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10875. Fixed the bug that causes segmentaion fault when reading XML containing
  10876. unescapsed character like '&'.
  10877. Also a modification was made which avoids adding unnecessary
  10878. characters stack and appending unused string.
  10879. * src/ExpatMetalinkProcessor.cc
  10880. * src/FileMetalinkParserState.h
  10881. * src/FilesMetalinkParserState.h
  10882. * src/FinMetalinkParserState.h
  10883. * src/HashMetalinkParserState.h
  10884. * src/InitialMetalinkParserState.h
  10885. * src/LanguageMetalinkParserState.h
  10886. * src/MetalinkMetalinkParserState.h
  10887. * src/MetalinkParserState.h
  10888. * src/MetalinkParserStateMachine.cc
  10889. * src/MetalinkParserStateMachine.h
  10890. * src/OSMetalinkParserState.h
  10891. * src/PieceHashMetalinkParserState.h
  10892. * src/PiecesMetalinkParserState.h
  10893. * src/ResourcesMetalinkParserState.h
  10894. * src/SizeMetalinkParserState.h
  10895. * src/SkipTagMetalinkParserState.h
  10896. * src/URLMetalinkParserState.h
  10897. * src/VerificationMetalinkParserState.h
  10898. * src/VersionMetalinkParserState.h
  10899. * src/XML2SAXMetalinkProcessor.cc
  10900. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10901. Added StringFormat class, which internally calls vasprintf.
  10902. operator<< is defined for this class, so it can be used with iostream
  10903. classes nicely. SimpleLogger and following functions are rewritten
  10904. using StringFormat class.
  10905. Besides, now Logger class's methods are non-const, many classes
  10906. that has a const Logger* as a member variable are modified to remove
  10907. const qualifier from the variable declaration.
  10908. * src/HelpItemFactory.cc
  10909. * src/Request.cc
  10910. * src/SimpleLogger.cc
  10911. * src/StringFormat.cc
  10912. * src/StringFormat.h
  10913. * src/Util.cc
  10914. * src/option_processing.cc
  10915. * src/version_usage.cc
  10916. * test/StringFormatTest.cc
  10917. * src/*.h: The classes that has const Logger* as a member variable.
  10918. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10919. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  10920. failed. Also fixed memory link when exception is thrown there.
  10921. * src/main.cc (AccRequestGroup)
  10922. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10923. Added build-in "Accept-Features" support. For now only "metalink" is
  10924. used in this header field.
  10925. This "metalink" value is removed from the list when connecting URLs
  10926. fed by metalink file to avoid loop in "transparent" metlaink.
  10927. * src/HttpRequest.cc
  10928. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  10929. header is also held in this variable. Also renamed setUserHeaders as
  10930. addHeader and it was rewritten to add header not just to clear the old
  10931. value.
  10932. * src/HttpRequestCommand.cc
  10933. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  10934. from "Accept-Features" list.
  10935. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  10936. default.
  10937. * src/RequestGroup.h
  10938. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  10939. * src/a2functional.h: Included <string> because Concat class depends on
  10940. it.
  10941. * test/HttpRequestTest.cc
  10942. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10943. Added comment
  10944. * src/RequestGroup.cc (createNextCommand)
  10945. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10946. Capitalized METHOD_GET and METHOD_HEAD
  10947. * src/Request.cc
  10948. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10949. Added getDownloadResults() method
  10950. * src/RequestGroupMan.cc
  10951. * src/RequestGroupMan.h
  10952. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10953. Fixed the bug that aria2 exits when commands is empty() but
  10954. _routineCommands are not.
  10955. * src/DownloadEngine.cc
  10956. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10957. Use the default value pulled from Option object in HelpItemFactory.
  10958. except options whose defualt value is embedded in a usage text.
  10959. * src/HelpItemFactory.cc
  10960. * src/HelpItemFactory.h
  10961. * src/option_processing.cc
  10962. * src/version_usage.cc
  10963. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10964. Added --quiet option to make aria2 quiet (no console output).
  10965. --quiet option is tagged with ADVANCED.
  10966. * src/HelpItemFactory.cc
  10967. * src/LogFactory.cc
  10968. * src/LogFactory.h
  10969. * src/MultiUrlRequestInfo.cc
  10970. * src/MultiUrlRequestInfo.h
  10971. * src/NullStatCalc.h: New class. This class prints nothing.
  10972. * src/OptionHandlerFactory.cc
  10973. * src/main.cc
  10974. * src/option_processing.cc
  10975. * src/prefs.h
  10976. * src/usage_text.h
  10977. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10978. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  10979. * src/HelpItemFactory.cc (createHelpItems):
  10980. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10981. Fixed compilation error in ExpatMetalinkProcessor.cc
  10982. * src/ExpatMetalinkProcessor.cc
  10983. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10984. Reuse socket if the origin server supports HTTP keep-alive and
  10985. --enable-http-keep-alive or --enable-http-pipelining is given.
  10986. The current implementation doesn't reuse the connections established
  10987. against proxy server.
  10988. * src/AbstractCommand.cc
  10989. * src/DownloadEngine.cc
  10990. * src/DownloadEngine.h
  10991. * src/HttpDownloadCommand.cc
  10992. * src/HttpInitiateConnectionCommand.cc
  10993. * src/HttpResponseCommand.cc
  10994. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10995. Rewritten HTTP keep-alive and pipelining routine.
  10996. * src/AbstractCommand.cc
  10997. * src/HttpConnection.cc
  10998. * src/HttpDownloadCommand.cc
  10999. * src/HttpRequest.cc
  11000. * src/HttpRequestCommand.cc
  11001. * src/HttpResponseCommand.cc
  11002. * src/Request.cc
  11003. * src/Request.h
  11004. * src/RequestGroup.cc
  11005. * test/HttpRequestTest.cc
  11006. * test/HttpResponseTest.cc
  11007. * test/RequestTest.cc
  11008. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11009. Added missing setUserHeaders call
  11010. * src/HttpRequestCommand.cc
  11011. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11012. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  11013. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  11014. waste of time because it is more likey false.
  11015. * src/FileAllocationDispatcherCommand.cc (execute)
  11016. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11017. Now HTTP status and version are a member variable of HttpHeader.
  11018. HTTP status is processed as a string, not integer.
  11019. * src/AbstractProxyResponseCommand.cc
  11020. * src/HttpConnection.cc
  11021. * src/HttpHeader.cc
  11022. * src/HttpHeader.h
  11023. * src/HttpHeaderProcessor.cc
  11024. * src/HttpHeaderProcessor.h
  11025. * src/HttpResponse.cc
  11026. * src/HttpResponse.h
  11027. * test/HttpHeaderProcessorTest.cc
  11028. * test/HttpResponseTest.cc
  11029. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11030. Added --header option. You can specify any number of additional HTTP headers
  11031. like:
  11032. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  11033. Unlike other commad-line option, you can use --header option multiple times.
  11034. * src/HelpItemFactory.cc
  11035. * src/HttpRequest.{cc, h}
  11036. * src/HttpRequestCommand.cc
  11037. * src/OptionHandlerFactory.cc
  11038. * src/OptionHandlerImpl.h
  11039. * src/option_processing.cc
  11040. * src/prefs.h
  11041. * src/usage_text.h
  11042. * test/HttpRequestTest.cc (testUserHeaders)
  11043. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11044. Eliminates the time lag between sequential downloads and commands in
  11045. the same RequestGroup.
  11046. In old implementation, aria2 occasionally waits 1 seconds before
  11047. executing next command or RequestGroup.
  11048. This is really a waste of time, and new implementation eliminates
  11049. this unnecessary time lag.
  11050. * src/AbstractCommand.cc
  11051. * src/AutoSaveCommand.cc
  11052. * src/CheckIntegrityCommand.cc
  11053. * src/Command.{cc, h}
  11054. * src/DownloadEngine.{cc, h}
  11055. * src/DownloadEngineFactory.cc
  11056. * src/FileAllocationCommand.cc
  11057. * src/FileAllocationDispatcherCommand.cc
  11058. * src/FillRequestGroupCommand.cc
  11059. * src/FtpInitiateConnectionCommand.cc
  11060. * src/HaveEraseCommand.cc
  11061. * src/HttpInitiateConnectionCommand.cc
  11062. * src/HttpResponseCommand.cc
  11063. * src/RealtimeCommand.cc
  11064. * src/RequestGroup.cc
  11065. * src/RequestGroupMan.cc
  11066. * src/StreamFileAllocationEntry.cc
  11067. * src/TimeBasedCommand.{cc, h}
  11068. * src/TimedHaltCommand.cc
  11069. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11070. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  11071. keyword explicit and SharedHandle's default constructor initializes
  11072. its internal obj to null, old implementation initializes it using
  11073. obj's default constructor.
  11074. To assign null, write SharedHandle<T> x(...); x.reset();
  11075. TODO: test/SharedHandleTest.cc needs more tests.
  11076. * src/SharedHandle.h
  11077. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11078. Fixed type in man page.
  11079. * doc/aria2c.1.txt
  11080. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11081. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  11082. * src/SimpleLogger.{cc, h}
  11083. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11084. Implemented auto protocol detection.
  11085. Now you can do:
  11086. aria2c -Z http://host/file file1.torrent file2.metalink
  11087. (Note: -Z option is required for auto protcol detection.)
  11088. Then aria2c downloads 3 files simultaneously:
  11089. 1. http://host/file
  11090. 2. file1.torrent <-- read local torrent file
  11091. 3. file2.metalink <-- read local Metalink file.
  11092. Same thing goes with -i option. Assume your uris.txt contans:
  11093. http://host/file
  11094. file1.torrent
  11095. file2.metalink
  11096. Then you can do: aria2c -i uris.txt
  11097. (Note: -Z option is not needed if -i option is given.)
  11098. * src/main.cc
  11099. * src/ProtocolDetector.{cc, h}
  11100. * test/ProtocolDetectorTest.cc
  11101. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11102. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  11103. installed
  11104. * src/ARC4Encryptor.h
  11105. * src/ARC4Decryptor.h
  11106. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11107. Renamed argument from 'errno' to 'err', since errno is confused with
  11108. errno defined in errno.h.
  11109. * src/LibgcryptARC4Decryptor.h
  11110. * src/LibgcryptARC4Context.h
  11111. * src/LibgcryptDHKeyExchange.h
  11112. * src/LibgcryptARC4Encryptor.h
  11113. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11114. Rewritten choking algorithm.
  11115. * src/PeerChokeCommand.{cc, h}
  11116. * src/BtInterestedMessage.cc
  11117. * src/PeerSessionResource.{cc, h}
  11118. * src/DefaultPeerStorage.{cc, h}
  11119. * src/BtNotInterestedMessage.cc
  11120. * src/DefaultBtMessageDispatcher.{cc, h}
  11121. * src/BtMessageDispatcher.h
  11122. * src/Peer.{cc, h}
  11123. * src/BtLeecherStateChoke.{cc, h}
  11124. * src/BtSetup.cc
  11125. * src/BtSeederStateChoke.{cc, h}
  11126. * src/PeerStorage.h
  11127. * test/MockPeerStorage.h
  11128. * test/MockBtMessageDispatcher.h
  11129. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11130. Fixed compilation error on x84-64 platform.
  11131. * src/AuthConfig.cc: Included ostream.
  11132. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11133. Rewritten getBasename() and getDirname(), without standard library
  11134. basename(), dirname().
  11135. * src/File.cc
  11136. * test/FileTest.cc
  11137. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11138. Added Simplified Chinese translation. Also updated the following
  11139. translations: Polish, Dutch, German. Great thanks to all translators.
  11140. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11141. Suppress content-range error when 'Content-Range' response header
  11142. doesn't contains bytes-unit specifier 'bytes'
  11143. * src/HttpHeader.cc (getRange)
  11144. * test/HttpHeaderTest.cc
  11145. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11146. Fixed compilation error with g++-4.3
  11147. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11148. Added missing include files for MinGW
  11149. * test/HttpHeaderProcessorTest.cc
  11150. * test/DHTRoutingTableSerializerTest.cc
  11151. * test/DHTRoutingTableDeserializerTest.cc
  11152. * test/UriListParserTest.cc
  11153. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11154. Now download line is printed nicely with no garbage at the end of
  11155. line. I use ioctl to get the columns of terminal.
  11156. If stdout is redirected to another device, instead of carriage return,
  11157. end of line '\n' character is used. This is feature request#1909659
  11158. * src/ConsoleStatCalc.cc (calculateStat)
  11159. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11160. Included a2time.h
  11161. * src/DHTMessageDispatcher.h
  11162. * src/DHTMessageEntry.h
  11163. * src/DHTReplaceNodeTask.h
  11164. * src/DHTMessageTracker.h
  11165. * src/Util.h
  11166. * src/CookieBox.h
  11167. * src/SocketCore.h
  11168. * src/DefaultBtMessageDispatcher.h
  11169. * src/SocketCore.cc
  11170. * src/Util.cc
  11171. * src/DHTPingTask.h
  11172. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11173. Fixed high memory footprint when DHT is enabled.
  11174. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  11175. queued than it is processed and the queue is getting longer. As a
  11176. consequence, momory usage is increased.
  11177. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  11178. replacement cache in DHTBucket which is described in Kademlia paper.
  11179. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  11180. DHTReplaceNodeTask.
  11181. * src/DHTBucket.{h, cc}
  11182. (cacheNode): New function.
  11183. (getCachedNodes): New function.
  11184. (dropNode): Push back cached node to _nodes.
  11185. * test/DHTBucketTest.cc
  11186. (testCacheNode): New test
  11187. (testDropNode): New test
  11188. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11189. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  11190. the unused 4KB memory when ssl is not used.
  11191. * src/SocketCore.cc
  11192. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11193. Added summary log for peer announce storage.
  11194. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  11195. Removed cast
  11196. * src/DefaultPeerStorage.cc (addPeer)
  11197. Log exception message
  11198. * src/DHTMessageTracker.cc (handleTimeout)
  11199. Fixed casting
  11200. * test/HttpRequestTest.cc
  11201. * test/MetalinkProcessorTest.cc
  11202. * test/PieceTest.cc
  11203. * test/MetalinkEntryTest.cc
  11204. * test/SequenceTest.cc
  11205. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11206. * src/ParameterizedStringParser.cc (createLoop):
  11207. Removed unused variable sstep.
  11208. * src/AlphaNumberDecorator.h (decode): Rewritten.
  11209. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11210. * src/Util.{h, cc}
  11211. (parseUInt): New function.
  11212. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  11213. The actual range is uint32_t.
  11214. * test/UtilTest.cc
  11215. * src/ParameterizedStringParser.cc:
  11216. Use Util::parseUInt() for loop variables.
  11217. * test/ParameterizedStringParserTest.cc
  11218. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  11219. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11220. Rewritten the functions for binding port.
  11221. * src/DHTConnectionImpl.{h, cc}
  11222. * src/PeerListenCommand.{h, cc}
  11223. * src/DHTSetup.cc
  11224. * src/BtSetup.cc
  11225. * test/DHTConnectionImplTest.cc
  11226. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11227. type cleanup for allmost all remaining files.
  11228. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11229. Type clarification
  11230. * src/PeerSessionResource.{h, cc}
  11231. * src/DefaultPieceStorage.{h, cc}
  11232. * src/Peer.{h, cc}
  11233. * test/PeerSessionResourceTest.cc
  11234. Use div function
  11235. * src/BtPieceMessage.cc (erasePieceOnDisk)
  11236. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11237. Type clarification
  11238. * src/DefaultPeerStorage.{h, cc}
  11239. * test/DefaultPeerStorageTest.cc
  11240. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11241. Type clarification: size_t for length or size, uint64_t for file
  11242. length, off_t for file offset.
  11243. * src/DefaultBtProgressInfoFile.cc
  11244. * src/DefaultBtContext.{h, cc}
  11245. * src/DefaultBtInteractive.cc
  11246. * src/DownloadCommand.{h, cc}
  11247. * src/IteratableChunkChecksumValidator.{h, cc}
  11248. * src/SegmentMan.{h, cc}
  11249. * src/SingleFileDownloadContext.{h, cc}
  11250. * src/IteratableChecksumValidator.{h, cc}
  11251. * src/BtContext.h
  11252. * src/IteratableValidator.h
  11253. * src/DownloadContext.h
  11254. * test/SingleFileDownloadContextTest.cc
  11255. * test/DefaultBtContextTest.cc
  11256. * test/MockBtContext.h
  11257. * test/Metalink2RequestGroupTest.cc
  11258. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11259. Type clarification: size_t for length or size, uint64_t for file
  11260. length, off_t for file offset.
  11261. * src/PiecedSegment.cc
  11262. * src/GrowSegment.h
  11263. * src/DefaultBtRequestFactory.h
  11264. * src/DefaultBtProgressInfoFile.cc
  11265. * src/UnknownLengthPieceStorage.h
  11266. * src/DefaultPieceStorage.cc
  11267. * src/UnknownLengthPieceStorage.cc
  11268. * src/DefaultBtInteractive.cc
  11269. * src/GrowSegment.cc
  11270. * src/BitfieldMan.h
  11271. * src/DownloadCommand.cc
  11272. * src/BtRequestFactory.h
  11273. * src/PiecedSegment.h
  11274. * src/DefaultPieceStorage.h
  11275. * src/Piece.cc
  11276. * src/DefaultBtRequestFactory.cc
  11277. * src/PieceStorage.h
  11278. * src/Segment.h
  11279. * src/Piece.h
  11280. * src/BitfieldMan.cc
  11281. * src/Util.cc
  11282. * test/DefaultBtProgressInfoFileTest.cc
  11283. * test/DefaultPieceStorageTest.cc
  11284. * test/MockPieceStorage.h
  11285. * test/BtRequestMessageTest.cc
  11286. * test/DefaultBtMessageDispatcherTest.cc
  11287. * test/BitfieldManTest.cc
  11288. * test/GrowSegmentTest.cc
  11289. * test/PieceTest.cc
  11290. * test/SegmentTest.cc
  11291. * test/SegmentManTest.cc
  11292. * test/DefaultBtRequestFactoryTest.cc
  11293. * test/MockBtRequestFactory.h
  11294. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11295. Fixed compilation error with --disable-nls
  11296. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  11297. in gettext.h causes the problem.
  11298. * src/common.h
  11299. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11300. Removed subPiece related functions.
  11301. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  11302. * src/DefaultPieceStorage.{h, cc}
  11303. * test/PieceTest.cc
  11304. * test/DefaultPieceStorageTest.cc
  11305. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11306. Use unsigned char for data store.
  11307. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11308. Bump up version number to 0.13.0+1
  11309. * configure.ac
  11310. * Release 0.13.0+1
  11311. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11312. Changed inactive connection timeout to 120.
  11313. To accept more mulually interested peers, disconnect peer when there
  11314. is no interest between us after certain time passed.
  11315. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  11316. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11317. Fixed the bug that aria2 only uses first dns server in resolv.conf
  11318. when compiled with async DNS support.
  11319. * src/DownloadEngine.cc
  11320. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  11321. value '10' will be a little bit short when some DNS servers are
  11322. offline and several DNS servers are tried. It should be configured
  11323. by command-line option.
  11324. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11325. Merged Ross's mingw patch.
  11326. * src/DHTRoutingTableDeserializer.cc
  11327. * src/DHTRoutingTableSerializer.cc
  11328. * src/Platform.{h, cc}
  11329. * src/timegm.h
  11330. * src/gettimeofday.h
  11331. * src/getaddrinfo.h
  11332. * src/SocketCore.h
  11333. * src/common.h
  11334. * src/inet_aton.h
  11335. * src/DownloadEngine.h
  11336. * src/gai_strerror.h
  11337. * src/a2netcompat.h
  11338. * configure.ac
  11339. * configure
  11340. * aclocal.m4
  11341. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11342. Included missing iostream.
  11343. * test/AllTest.cc
  11344. * test/BtDependencyTest.cc
  11345. * test/BtExtendedMessageTest.cc
  11346. * test/DHTConnectionImplTest.cc
  11347. * test/DHTMessageFactoryImplTest.cc
  11348. * test/DHTMessageTrackerEntryTest.cc
  11349. * test/DHTNodeTest.cc
  11350. * test/DHTRoutingTableSerializerTest.cc
  11351. * test/DefaultBtAnnounceTest.cc
  11352. * test/DefaultBtContextTest.cc
  11353. * test/DefaultBtMessageFactoryTest.cc
  11354. * test/DefaultExtensionMessageFactoryTest.cc
  11355. * test/HandshakeExtensionMessageTest.cc
  11356. * test/HttpResponseTest.cc
  11357. * test/MetalinkProcessorTest.cc
  11358. * test/MultiFileAllocationIteratorTest.cc
  11359. * test/SocketCoreTest.cc
  11360. * test/UTPexExtensionMessageTest.cc
  11361. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11362. Reorganized includes.
  11363. * src/NameResolver.cc
  11364. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11365. Fixed compilation error without ares/c-ares
  11366. * src/NameResolver.h:
  11367. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11368. Added a test for large file.
  11369. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  11370. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11371. Fixed the bug that file size is ignored if size > INT32_MAX
  11372. * src/SizeMetalinkParserState.cc (endElement):
  11373. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11374. Bump up version number to 0.13.0
  11375. * configure.ac
  11376. * Release 0.13.0
  11377. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11378. Updated Makfefile.am to make 'make dist' work.
  11379. Now packaged filename is aria2c-VERSION.tar.bz2.
  11380. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  11381. Added LICENSE.OpenSSL to dist_noinst_DATA.
  11382. Large file support is now configured by configure script.
  11383. * configure.ac
  11384. Removed unsused source files
  11385. * src/
  11386. * test/
  11387. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  11388. Peer.h and BtContext.h respectively.
  11389. * src/Peer.h
  11390. * src/BtContext.h
  11391. Updated translations.
  11392. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  11393. translations. Great thanks to all translators!;)
  11394. * po/*.{po, gmo}
  11395. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11396. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  11397. statically declared sha1 MessageDigestContext.
  11398. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  11399. initialization of short-lived MessageDigestContext.
  11400. * src/MessageDigestHelper.{h, cc}
  11401. * src/main.cc
  11402. Now DownloadCommand has a reference to MessageDigestContext to avoid
  11403. the initialization of MessageDigestContext every time in validating
  11404. chunk checksum.
  11405. * src/DownloadCommand.{h, cc}
  11406. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11407. Add a file descriptor which connected to fast peer(latency<1500) to
  11408. select(). This change reduced CPU load.
  11409. * src/PeerInteractionCommand.cc
  11410. * src/DefaultBtInteractive.{h, cc}
  11411. * src/BtInteractive.h
  11412. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11413. Fixed the previous insufficient fix for possible busy loop.
  11414. * src/MSEHandshake.cc (identifyHandshakeType)
  11415. Removed unused functions.
  11416. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  11417. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11418. Fixed possible busy loop if first 20 bytes are not received for a few
  11419. minutes.
  11420. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  11421. * src/ReceiverMSEHandshakeCommand.cc
  11422. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11423. Fixed compilation error
  11424. * src/ExpatMetalinkProcessor.cc
  11425. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11426. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  11427. * src/DHTBucket.cc
  11428. Removed unnecessary cast.
  11429. * src/HandshakeExtensionMessage.cc
  11430. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11431. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  11432. is missing.
  11433. * src/OptionHandlerFactory.cc
  11434. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11435. Fixed the bug that HAVE message is not sent for a piece they are
  11436. downloaded fom http/ftp server before any BitTorrent handshake is done
  11437. with peers.
  11438. * src/DefaultBtInteractive.cc
  11439. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11440. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  11441. * src/Makefile.am
  11442. * src/Makefile.in
  11443. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11444. Updated README. Added html version of README and man page.
  11445. * README
  11446. * README.html
  11447. * readme2html: Shell script to generate README.html from README using
  11448. asciidoc.
  11449. * doc/aria2c.1.html
  11450. * doc/makeman: Added the line to generate aria2c.1.html
  11451. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11452. Fixed offset calculation.
  11453. * src/LibgcryptDHKeyExchange.h (computeSecret)
  11454. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11455. Rewritten itos and uitos using template. llitos and ullitos are
  11456. replaced with itos and uitos respectively.
  11457. * src/Util.{h, cc}
  11458. * test/UtilTest.cc
  11459. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11460. Fixed the bug that DH key exchange sometimes fails due to bad handling
  11461. of the number of bytes required for storing public key and shared
  11462. secret.
  11463. * src/LibgcryptDHKeyExchange.h
  11464. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  11465. * src/MSEHandshake.cc
  11466. * test/DHKeyExchangeTest.cc
  11467. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11468. Removed since they are not used.
  11469. * src/Xml2MetalinkProcessor.{h, cc}
  11470. * src/Socket.cc
  11471. * src/SegmentSplitter.{h, cc}
  11472. * test/Xml2MetalinkProcessorTest.cc
  11473. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11474. Fixed the bug that prevents aria2 from stopping other than by pressing
  11475. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  11476. option. aria2 doesn't stop even after --seed-time is satisfied and
  11477. continues to output blank lines in the console.
  11478. * src/ReceiverMSEHandshakeCommand.cc
  11479. * src/PeerReceiveHandshakeCommand.cc
  11480. * src/PeerListenCommand.cc
  11481. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11482. Bump up version number to 0.13.0rc
  11483. * configure.ac
  11484. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11485. Updated man page and some usage text.
  11486. * doc/aria2c.1.txt
  11487. * src/usage_text.h
  11488. * po/*.{po, gmo}
  11489. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11490. Updated translations. Added Finnish and Hebrew translations.
  11491. Great thanks to all translators!
  11492. * po/*.{po, gmo}
  11493. * po/LINGUAS
  11494. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11495. Log more detailed information about each message.
  11496. * src/DHTQueryMessage.{h, cc}
  11497. * src/DHTGetPeersMessage.{h, cc}
  11498. * src/DHTFindNodeReplyMessage.{h, cc}
  11499. * src/DHTGetPeersReplyMessage.{h, cc}
  11500. * src/DHTAnnouncePeerMessage.{h, cc}
  11501. * src/DHTResponseMessage.{h, cc}
  11502. * src/DHTFindNodeMessage.{h, cc}
  11503. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11504. Use constants defined in prefs.h
  11505. * src/option_processing.cc
  11506. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11507. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  11508. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11509. Make room for future enchancements for IPv6 addresses.
  11510. Bump up version number of dht.dat file format to 2.
  11511. Not compatible with previous version.
  11512. * src/DHTRoutingTableSerializer.cc
  11513. * src/DHTRoutingTableDeserializer.cc
  11514. * test/DHTRoutingTableSerializerTest.cc
  11515. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11516. Added handling for the return values from
  11517. PeerMessageUtil::createcompact().
  11518. * src/DefaultBtContext.cc (computeFastSet):
  11519. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11520. Fixed abort when peer's ip address is IPv4-mapped address.
  11521. * src/DefaultBtContext.cc (computeFastSet)
  11522. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  11523. cannot handle IPv4-mapped addresses.
  11524. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  11525. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11526. Proper return value handling for OpenSSL functions.
  11527. * src/LibsslDHKeyExchange.h
  11528. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11529. Random bytes generation using libgcrypt and OpenSSL.
  11530. * src/DHTUtil.{h, cc}
  11531. * test/DHTUtilTest.cc
  11532. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11533. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  11534. received.
  11535. * src/DHTMessageReceiver.cc (receiveMessage)
  11536. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11537. Fixed the bug that a return code is always 0. BUG#1897704
  11538. If error occurred during the download or there exist unfinished
  11539. downloads, aria2 returns with code 1.
  11540. * src/RequestGroupMan.{h, cc}
  11541. * src/MultiUrlRequestInfo.{h, cc}
  11542. * src/main.cc
  11543. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11544. IPv6 support for SocketCore class.
  11545. TODO: In SocketCore::establishConnection(), this is insufficient to
  11546. determin the failure of connect() here because the socket is
  11547. non-blocking state. The next addresses should be tried after select().
  11548. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  11549. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  11550. instead which address family independent.
  11551. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  11552. information in a compact peer format which is for IPv4 only.
  11553. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  11554. this is a spec of BitTorrent protocol.
  11555. * src/SocketCore.{h, cc}
  11556. * src/PeerMessageUtil.cc
  11557. * test/SocketCoreTest.cc
  11558. * test/PeerMessageUtilTest.cc
  11559. * test/DHTConnectionImplTest.cc
  11560. Handle IPv4-mapped addresses.
  11561. * src/DHTNode.cc: Now identity is determined by node id.
  11562. * src/DHTMessageTrackerEntry.cc
  11563. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  11564. should handle it.
  11565. * src/DHTRoutingTableDeserializer.cc
  11566. * src/DHTMessageFactoryImpl.cc
  11567. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11568. Change the unit of --stop option from a minute to a second.
  11569. * src/usage_text.h
  11570. * src/DownloadEngineFactory.cc
  11571. * src/OptionHandlerFactory.cc
  11572. * src/message.h
  11573. * src/TimedHaltCommand.cc
  11574. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11575. Make listening socket non-block mode.
  11576. * src/FtpConnection.cc
  11577. * src/FtpNegotiationCommand.{h, cc}
  11578. * src/PeerListenCommand.cc
  11579. Fixed the bug that cause slow ftp negotiation.
  11580. * src/FtpNegotiationCommand.{h, cc}
  11581. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11582. Added basic tag to --enable-dht, --dht-listen-port option.
  11583. * src/HelpItemFactory.cc (createHelpItems)
  11584. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11585. Updated text.
  11586. * src/usage_text.h
  11587. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11588. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  11589. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11590. Determin _threadtholdSpeed in each constructor for
  11591. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  11592. * src/ActivePeerConnectionCommand.{h, cc}
  11593. * src/PeerReceiveHandshakeCommand.{h, cc}
  11594. * src/BtSetup.cc
  11595. * src/BtConstants.h
  11596. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11597. Added --bt-min-crypto-level and --bt-require-crypto options.
  11598. * src/OptionHandlerFactory.cc
  11599. * src/MSEHandshake.cc
  11600. * src/HelpItemFactory.cc
  11601. * src/option_processing.cc
  11602. * src/ReceiverMSEHandshakeCommand.cc
  11603. * src/prefs.h
  11604. * src/DefaultBtAnnounce.cc
  11605. * src/InitiatorMSEHandshakeCommand.cc
  11606. * src/usage_text.h
  11607. * test/MSEHandshakeTest.cc
  11608. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11609. Bump version number to 0.13.0b
  11610. * configure.ac
  11611. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11612. Updated doc.
  11613. * src/MessageDigestHelper.h:
  11614. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11615. Use raw message digest as a token instead of its hexadecimal
  11616. representation.
  11617. * src/DHTTokenTracker.cc (generateToken)
  11618. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11619. Added Message Stream Encryption(MSE) support.
  11620. Currently, aria2 accepts incoming connections with Obfuscation Header
  11621. and legacy BitTorrent Header and establishes connections with
  11622. Obfuscation Header first and if failed then retry with legacy
  11623. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  11624. choose ARC4. The new option to change the default behavior is planned.
  11625. For tracker extension, "supportcrypto=1" is added statically.
  11626. * src/PeerInitiateConnectionCommand.{h, cc}
  11627. * src/PeerConnection.{h, cc}
  11628. * src/HandleRegistry.h
  11629. * src/SocketCore.h
  11630. * src/PeerReceiveHandshakeCommand.{h, cc}
  11631. * src/BtRegistry.{h, cc}
  11632. * src/PeerListenCommand.cc
  11633. * src/InitiatorMSEHandshakeCommand.{h, cc}
  11634. * src/ReceiverMSEHandshakeCommand.{h, cc}
  11635. * src/MSEHandshake.{h, cc}
  11636. * src/ARC4Encryptor.h
  11637. * src/ARC4Decryptor.h
  11638. * src/LibgcryptARC4Encryptor.h
  11639. * src/LibgcryptARC4Decryptor.h
  11640. * src/LibgcryptARC4Context.h
  11641. * src/LibsslARC4Encryptor.h
  11642. * src/LibsslARC4Decryptor.h
  11643. * src/LibsslARC4Context.h
  11644. * src/DHKeyExchange.h
  11645. * src/LibgcryptDHKeyExchange.h
  11646. * src/LibsslDHKeyExchange.h
  11647. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  11648. * test/DefaultBtAnnounceTest.cc
  11649. * test/ARC4Test.cc
  11650. * test/DHKeyExchangeTest.cc
  11651. Removed prepareForRetry() because it is not used.
  11652. * src/PeerAbstractCommand.{h, cc}
  11653. * src/PeerInteractionCommand.{h, cc}
  11654. * src/PeerInitiateConnectionCommand.{h, cc}
  11655. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11656. Added the ability to load nodes from torrent file. These nodes are
  11657. added to the routing table when downloading that torrent.
  11658. * src/BtContext.h
  11659. * src/DefaultBtContext.{h, cc}
  11660. * src/DHTSetup.cc
  11661. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  11662. hostname and port pair, and resolves all of them.
  11663. * src/NameResolver.{h, cc}: Added reset().
  11664. * src/RequestGroup.cc
  11665. * test/DefaultBtContextTest.cc
  11666. * test/MockBtContext.h
  11667. Removed assert() from DefaultBtContext and throw exception instead.
  11668. * src/DefaultBtContext.cc
  11669. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11670. Fixed segmentation fault bug when exiting if dht is disabled.
  11671. * src/RequestGroup.cc
  11672. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11673. Fixed typo in log message and define the message in message.h
  11674. * src/TimedHaltCommand.cc
  11675. * src/message.h
  11676. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11677. Included RecoverableException.h to fix compilation error.
  11678. * test/DHTMessageFactoryImplTest.cc
  11679. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11680. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  11681. * test/DHTPingMessageTest.cc
  11682. * test/DHTGetPeersMessageTest.cc
  11683. * test/DHTFindNodeMessageTest.cc
  11684. * test/DHTAnnouncePeerMessageTest.cc
  11685. * test/MockDHTMessage.h
  11686. * test/MockDHTMessageFactory.h
  11687. * test/MockDHTMessageDispatcher.h: New class.
  11688. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11689. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  11690. virtual.
  11691. * src/DHTMessageDispatcher.h
  11692. * src/DHTMessageDispatcherImpl.{h, cc}
  11693. * src/DHTSetup.cc
  11694. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11695. Adding handling of DHT error message. Just log error message and
  11696. throw exception.
  11697. * src/DHTMessageFactoryImpl.cc
  11698. * test/DHTMessageFactoryImplTest.cc
  11699. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11700. Added handling of dynamic cast failure.
  11701. * src/DHTNodeLookupTask.cc
  11702. * src/DHTPeerLookupTask.cc
  11703. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11704. Added the ability to stop aria2 itself when given time has passed
  11705. from start. Use --stop option to specify time in minutes.
  11706. When 0 is given, this feature is disabled.
  11707. * src/OptionHandlerFactory.cc
  11708. * src/TimeBasedCommand.h: Make _interval protected scope.
  11709. * src/HelpItemFactory.cc
  11710. * src/option_processing.cc
  11711. * src/prefs.h
  11712. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  11713. before calling RequestGroupMan::fillRequestGroupFromReserver().
  11714. Without this modification, the result list shows "ERR" when aria2 is
  11715. stopped by --stop option. It should be "INPR".
  11716. * src/DownloadEngine.{h, cc}
  11717. * src/DownloadEngineFactory.cc
  11718. * src/usage_text.h
  11719. * src/TimedHaltCommand.{h, cc}: New class.
  11720. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11721. Bootstrap through node added by port message.
  11722. Currently bootstrap is executed if the number of buckets in routing
  11723. table is 1.
  11724. * src/BtPortMessage.{h, cc}
  11725. * src/DefaultBtMessageFactory.{h, cc}
  11726. * src/PeerInteractionCommand.cc
  11727. * test/BtPortMessageTest.cc
  11728. * test/MockDHTTask.h
  11729. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11730. Extract the Peer class's member variables, which are only needed after
  11731. PeerInteractionCommand, into PeerSessionResource class.
  11732. This class is instantiated in PeerInteractionCommand class's ctor and
  11733. released in its dtor.
  11734. This will make Peer class lightweight and uses less memory for peers
  11735. which are not connected and wait in the queue.
  11736. * src/PeerChokeCommand.cc
  11737. * src/PeerSessionResource.{h, cc}
  11738. * src/PeerInteractionCommand.cc
  11739. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  11740. * src/DefaultBtInteractive.cc
  11741. * src/BtPieceMessage.cc
  11742. * src/BtInterestedMessage.cc
  11743. * src/BtUnchokeMessage.cc
  11744. * src/DefaultPeerStorage.{h, cc}
  11745. * src/PeerInitiateConnectionCommand.cc
  11746. * src/ActivePeerConnectionCommand.cc
  11747. * src/BtNotInterestedMessage.cc
  11748. * src/DefaultBtMessageDispatcher.cc
  11749. * src/BtChokeMessage.cc
  11750. * src/BtRequestMessage.cc
  11751. * src/Peer.{h, cc}
  11752. * src/BtRegistry.h
  11753. * src/TrackerWatcherCommand.cc
  11754. * src/PeerReceiveHandshakeCommand.cc
  11755. * test/BtExtendedMessageTest.cc
  11756. * test/BtAllowedFastMessageTest.cc
  11757. * test/BtCancelMessageTest.cc
  11758. * test/DefaultPieceStorageTest.cc
  11759. * test/BtBitfieldMessageTest.cc
  11760. * test/BtHaveMessageTest.cc
  11761. * test/BtNotInterestedMessageTest.cc
  11762. * test/BtRequestMessageTest.cc
  11763. * test/PeerSessionResourceTest.cc
  11764. * test/DefaultBtMessageDispatcherTest.cc
  11765. * test/PeerTest.cc
  11766. * test/BtInterestedMessageTest.cc
  11767. * test/BtRejectMessageTest.cc
  11768. * test/BtChokeMessageTest.cc
  11769. * test/DefaultPeerStorageTest.cc
  11770. * test/BtHaveNoneMessageTest.cc
  11771. * test/BtHaveAllMessageTest.cc
  11772. * test/DefaultExtensionMessageFactoryTest.cc
  11773. * test/BtUnchokeMessageTest.cc
  11774. * test/DefaultBtMessageFactoryTest.cc
  11775. * test/HandshakeExtensionMessageTest.cc
  11776. * test/UTPexExtensionMessageTest.cc
  11777. * test/DefaultBtRequestFactoryTest.cc
  11778. * test/BtPieceMessageTest.cc
  11779. Removed typedef PeerStats.
  11780. * src/PeerStat.h
  11781. * src/SegmentMan.cc
  11782. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11783. Added std namespace to copy, remove_copy, back_inserter,
  11784. front_inserter.
  11785. * src/RequestGroupMan.cc
  11786. * src/DefaultPieceStorage.cc
  11787. * src/StreamFileAllocationEntry.cc
  11788. * src/BtFileAllocationEntry.cc
  11789. * src/RequestGroup.cc
  11790. * src/MetalinkEntry.cc
  11791. * src/DelegatingPeerListProcessor.cc
  11792. * src/DefaultBtRequestFactory.cc
  11793. * src/DefaultBtMessageDispatcher.cc
  11794. * src/version_usage.cc: Included <algorithm>
  11795. * src/main.cc
  11796. * src/MetalinkParserController.cc
  11797. * src/DefaultBtContext.cc
  11798. * src/DownloadEngineFactory.cc
  11799. * src/a2algo.h
  11800. Removed.
  11801. * test/StreamUriListParserTest.cc
  11802. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11803. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  11804. ActivePeerConnectionCommand when it is given and
  11805. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  11806. * src/ActivePeerConnectionCommand.{h, cc}
  11807. * src/BtSetup.cc
  11808. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11809. Only add socket to DownloadEngine's select routine when peer or
  11810. localhost is unchoked and interested. This lowers CPU usage a
  11811. little bit.
  11812. * src/PeerInteractionCommand.cc
  11813. * src/PeerAbstractCommand.{h, cc}
  11814. * src/BtInteractive.h
  11815. * src/DefaultBtInteractive.{h, cc}
  11816. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11817. Revert previous change because get_peers message is needed for
  11818. announce_peer anyway.
  11819. * src/DHTGetPeersCommand.cc
  11820. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11821. Request peers thought DHT only when download hasn't finished.
  11822. * src/DHTGetPeersCommand.cc
  11823. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11824. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  11825. * src/DHTBucketRefreshTask.{h, cc}
  11826. * src/DHTSetup.cc
  11827. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11828. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  11829. standard classes.
  11830. Included string.h where mem* function are used.
  11831. Added namespace aria2.
  11832. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11833. Create directory before saving DHT routing table.
  11834. Now ios::failure is now handled properly.
  11835. * src/DHTAutoSaveCommand.cc
  11836. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11837. Removed unnecessary cerr.
  11838. * src/DownloadEngine.cc
  11839. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11840. Catch exception inside DHTMessageReceiver::receiveMessage().
  11841. Log unknown message.
  11842. * src/DHTMessageReceiver.{h, cc}
  11843. * src/DHTMessageFactory.h
  11844. * src/DHTMessageFactoryImpl.{h, cc}
  11845. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  11846. * src/DHTInteractionCommand.cc
  11847. * src/DHTUnknownMessage.{h, cc}
  11848. * test/DHTUnknownMessageTest.cc
  11849. * test/MockDHTMessageFactory.h
  11850. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11851. Commented out ip address comparison because a host can have multiple
  11852. ip addresses and it is hard to predict the hostname is resolved into
  11853. which one.
  11854. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  11855. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11856. * po/Makefile.in: Removed since this is generated by configure.
  11857. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11858. Fixed compiler warning about redefinition of SIZE_MAX.
  11859. Use common.h instead of config.h directly here.
  11860. * src/Platform.{h, cc}
  11861. The check of ENABLE_NLS is made in gettext.h, so it is not required
  11862. here.
  11863. * common.h
  11864. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  11865. Updated gettext related files.
  11866. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  11867. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  11868. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11869. Added DHT functionality, compatible with mainline.
  11870. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  11871. You may need to specify entry point to DHT network using
  11872. --dht-entry-point. DHT uses UDP port to listen incoming message.
  11873. Use --dht-listen-port to specify port number. Make sure that your
  11874. firewall configuration can pass through UDP traffic to the port.
  11875. The routing table is saved in $HOME/.aria2/dht.dat.
  11876. * src/DHT*
  11877. * src/BNode.{h, cc}
  11878. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  11879. particular torrent.
  11880. * src/Data.cc: Rewritten ctor.
  11881. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  11882. --dht-entry-point.
  11883. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  11884. * src/RequestGroup.cc: Initialize DHT functionality. When download
  11885. ends, remove BtContext from DHTPeerAnnounceStorage.
  11886. * src/BtPortMessage.{h, cc}: Rewritten.
  11887. * src/message.h
  11888. * src/OptionHandlerImpl.cc
  11889. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  11890. --dht-entry-point.
  11891. * src/Dictionary.{h, cc} (remove): New function.
  11892. * src/prefs.h
  11893. * src/DefaultBtMessageFactory.h
  11894. * src/BtHandshakeMessage.cc
  11895. * src/ActivePeerConnectionCommand.cc
  11896. * src/SocketCore.{h, cc}: Added datagram socket support.
  11897. * src/DefaultBtMessageFactory.cc
  11898. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  11899. Create DHT commands.
  11900. * src/BtMessageFactory.h
  11901. * src/PeerMessageUtil.{h, cc}
  11902. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11903. Fixed the bug that log file is not written when configuration file doesn't exist.
  11904. This is caused by using Logger class before LogFactory is not configured.
  11905. BUG #1875079
  11906. * src/option_processing.cc
  11907. Warning message "configuration doesn't exist" is only printed when --conf is
  11908. given.
  11909. * src/option_processing.cc
  11910. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11911. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  11912. ShaVisitor is now deprecated and slated to be removed.
  11913. * src/DefaultBtContext.cc
  11914. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11915. Externalize message to message.h
  11916. * src/Platform.cc
  11917. * src/message.h
  11918. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11919. Set default domain and default path to cookie.
  11920. * src/HttpResponse.cc
  11921. * src/CookieBox.{h, cc}
  11922. * src/CookieParser.{h, cc}
  11923. * test/CookieParserTest.cc
  11924. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11925. Added --no-conf and --conf-path command-line option.
  11926. --no-conf option disables loading aria2.conf file.
  11927. --conf-path option changes the configuration file path. The default
  11928. file path is $HOME/.aria2/aria2.conf
  11929. Added a warning message when the configuration file is not found.
  11930. * src/HelpItemFactory.cc
  11931. * src/option_processing.cc
  11932. * src/prefs.h
  11933. * src/usage_text.h
  11934. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11935. Added the message to inform users that other help categories are
  11936. available in -h option.
  11937. * src/version_usage.cc
  11938. * src/TagContainer.{h, cc}
  11939. * test/TagContainerTest.cc
  11940. * src/TaggedItem.{h, cc}
  11941. * test/TaggedItemTest.cc
  11942. * src/HelpItem.h
  11943. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11944. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  11945. from PiecedSegment's ctor.
  11946. Previously Piece::getAllMissingBlockIndexes() is called from
  11947. PiecedSegment() but it is rather expensive since only first element is
  11948. used.
  11949. * src/PiecedSegment.cc
  11950. * src/Piece.{h, cc}
  11951. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11952. Rewritten get*Missing*Index functions. Now no need to allocate memory
  11953. each time these functions are called.
  11954. * src/BitfieldMan.{h, cc}
  11955. * test/BitfieldManTest.cc
  11956. * src/array_fun.h
  11957. * test/array_funTest.cc
  11958. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  11959. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  11960. filtered. Removed unnecessary cast to int32_t.
  11961. * src/BitfieldMan.{h, cc}
  11962. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11963. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  11964. payload length(4bytes) are received. This happens because lenbufLength
  11965. is not updated in this particular case and successive call of
  11966. receiveMessage() overwrites payload length with bytes recieved which
  11967. are payload body.
  11968. * src/PeerConnection.{h, cc}
  11969. * src/message.h
  11970. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11971. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  11972. peer if there are peers that have same ipaddr and port.
  11973. I've experiened segmentation fault and "pure virtual function was
  11974. called" error.
  11975. * src/Peer.h
  11976. * test/PeerTest.cc
  11977. * src/DefaultPeerStorage.cc
  11978. * test/DefaultPeerStorageTest.cc
  11979. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11980. Removed a call to isPowerOf() because it is no longer necessary here
  11981. and a request block is not always power of 2.
  11982. BUG#1866924
  11983. * src/PeerMessageUtil.cc (checkLength)
  11984. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11985. Fixed the bug that always first found Segment is removed from
  11986. usedSegmentEntries. Removed unused functions.
  11987. * src/SegmentMan.{h, cc}
  11988. * test/SegmentManTest.cc
  11989. Fixed the bug that ServerHost is not removed.
  11990. * src/RequestGroup.cc
  11991. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11992. Fixed the bug that SegmentMan::completeSegment() is not called
  11993. even if Segment is complete when --lowest-speed-limit is enabled.
  11994. BUG#1864525
  11995. * src/DownloadCommand.{h, cc}
  11996. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11997. Fixed: hash algorithm 'sha1' is always used.
  11998. * src/DownloadCommand.cc (validatePieceHash)
  11999. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12000. Added --enable-peer-exchange command-line option.
  12001. * src/OptionHandlerFactory.cc
  12002. * src/HelpItemFactory.cc
  12003. * src/option_processing.cc
  12004. * src/usage_text.h
  12005. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12006. Move extension from BtRuntime to ExtensionMessageFactory, because
  12007. extension can be specified per peer, not per torrent.
  12008. * src/DefaultBtInteractive.cc
  12009. * src/BtRuntime.h
  12010. * src/ExtendedMessagingAware.h
  12011. * src/ExtensionMessageFactory.h
  12012. * src/DefaultExtensionMessageFactory.cc
  12013. * test/DefaultExtensionMessageFactoryTest.cc
  12014. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12015. Added categorized option help. Specify category using --help option.
  12016. Also added the ability to search options in forward match.
  12017. * src/HelpItem.{h, cc}
  12018. * test/HelpItemTest.cc
  12019. * src/HelpItemFactory.{h, cc}
  12020. * src/TagContainer.{h, cc}
  12021. * test/TagContainerTest.cc
  12022. * src/option_processing.cc
  12023. * src/prefs.h
  12024. * src/TaggedItem.{h, cc}
  12025. * test/TaggedItemTest.cc
  12026. * src/version_usage.cc
  12027. * src/help_tags.h
  12028. * src/usage_text.h
  12029. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12030. Fixed segmentation fault when bad torrent metainfo is parsed.
  12031. Added dynamic_cast properly to detect the misconfiguration of metainfo
  12032. and then throw exception or skip it.
  12033. * src/DefaultBtContext.{h, cc}
  12034. * test/DefaultBtContextTest.cc
  12035. * src/AnnounceList.cc
  12036. * src/CompactPeerListProcessor.cc
  12037. * src/message.h
  12038. * src/DefaultBtAnnounce.{h, cc}
  12039. * test/DefaultBtAnnounceTest.cc
  12040. * src/BencodeVisitor.cc
  12041. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12042. Added missing "B"(=Byte). So now the message looks like this:
  12043. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  12044. * src/message.h (MSG_SHARE_RATIO_REPORT)
  12045. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12046. Show the seed ratio after torrent downloads.
  12047. For example, after torrent download completed and --seed-time and
  12048. --seed-ratio conditions are fulfilled, following message is printed
  12049. right after "Download complete: .....":
  12050. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  12051. * src/RequestGroupMan.cc
  12052. * src/RequestGroup.{h, cc}
  12053. * src/message.h
  12054. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12055. Remove a defunct control file. A defunct control file means that while
  12056. it exists, but the corresponding download file is missing.
  12057. After its removal, a download restarts from the beginning.
  12058. * src/RequestGroup.cc
  12059. * src/message.h
  12060. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12061. Allocate bitfield in Peer when it is really used. More specifically,
  12062. bitfield in Peer is allocated after the connection is established and
  12063. deallocated when the connection is dropped.
  12064. Since 2 parameters(piece length and total length) was removed from the
  12065. constructor of Peer class, many test classes were modified accordingly.
  12066. See svn log for more detailed information.
  12067. * src/PeerInteractionCommand.cc
  12068. * src/CompactPeerListProcessor.cc
  12069. * src/Peer.cc
  12070. * src/DefaultPeerListProcessor.cc
  12071. * src/PeerListenCommand.cc
  12072. * src/PeerReceiveHandshakeCommand.cc
  12073. Fixed memory leak
  12074. * src/Piece.cc
  12075. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12076. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  12077. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  12078. command-line options.
  12079. * src/option_processing.cc
  12080. * src/ActivePeerConnectionCommand.cc
  12081. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12082. Send have message to peer if it already has the piece.
  12083. * src/BtHaveMessage.{h, cc}
  12084. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12085. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  12086. port.
  12087. * src/DefaultPeerStorage.{h, cc}
  12088. * test/DefaultPeerStorageTest.cc
  12089. * src/HandshakeExtensionMessage.cc
  12090. * test/HandshakeExtensionMessageTest.cc
  12091. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  12092. * src/PeerStorage.h
  12093. * test/MockPeerStorage.h
  12094. * src/PeerListenCommand.cc
  12095. * src/PeerReceiveHandshakeCommand.cc
  12096. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12097. Added --metalink-enable-unique-protocol option.
  12098. * src/Metalink2RequestGroup.cc
  12099. * src/option_processing.cc
  12100. * src/prefs.h
  12101. * src/version_usage.cc
  12102. * doc/aria2c.1.txt
  12103. * doc/aria2c.1
  12104. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12105. Allow a peer in incomingPeer to be added peers.
  12106. * src/DefaultPeerStorage.cc
  12107. * test/DefaultPeerStorageTest.cc
  12108. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12109. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  12110. I could reproduce this bug in following procedure:
  12111. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  12112. 2. Restart aria2.
  12113. 3. You see the download stopped around 99%.
  12114. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  12115. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  12116. If timeout is reached, then _nextCommand is unused and it may contains
  12117. segments and they won't be canceled. Actually, timeout is not needed
  12118. here because if the server dropped connection, then retry is made.
  12119. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12120. Added uTorrent compatible Peer Exchange.
  12121. * src/BencodeVisitor.{h, cc}
  12122. * test/BencodeVisitorTest.cc
  12123. * src/BtConstants.h
  12124. * src/BtContext.h: Added 'private' flag.
  12125. * src/BtExtendedMessage.{h, cc}
  12126. * test/BtExtendedMessageTest.cc
  12127. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  12128. reserved field.
  12129. * test/BtHandshakeMessageTest.cc
  12130. * src/BtMessageFactory.h
  12131. * src/BtRegistry.h
  12132. * src/BtRuntime.h: This class holds default extension message IDs for
  12133. aria2. By default, aria2 uses ID 8 for ut_pex.
  12134. * src/DefaultBtContext.cc
  12135. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  12136. When it is true, aria2 enables ut_pex. This value is set by
  12137. PeerInteractionCommand.
  12138. * src/DefaultBtMessageFactory.{h, cc}
  12139. * test/DefaultBtMessageFactoryTest.cc
  12140. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  12141. handling to DefaultBtInteractive class.
  12142. * src/DefaultExtensionMessageFactory.{h, cc}
  12143. * test/DefaultExtensionMessageFactoryTest.cc
  12144. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  12145. the container(peers and incomingPeers. The equality is determined by
  12146. Peer::id).
  12147. * test/DefaultPeerStorageTest.cc
  12148. * src/ExtensionMessage.h
  12149. * test/MockExtensionMessage.h
  12150. * src/ExtensionMessageFactory.h
  12151. * test/MockExtensionMessageFactory.h
  12152. * src/HandshakeExtensionMessage.{h, cc}
  12153. * test/HandshakeExtensionMessageTest.cc
  12154. * src/MetaEntry.h
  12155. * src/Peer.{h, cc}
  12156. * src/PeerInteractionCommand.cc
  12157. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  12158. addIncomingPeer.
  12159. * src/PeerMessageUtil.{h, cc}
  12160. * src/PeerObject.h
  12161. * src/UTPexExtensionMessage.{h, cc}
  12162. * test/UTPexExtensionMessageTest.cc
  12163. * src/message.h
  12164. * src/prefs.h
  12165. Fixed the bug that returns incomplete data when it contains null
  12166. character. A convenient constructor was also added.
  12167. * src/Data.{h, cc}
  12168. Rewritten.
  12169. * src/CompactPeerListProcessor.cc
  12170. Fixed typos.
  12171. * src/message.h
  12172. * src/MetaFileUtil.cc
  12173. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12174. Added "Status Legend" label to the explanation text of 'stat' in
  12175. download result and moved it to the last. BUG#1848214
  12176. * src/RequestGroupMan.cc
  12177. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12178. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  12179. * src/Makefie.am
  12180. * test/Makefile.am
  12181. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12182. Fixed the bug that prevents aria2 from loading cookie file when expire
  12183. value is greater than 2^31-1. BUG#1851066
  12184. * src/CookieBoxFactory.cc
  12185. * test/CookieBoxFactoryTest.cc
  12186. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12187. Fixed possible memory leak when an exception is thrown.
  12188. * src/XML2SAXMetalinkProcessor.cc
  12189. Added Expat support. If both libxml2 and Expat are installed, then
  12190. libxml2 is used by default.
  12191. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  12192. ExpatMetalinkProcessor according to the configuration.
  12193. * src/ExpatMetalinkProcessor.{h, cc}
  12194. * src/main.cc: Removed libxml2 specific header and init/free function.
  12195. * src/MetalinkProcessorFactory.{h, cc}
  12196. * src/MetalinkHelper.cc
  12197. * src/Metalinker.h: Removed unnecessary libxml2 header.
  12198. * src/MetalinkProcessor.h
  12199. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  12200. MetalinkProcessorTest is used instead.
  12201. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  12202. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  12203. MetalinkProcessorFactory::newInstance().
  12204. * m4/libexpat.m4
  12205. * configure.ac: Added configuration options for libexpat.
  12206. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12207. Disabled -s option in metalink download.
  12208. * src/Metalink2RequestGroup.cc
  12209. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12210. If several protocols are available for a mirror in metalink file,
  12211. aria2 now use one of them. --metalink-preferred-protocol option was
  12212. added to specify the preference of protocol.
  12213. * src/AbstractCommand.cc
  12214. * src/OptionHandlerFactory.cc
  12215. * src/ServerHost.{h, cc}
  12216. * src/Metalink2RequestGroup.cc
  12217. * src/RequestGroup.{h, cc}
  12218. * test/RequestGroupTest.cc
  12219. * src/option_processing.cc
  12220. * src/prefs.h
  12221. * src/HttpResponseCommand.cc
  12222. * src/MetalinkResource.{h, cc}
  12223. * src/FtpNegotiationCommand.cc
  12224. * src/MetalinkEntry.{h, cc}
  12225. * src/MetalinkEntryTest.cc
  12226. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12227. Code cleanup and added debug log.
  12228. * src/PeerConnection.cc
  12229. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12230. Compiler error fix: applied the patch by Tiziano Mueller
  12231. * src/RequestGroup.cc
  12232. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12233. Fixed the bug: only first announce URL is tried in AnnounceTier,
  12234. in stopped and completed event.
  12235. * src/AnnounceList.{h, cc}
  12236. * test/AnnounceListTest.cc
  12237. * src/DefaultBtAnnounce.cc
  12238. * test/DefaultBtAnnounceTest.cc
  12239. Sorted URLs.
  12240. * test/Metalink2RequestGroupTest.cc
  12241. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12242. Removed unnecessary string copy. Updated doc and corrected indentation.
  12243. * src/Base64.cc
  12244. Fixed compilation warnings
  12245. * test/DataTest.cc
  12246. * test/HttpRequestTest.cc
  12247. * test/MetaFileUtilTest.cc
  12248. * test/RequestTest.cc
  12249. * Release 0.12.0
  12250. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12251. Updated translations
  12252. * po/{de,fr,ja,nl,ru}.po
  12253. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  12254. translations. Many thanks to translators.
  12255. * po/{ca,es,it,pt_BR,sv}.po
  12256. * po/LINGUAS
  12257. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12258. Added a notice about URL
  12259. * src/version_usage.cc
  12260. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  12261. Fixed the bug#1845750; CTRL+C does not stop torrent.
  12262. aria2 repeatedly sends stopped request when tracker returns error code.
  12263. * src/AnnounceList.cc
  12264. * test/AnnounceListTest.cc
  12265. * src/AnnounceTier.h
  12266. Added a message when ctrl-c is hit.
  12267. Now second ctrl-c is also handled in signal handler.
  12268. * src/RequestGroupMan.{h, cc}
  12269. * src/RequestGroup.{h, cc}
  12270. * src/MultiUrlRequestInfo.cc
  12271. * src/DownloadEngine.cc
  12272. * src/TrackerWatcherCommand.cc
  12273. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12274. Code cleanup
  12275. * src/Base64.cc (encode)
  12276. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12277. Changed Direct/IO enable/disable procesure in file allocation routine.
  12278. * src/SingleFileAllocationIterator.cc
  12279. (SingleFileAllocationIterator):
  12280. Disable directIO if offset is not multiple of 512.
  12281. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  12282. * src/MultiFileAllocationIterator.cc (allocateChunk):
  12283. Enable created SingleFileAllocationIterator's directIO.
  12284. * src/FileAllocationEntry.cc
  12285. (FileAllocationEntry): Enable directIO here.
  12286. (~FileAllocationEntry): Disable directIO here.
  12287. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12288. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  12289. * src/Peer.{h, cc}
  12290. * src/DefaultPieceStorage.cc
  12291. * test/DefaultPieceStorageTest.cc
  12292. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12293. Rewritten direct I/O support routine
  12294. * src/SingleFileAllocationIterator.cc
  12295. * src/MultiDiskAdaptor.{h, cc}
  12296. * src/ByteArrayDiskWriter.h
  12297. * src/AbstractSingleDiskAdaptor.h
  12298. * src/AbstractDiskWriter.cc
  12299. * src/DefaultPieceStorage.cc
  12300. * src/DiskWriter.h
  12301. * src/BinaryStream.h
  12302. * src/IteratableChunkChecksumValidator.cc
  12303. * src/IteratableChecksumValidator.cc
  12304. * src/CheckIntegrityEntry.cc
  12305. * src/FileAllocationEntry.cc
  12306. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12307. Fixed typo
  12308. * src/version_usage.cc
  12309. Updated doc
  12310. * doc/aria2c.1.txt
  12311. * doc/aria2c.1
  12312. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12313. Fixed compile error without message digest support.
  12314. * src/FileMetalinkParserState.cc
  12315. * src/MetalinkParserController.{h, cc}
  12316. * test/XML2SAXMetalinkProcessorTest.cc
  12317. * test/MetalinkParserControllerTest.cc
  12318. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12319. Enable direct I/O support in checksum checking.
  12320. * src/IteratableChunkChecksumValidator.{h, cc}
  12321. * test/IteratableChunkChecksumValidatorTest.cc
  12322. * src/CheckIntegrityEntry.cc
  12323. * src/PieceHashCheckIntegrityEntry.cc
  12324. * src/IteratableChecksumValidator.{h, cc}
  12325. * src/BtCheckIntegrityEntry.cc: Added doc.
  12326. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12327. Added --allow-piece-length-change option.
  12328. * src/DefaultBtProgressInfoFile.cc
  12329. * test/DefaultBtProgressInfoFileTest.cc
  12330. * src/OptionHandlerFactory.cc
  12331. * src/option_processing.cc
  12332. * src/prefs.h
  12333. * src/version_usage.cc
  12334. * doc/aria2c.1.txt
  12335. * doc/aria2c.1
  12336. Fixed: duplicated result entry appears when exception is thrown in
  12337. RequestGroup::createInitiateConnectionCommand().
  12338. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  12339. Add RequestGroup to _requestGroup after RequetGroup::
  12340. createInitiateConnectionCommand() succeeds.
  12341. Externalized message
  12342. * src/XML2SAXMetalinkProcessor.cc
  12343. * src/message.h
  12344. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12345. Forced download abort when received negative response from http/ftp
  12346. server.
  12347. * src/HttpResponseCommand.cc
  12348. * src/FtpNegotiationCommand.cc
  12349. * src/HttpResponse.cc
  12350. * src/FtpConnection.cc
  12351. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12352. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  12353. the predecessor, Xml2MetalinkParser class.
  12354. I tested them against 94KB metalink file with 1234 chunk checksums.
  12355. The new one parsed it in 22msec, while it took 6000msec with old one.
  12356. * src/XML2SAXMetalinkProcessor.{h, cc}
  12357. * test/XML2SAXMetalinkProcessorTest.cc
  12358. * src/MetalinkParserController.{h, cc}
  12359. * test/MetalinkParserControllerTest.cc
  12360. * src/MetalinkParserState.h: Also added 16 subclasses.
  12361. * src/main.cc
  12362. * src/Metalink2RequestGroup.cc
  12363. * src/MetalinkHelper.cc
  12364. * src/MetalinkEntry.cc
  12365. * src/ChunkChecksum.h
  12366. Rewritten Base64 class for better performance.
  12367. * src/Base64.{h, cc}
  12368. * test/Base64Test.cc
  12369. * src/HttpRequest.cc
  12370. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12371. Fixed the bug#1841757: aria2 will connect to server to only get
  12372. file size.
  12373. * src/StreamFileAllocationEntry.cc
  12374. * src/option_processing.cc
  12375. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  12376. downloads.
  12377. * src/FtpNegotiationCommand.cc
  12378. Suppressed wrong message when finding PreDownloadHandler
  12379. * src/RequestGroup.cc
  12380. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12381. Updated usage
  12382. * src/version_usage.cc
  12383. Updated man page
  12384. * doc/aria2c.1.txt
  12385. * doc/aria2c.1
  12386. Updated po files
  12387. * po/aria2c.pot
  12388. * po/*.po
  12389. * po/*.gmo
  12390. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12391. Eliminated g++-4.2 warning
  12392. * src/DownloadHandlerConstants.{h, cc}
  12393. * src/Util.cc
  12394. * test/MetaFileUtilTest.cc
  12395. * test/PStringBuildVisitorTest.cc
  12396. Fixed bug: --check-integrity doesn't work for multi file torrent.
  12397. * src/RequestGroup.cc
  12398. * src/BtCheckIntegrityEntry.cc
  12399. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12400. Fixed a2io.h
  12401. * src/a2io.h
  12402. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12403. Added direct I/O support. The current implementation uses O_DIRECT,
  12404. which is not posix standard and is tested on linux 2.6.21.
  12405. Currently only file allocation uses direct I/O.
  12406. * src/SingleFileAllocationIterator.{h, cc}
  12407. * test/SingleFileAllocationIteratorTest.cc
  12408. * src/MultiFileAllocationIterator.{h, cc}
  12409. * test/MultiFileAllocationIteratorTest.cc
  12410. * src/BinaryStream.h
  12411. * src/DiskWriter.h
  12412. * src/AbstractDiskWriter.{h, cc}
  12413. * src/ByteArrayDiskWriter.h
  12414. * src/DiskAdaptor.h
  12415. * src/AbstractSingleDiskAdaptor.{h, cc}
  12416. * src/MultiDiskAdaptor.{h, cc}
  12417. * src/FileAllocationEntry.cc
  12418. * src/Util.{h, cc}
  12419. * src/OptionHandlerFactory.cc
  12420. * src/prefs.h
  12421. * src/version_usage.cc
  12422. * src/option_processing.cc
  12423. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  12424. handleException.
  12425. * src/MultiFileAllocationIterator.cc
  12426. Added EINTR handling
  12427. * src/SocketCore.cc
  12428. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12429. Updated usage
  12430. * src/version_usage.cc
  12431. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12432. Applied Ross's patch for MinGW port.
  12433. * src/DownloadEngine.h
  12434. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12435. Set Content-Type to SingleFileDownloadContext when http response is
  12436. received.
  12437. * src/HttpResponseCommand.cc
  12438. * src/HttpResponse.{h, cc}
  12439. * test/HttpResponseTest.cc
  12440. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12441. Rewritten to add content-type support.
  12442. * src/DownloadHandler.{h, cc}
  12443. * src/BtPostDownloadHandler.{h, cc}
  12444. * test/BtPostDownloadHandlerTest.cc
  12445. * src/MetalinkPostDownloadHandler.{h, cc}
  12446. * test/MetalinkPostDownloadHandlerTest.cc
  12447. * src/PostDownloadHandler.{h, cc}
  12448. * src/DownloadHandlerConstants.{h, cc}
  12449. * src/RequestGroup.cc
  12450. * src/HttpResponseCommand.cc
  12451. * src/FtpNegotiationCommand.cc
  12452. * src/SingleFileDownloadContext.{h, cc}
  12453. * src/RequestGroup.h
  12454. * src/RequestGroupCriteria.h
  12455. * src/ContentTypeRequestGroupCriteria.h
  12456. Added 'mem' option value for --follow-metalink, --follow-torrent.
  12457. If it is give, metalink/torrent file is not written to the disk, but
  12458. just is kept in memory. Parsing is occurred on memory.
  12459. * src/MetalinkHelper.{h, cc}
  12460. * src/MetalinkProcessor.h
  12461. * src/Xml2MetalinkProcessor.{h, cc}
  12462. * test/Xml2MetalinkProcessorTest.cc
  12463. * src/DownloadHandlerFactory.{h, cc}
  12464. * test/DownloadHandlerFactoryTest.cc
  12465. * src/PreDownloadHandler.{h, cc}
  12466. * src/OptionHandlerFactory.cc
  12467. * src/DefaultBtContext.{h, cc}
  12468. * test/DefaultBtContextTest.cc
  12469. * src/version_usage.cc
  12470. * src/Metalink2RequestGroup.{h, cc}
  12471. * src/RequestGroup.{h, cc}
  12472. * src/a2functional.h
  12473. * test/a2functionalTest.cc
  12474. * src/MemoryBufferPreDownloadHandler.{h, cc}
  12475. * src/OptionHandlerImpl.h
  12476. * src/prefs.h
  12477. * src/Util.{h, cc}
  12478. * test/UtilTest.cc
  12479. Keep DownloadResult rather than RequestGroup after downloads to reduce
  12480. memory usage.
  12481. * src/RequestGroupMan.{h, cc}
  12482. * src/DownloadEngine.cc
  12483. * src/BtDependency.{h, cc}: Changed the type of dependee from
  12484. WeakHandle to SharedHandle because WeakHandle could be null.
  12485. * src/RequestGroup.{h, cc}
  12486. * src/DownloadEngineFactory.cc
  12487. * src/DownloadResult.h
  12488. Set totalLength after download finished
  12489. * src/UnknownLengthPieceStorage.{h, cc}
  12490. Keep torrent file specified in metalink in memory.
  12491. * src/Metalink2RequestGroup.cc
  12492. * src/BtDependency.cc
  12493. * src/TrueRequestGroupCriteria.h
  12494. Fixed the bug: seekg is used where seekp should be used.
  12495. * src/ByteArrayDiskWriter.cc
  12496. * test/ByteArraydiskWriterTest.cc
  12497. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12498. Fixed syntax error
  12499. * test/SequenceTest.cc
  12500. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12501. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12502. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  12503. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12504. * src/RequestGroup.cc (downloadFinishedByFileLength)
  12505. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12506. Added the check to see whether ares_host_callback accepts timeouts
  12507. with c-ares; only c-ares 1.5.0 or newer accepts it.
  12508. * src/NameResolver.{h, cc}
  12509. * m4/libcares.m4
  12510. * configure.ac: Set C++ for language choice.
  12511. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12512. Fixed: compilation fails without c-ares/ares
  12513. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  12514. Generate http/ftp commands only when download is incomplete.
  12515. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  12516. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12517. Corrected typo. Examples are removed since they are available in man
  12518. page.
  12519. * src/version_usage.cc
  12520. Updated man page.
  12521. * doc/aria2c.1
  12522. * doc/aria2c.1.txt
  12523. * doc/makeman: Commented out sed command.
  12524. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12525. Throw DlAbortEx when a remote file is not found.
  12526. * src/HttpResponse.cc
  12527. * src/FtpNegotiationCommand.cc
  12528. * src/message.h
  12529. Overwrite an existing file if --allow-overwrite=true is given.
  12530. * src/RequestGroup.cc
  12531. Removed unused functions
  12532. * src/AbstractCommand.h
  12533. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12534. Removed 'extern' from 'extern typedef ...' in src/*.h
  12535. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12536. Updated usage
  12537. * src/version_usage.cc
  12538. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12539. Trim announce URL
  12540. * src/DefaultBtContext.cc
  12541. * test/ShaVisitorTest.cc
  12542. Trim argument s. Give trimed s to exception constructor.
  12543. * src/Util.cc (parseInt)(parseLLInt)
  12544. * test/UtilTest.cc
  12545. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12546. Set precision back to 1.
  12547. * src/ConsoleStatCalc.cc (calculateStat)
  12548. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12549. Replaced strtol with Util::parseInt
  12550. * src/ChunkedEncoding.cc
  12551. * src/HttpConnection.cc
  12552. * src/CookieBoxFactory.cc
  12553. * src/ParameterizedStringParser.cc
  12554. * src/Util.cc
  12555. * test/UtilTest.cc
  12556. * test/OptionHandlerTest.cc
  12557. * src/Request.cc
  12558. Throw exception when empty string is given. The message for exception
  12559. changed.
  12560. * src/Util.cc (parseInt)(parseLLInt)
  12561. * src/message.h
  12562. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12563. Set precision to 2 because share ratio is rounded into 1.0 if precision
  12564. set to 1.
  12565. * src/ConsoleStatCalc.cc (calculateStat)
  12566. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12567. Preallocate non-requested file which is adjacent forward to requested
  12568. file('requested' files means the files given in --select-file option)
  12569. if they share a same piece.
  12570. This fixes long pause in the file system which doesn't support sparse
  12571. files like FAT32 while downloading.
  12572. * src/MultiFileAllocationIterator.{h, cc}
  12573. * test/MultiFileAllocationIteratorTest.cc
  12574. * src/FileEntry.{h, cc}
  12575. Removed unused _option.
  12576. * src/MultiDiskAdaptor.h
  12577. * test/MultiDiskAdaptorTest.cc
  12578. * src/DefaultPieceStorage.cc
  12579. Set the default value of --seed-ratio to 1.0.
  12580. If 0.0 is given, then seeding continues regardless of share ratio.
  12581. * src/version_usage.cc
  12582. * src/option_processing.cc
  12583. * src/BtSetup.cc
  12584. * doc/aria2c.1.txt
  12585. * doc/aria2c.1
  12586. Fixed: Selective download is not working in BitTorrent
  12587. * src/RequestGroup.cc
  12588. Introduced Sequence class. Use this instead of Util::unfoldRange()
  12589. * src/PieceStorage.h
  12590. * test/MockPieceStorage.h
  12591. * src/UnknownLengthPieceStorage.h
  12592. * src/DefaultPieceStorage.{h, cc}
  12593. * src/Metalink2RequestGroup.cc
  12594. * src/RequestGroup.cc
  12595. * src/Sequence.h
  12596. * test/SequenceTest.cc
  12597. * src/IntSequence.h
  12598. * src/message.h
  12599. * src/Util.{h, cc}
  12600. * test/UtilTest.cc
  12601. Added new function 'parse' to catch exception thrown by subclass's
  12602. parseArg
  12603. * src/OptionHandler.h
  12604. * src/OptionParser.cc
  12605. * src/NameMatchOptionHandler.h
  12606. * src/OptionHandlerImpl.h
  12607. * test/OptionHandlerTest.cc
  12608. Added IntegerRangeOptionHandler. Used for --listen-port and
  12609. --select-file. Now --listen-port accepts range of port.
  12610. * src/OptionHandlerFactory.cc
  12611. * src/version_usage.cc
  12612. * src/OptionHandlerImpl.h
  12613. * src/option_processing.cc
  12614. * src/BtSetup.cc
  12615. * src/PeerListenCommand.{h, cc}
  12616. * doc/aria2c.1.txt
  12617. * doc/aria2c.1
  12618. Implemented operator< for Exception class to provide easy way to print
  12619. exception stack trace.
  12620. * src/Exception.{h, cc}
  12621. * src/main.cc
  12622. * src/option_processing.cc
  12623. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12624. * src/version_usage.cc
  12625. (showVersion): Reworked.
  12626. (showUsage): Added examples.
  12627. Removed Hint for total length and file name.
  12628. * src/Metalink2RequestGroup.cc
  12629. * src/RequestGroup.{h, cc}
  12630. * src/HttpResponseCommand.cc
  12631. * src/FtpNegotiationCommand.cc
  12632. Now --follow-torrent and --follow-metalink option work properly.
  12633. * src/RequestGroup.cc
  12634. Updated man page
  12635. * doc/aria2c.1.txt
  12636. * doc/aria2c.1
  12637. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12638. Removed.
  12639. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  12640. Use Segment::operator==()
  12641. * src/HttpConnection.cc
  12642. * src/Segment.h
  12643. Updated usage
  12644. * src/version_usage.cc
  12645. Added EINTR treatment.
  12646. * src/SocketCore.cc
  12647. * src/AbstractDiskWriter.cc
  12648. Rewritten.
  12649. * src/Util.cc (rangedFileCopy)
  12650. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12651. Fixed typo.
  12652. * src/version_usage.cc
  12653. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12654. Implemented. Now -c option works fine.
  12655. * src/DefaultPieceStorage.cc (markPiecesDone)
  12656. * test/DefaultPieceStorageTest.cc
  12657. Removed.
  12658. * src/SegmentMan.{h, cc}
  12659. (markAllPiecesDone)
  12660. (markPieceDone)
  12661. Synchronized po files with
  12662. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  12663. * src/fr.po
  12664. * src/ru.po
  12665. * src/de.po
  12666. * src/ja.po
  12667. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12668. Added ifdef and some modifications to compile without BitTorrent,
  12669. Metalink, MessageDigest
  12670. support.
  12671. * src/PieceHashCheckIntegrityEntry.cc
  12672. * src/MetalinkEntry.h
  12673. * src/version_usage.cc
  12674. * src/main.cc
  12675. * src/DownloadEngine.{h, cc}
  12676. * src/Metalink2RequestGroup.cc
  12677. * src/Peer.cc
  12678. * src/RequestGroup.cc
  12679. * src/MetalinkHelper.cc
  12680. * test/DefaultPieceStorageTest.cc
  12681. * test/MetalinkPostDownloadHandlerTest.cc
  12682. * test/Metalink2RequestGroupTest.cc
  12683. Hide TOTAL SPD when all downloads complete.
  12684. * src/ConsoleStatCalc.cc
  12685. Log target system information.
  12686. * src/main.cc
  12687. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12688. Now --metalink-location accepts a comma-deliminated list of locations.
  12689. * src/MetalinkEntry.{h, cc}
  12690. * test/MetalinkEntryTest.cc
  12691. * src/version_usage.cc
  12692. * src/Metalink2RequestGroup.cc
  12693. * src/Xml2MetalinkProcessor.cc
  12694. * test/Xml2MetalinkProcessorTest.cc
  12695. * doc/aria2c.1.txt
  12696. * doc/aria2c.1
  12697. * src/Util.cc (toUpper)(toLower): Rewritten.
  12698. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12699. Added the ability to detect duplicate download entry which is about to
  12700. download the same file other RequestGroup is downloading.
  12701. * src/RequestGroup.cc
  12702. * src/HttpResponseCommand.cc
  12703. * src/FtpNegotiationCommand.cc
  12704. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12705. Recalculates download progress when loading a control file,
  12706. if the piece length of DownloadContext is different from the one saved
  12707. in the control file. Currently in-flight pieces are ignored.
  12708. * src/DefaultBtProgressInfoFile.cc
  12709. * test/DefaultBtProgressInfoFileTest.cc
  12710. * src/Util.{h, cc}
  12711. * test/UtilTest.cc
  12712. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12713. Do not rotate tiers in announce-list.
  12714. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  12715. AnnounceList::allTiersFailed() used instead to detect whether all
  12716. tiers are tried and failed.
  12717. * test/DefaultBtAnnounceTest.cc
  12718. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  12719. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  12720. * test/AnnounceListTest.cc
  12721. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  12722. clause. Catch RecoverableException instead of DlRetryEx instead.
  12723. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12724. Implemented checksum validation feature(1 checksum for each file)
  12725. The validation takes place after the download.
  12726. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  12727. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  12728. * src/CheckIntegrityCommand.cc: Changed log message.
  12729. * src/Metalink2RequestGroup.cc: Set checksum to
  12730. SingleFileDownloadContext.
  12731. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  12732. PieceHashCheckIntegrity class.
  12733. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  12734. PieceHashCheckIntegrity class.
  12735. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  12736. * src/IteratableValidator.h: New class.
  12737. * src/message.h
  12738. * src/CheckIntegrityEntry.{h, cc}
  12739. * src/IteratableChunkChecksumValidator.{h, cc}
  12740. * src/SingleFileDownloadContext.h
  12741. * src/DownloadCommand.cc
  12742. --allow-overwrite=true is no longer needed to check file integrity
  12743. before download in BitTorrent download.
  12744. * src/RequestGroup.cc (getInitialCommand)
  12745. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  12746. throws exception.
  12747. * src/RequestGroupMan.cc (getInitialCommands)
  12748. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12749. urlencode the given url inside Request::parseUrl(...)
  12750. * src/Request.{h, cc}
  12751. * src/Util.{h, cc}
  12752. * test/RequestTest.cc
  12753. Removed #!metalink3! notation support because it is deleted from
  12754. the metalink specification.
  12755. * src/Request.{h, cc}
  12756. * test/RequestTest.cc
  12757. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12758. Don't connect server before checking file integrity at startup, if
  12759. filesize and output file path are known.
  12760. * src/AbstractCommand.cc
  12761. * src/StreamFileAllocationEntry.cc
  12762. * src/Metalink2RequestGroup.cc
  12763. * src/RequestGroup.{h, cc}
  12764. * src/HttpResponseCommand.cc
  12765. * src/FtpNegotiationCommand.cc
  12766. Added DownloadFailureException. If it is thrown, RequestGroup should
  12767. halt.
  12768. * src/AbstractCommand.cc
  12769. * src/DownloadFailureException.h
  12770. * src/RequestGroup.cc
  12771. Catch RecoverableException, instead of DlAbortEx.
  12772. * src/RequestGroupMan.cc
  12773. * src/FillRequestGroupCommand.cc
  12774. * src/MetaFileUtil.cc
  12775. * src/IteratableChunkChecksumValidator.cc
  12776. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  12777. getGID())
  12778. * src/CheckIntegrityCommand.cc
  12779. * src/message.h
  12780. Print gid instead of idx.
  12781. * src/RequestGroupMan.cc
  12782. Removed exception throwers declaration.
  12783. * src/DirectDiskAdaptor.{h, cc}
  12784. * src/SocketCore.{h, cc}
  12785. * src/MultiDiskAdaptor.{h, cc}
  12786. * src/HttpConnection.{h, cc}
  12787. * src/HttpResponse.{h, cc}
  12788. * src/DiskAdaptor.{h, cc}
  12789. * src/CopyDiskAdaptor.{h, cc}
  12790. * src/MultiDiskAdaptor.{h, cc}
  12791. * src/HttpHeaderProcessor.{h, cc}
  12792. * src/AbstractSingleDiskAdaptor.{h, cc}
  12793. * src/Util.{h, cc}
  12794. * test/UtilTest.cc
  12795. * src/DefaultDiskWriter.{h, cc}
  12796. * src/FtpConnection.{h, cc}
  12797. * src/AbstractDiskWriter.{h, cc}
  12798. Removed duplicate code.
  12799. * src/StreamCheckIntegrityEntry.cc
  12800. Removed unnecessary include.
  12801. * src/DiskWriter.h
  12802. Included Exception.h
  12803. * src/option_processing.cc
  12804. Included 2 files and added doc
  12805. * src/TrackerWatcherCommand.cc
  12806. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  12807. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12808. Changed CheckIntegrityEntry interface so that it can define
  12809. the action when all the chunk checksums are valid.
  12810. * src/CheckIntegrityEntry.h
  12811. * src/StreamCheckIntegrityEntry.{h, cc}
  12812. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  12813. are valid, then aira2 goes to seeding mode. Sometimes it is better
  12814. to exit rather than doing seeding. So, it would be good to toggle this
  12815. behavior.
  12816. * src/CheckIntegrityCommand.cc
  12817. * src/AbstractCommand.cc
  12818. * src/RequestGroup.cc
  12819. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12820. Reflect the download length of in-flight pieces.
  12821. It makes the download length readout more precise.
  12822. * src/DefaultPieceStorage.{h, cc}
  12823. * test/DefaultPieceStorageTest.cc
  12824. * src/a2functional.h
  12825. * test/a2functionalTest.cc
  12826. Lower CPU load when --max-download-limit is used.
  12827. There is up and down in speed indicator when enabling
  12828. http-pipelining but a download goes well. I think the problem is that
  12829. because http-pipelining is enabled, DownloadCommand is created for
  12830. each segment and in its constructor, PeerStat::downloadStart() is
  12831. called. In PeerStat::downloadStart(), speed calculation object is
  12832. reseted, which makes download speed zero.
  12833. * src/DownloadCommand.cc
  12834. Rewritten using accumulate.
  12835. * src/RequestGroupMan.cc (calculateStat)
  12836. Code clearnup.
  12837. * src/FtpNegotiationCommand.cc
  12838. * src/HttpResponseCommand.cc
  12839. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12840. Fixed: Can not resume: aria2 reports download already finished.
  12841. * src/AbstractCommand.{h, cc}
  12842. * src/HttpResponseCommand.cc
  12843. * src/FtpNegotiateCommand.cc
  12844. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12845. Now a file is stored in the directory specified in .metalnk file
  12846. (file[@name]).
  12847. * src/Metalink2RequestGroup.cc
  12848. Create the directory structure when opening the file if it doesn't
  12849. exist.
  12850. * src/AbstractDiskWriter.cc
  12851. * src/Util.{h, cc}
  12852. * src/File.h
  12853. * test/UtilTest.cc
  12854. Removed file name comparison
  12855. * src/Metalink2RequestGroup.cc
  12856. * src/HttpResponseCommand.cc
  12857. Rewritten using Util::mkdirs()
  12858. * src/FileEntry.cc (setupDir)
  12859. * test/FileEntryTest.cc
  12860. Updated doc
  12861. * src/SingleFileDownloadContext.h
  12862. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12863. Now SleepCommand dispatches nextCommand when halt is requested.
  12864. It avoids a possible long wait after hitting CTRL-C.
  12865. * src/SleepCommand.{h, cc}
  12866. * src/RequestGroupAware.{h, cc}
  12867. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12868. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  12869. to open listen port, then remove the port number from the tracker
  12870. request.
  12871. * src/DefaultBtAnnounce.cc
  12872. * test/DefaultBtAnnounceTest.cc
  12873. * test/MockPieceStorage.h
  12874. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  12875. them more testable.
  12876. * src/DefaultBtAnnounce.{h, cc}
  12877. * src/DefaultBtContext.{h, cc}
  12878. * src/Util.{h, cc}
  12879. * test/DefaultBtAnnounceTest.cc
  12880. * test/DefaultBtContextTest.cc
  12881. * test/UtilTest.cc
  12882. Added 'B' to upload bytes readout.
  12883. * src/ConsoleStatCalc.cc
  12884. Now the listen port for BitTorrent download is opened when it is
  12885. needed.
  12886. * src/DownloadEngineFactory.cc
  12887. * src/BtSetup.{h, cc}
  12888. * src/PeerListenCommand.{h, cc}
  12889. Now an exception thrown while parsing tracker response is now logged.
  12890. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  12891. called, which means no retry is made in this case, assuming a tracker
  12892. has a problem.
  12893. * src/TrackerWatcherCommand.cc
  12894. Fixed: downloading a file whose length is unkown fails.
  12895. * src/DownloadCommand.cc
  12896. Simplified prepareForNextSegment()
  12897. * src/DownloadCommand.cc
  12898. Updated
  12899. * po/POTFILES.in
  12900. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12901. Re-implemented a file listing for Metalink, which was dropped while
  12902. http/ftp/torrent integration was being implemented.
  12903. * src/MetalinkHelper.{h, cc}: New class.
  12904. * test/MetalinkHelperTest.cc
  12905. * src/main.cc
  12906. * src/Metalink2RequestGroup.cc
  12907. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12908. Added the ability to display the detailed torrent file information.
  12909. Now -S option gives not only a file listing, but also total download
  12910. length, info hash, announce URI, piece length, the number of pieces,
  12911. and mode(single or multi-torrent).
  12912. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  12913. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  12914. KiB)
  12915. * test/UtilTest.cc
  12916. * src/main.cc
  12917. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12918. Added ftp://USER:PASSWD@Servername automatic parsing.
  12919. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  12920. _password. Recognize username and password in URI.
  12921. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  12922. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  12923. * src/RequestFactory.{h, cc}: Removed.
  12924. * src/AuthConfigFactory.{h, cc}: New class.
  12925. * src/FtpConnection.cc: Use AuthConfigFactory.
  12926. * src/HttpRequest.cc: Use AuthConfigFactory.
  12927. * test/HttpRequestTest.cc: Updated.
  12928. * test/RequestTest.cc: Updated.
  12929. * test/AuthConfigFactoryTest.cc: New class.
  12930. * test/RequestFactoryTest.cc: Removed.
  12931. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12932. Use RequestGroup::allDownloadFinished() to decide whether the control
  12933. file should be removed or saved.
  12934. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  12935. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  12936. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12937. Use File::renameTo()
  12938. * src/DefaultBtProgressInfoFile.cc
  12939. Added --no-file-allocation-limit command-line option.
  12940. * src/version_usage.cc
  12941. * src/option_processing.cc
  12942. * src/OptionHandlerFactory.cc
  12943. * src/RequestGroup.{h, cc}
  12944. * src/BtCheckIntegrityEntry.cc
  12945. * src/StreamCheckIntegrityEntry.cc
  12946. * src/prefs.h
  12947. * doc/aria2c.1.txt
  12948. * doc/aria2c.1
  12949. Now prealloc is the default value for --file-allocation option.
  12950. * src/version_usage.cc
  12951. * src/option_processing.cc
  12952. * doc/aria2c.1.txt
  12953. * doc/aria2c.1
  12954. Don't URL-encode user-agent.
  12955. * src/HttpRequest.cc
  12956. Updated translations
  12957. * po/LINGUAS: Added nl for Dutch translation.
  12958. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  12959. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  12960. * po/POTFILES.in: Updated.
  12961. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12962. Added the ability to recognize url-list in a torrent file.
  12963. The retrieved URLs are attached to the corresponding FileEntry.
  12964. * src/DefaultBtContext.{h, cc}
  12965. * src/FileEntry.{h, cc}
  12966. * test/DefaultBtContextTest.cc
  12967. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12968. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  12969. after the download finishes.
  12970. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12971. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  12972. the data smaller than block length.
  12973. A block length can be specified by constructor's argument.
  12974. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  12975. Get a missing piece in the range of given FileEntry. This function is
  12976. not used in the program yet.
  12977. * src/Util.h: Added some macros.
  12978. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12979. Added HTTP/1.1 keep alive and pipelining support.
  12980. See --enable-http-keep-alive and --enable-http-pipelining option.
  12981. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  12982. Segment.
  12983. * src/HttpDownloadCommand.{h, cc}
  12984. * src/OptionHandlerFactory.cc
  12985. * src/HttpConnection.{h, cc}
  12986. * src/version_usage.cc
  12987. * src/HttpInitiateConnectionCommand.cc
  12988. * src/FtpInitiateConnectionCommand.cc
  12989. * src/Segment.h
  12990. * src/HttpRequestCommand.{h, cc}
  12991. * src/option_processing.cc
  12992. * src/prefs.h
  12993. * src/HttpResponseCommand.cc
  12994. * src/SegmentMan.{h, cc}
  12995. * src/FtpNegotiateCommand.cc
  12996. * src/HttpProxyResponseCommand.cc
  12997. * src/Request.cc
  12998. * src/HttpRequest.cc
  12999. * src/DownloadCommand.cc
  13000. * test/HttpRequestTest.cc
  13001. * test/RequestTest.cc
  13002. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13003. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  13004. finished.
  13005. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13006. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  13007. catching it inside the method.
  13008. When no file entry is found in a metalink without querying user
  13009. preferences, throw the exception with the error message that suggests
  13010. metalink file is probably broken.
  13011. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  13012. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13013. Fixed the bug that prevents remote Metalink/Torrent file from begin
  13014. processed.
  13015. * src/RequestGroupMan.cc (removeStoppedGroup)
  13016. Added debug message.
  13017. * src/BtPostDownloadHandler.cc
  13018. * src/MetalinkPostDownloadHandler.cc
  13019. * src/PostDownloadHandler.{h, cc}
  13020. * src/RequestGroup.cc
  13021. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13022. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  13023. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13024. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  13025. stops and there are any unfinished or in-progress downloads.
  13026. Added the legend of "stat".
  13027. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13028. Throw exception when chunck checksum verification fails.
  13029. * src/DownloadCommand.cc (validatePieceHash): New function.
  13030. * src/PiecedSegment.{h, cc} (clear): New function.
  13031. * src/GrowSegment.{h, cc} (clear): New function.
  13032. * src/Segment.h (clear): New function.
  13033. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  13034. * test/SegmentTest.cc
  13035. * test/GrowSegmentTest.cc
  13036. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13037. Do not send referer when redirected.
  13038. * src/Request.cc (redirectUrl)
  13039. * test/RequestTest.cc
  13040. * test/HttpRequestTest.cc
  13041. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13042. Implemented BitTorrent/http/ftp integrated download.
  13043. I've rewritten lots of files and now some headers have forward
  13044. class declarations to reduce compile time.
  13045. The implementation is extremely alpha stage, I recommend to use this
  13046. for testing purpose only.
  13047. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13048. Fixed the compilation error on 64bit platform.
  13049. * test/HttpHeaderProcessorTest.cc
  13050. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13051. Merged Ross's patch that fixes compilation problem in MinGW
  13052. * test/DefaultBtProgressInfoFileTest.cc
  13053. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13054. Updated fr.po by sebone
  13055. * po/fr.po
  13056. Updated man page.
  13057. * doc/aria2c.1.txt
  13058. * Release 0.11.3
  13059. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13060. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  13061. failure in Metalink.
  13062. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13063. Automatically save *.aria2 control file of http/ftp download in every
  13064. 60 seconds.
  13065. * src/AutoSaveCommand.{h, cc}: New class.
  13066. * src/TimeBasedCommand.{h, cc}: New class.
  13067. * src/DownloadEngineFactory.cc (newConsoleEngine)
  13068. Disable parameterized URI support by default. Added -P option to
  13069. enable the feature.
  13070. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  13071. * src/OptionHandlerFactory.cc
  13072. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  13073. Updated Japanese translation.
  13074. * po/ja.po
  13075. Updated man page.
  13076. * doc/aria2c.1.txt
  13077. * Release 0.11.3-rc
  13078. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13079. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  13080. it is successful, then renamed to *.aria2.
  13081. This prevents *.aria2 file from being truncated or corrupted when
  13082. file system becomes out of space.
  13083. * src/DefaultBtProgressInfoFile.cc (save)
  13084. * src/SegmentMan.cc (save)
  13085. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  13086. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13087. Reduced the fragmentation of bitfield in http/ftp download.
  13088. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  13089. * test/BitfieldManTest.cc
  13090. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13091. Added the ability to disable segmented download in .metalink.
  13092. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  13093. 'url' tag.
  13094. * src/MetalinkEntry.{h, cc}
  13095. * src/RequestResource.{h, cc}
  13096. * src/MetalinkRequestInfo.cc
  13097. * src/Xml2MetalinkProcessor.cc
  13098. * test/Xml2MetalinkProcessorTest.cc
  13099. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13100. Added parameterized URI support.
  13101. * src/main.cc: -Z option added.
  13102. * src/OptionHandlerFactory.cc
  13103. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  13104. * src/PStringDatum.h: New class.
  13105. * src/PStringSegment.{h,cc}: New class.
  13106. * src/PStringNumLoop.h: New class.
  13107. * src/PStringSelect.h: New class.
  13108. * src/NumberDecorator.h: New class.
  13109. * src/FixedWidthNumberDecorator.h: New class.
  13110. * src/AlphaNumberDecorator.h: New class.
  13111. * src/PStringVisitor.h: New class.
  13112. * src/PStringBuildVisitor.{h,cc}: New class.
  13113. * src/ParameterizedStringParser.{h,cc}: New class.
  13114. * src/Util.{h,cc}
  13115. (isNumber): New function.
  13116. (isLowercase): New function.
  13117. (isUppercase): New function.
  13118. (alphaToNum): New function.
  13119. * test/ParameterizedStringParserTest.cc: New class.
  13120. * test/AlphaNumberDecoratorTest.cc: New class.
  13121. * test/PStringBuildVisitorTest.cc: New class.
  13122. * test/UtilTest.cc
  13123. (testIsNumber): New function.
  13124. (testIsLowercase): New function.
  13125. (testIsUppercase): New function.
  13126. (testAlphaToNum): New function.
  13127. Added '\n' after the error message
  13128. * src/RequestInfo.h (printDownloadAbortMessage)
  13129. Added auto file renaming feature in http(s)/ftp download.
  13130. * src/main.cc: Added --auto-file-renaming command-line option.
  13131. * src/OptionHandlerFactory.cc
  13132. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  13133. * src/RequestGroup.{h, cc}
  13134. (shouldCancelDownloadForSafety): Rewritten
  13135. (tryAutoFileRenaming): New function.
  13136. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  13137. * src/HttpResponseCommand.cc
  13138. (executeInternal): Removed the call to RequestGroupMan::
  13139. isSameFileBeingDownloaded()
  13140. * src/FtpNegotiateCommand.cc
  13141. (recvSize): Removed the call to RequestGroupMan::
  13142. isSameFileBeingDownloaded()
  13143. * test/RequestGroupTest.cc: New class.
  13144. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13145. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  13146. IO.
  13147. * src/DefaultBtProgressInfoFile.cc
  13148. * src/MetaFileUtil.cc
  13149. * src/SimpleLogger.cc
  13150. * src/SegmentMan.cc
  13151. * src/Util.cc
  13152. * src/Platform.cc
  13153. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13154. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  13155. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13156. Avoid sparse files if possible, because VFAT32 doesn't support it.
  13157. * src/DefaultDiskWriter.cc (initAndOpenFile)
  13158. Fixed the bug that prevents file allocation is not done when
  13159. dowloading multi-torrent file.
  13160. * src/AbstractDiskWriter.cc (openFile)
  13161. Increase the maximum number of -j option from 15 to 45.
  13162. * src/OptionHandlerFactory.cc (createOptionHandlers)
  13163. Added fr.po, thanks to Charles Landemaine.
  13164. * po/fr.po
  13165. * po/LINGUAS
  13166. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  13167. gcc 3.4.4 support:
  13168. * src/DefaultBtContext.cc: int32_t -> int
  13169. * src/main.cc: int -> int32_t, int32_t -> int
  13170. * src/messageDigest.h: uint32_t -> unsigned int
  13171. * src/NameResolver.h: int32_t -> int
  13172. * src/PeerConnection.cc: int -> int32_t
  13173. * src/SpeedCalc.cc: int32_t -> int
  13174. * src/TrackerUpdateCommand.h: int -> int32_t
  13175. * src/Util.cc: int32_t -> int
  13176. * src/Util.h: int32_t -> int
  13177. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  13178. * test/AnnounceListTest.cc: int -> int32_t
  13179. * test/ChunkedEncodingTest.cc: int -> int32_t
  13180. * test/DataTest.cc: int -> int32_t
  13181. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  13182. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  13183. * test/DefaultPieceStorageTest.cc: int -> int32_t
  13184. * test/FeatureConfigTest.cc: int -> int32_t
  13185. * test/MetalinkEntryTest.cc: int -> int32_t
  13186. * test/MockBtRequestFactory.h: int -> int32_t
  13187. * test/MockPieceStorage.h: int -> int32_t
  13188. * test/OptionTest.cc: int -> int32_t
  13189. * test/RequestTest.cc: int -> int32_t
  13190. * test/SegmentManTest.cc: int -> int32_t
  13191. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  13192. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  13193. Move sleep functions to Util class:
  13194. * src/Util.cc
  13195. (sleep): New function.
  13196. (usleep): New function.
  13197. * src/DownloadCommand.cc: sleep -> Util::sleep
  13198. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  13199. MinGW build enhancements. The following files are added:
  13200. * src/timegm.{c,h}
  13201. Changes to support the above new files:
  13202. * configure.ac
  13203. * src/Makefile.am
  13204. * src/a2time.h
  13205. * src/Util.cc:
  13206. * src/strptime.c: Added support for %Z option.
  13207. Fixed MinGW non-blocking bug.
  13208. * src/SocketCore.cc
  13209. * src/HttpRequestCommand.cc
  13210. Miscellenous build fixes/enhancements.
  13211. * configure.ac: Added summary report.
  13212. * src/Platform.h: Tweaked #include's.
  13213. * src/a2netcompat.h: Tweaked #include's.
  13214. * src/strptime.h: Tweaked #include's.
  13215. * src/gai_strerror.c: Tweaked #include's.
  13216. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  13217. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  13218. * src/gettimeofday.h: Added HAVE_CONFIG_H
  13219. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13220. Increased the initial connection size in BitTorrent download to 40.
  13221. * src/BtRuntime.h
  13222. Added the usage message of --peer-id-prefix option.
  13223. * src/main.cc
  13224. * Release 0.11.2
  13225. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13226. MessageDigestHelper is introduced in order to simplify the use
  13227. of message digest. Removed repeated code.
  13228. The message digest algorithm is now specified by string, like "sha1",
  13229. "md5".
  13230. * src/messageDigest.{h, cc}
  13231. * src/MessageDigestHelper.{h, cc}: New class.
  13232. * src/DefaultPieceStorage.cc
  13233. * src/DefaultBtContext.{h, cc}
  13234. (computeFastSet): New function.
  13235. (setInfoHash): Added for unit testing.
  13236. (setNumPieces): Added for unit testing.
  13237. * src/DefaultBtInteractive.cc
  13238. * src/BtPieceMessage.cc
  13239. * src/Peer.cc
  13240. * src/Checksum.h
  13241. * src/message.h
  13242. * src/IteratableChecksumValidator.h
  13243. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  13244. inside it.
  13245. * src/SegmentMan.{h, cc}
  13246. (checkIntegrity): Removed.
  13247. * src/IteratableChunkChecksumValidator.{h, cc}
  13248. * src/Util.h
  13249. (sha1Sum): Removed.
  13250. (simpleMessageDigest): Removed.
  13251. (fileChecksum): Removed.
  13252. (computeFastSet): Removed.
  13253. * src/ShaVisitor.cc
  13254. * src/ChunkChecksum.h
  13255. * src/DownloadCommand.cc
  13256. Removed messageDigest virtual functions.
  13257. * src/MultiDiskAdaptor.{h, cc}
  13258. * src/DiskAdaptor.h
  13259. * src/ByteArrayDiskWriter.h
  13260. * src/DiskWriter.h
  13261. * src/DiskAdaptorWriter.h
  13262. * src/AbstractSingleDiskAdaptor.{h, cc}
  13263. * src/AbstractDiskWriter.{h, cc}
  13264. Fixed comilation error when message digest is disabled.
  13265. * src/MetalinkEntry.{h, cc}
  13266. * src/MetalinkRequestInfo.cc
  13267. Removed srandom and random.
  13268. * src/SimpleRandomizer.h
  13269. Added size() virtual function to DiskAdaptor
  13270. * src/MultiDiskAdaptor.h
  13271. Fixed the bug that causes that files are not opened correctly in
  13272. multi-file torrent.
  13273. * src/TorrentRequestInfo.cc
  13274. * src/MultiDiskAdaptor.cc
  13275. Added SHA256 support
  13276. * src/messageDigest.cc
  13277. * src/Xml2MetalinkProcessor.cc
  13278. Show supported message digest algorithms
  13279. * src/main.cc
  13280. Updated contact info.
  13281. * src/main.cc
  13282. Applied Ross's patch
  13283. * src/a2netcompat.h
  13284. * src/main.cc
  13285. Fixed the bug that prevents a remote metalink from not being processed
  13286. even if '-o foo.metalink' is specified.
  13287. * src/MetalinkRequestInfo.cc
  13288. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13289. Merged Dan's patch:
  13290. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  13291. Use va_copy to avoid core dump on amd64:
  13292. * src/SimpleLogger.cc
  13293. Updated contact info.
  13294. * src/main.cc
  13295. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  13296. digest is not available.
  13297. * src/MetalinkEntry.h
  13298. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13299. Make a2netcompat.h include a2io.h to fix compilation error:
  13300. * src/a2netcompat.h
  13301. * src/SocketCore.cc: Removed include of a2io.h
  13302. * src/Util.cc: Removed include of a2io.h
  13303. Gather time related functions to a2time.h:
  13304. * src/a2time.h: New file.
  13305. * src/DefaultPeerStorage.cc
  13306. * src/SimpleLogger.cc
  13307. * src/Util.{h, cc}
  13308. * src/SimpleRandomizer.h
  13309. * src/TimeA2.{h,cc}
  13310. * src/DownloadCommand.cc
  13311. * src/main.cc
  13312. Removed #ifdef __MINGW32__ since gai_strerror is included in
  13313. a2netcompat.h:
  13314. * src/NameResolver.cc
  13315. Fixed compilation error without openssl:
  13316. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  13317. Added default block to suppress compiler warnings:
  13318. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  13319. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  13320. MinGW build enhancements. The following files are added:
  13321. * src/gai_strerror.{c,h}
  13322. * src/gettimeofday.{c,h}
  13323. Changes to support the above new files:
  13324. * configure.ac
  13325. * src/Makefile.am
  13326. * src/a2netcompat.h
  13327. * src/TimeA2.cc
  13328. * src/DefaultPeerStorage.cc
  13329. * src/NameResolver.cc: removed mingw_strerror() function.
  13330. * src/SocketCore.cc: removed mingw_strerror() function.
  13331. Miscellaneous MinGW build fixes.
  13332. * src/a2io.h: Use _lseeki64() instead of lseek()
  13333. * src/common.h
  13334. * src/DefaultFileAllocator.cc
  13335. * src/GlowFileAllocator.cc
  13336. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  13337. * src/NameResolver.cc
  13338. (callback): Changed int32_t to int.
  13339. (resolve): Changed int32_t to int.
  13340. * src/Platform.cc
  13341. * src/Platform.h
  13342. * test/MultiDiskWriterTest.cc
  13343. * test/PeerMessageUtilTest.cc
  13344. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  13345. Other enhancements and fixes.
  13346. * src/HttpRequestCommand.cc
  13347. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  13348. * src/SocketCore.cc:
  13349. (error): New function to abstract errno/WSAGetLastError().
  13350. (errorMsg): New function to abstract errno/WSAGetLastError().
  13351. (initiateSecureConnection): Added more detailed error reporting.
  13352. * src/SocketCore.h: Added private variable blocking, to allow
  13353. proper handling of OpenSSL psuedo-errors.
  13354. * src/message.h
  13355. (EX_SSL_INIT_FAILURE)
  13356. (EX_SSL_IO_ERROR)
  13357. (EX_SSL_PROTOCOL_ERROR)
  13358. (EX_SSL_UNKNOWN_ERROR)
  13359. (EX_SSL_CONNECT_ERROR)
  13360. (EX_SOCKET_BLOCKING)
  13361. (EX_SOCKET_NONBLOCKING)
  13362. (EX_SOCKET_UNKNOWN_ERROR)
  13363. * src/Util.cc
  13364. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  13365. reserved name.
  13366. (httpGMT): Fixed typo.
  13367. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13368. Merged Ross's win32 patch(manually)
  13369. In the course of merging, following files are added.
  13370. * src/strptime.{h,c}
  13371. * src/libgen.{h,c}
  13372. * src/inet_aton.{h,c}
  13373. * src/Platform.{h,cc}
  13374. * src/localtime_r.{h,c}
  13375. * src/getaddrinfo.{h,c}
  13376. I've gethered network related things, and put them to following file:
  13377. * src/a2netcompat.h
  13378. Also io related things are put to following file:
  13379. * src/a2io.h
  13380. Changed %lld to %s because mingw32 doesn't recognize %lld.
  13381. * src/message.h
  13382. (MSG_ALLOCATION_COMPLETED)
  13383. (EX_TOO_LARGE_FILE)
  13384. (EX_SIZE_MISMATCH)
  13385. (EX_FILE_OFFSET_OUT_OF_RANGE)
  13386. (EX_INVALID_CHUNK_CHECKSUM)
  13387. (EX_INVALID_RANGE_HEADER)
  13388. * src/FileAllocationCommand.cc
  13389. * src/HttpResponse.cc
  13390. * src/RequestGroup.cc
  13391. * src/MultiDiskAdaptor.cc
  13392. * src/OptionHandlerImpl.h
  13393. * src/HttpResponseCommand.cc
  13394. * src/FtpNegotiateCommand.cc
  13395. * src/IteratableChecksumValidator.cc
  13396. * src/SegmentMan.cc
  13397. * src/ChunkChecksumValidator.cc
  13398. Added Randomizer::getRandomNumber(long int)
  13399. * src/Randomizer.h (getRandomNumber)
  13400. * src/SimpleRandomizer.h (getRandomNumber)
  13401. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  13402. * src/Util.cc (randomAlpha): Use this new function.
  13403. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13404. Converted int's to in32_t. long long int's are also converted to
  13405. int64_t
  13406. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13407. Fixed the bug that prevents cookies from being sent to the server
  13408. if the domain of cookie is FQDN and starts with ".".
  13409. * src/Cookie.cc (match)
  13410. To add the ability to change peer id.
  13411. * src/DefaultBtContext.h
  13412. (_peerIdPrefix): New variable
  13413. (setPeerIdPrefix): New function.
  13414. * src/torrentRequestInfo.cc
  13415. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  13416. DefaultBtContext.
  13417. * src/main.cc (main): Added peer-id-prefix command-line option.
  13418. The usage message is not added yet.
  13419. * src/DefaultBtContext.cc
  13420. (generatePeerId): Use _peerIdPrefix.
  13421. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  13422. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13423. Fixed the bug that prevents filename in content-disposition from
  13424. being retrieved when filename is not quoted.
  13425. * src/Util.cc (getContentDispositionFilename)
  13426. Fixed the bug that causes infinate loop and memory leak when file open
  13427. operation failed.
  13428. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  13429. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13430. Fixed the bug that causes segfault when all URIs specified are
  13431. unsupported.
  13432. * src/RequestGroupMan.cc (getInitialCommands)
  13433. Check if RequestGroup::createNextCommand() returns empty list of
  13434. commands.
  13435. * src/RequestGroup.cc (createNextCommand)
  13436. Change log level from info to error so that users can notice that
  13437. an error occurred.
  13438. Fixed the bug that causes segfault when a zero-sized file is
  13439. downloaded.
  13440. * src/BitfieldMan.cc (isAllBitSet)
  13441. Return true if bitfieldLength is 0.
  13442. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13443. * src/main.cc
  13444. (showUsage): Added 3 usage examples for metalink download.
  13445. Replace MetalinkChunkChecksum with ChunkChecksum.
  13446. * src/MetalinkChunkChecksum.h: Removed.
  13447. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  13448. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  13449. * src/Xml2MetalinkProcessor.cc
  13450. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  13451. * src/MetalinkRequestInfo.cc (execute)
  13452. * Release 0.11.1
  13453. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13454. Reads URIs from stdin when "-i -" is specified.
  13455. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  13456. * src/UriListParser.h, src/UriListParser.cc: New class.
  13457. * src/StreamUriListParser.h: New class.
  13458. * src/FileUriListParser.h: New class.
  13459. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  13460. instead of UriFileListParser.
  13461. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13462. Made console readout more readable.
  13463. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13464. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13465. Fix the bug that causes -s option not to work.
  13466. * src/main.cc (main)
  13467. * src/a2algo.h: New file.
  13468. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13469. Create directory structure specified in metalink file.
  13470. * src/RequestGroup.h, src/RequestGroup.cc
  13471. (initAndOpenFile): Create a directory to store files if it does not
  13472. exist.
  13473. (getDir): New function.
  13474. Added ETA and download speed for an individual file to readout.
  13475. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13476. * src/RequestGroup.h
  13477. (calculateDownloadSpeed): New function.
  13478. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13479. Made -S option work with metalink file and provided selective download
  13480. to metalink.
  13481. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  13482. (filename): Removed.
  13483. (file): New variable.
  13484. (size): Removed.
  13485. (operator=): Updated.
  13486. (getPath): New function.
  13487. (getLength): New function.
  13488. (toFileEntry): New function.
  13489. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  13490. (execute): Use toStream.
  13491. (showFileEntry): Removed.
  13492. * src/MetalinkRequestInfo.h
  13493. (targetFiles): New variable.
  13494. (setTargetFiles): New variable.
  13495. * src/MetalinkRequestInfo.cc
  13496. (execute): Added the ability to print file information included in
  13497. a metalink file.
  13498. Added selective download mode to metalink.
  13499. * src/main.cc
  13500. (showUsage): Updated to denote that -S and --select-file options are
  13501. applicable to metalink.
  13502. * src/FileEntry.h
  13503. (operator=): New function.
  13504. (getBasename): New function.
  13505. (getDirname): New function.
  13506. * src/Util.h, src/Util.cc
  13507. (toStream): New function.
  13508. * src/Xml2MetalinkProcessor.cc: Updated.
  13509. Made aria2 work with metalink with directory structure.
  13510. * src/File.h, src/File.cc
  13511. (getBasename): New function.
  13512. (getDirname): New function.
  13513. * src/RequestGroup.h, src/RequestGroup.cc
  13514. (_topDir): New variable.
  13515. (setTopDir): New function.
  13516. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  13517. Rewrote HTTP header parsing with stringstream.
  13518. * src/HttpConnection.h, src/HttpConnection.cc
  13519. (HttpRequestEntry): New class.
  13520. (headerBuf): Removed.
  13521. (headerBufLength): Removed.
  13522. (outstandingHttpRequests): Now its element type is
  13523. HttpRequestEntryHandle.
  13524. (findEndOfHeader): Removed.
  13525. (receiveResponse): Rewritten.
  13526. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  13527. Updated doc for -j option to notice that it should be used with -i
  13528. option.
  13529. * src/main.cc (showUsage)
  13530. Removed unused classes.
  13531. * src/RequestInfo.h
  13532. (FileInfo): Removed.
  13533. (checksum): Removed.
  13534. (fileInfo): Removed.
  13535. (setChecksum): Removed.
  13536. (getChecksum): Removed.
  13537. (getFileInfo): Removed.
  13538. Use ISO units.
  13539. * src/ConsoleDownloadEngine.cc
  13540. * src/TorrentConsoleDownloadEngine.cc
  13541. * src/Util.cc (abbrevSize)
  13542. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13543. Added the default listening ports to the help message.
  13544. * src/main.cc (showUsage)
  13545. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13546. Reduce the number of calls to gettimeofday to lower CPU load.
  13547. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  13548. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  13549. * src/Peer.h (calculateUploadSpeed): New function.
  13550. (calculateDownloadSpeed): New function.
  13551. * src/DefaultPeerStorage.cc
  13552. (CalculateStat): Added _now variable.
  13553. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  13554. and Peer::calculateUploadSpeed(const struct timeval&)
  13555. Drop connection if no request or piece message is exchanged in
  13556. a certain interval.
  13557. * src/DefaultBtInteractive.h
  13558. (btRuntime): New variable.
  13559. (inactiveCheckPoint): New variable.
  13560. (checkActiveInteraction): New function.
  13561. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  13562. request or piece message is received.
  13563. (checkActiveInteraction): New function.
  13564. (doInteractionProcessing): Call checkActiveInteraction.
  13565. Fixed the bug that causes remote Metalink and Torrent files are not
  13566. processed.
  13567. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  13568. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13569. Changed format of log file.
  13570. * src/SimpleLogger.cc
  13571. * Release 0.11.0
  13572. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13573. * src/AbstractCommand.cc
  13574. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  13575. MSG_MAX_TRY from error to info.
  13576. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  13577. * src/message.h
  13578. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  13579. (MSG_DOWNLOAD_ABORTED): Added %s.
  13580. (MSG_RESTARTING_DOWNLOAD): Added %s.
  13581. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  13582. * src/PeerAbstractCommand.cc
  13583. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  13584. * src/Request.h
  13585. (cookieBox): Made ShardHandle.
  13586. * src/RequestGroup.h, src/RequestGroup.cc
  13587. (createNextCommandWithAdj): New function.
  13588. * src/FileAllocationCommand.cc
  13589. (executeInternal): Use createNextCommandWithAdj().
  13590. * src/CheckIntegrityCommand.cc
  13591. (executeInternal): Use createNextCommandWithAdj().
  13592. Added --load-cookies command-option.
  13593. * src/OptionHandlerFactory.cc
  13594. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  13595. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  13596. Now aria2 can handle cookie's expiration date.
  13597. * src/Cookie.h (expires): Changed its type to time_t.
  13598. * src/main.cc: Added --load-cookies command-line option.
  13599. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  13600. * src/Util.h, src/Util.cc (httpGMT): New function.
  13601. * src/Request.cc (Request): Initialize cookieBox using
  13602. CookieBoxFactory.
  13603. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  13604. * src/CookieParser.h, src/CookieParser.cc: New class.
  13605. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  13606. * src/HttpResponseCommand.cc
  13607. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  13608. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  13609. download.
  13610. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13611. Added -j command-line option.
  13612. * src/OptionHandlerFactory.cc (createOptionHandlers)
  13613. * src/main.cc
  13614. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  13615. Rewritten using stringstream.
  13616. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  13617. Rewritten using stringstream.
  13618. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13619. Make download size shown in MB, KB.
  13620. * src/ConsoleDownloadEngine.h (sendStatistics)
  13621. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  13622. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13623. Accept incoming connections if download rate is low.
  13624. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  13625. (_lowestSpeedLimit): New variable.
  13626. (setLowestSpeedLimit): New function.
  13627. (execute): Accept incoming connections if download rate is low.
  13628. MAX_PEERS is ignored in this case.
  13629. Disable PREF_OUT in multiple concurrent download:
  13630. * src/RequestGroup.h, src/RequestGroup.cc
  13631. (setUserDefinedFilename): New function.
  13632. * src/DownloadEngineFactory.cc
  13633. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  13634. concurrent download.
  13635. * src/DefaultSegmentManFactory.cc
  13636. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  13637. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13638. RequestGroup::getNextCommand() was renamed to createNextCommand().
  13639. Added its overloaded method.
  13640. * src/RequestGroup.h
  13641. (_numConcurrentCommand): New variable.
  13642. (setNumConcurrentCommand): New function.
  13643. * src/RequestGroup.cc
  13644. Abort download if same file is being downloaded concurrently.
  13645. * src/RequestGroup.h, src/RequestGroupMan.cc
  13646. (isSameFileBeingDownloaded): New function.
  13647. * src/HttpResponseCommand.cc (executeInternal)
  13648. * src/FtpNegotiateCommand.cc (recvSize)
  13649. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  13650. * main.cc: Added help message for -i option.
  13651. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13652. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  13653. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  13654. * src/MetalinkEntry.h
  13655. (checksum): Changed to ChecksumHandle
  13656. * src/MetalinkRequestInfo.cc
  13657. (checksum): Changed to ChecksumHandle
  13658. * src/File.cc
  13659. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  13660. * src/common.h
  13661. (DIR_OPEN_MODE): New definition
  13662. * src/RequestGroup.cc
  13663. (prepareForNextAction): Added an argument.
  13664. * src/message.h
  13665. (MSG_GOOD_CHECKSUM): New definition
  13666. (MSG_BAD_CHECKSUM): New definition
  13667. * src/HttpResponseCommand.cc
  13668. (handleDefaultEncoding): Continue download sequence in new
  13669. non-segmented download.
  13670. * src/FileAllocationEntry.h
  13671. (_nextDownloadCommand): New variable.
  13672. * src/DownloadCommand.cc
  13673. (prepareForNextSegment): Create ChecksumCommand if checksum is
  13674. available.
  13675. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  13676. * src/IteratableChecksumValidator.h,
  13677. src/IteratableChecksumValidator.cc: New class.
  13678. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  13679. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13680. Change file mode to 666:
  13681. * src/common.h (OPEN_MODE): New definition.
  13682. * src/File.cc
  13683. * src/Util.cc
  13684. * src/Directry.cc
  13685. * src/AbstractDiskWriter.cc
  13686. Change the level of log message "download aborted" to debug:
  13687. * src/PeerAbstractCommand.cc (execute)
  13688. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  13689. * src/TrackerWatcherCommand.cc
  13690. (createCommand): Sleep some seconds after request failed.
  13691. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  13692. then abort tracker request.
  13693. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13694. * Added the simultaneous download feature.
  13695. * src/main.cc: Print "Exception caught: " when exception is caught.
  13696. Use CUIDCounter instead of BtRuntime::getNewCuid():
  13697. * src/ActivePeerConnectionCommand.cc
  13698. * src/PeerInteractionCommand.cc
  13699. * src/BtRuntime.h
  13700. (cuidCounter): Removed.
  13701. (getNewCuid): Removed.
  13702. * src/DownloadEngineFactory.cc
  13703. * src/PeerListenCommand.cc
  13704. * src/TrackerUpdateCommand.cc
  13705. * src/PeerInitiateConnectionCommand.cc
  13706. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13707. * src/PeerAbstractCommand.cc
  13708. (onAbort): Call PeerStorage::returnPeer()
  13709. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  13710. (incomingPeers): New variable.
  13711. (addIncomingPeer): New function.
  13712. (returnPeer): New function.
  13713. (onErasingPeer): New function.
  13714. (addPeer): push_back -> push_front
  13715. (getActivePeers): Rewritten.
  13716. (calculateStat): Rewritten.
  13717. * src/PeerStorage.h
  13718. (TransferStat::copy): New function.
  13719. (TransferStat::TransferStat): New function.
  13720. (TransferStat::operator=): New function.
  13721. (addIncomingPeer): New function.
  13722. (returnPeer): New function.
  13723. * src/PeerListenCommand.cc
  13724. (execute): Use PeerStorage::addIncomingPeer() instead of
  13725. Peer::addPeer().
  13726. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13727. Connect to a peer actively when download speed is lower than specified
  13728. speed in torrent download:
  13729. * src/ActivePeerConnectionCommand.h: New class.
  13730. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13731. * src/HttpRequest.cc (createRequest): url-encode user-agent
  13732. * src/main.cc: Fixed the bug that prevents download if .netrc
  13733. doesn't exist.
  13734. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13735. To cache resolved hostname:
  13736. * src/AbstractCommand.h, src/AbstractCommand.cc
  13737. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  13738. Added dns cache.
  13739. * src/FtpInitiateConnectionCommand.cc
  13740. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  13741. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  13742. NameResolver working without ares.
  13743. * src/TorrentRequestInfo.cc
  13744. (execute): Don't cache dns in torrent download.
  13745. * src/HttpInitiateConnectionCommand.cc
  13746. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  13747. * src/DNSCache.h: New class.
  13748. * src/UrlRequestInfo.cc
  13749. (execute): Use dns cache.
  13750. In http request, suppress port number in http request header if port
  13751. is 80 or 443:
  13752. * src/HttpRequest.cc (getHostText): Suppress port number in http
  13753. request header if port is 80 or 443.
  13754. (createProxyRequest): Allways send port number.
  13755. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13756. To add the command-line option which disables netrc support:
  13757. * src/OptionHandlerFactory.cc
  13758. (createOptionHandlers): Added PREF_NO_NETRC.
  13759. * src/main.cc: Added -n option.
  13760. * src/prefs.h (PREF_NO_NETRC): New definition.
  13761. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  13762. V_TRUE.
  13763. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  13764. is V_FALSE. This may get configurable in the future release.
  13765. To clear peer's error status by time basis:
  13766. * src/PeerAbstractCommand.cc
  13767. (onAbort): Call Peer::startBadCondition().
  13768. * src/Peer.h, src/Peer.cc
  13769. (error): Removed.
  13770. (_badConditionStartTime): New variable.
  13771. (_badConditionInterval): New variable. Initialized to 10 seconds.
  13772. (startBadCondition): New function.
  13773. (isGood): New function.
  13774. * src/DefaultPeerStorage.cc
  13775. (addPeer): Use Peer::isGood().
  13776. (FindFinePeer): Use Peer::isGood().
  13777. Always include port number in http request header:
  13778. * src/HttpRequest.cc (getHostText): Always include port number in
  13779. http request header.
  13780. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13781. To the ability to read options from a config file:
  13782. * src/main.cc: Command-line parameter validation is delegated to
  13783. OptionHandler class.
  13784. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  13785. * src/Option.h, src/Option.cc (clear): New function.
  13786. * src/OptionParser.h, src/OptionParser.cc: New class.
  13787. * src/OptionHandler.h: New class.
  13788. * src/NameMatchOptionHandler.h: New class.
  13789. * src/OptionHandlerImpl.h: New classes.
  13790. * src/prefs.h: '_' -> '-'
  13791. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  13792. (FTP_PASV): New definition.
  13793. * src/Util.h, src/Util.cc (getRealSize): New function.
  13794. To disable netrc support if .netrc file does not have correct
  13795. permissions:
  13796. * src/File.h, src/File.cc (mode): New function.
  13797. To prevent confidential information to be logged:
  13798. * src/HttpConnection.h, src/HttpConnection.cc
  13799. (eraseConfidentialInfo): New function.
  13800. (sendRequest): Call eraseConfidentialInfo().
  13801. (sendProxyRequest): Call eraseConfidentialInfo().
  13802. * src/main.cc: Validate permissions of .netrc file.
  13803. To add --user-agent command-line option:
  13804. * src/main.cc: Added new command line option: --user-agent
  13805. * src/prefs.h (PREF_USER_AGENT): New definition.
  13806. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  13807. parameter to HttpRequest object.
  13808. * src/AbstractProxyRequestCommand.cc
  13809. (executeInternal): Set user-agent option parameter to HttpRequest
  13810. object.
  13811. Marged the patches from Dan Fandrich.
  13812. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13813. Use filename and size from Metalink file instead of sending HEAD
  13814. request:
  13815. * src/UrlRequestInfo.h
  13816. (_filename): New variable.
  13817. (_totalLength): New variable.
  13818. (setTotalLength): New variable.
  13819. (setFilename): New variable.
  13820. * src/MetalinkRequestInfo.cc
  13821. (execute): Set filename and size to UrlRequestInfo
  13822. * src/UrlRequestInfo.cc
  13823. (execute): Use filename and size from Metalink instead of seding
  13824. HEAD request to servers.
  13825. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13826. To add the ability to resume downloading a partially downloaded file
  13827. which is downloaded from the beginning:
  13828. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  13829. takes this role.
  13830. * src/main.cc: Added -c option.
  13831. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  13832. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  13833. * src/prefs.h (PREF_CONTINUE): New definition.
  13834. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  13835. * src/DefaultDiskWriter.cc
  13836. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  13837. * src/AbstractDiskWriter.h
  13838. (glowFileAllocator): New variable.
  13839. * src/AbstractDiskWriter.cc
  13840. (openExistingFile): Now preallocate file space from the end of the
  13841. existing file if totalLength argument is specified and grater than 0.
  13842. * src/UrlRequestInfo.cc: If -c option is specified and the file
  13843. to download exists in local, continue the download of the file.
  13844. --allow-overwrite=true is assumed in this context.
  13845. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  13846. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  13847. Throw exception if --check-integrity=true is specified but chunk
  13848. checksums are not provided:
  13849. * src/UrlRequestInfo.cc
  13850. Do not print URLs to stdout:
  13851. * src/UrlRequestInfo.cc
  13852. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13853. * src/Request.h: Use AuthResolver to get authentication information.
  13854. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  13855. set to RequestFactory object.
  13856. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  13857. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  13858. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  13859. create Request object.
  13860. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  13861. To integrate Netrc into exsiting classes:
  13862. * src/Request.h
  13863. (_userDefinedAuthConfig): New variable.
  13864. (findNetrcAuthenticator): New function.
  13865. (segment): Removed.
  13866. (setUserDefinedAuthConfig): New function.
  13867. (resolveHttpAuthConfigItem): New function.
  13868. (resolveFtpAuthConfigItem): New function.
  13869. (resolveHttpProxyAuthConfigItem): New function.
  13870. * src/HttpRequest.h
  13871. (authConfig): Removed.
  13872. (proxyAuthConfig): Removed.
  13873. (setAuthConfig): Removed.
  13874. (setProxyAuthConfig): Removed.
  13875. * src/UrlRequest.h
  13876. (getHeadResult): Added a parameter: authConfigHandle
  13877. * src/common.h
  13878. (SingletonHolder.h): New include.
  13879. * src/main.cc
  13880. (Netrc.h): New include.
  13881. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  13882. Added initial value of PREF_NETRC_PATH.
  13883. Added the initialization of netrc.
  13884. * src/AuthConfig.h: New class.
  13885. * src/prefs.h
  13886. (PREF_NETRC_PATH): New definition.
  13887. * src/HttpAuthConfig.h: Removed.
  13888. * src/Netrc.cc
  13889. (getRequiredNextToken): New function.
  13890. (skipMacdef): New function.
  13891. (parse): Rewritten.
  13892. * src/Netrc.h
  13893. (getRequiredNextToken): New function.
  13894. (skipMacdef): New function.
  13895. * src/Util.h, src/Util.cc
  13896. (getHomeDir): New function.
  13897. * src/TrackerWatcherComand.cc
  13898. (createRequestCommand): Use AuthConfig.
  13899. * src/FtpConnection.cc
  13900. (sendUser): Use Request::resolveFtpAuthConfigItem().
  13901. (sendPass): Use Request::resolveFtpAuthConfigItem().
  13902. * src/Request.cc
  13903. (findNetrcAuthenticator): New function.
  13904. (resolveHttpAuthConfigItem): New function.
  13905. (resolveFtpAuthConfigItem): New function.
  13906. (resolveHttpProxyAuthConfigItem): New function.
  13907. * src/UrlRequestInfo.cc: Use AuthConfig.
  13908. * src/HttpRequest.cc
  13909. (createRequest): Use authConfig.
  13910. (getProxyAuthString): Use authConfig.
  13911. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  13912. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  13913. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13914. To reduce overhead to find commands whose socket is either
  13915. readable or writable in the download engine loop:
  13916. * src/Command.h, src/Command.cc
  13917. (STATUS): New enum.
  13918. (status): New variable.
  13919. (statusMatch): New function.
  13920. (setStatusActive): New function.
  13921. (setStatusInactive): New function.
  13922. * src/DownloadEngine.h, src/DownloadEngine.cc
  13923. (executeCommand): New function.
  13924. (run): Simplified.
  13925. (waitData): Call Command::setStatusActive() when command's socket is
  13926. readable or writable.
  13927. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13928. To handle Segment as SegmentHandle:
  13929. * src/AbstractCommand.cc (execute): Rewritten.
  13930. * src/SegmentMan.h: Segment -> SegmentHandle
  13931. Introducded HttpResponse class, HttpRequest class to improve code
  13932. extensiveness and make it clear:
  13933. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  13934. HttpResponse class.
  13935. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  13936. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  13937. * src/HttpConnection.cc: Contruction of http request were moved to
  13938. HttpRequest class.
  13939. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  13940. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  13941. * src/HttpAuthConfig.h: New class.
  13942. * src/Range.h: New class.
  13943. To make FtpTunnel{Request, Response}Command and
  13944. HttpProxy{Request, Response}Command derived from
  13945. AbstractProxy{Request, Response}Command:
  13946. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  13947. Derived from AbstractProxyRequestCommand class.
  13948. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  13949. Derived from AbstractProxyResponseCommand class.
  13950. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  13951. Derived from AbstractProxyRequestCommand class.
  13952. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  13953. Derived from AbstractProxyResponseCommand class.
  13954. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  13955. : New class.
  13956. * src/AbstractProxyResponseCommand.h,
  13957. src/AbstractProxyResponseCommand.cc: New class.
  13958. To add netrc support:
  13959. * src/Netrc.h, src/Netrc.cc: New class.
  13960. * src/Util.h, src/Util.cc (split): New function.
  13961. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  13962. "Content-Range" header instead of "Range" header.
  13963. * src/HttpHeader.h
  13964. (getStatus): Removed.
  13965. (setStatus): Removed.
  13966. * src/Segment.h
  13967. (getPositionToWrite): New function.
  13968. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13969. * src/HttpHeader.h
  13970. (Range.h): New include.
  13971. (status): New variable.
  13972. (HttpHeader): Initialized status with 0.
  13973. (getStatus): New function.
  13974. (setStatus): New function.
  13975. (getRange): New function.
  13976. (HttpHeaderHandle): New function.
  13977. * src/HttpHeader.cc
  13978. (getRange): New function.
  13979. * src/Request.h
  13980. (RequestWeakHandle): New definition.
  13981. * src/HttpConnection.h
  13982. (HttpConnectionHandle): New type definition.
  13983. * src/HttpConnection.cc
  13984. (receiveResponse): Set HTTP status to headers.
  13985. * src/main.cc
  13986. (showUsage): Fixed typo.
  13987. * src/Segment.h
  13988. (SegmentHandle): New type definition.
  13989. * src/BitfieldMan.h
  13990. (getMissingUnusedLength): New function.
  13991. * src/BitfieldMan.cc
  13992. (getMissingUnusedLength): New function.
  13993. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13994. To fix static initialization order problem:
  13995. * src/BitfieldManFactory.h
  13996. (defaultRandomizer): Removed.
  13997. (factory): New variable.
  13998. (getNewFactory): Removed.
  13999. (getFactoryInstance): New function.
  14000. (setDefaultRandomizer): Rewritten.
  14001. (getDefaultRandomizer): Rewritten.
  14002. * src/BitfieldManFactory.cc
  14003. (defaultRandomizer): Removed.
  14004. (factory): Initialized to 0.
  14005. (BitfieldManFactory): Initialized randomizer to 0.
  14006. * src/DefaultPieceStorage.cc
  14007. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  14008. * src/Peer.cc
  14009. (Peer): getNewFactory() -> getFactoryInstance()
  14010. * src/SegmentMan.cc
  14011. (initBitfield): getNewFactory() -> getFactoryInstance()
  14012. * src/Piece.cc
  14013. (Piece): getNewFactory() -> getFactoryInstance()
  14014. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14015. To fix the bug that causes crash on Max OS X:
  14016. * src/SimpleRandomizer.h
  14017. (getInstance): Create new instance if the static variable is null.
  14018. * src/SimpleRandomizer.cc
  14019. (randomizer): Initialized to 0.
  14020. * src/BitfieldManFactory.h
  14021. (getNewFactory): Removed the call to setRandomizer().
  14022. To fix the miscalculation of the range of checksum:
  14023. * src/BitfieldMan.h
  14024. (isBitSetOffsetRange): New function.
  14025. * src/BitfieldMan.cc
  14026. (isBitSetOffsetRange): New function.
  14027. * src/SegmentMan.cc
  14028. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  14029. Use bitfield->getBlockLength() instead of segment.segmentLength.
  14030. * Release 0.10.1
  14031. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14032. To lower CPU usage in BitTorrent download when --max-upload-limit
  14033. command-line option specified:
  14034. * src/DefaultBtMessageDispatcher.cc
  14035. (sendMessages): Calculate uploading speed only when current message
  14036. is uploading data and is not sent yet.
  14037. * src/DefaultPeerStorage.h
  14038. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  14039. * src/HttpResponseCommand.cc
  14040. (handleDefaultEncoding): Added the cast to int32_t to itos.
  14041. This fixes compile error in Soralis 10.
  14042. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14043. To fix segfault in Metalink download:
  14044. * src/UrlRequestInfo.h
  14045. (filename): Removed.
  14046. (totalLength): Removed.
  14047. (setTotalLength): Removed.
  14048. (setFilename): Removed.
  14049. * src/MetalinkRequestInfo.cc
  14050. (execute): Do not set filename and totalLength to reqInfo.
  14051. Set chunk checksum to reqInfo if it is not null.
  14052. * src/HttpResponseCommand.cc
  14053. (executeInternal): Fixed filename in log.
  14054. (handleDefaultEncoding): Removed the call to initBitfield() and
  14055. markAllPiecesDone().
  14056. (handleOtherEncoding): Added HEAD method handling.
  14057. * src/FtpNegotiateCommand.cc
  14058. (executeInternal): Added SEQ_HEAD_OK handling.
  14059. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  14060. return false.
  14061. * src/FtpNegotiateCommand.h
  14062. (SEQ_HEAD_OK): New definition.
  14063. * src/SegmentMan.cc
  14064. (initBitfield): Delete bitfield.
  14065. (isChunkChecksumValidationReady): Fixed the condition.
  14066. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  14067. works fine.
  14068. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14069. * src/Xml2MetalinkProcessor.h
  14070. (xpathExists): New function.
  14071. * src/Xml2MetalinkProcessor.cc
  14072. (xpathExists): New function.
  14073. Not to send HEAD request if filename and size are available in Metalink
  14074. file:
  14075. * src/UrlRequestInfo.h
  14076. (filename): New variable.
  14077. (totalLength): New variable.
  14078. (setTotalLength): New function.
  14079. (setFilename): New function.
  14080. * src/MetalinkRequestInfo.cc
  14081. (execute): Set filename and size to UrlRequestInfo.
  14082. * src/MetalinkEntry.cc
  14083. (MetalinkEntry): Initialize size with 0.
  14084. * src/UrlRequestInfo.cc
  14085. (execute): Set filename and size to SegmentMan.
  14086. Not to download rest of the files after selected files are downloaded
  14087. in BitTorrent:
  14088. * src/PieceStorage.h
  14089. (allDownloadFinished): New function.
  14090. * src/DefaultBtAnnounce.cc
  14091. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  14092. downloadFinished.
  14093. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  14094. * src/DefaultPieceStorage.cc
  14095. (completePiece): Use allDownloadFinished instead of downloadFinished.
  14096. Commented out the call to finishSelectiveDownloadingMode().
  14097. (downloadFinished): Call isFilteredAllBitSet() instead of
  14098. isAllBitSet().
  14099. (allDownloadFinished): New function.
  14100. * src/DefaultBtInteractive.cc
  14101. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  14102. downloadFinished().
  14103. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  14104. * src/TorrentDownloadEngine.cc
  14105. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  14106. * src/BitfieldMan.h
  14107. (isFilteredAllBitSet): New function.
  14108. * src/ShareRatioSeedCriteria.h
  14109. (PieceStorage.h): New include.
  14110. (pieceStorage): New variable.
  14111. (evaluate):
  14112. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  14113. * src/BitfieldMan.cc
  14114. (isFilteredAllBitSet): New function.
  14115. (isAllBitSet): Filter is not took into account.
  14116. Rename --force-truncate as --allow-overwrite:
  14117. * src/TorrentRequestInfo.cc
  14118. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  14119. * src/main.cc
  14120. (showUsage): --force-truncate -> --allow-overwrite
  14121. * src/message.h
  14122. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  14123. * src/prefs.h
  14124. (PREF_FORCE_TRUNCATE): Removed.
  14125. (PREF_ALLOW_OVERWRITE): New definition.
  14126. * src/SegmentMan.cc
  14127. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  14128. * src/MetalinkRequestInfo.cc
  14129. (execute): Queueing message are now logged in info level.
  14130. * src/common.h
  14131. (LONG_LONG_MAX): Removed.
  14132. (LONG_LONG_MIN): Removed.
  14133. * src/HttpResponseCommand.cc
  14134. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  14135. * src/FtpNegotiateCommand.cc
  14136. (recvSize): LONG_LONG_MAX -> INT64_MAX
  14137. * src/main.cc
  14138. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  14139. command-line option.
  14140. (main): Added --check-integriy and --realtime-chunk-checksum
  14141. command-line option.
  14142. --force-truncate -> --allow-overwrite
  14143. Set initial value of --check-integrity option to false.
  14144. Don't show usage when error occurs while persing command-line options.
  14145. Removed deprecated --upload-limit option.
  14146. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14147. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  14148. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  14149. * src/BtAllowedFastMessage.cc:
  14150. * src/BtBitfieldMessage.cc
  14151. * src/BtCancelMessage.cc
  14152. * src/BtChokeMessage.cc
  14153. * src/BtHaveAllMessage.cc
  14154. * src/BtHaveMessage.cc
  14155. * src/BtHaveNoneMessage.cc
  14156. * src/BtInterestedMessage.cc
  14157. * src/BtNotInterestedMessage.cc
  14158. * src/BtPieceMessage.cc
  14159. * src/BtPortMessage.cc
  14160. * src/BtRejectMessage.cc
  14161. * src/BtRequestMessage.cc
  14162. * src/BtSuggestPieceMessage.cc
  14163. * src/BtUnchokeMessage.cc
  14164. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  14165. files are affected.
  14166. * src/ChunkChecksumValidator.cc
  14167. * src/SegmentMan.cc
  14168. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14169. To add chunk checksum validation:
  14170. * src/MetalinkEntry.h
  14171. (MetalinkChunkChecksum.h): New include.
  14172. (chunkChecksum): New variable.
  14173. * src/Request.h
  14174. (method): New variable.
  14175. (setMethod): New function.
  14176. (getMethod): New function.
  14177. (METHOD_GET): New static constant.
  14178. (METHOD_HEAD): New static constant.
  14179. * src/Xml2MetalinkProcessor.h
  14180. (getPieceHash): New function.
  14181. * src/PieceStorage.h
  14182. (markAllPiecesDone): New function.
  14183. (checkIntegrity): New function.
  14184. * src/FileAllocator.h
  14185. (NullFileAllocationMonitor.h): New include.
  14186. (FileAllocator): Initialize fileAllocationMonitor with new
  14187. NullFileAllocationMonitor().
  14188. * src/MultiDiskAdaptor.h
  14189. (messageDigest.h): Remove include.
  14190. (ctx): Removed.
  14191. (hashUpdate): Added ctx.
  14192. (MultiDiskAdaptor): Removed ctx.
  14193. (sha1Sum): Renamed as messageDigest.
  14194. (messageDigest): New function.
  14195. * src/UrlRequestInfo.h
  14196. (HeadResult): New class.
  14197. (digestAlgo): New variable.
  14198. (chunkChecksumLength): New variable.
  14199. (chunkChecksums): New variable.
  14200. (getHeadResult): New function.
  14201. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  14202. (setDigestAlgo): New function.
  14203. (setChunkChecksumLength): New function.
  14204. (setChunkChecksums): New function.
  14205. * src/DefaultPieceStorage.cc
  14206. (DiskAdaptorWriter.h): New include.
  14207. (ChunkChecksumValidator.h): New include.
  14208. (markAllPiecesDone): New function.
  14209. (checkIntegrity): New function.
  14210. * src/DefaultBtContext.h
  14211. (getPieceHashes): New function.
  14212. * src/TorrentRequestInfo.cc
  14213. (execute): Try to validate chunk checksum if file already exists and
  14214. .aria2 file doesn't there and user allows aria2 to overwrite it.
  14215. * src/messageDigest.h
  14216. (~MessageDigestContext): Added digestFree().
  14217. * src/MetalinkRequestInfo.cc
  14218. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  14219. * src/DiskAdaptor.h
  14220. (messageDigest.h): New include.
  14221. (sha1Sum): Renamed as messageDigest.
  14222. (messageDigest): New function.
  14223. * src/DownloadCommand.h
  14224. (PeerStat.h): New include.
  14225. (maxDownloadSpeedLimit): New variable.
  14226. (startupIdleTime): New variable.
  14227. (lowestDownloadSpeedLimit): New variable.
  14228. (peerStat): New variable.
  14229. (setMaxDownloadSpeedLimit): New function.
  14230. (setStartupIdleTime): New function.
  14231. (setLowestDownloadSPeedLimit): New function.
  14232. * src/BtContext.h
  14233. (getPieceHashes): New function.
  14234. * src/main.cc
  14235. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  14236. option to true for testing purpose.
  14237. * src/BtPieceMessage.cc
  14238. (checkPieceHash): Use messageDigest
  14239. * src/DownloadEngine.cc
  14240. (SetDescriptor): Removed.
  14241. (AccumulateActiveCommand): Removed.
  14242. (waitData): Rewritten.
  14243. (updateFdSet): Rewritten.
  14244. * src/MultiDiskAdaptor.cc
  14245. (hashUpdate): Added ctx.
  14246. (sha1Sum): Renamed as messageDigest.
  14247. (messageDigest): New function.
  14248. * src/BitfieldMan.h
  14249. (isBitRangeSet): New function.
  14250. (unsetBitRange): New function.
  14251. * src/ByteArrayDiskWriter.h
  14252. (sha1Sum): Renamed as messageDigest.
  14253. (messageDigest): New function.
  14254. * src/ConsoleDownloadEngine.cc
  14255. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  14256. * src/DiskWriter.h
  14257. (messageDigest.h): New include.
  14258. (sha1Sum): Renamed as messageDigest.
  14259. (messageDigest): New function.
  14260. * src/ChunkChecksumValidator.h: New class.
  14261. * src/DiskAdaptorWriter.h: New class.
  14262. * src/prefs.h
  14263. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  14264. (PREF_CHECK_INTEGRITY): New definition.
  14265. * src/HttpResponseCommand.cc
  14266. (handleDefaultEncoding): Added method "HEAD" handling.
  14267. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  14268. (handleOtherEncoding):
  14269. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  14270. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  14271. startupIdleTime, lowestDownloadSpeedLimit to command.
  14272. * src/SegmentMan.h
  14273. (getSegmentEntryByIndex): New function.
  14274. (getSegmentEntryByCuid): New function.
  14275. (getSegmentEntryIteratorByCuid): New function.
  14276. (diskWriter): DiskWriter -> DiskWriterHandle
  14277. (pieceHashes): New variable.
  14278. (chunkHashLength): New variable.
  14279. (digestAlgo): New variable.
  14280. (FindPeerStat): Removed.
  14281. (getPeerStat): Rewritten.
  14282. (markAllPiecesDone): New function.
  14283. (checkIntegrity): New function.
  14284. (tryChunkChecksumValidation): New function.
  14285. (isChunkChecksumValidationReady): New function.
  14286. * src/BitfieldMan.cc
  14287. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  14288. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  14289. blocks to 0.
  14290. (isBitRangeSet): New function.
  14291. (unsetBitRange): New function.
  14292. * src/FtpNegotiateCommand.cc
  14293. (executeInternal): Set maxDownloadSpeedLimit,
  14294. startupIdleTime, lowestDownloadSpeedLimit to command.
  14295. (recvSize): Added method "HEAD" handling.
  14296. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  14297. * src/AbstractSingleDiskAdaptor.cc
  14298. (sha1Sum): Renamed as messageDigest.
  14299. (messageDigest): New function.
  14300. * src/AbstractSingleDiskAdaptor.h
  14301. (sha1Sum): Renamed as messageDigest.
  14302. (messageDigest): New function.
  14303. * src/Util.h
  14304. (indexRange): New function.
  14305. * src/MetalinkEntry.cc
  14306. (MetalinkEntry): Initialized chunkChecksum to 0.
  14307. * src/ShaVisitor.cc
  14308. (~ShaVisitor): Removed the call to ctx.digestFree().
  14309. * src/SegmentMan.cc
  14310. (ChunkChecksumValidator.h): New include.
  14311. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  14312. to DIGEST_ALGO_SHA1.
  14313. (~SegmentMan): Removed diskWriter.
  14314. (FindSegmentEntryByIndex): Removed.
  14315. (FindSegmentEntryByCuid): Removed.
  14316. (checkoutSegment): Rewritten.
  14317. (findSlowerSegmentEntry): Rewritten.
  14318. (getSegment): Rewritten.
  14319. (updateSegment): Rewritten.
  14320. (completeSegment): Rewritten.
  14321. (markAllPiecesDone): New function.
  14322. (checkIntegrity): New function.
  14323. (isChunkChecksumValidationReady): New function.
  14324. (tryChunkChecksumValidation): New function.
  14325. * src/Xml2MetalinkProcessor.cc
  14326. (getEntry): Get size and set it to entry.
  14327. Get chunk checksum and set it to entry.
  14328. (getPieceHash): New function.
  14329. * src/Util.cc
  14330. (sha1Sum): Removed ctx.digestFree()
  14331. (fileChecksum): Removed ctx.digestFree()
  14332. (indexRange): New function.
  14333. * src/Request.cc
  14334. (METHOD_GET): New variable.
  14335. (METHOD_HEAD): New variable.
  14336. (Request): Added method.
  14337. * src/UrlRequestInfo.cc
  14338. (FatalException.h): New include.
  14339. (message.h): New include.
  14340. (operator<<): Added operator<< for class HeadResult.
  14341. (getHeadResult): New function.
  14342. (execute): Get filename and size in separate download engine.
  14343. * src/ChunkChecksumValidator.cc: New class.
  14344. * src/DownloadCommand.cc:
  14345. (DownloadCommand): Added peerStat.
  14346. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  14347. the value from Option.
  14348. The buffer size is now 16KB.
  14349. Use peerStat member instead of getting it from SegmentMan.
  14350. Use startupIdleTime member instead of gettingit from Option.
  14351. Added chunk checksum validation.
  14352. * src/AbstractDiskWriter.cc
  14353. (AbstractDiskWriter): Removed ctx.
  14354. (~AbstractDiskWriter): Removed ctx.digestFree()
  14355. (writeDataInternal): Returns the return value of write.
  14356. (readDataInternal): Returns the return value of read.
  14357. (sha1Sum): Renamed as messageDigest
  14358. (messageDigest): New function.
  14359. * src/AbstractDiwkWriter.h
  14360. (messageDigest.h): Removed include.
  14361. (ctx): Removed.
  14362. (sha1Sum): Renamed as messageDigest
  14363. (messageDigest): New function.
  14364. * src/DefaultPieceStorage.h
  14365. (markAllPiecesDone): New function.
  14366. (checkIntegrity): New function.
  14367. * src/NullFileAllocationMonitor.h: New class.
  14368. * src/MetalinkChunkChecksum.h: New class.
  14369. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14370. To decrease CPU usage in bittorrent download, calculation results in
  14371. BitfieldMan were cached and realtime fetching PeerObject was removed
  14372. with WeakHandle introduced. Option values are set to the objects
  14373. by setter before download begins.
  14374. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  14375. * src/DefaultBtRequestFactory.h
  14376. (dispatcher): BtMessageDispatcherHandle ->
  14377. BtMessageDispatcherWeakHandle.
  14378. (messageFactory): New variable.
  14379. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  14380. BtMessageDispatcherWeakHandle.
  14381. (setBtMessageFactory): New function.
  14382. * src/DefaultBtMessageDispatcher.cc:
  14383. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  14384. from Option.
  14385. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  14386. feating the value from Option.
  14387. Use messageFactory member.
  14388. * src/PeerInteractionCommand.cc
  14389. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  14390. Add reverse dependencies to factory object.
  14391. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  14392. dispatcher.
  14393. Set messageFactory to receiver.
  14394. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  14395. btInteractive.
  14396. Set receiver to peerObject.
  14397. Set maxDownloadSpeedLimit to this.
  14398. (executeInternal): Use maxDownloadSpeedLimit member.
  14399. * src/BtChokeMessage.cc
  14400. (doReceivedAction): Use dispatcher, requestFactory member.
  14401. (onSendComplete): Use dispatcher member.
  14402. * src/PeerInteractionCommand.h
  14403. (maxDownloadSpeedLimit): New variable.
  14404. * src/DefaultBtMessageReceiver.h
  14405. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14406. (dispatcher):
  14407. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  14408. (messageFactory): New variable.
  14409. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14410. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14411. (setDispatcher):
  14412. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  14413. (setBtMessageFactory): New function.
  14414. * src/DefaultBtInteractive.cc
  14415. (initiateHandshake): Use messageFactory member.
  14416. (addBitfieldMessageToQueue): Use messageFactory member.
  14417. (addAllowedFastMessageToQueue): Use messageFactory member.
  14418. (decideChoking): Use messageFactory member.
  14419. (checkHave): Use messageFactory member.
  14420. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  14421. (receiveMessages): Use maxDownloadSpeedLimit member.
  14422. (decideInterest): Use messageFactory member.
  14423. * src/BtRequestMessage.cc
  14424. (doReceivedAction): Use messageFactory, dispatcher member.
  14425. (onQueued): Use dispatcher member.
  14426. * src/BtPieceMessage.cc
  14427. (doReceivedAction): Use dispatcher member.
  14428. (send): Use peerConnection member.
  14429. (onWrongPiece): Use requestFactory member.
  14430. (handleChokingEvent): Use messageFactory, dispatcher member.
  14431. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  14432. * src/BtMessageDispatcher.h
  14433. (BtMessageDispatcherWeakHandle): New type definition.
  14434. * src/SimpleBtMessage.cc
  14435. (send): Use peerConnection member.
  14436. * src/BtRejectMessage.cc
  14437. (doReceivedAction): Use dispatcher member.
  14438. * src/DefaultBtMessageDispatcher.h
  14439. (Option.h): Removed include.
  14440. (messageFactory): New variable.
  14441. (option): Removed.
  14442. (maxUploadSpeedLimit): New variable.
  14443. (requestTimeout): New variable.
  14444. (DefaultBtMessageDispatcher): Removed option.
  14445. Added maxUploadSpeedLimit, requestTimeout.
  14446. (setOption): Removed.
  14447. (getOption): Removed.
  14448. (setMaxUploadSpeedLimit): New function.
  14449. (setRequestTimeout): New function.
  14450. (setBtMessageFactory): New function.
  14451. * src/DefaultBtInteractive.h
  14452. (btMessageReceiver):
  14453. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14454. (dispatcher):
  14455. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14456. (btRequestFactory):
  14457. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14458. (peerConnection):
  14459. PeerConnectionHandle -> PeerConnectionWeakHandle
  14460. (messageFactory): New variable.
  14461. (option): Removed.
  14462. (keepAliveInterval): New variable.
  14463. (maxDownloadSpeedLimit): New variable.
  14464. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  14465. (setBtMessageReceiver):
  14466. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14467. (setDispatcher):
  14468. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14469. (setBtRequestFactory):
  14470. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14471. (setPeerConnection):
  14472. PeerConnectionHandle -> PeerConnectionWeakHandle
  14473. (setOption): Removed.
  14474. (setKeepAliveInterval): New function.
  14475. (setMaxDownloadSpeedLimit): New function.
  14476. (setBtMessageFactory): New function.
  14477. * src/BitfieldMan.h
  14478. (cachedNumMissingBlock): New variable.
  14479. (cachedNumFilteredBlock): New variable.
  14480. (cachedCompletedLength): New variable.
  14481. (cachedFilteredComletedLength): New variable.
  14482. (cachedFilteredTotalLength): New variable.
  14483. (countMissingBlockNow): New function.
  14484. (countFilteredBlockNow): New function.
  14485. (getFilteredTotalLengthNow): New function.
  14486. (getCompletedLengthNow): New function.
  14487. (getFilteredCompletedLengthNow): New function.
  14488. (updateCache): New function.
  14489. * src/AbstractBtMessage.h
  14490. (BtMessageDispatcher.h): New include.
  14491. (PeerConnection.h): New include.
  14492. (BtRequestFactory.h): New include
  14493. (BtMessageFactory.h): New include.
  14494. (dispatcher): New variable.
  14495. (messageFactory): New variable.
  14496. (peerConnection: New variable.
  14497. (setBtMessageDispatcher): New function.
  14498. (setPeerConnection): New function.
  14499. (setBtMessageFactory): New function.
  14500. (setBtRequestFactory): New function.
  14501. * src/DefaultBtMessageFactory.cc
  14502. (setCommonProperty): Set dispatcher, requestFactory, this,
  14503. peerConnection to msg.
  14504. * src/BtRegistry.h
  14505. (BT_MESSAGE_RECEIVER): New macro.
  14506. * src/PeerConnection.h
  14507. (PeerConnectionWeakHandle): New type definition.
  14508. * src/BtMessageFactory.h
  14509. (BtMessageFactoryWeakHandle): New type definition.
  14510. * src/BitfieldMan.cc
  14511. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  14512. cachedCompletedLength, cachedFilteredComletedLength,
  14513. cachedFilteredTotalLength.
  14514. Call updateCache().
  14515. (countMissingBlock): Return cachedNumMissingBlock.
  14516. (countMissingBlockNow): New function.
  14517. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  14518. (countFilteredBlockNow): New function.
  14519. (setBit): Call updateCache().
  14520. (unsetBit): Call updateCache().
  14521. (setBitfield): Call updateCache().
  14522. (clearAllBit): Call updateCache().
  14523. (setAllBit): Use setBitInternal instead of setBit.
  14524. Call updateCache().
  14525. (addFilter): Call updateCache().
  14526. (enableFilter): Call updateCache().
  14527. (disableFilter): Call updateCache().
  14528. (clearFilter): Call updateCache().
  14529. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  14530. (getFilteredTotalLengthNow): New function.
  14531. (getCompletedLength): Return cachedCompletedLength.
  14532. (getCompletedLengthNow): New function.
  14533. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  14534. (getFilteredCompletedLengthNow): New function.
  14535. (updateCache): New function.
  14536. * src/BtMessageReceiver.h
  14537. (BtMessageReceiverWeakHandle): New type definition.
  14538. * src/DefaultBtMessageReceiver.cc
  14539. (receiveHandshake): Use messageFactory member.
  14540. (sendHandshake): Use messageFactory member.
  14541. (receiveMessage): Use messageFactory member.
  14542. * src/DefaultBtMessageFactory.h
  14543. (dispatcher): New variable.
  14544. (requestFactory): New variable.
  14545. (peerConnection): New variablle.
  14546. (setBtMessageDispatcher): New function.
  14547. (setBtRequestFactory): New function.
  14548. (setPeerConnection): New function.
  14549. * src/SharedHandle.h
  14550. (RefCount): New class.
  14551. (WeakHandle): New class.
  14552. * src/PeerObject.h
  14553. (BtMessageReceiver.h): New include.
  14554. (PeerObject): Added btMessageReceiver.
  14555. (btMessageReceiver): New variable.
  14556. * src/Util.cc
  14557. (countBit): Simplified.
  14558. * src/BtCancelMessage.cc
  14559. (doReceivedAction): Use dispatcher member.
  14560. * src/BtRequestFactory.h
  14561. (BtRequestFactoryWeakHandle): New type definition.
  14562. * src/PeerStorage.h
  14563. (downloadSpeed): int -> uint32_t
  14564. (uploadSpeed): int -> uint32_t
  14565. (sessionDownloadLength): long long int -> uint64_t
  14566. (sessionUploadLength): long long int -> uint64_t
  14567. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14568. To add RecoverableException, FatalException:
  14569. * src/AbstractCommand.cc
  14570. (onAbort): Exception -> RecoverableException
  14571. * src/PeerAbstractCommand.h
  14572. (RecoverableException.h): New include.
  14573. (onAbort): Exception -> RecoverableException.
  14574. * src/PeerInteractionCommand.cc
  14575. (onAbort): Exception -> RecoverableException.
  14576. * src/PeerAbstractCommand.cc
  14577. (execute): Exception -> RecoverableException.
  14578. (onAbort): Exception -> RecoverableException.
  14579. * src/TorrentRequestInfo.cc
  14580. (execute): Exception -> RecoverableException.
  14581. * src/MetalinkRequestInfo.cc
  14582. (execute): Exception -> RecoverableException.
  14583. * src/MetaFileUtil.cc: RecoverableException.
  14584. * src/AbstractCommand.h
  14585. (onAbort): Exception -> RecoverableException.
  14586. * src/DlRetryEx.h: Exception -> RecoverableException.
  14587. * src/DlAbortEx.h: Exception -> RecoverableException.
  14588. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  14589. * src/Util.cc: Exception -> RecoverableException.
  14590. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  14591. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  14592. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  14593. To make ID static const int
  14594. * src/BtInterestedMessage.h
  14595. (ID_t): Removed.
  14596. (ID): New variable.
  14597. (getId): Made non-const.
  14598. * src/BtPieceMessage.h
  14599. (ID_t): Removed.
  14600. (ID): New variable.
  14601. (getId): Made non-const.
  14602. * src/BtChokeMessage.h
  14603. (ID_t): Removed.
  14604. (ID): New variable.
  14605. (getId): Made non-const.
  14606. * src/BtHaveAllMessage.h
  14607. (ID_t): Removed.
  14608. (ID): New variable.
  14609. (getId): Made non-const.
  14610. * src/BtKeepAliveMessage.h
  14611. (ID_t): Removed.
  14612. (ID): New variable.
  14613. (getId): Made non-const.
  14614. * src/BtHandshakeMessage.h
  14615. (ID): New variable.
  14616. (getId): Made non-const.
  14617. * src/BtSuggestPieceMessage.h
  14618. (ID_t): Removed.
  14619. (ID): New variable.
  14620. (getId): Made non-const.
  14621. * src/BtPortMessage.h
  14622. (ID_t): Removed.
  14623. (ID): New variable.
  14624. (getId): Made non-const.
  14625. * src/AbstractBtMessage.h
  14626. (id): Removed.
  14627. (AbstractBtMessage): Removed id.
  14628. (getId): Removed.
  14629. * src/BtHaveMessage.h
  14630. (ID_t): Removed.
  14631. (ID): New variable.
  14632. (getId): Made non-const.
  14633. * src/BtAllowedFastMessage.h
  14634. (ID_t): Removed.
  14635. (ID): New variable.
  14636. (getId): Made non-const.
  14637. * src/BtCancelMessage.h
  14638. (ID_t): Removed.
  14639. (ID): New variable.
  14640. (getId): Made non-const.
  14641. * src/BtNotInterestedMessage.h
  14642. (ID_t): Removed.
  14643. (ID): New variable.
  14644. (getId): Made non-const.
  14645. * src/BtChokeMessage.h
  14646. (ID_t): Removed.
  14647. (ID): New variable.
  14648. (getId): Made non-const.
  14649. * src/BtRejectMessage.h
  14650. (ID_t): Removed.
  14651. (ID): New variable.
  14652. (getId): Made non-const.
  14653. * src/BtBitfieldMessage.h
  14654. (ID_t): Removed.
  14655. (ID): New variable.
  14656. (getId): Made non-const.
  14657. * src/BtUnchokeMessage.h
  14658. (ID_t): Removed.
  14659. (ID): New variable.
  14660. (getId): Made non-const.
  14661. * src/BtRequestMessage.h
  14662. (ID_t): Removed.
  14663. (ID): New variable.
  14664. (getId): Made non-const.
  14665. * src/BtHaveMessage.h
  14666. (ID_t): Removed.
  14667. (ID): New variable.
  14668. (getId): Made non-const.
  14669. To add --force-truncate command-line option and a check whether
  14670. the file already exists:
  14671. * src/DirectDiskAdaptor.h
  14672. (getFilePath): Made virtual public.
  14673. * src/MultiDiskAdaptor.h
  14674. (File.h): New include.
  14675. (DiskWriterEntry::fileEntry): Made private.
  14676. (DiskWriterEntry::fileExists): New function.
  14677. (DiskWriterEntry::getFileEntry): New function.
  14678. (fileExists): New function.
  14679. (getFilePath): New function.
  14680. * src/TorrentRequestInfo.cc
  14681. (FatalException.h): New include.
  14682. (message.h): New include.
  14683. (RecoverableException.h): New include.
  14684. (execute): Added a check whether file is already exists or not.
  14685. * src/DiskAdaptor.h
  14686. (fileExists): New function.
  14687. (getFilePath): New function.
  14688. * src/main.cc
  14689. (showUsage): Added an explanation of --force-truncate command-line
  14690. option.
  14691. (main): Added --force-truncate command-line option.
  14692. * src/Exception.h
  14693. (setMsg): buf[256] -> buf[1024]
  14694. * src/CopyDiskWriter.h
  14695. (getFilePath): Made public virtual.
  14696. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  14697. (fileExists): New function.
  14698. * src/DownloadEngineFactory.cc
  14699. (newTorrentConsoleEngine): Don't open file here.
  14700. * src/message.h
  14701. (EX_FILE_ALREADY_EXISTS): New definition.
  14702. * src/prefs.h
  14703. (PREF_FOECE_TRUNCATE): New definition.
  14704. * src/HttpResponseCommand.cc
  14705. (handleDefaultEncoding): Added a check whether the file already exists.
  14706. * src/SegmentMan.h
  14707. (fileExists): New function.
  14708. (shouldCancelDownloadForSafety): New function.
  14709. * src/FtpNegotiateCommand.cc
  14710. (recvSize): Added a check whether the file already exists.
  14711. * src/AbstractSingleDiskAdaptor.cc
  14712. (File.h): New include.
  14713. (fileExists): New function.
  14714. * src/AbstractSingleDiskAdaptor.h
  14715. (getFilePath): Removed.
  14716. (fileExists): New function.
  14717. * src/SegmentMan.cc
  14718. (fileExists): New function.
  14719. (shouldCancelDownloadForSafety): New function.
  14720. To fix regression bug in torrent downloading:
  14721. * src/DefaultBtRequestFactory.cc
  14722. (doChokedAction): New function.
  14723. * src/DefaultBtRequestFactory.h
  14724. (doChokedAction): New function.
  14725. * src/DefaultBtMessageDispatcher.cc
  14726. (doChokedAction): Do not delete request if its target is in allowed
  14727. fast set.
  14728. * src/DefaultBtInteractive.cc
  14729. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  14730. (sendKeepAlive): Send keep alive message even if the outgoing message
  14731. queue is not empty.
  14732. (decideInterest): Simplified the code.
  14733. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  14734. it is already called when BtChokeMessage is received from a peer.
  14735. * src/BtRequestFactory.h
  14736. (doChokedAction): New function.
  14737. To clean up code:
  14738. * src/PeerInteractionCommand.h
  14739. (executeInternal): Added virtual keyword explicitly.
  14740. (prepareForRetry): Added virtual keyword explicitly.
  14741. (prepareForNextPeer): Added virtual keyword explicitly.
  14742. (onAbort): Added virtual keyword explicitly.
  14743. * src/RequestSlot.cc
  14744. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  14745. * src/BtPieceMessage.cc
  14746. (doReceivedAction): Added a debug log of piece's bitfield.
  14747. * src/Piece.h
  14748. (getBitfieldLength): New function.
  14749. * src/ByteArrayDiskWriter.cc
  14750. (clear): Added buf = 0 to avoid double free corruption.
  14751. * src/FileAllocator.cc
  14752. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  14753. Added cp.reset().
  14754. * src/BitfieldMan.h
  14755. (operator=): Rewritten.
  14756. * src/BitfieldMan.cc
  14757. (BitfieldMan): Initialized bitfield, useBitfield.
  14758. * src/PeerConnection.cc
  14759. (receiveMessage): Added a call to socket->readable() after getting
  14760. message length to avoid possible EOF.
  14761. * src/Util.cc
  14762. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  14763. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14764. To add an ability to pre-allocate file space:
  14765. * src/DirectDiskAdaptor.h: Rewritten.
  14766. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  14767. * src/MultiDiskAdaptor.h: Rewritten.
  14768. * src/DefaultPieceStorage.cc
  14769. (MultiDiskWriter.h): Removed include.
  14770. (PreAllocationDiskWriter.h): Removed include.
  14771. (FileAllocationMonitor.h): New include.
  14772. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  14773. (initStorage): Rewritten.
  14774. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14775. * src/FileAllocator.h: New class.
  14776. * src/FileAllocator.cc: New class.
  14777. * src/FileAllocationMonitor.h: New class.
  14778. * src/FileAllocationMonitor.cc: New class.
  14779. * src/ConsoleFileAllocationMonitor.h: New class.
  14780. * src/ConsoleFileAllocationMonitor.cc: New class.
  14781. * src/AbstractSingleDiskAdaptor.h: New class.
  14782. * src/AbstractSingleDiskAdaptor.cc: New class.
  14783. * src/DiskAdaptor.h
  14784. (Directory.h): Removed include.
  14785. (DiskWriter.h): Removed include.
  14786. (FileEntry.h): Removed include.
  14787. (diskWriter): Removed.
  14788. (DiskAdaptor): Removed diskWriter.
  14789. (openFile): Made pure virtual.
  14790. (closeFile): Made pure virtual.
  14791. (openExistingFile): Made pure virtual.
  14792. (initAndOpenFile): Made pure virtual.
  14793. (writeData): Made pure virtual.
  14794. (readData): Made pure virtual.
  14795. (sha1Sum): Made pure virtual.
  14796. (getStoreDir): Returns const reference of storeDir.
  14797. (DiskAdaptorHandle): New type definition.
  14798. * src/main.cc
  14799. (ConsoleFileAllocationMonitor.h): New include.
  14800. (showUsage): Added default value description of -s option.
  14801. Added the description of --file-allocation option.
  14802. (main): Set default value of --file-allocation option to 'none'.
  14803. Added --file-allocation command-line option.
  14804. Setup FileAllocationMonitorFactory.
  14805. * src/FtpInitiateConnectionCommand.cc
  14806. (executeInternal): Removed diskWriter related processing, which was
  14807. moved to FtpNegotiationCommand.cc.
  14808. * src/DirectDiskAdaptor.cc
  14809. (getFilePath): Made non-const.
  14810. * src/CopyDiskAdaptor.h
  14811. (DiskAdaptor.h): Removed include.
  14812. (DiskWriter.h): Removed include.
  14813. (AbstractSingleDiskAdaptor.h): New include.
  14814. (getFilePath): Made non-const. Added virtual keyword.
  14815. (CopyDiskAdaptor): Removed diskWriter.
  14816. (getTempFile): Returns const reference.
  14817. (CopyDiskAdaptorHandle): New type definition.
  14818. * src/ByteArrayDiskWriter.cc
  14819. (clear): Simplified.
  14820. (initAndOpenFile): Rewritten.
  14821. (openFile): Call initAndOpenFile()
  14822. * src/MultiDiskAdaptor.cc: Rewritten.
  14823. * src/DownloadEngineFactory.cc
  14824. (FileAllocator.h): New include.
  14825. (FileAllocationMonitor.h): New include.
  14826. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  14827. create DefaultDiskWriter with file allocator.
  14828. * src/DiskWriter.h
  14829. (initAndOpenFile): Added totalLength argument.
  14830. (openFile): Added totalLength argument.
  14831. * src/prefs.h
  14832. (PREF_FILE_ALLOCATION): New definition.
  14833. (V_PREALLOC): New definition.
  14834. (V_NONE): New definition.
  14835. * src/HttpResponseCommand.cc
  14836. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  14837. size.
  14838. * src/FtpNegotiateCommand.cc
  14839. (Util.h): New include.
  14840. (recvSize): Open file here.
  14841. * src/Util.h
  14842. (ullitos): New function.
  14843. * src/CopyDiskWriter.h
  14844. (getFilePath): Made non-const.
  14845. * src/DefaultDiskWriter.h
  14846. (Option.h): New include.
  14847. (totalLength): Removed.
  14848. (DefaultDiskWriter): Removed totalLength.
  14849. (initAndOpenFile): Added totalLength argument.
  14850. (DefaultDiskWriterHandle): New type definition.
  14851. (createNewDiskWriter): New function.
  14852. * src/Util.cc
  14853. (ullitos): New function.
  14854. * src/DefaultDiskWriter.cc
  14855. (message.h): New include.
  14856. (FileAllocator.h): New include.
  14857. (prefs.h): New include.
  14858. (Util.h): New include.
  14859. (DefaultDiskWriter): Removed totalLength.
  14860. (initAndOpenFile): Added file allocation.
  14861. (createNewDiskWriter): New function. Just for temporary solution.
  14862. It will be rewritten later.
  14863. * src/DiskAdaptor.cc
  14864. (DiskAdaptor): Removed diskWriter.
  14865. * src/AbstractDiskWriter.cc
  14866. (LogFactory.h): New include.
  14867. (AbstractDiskWriter): Added fileAllocator, logger.
  14868. (openFile): Added totalLength argument.
  14869. * src/AbstractDiskWriter.h
  14870. (FileAllocator.h): New include.
  14871. (Logger.h): New include.
  14872. (fileAllocator): New variable.
  14873. (logger): New variable.
  14874. (openFile): Added totalLength argument. Added virtual keyword
  14875. explicitly.
  14876. (openExistingFile): Added totalLength argument. Added virtual keyword
  14877. explicitly.
  14878. (closeFile): Added virtual keyword explicitly.
  14879. (sha1Sum): Added virtual keyword explicitly.
  14880. (writeData): Added virtual keyword explicitly.
  14881. (readData): Added virtual keyword explicitly.
  14882. (setFileAllocator): New function.
  14883. * src/DefaultPieceStorage.h
  14884. (FileAllocator.h): New include.
  14885. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14886. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14887. * src/FileProgressMonitor.h: New class.
  14888. To compile aria2 on PC-BSD:
  14889. * src/DefaultBtContext.cc
  14890. (libgen.h): New include.
  14891. To fix memory leak:
  14892. * src/Exception.h
  14893. (~Exception): Delete cause. Fixed memory leak.
  14894. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14895. Rewritten a portion of bittorrent implementation:
  14896. * src/BtMessageValidator.h: New class.
  14897. * src/BtBitfieldMessageValidator.h: New class.
  14898. * src/BtHandshakeMessageValidator.h: New class.
  14899. * src/BtRequestMessageValidator.h: New class.
  14900. * src/BtSuggestPieceMessageValidator.h: New class.
  14901. * src/BtAllowedFastMessageValidator.h: New class.
  14902. * src/BtRejectMessageValidator.h: New class.
  14903. * src/BtCancelMessageValidator.h: New class.
  14904. * src/BtPieceMessageValidator.h: New class.
  14905. * src/BtHaveMessageValidator.h: New class.
  14906. * src/BtEventListener.h: New class.
  14907. * src/AbstractBtEventListener.h: New class.
  14908. * src/BtEvent.h: New class.
  14909. * src/BtChokingEvent.h: New class.
  14910. * src/BtChokedEvent.h: New class.
  14911. * src/BtCancelSendingPieceEvent.h: New class.
  14912. * src/BtAbortOutstandingRequestEvent.h: New class.
  14913. * src/Randomizer.h: New class.
  14914. * src/SimpleRandomizer.h: New class.
  14915. * src/BtMessage.h: New class.
  14916. * src/AbstractBtMessage.h: New class.
  14917. * src/SimpleBtMessage.h: New class.
  14918. * src/BtHaveMessage.h: New class.
  14919. * src/BtInterestedMessage.h: New class.
  14920. * src/BtAllowedFastMessage.h: New class.
  14921. * src/BtUnchokeMessage.h: New class.
  14922. * src/BtCancelMessage.h: New class.
  14923. * src/BtNotInterestedMessage.h: New class.
  14924. * src/BtChokeMessage.h: New class.
  14925. * src/BtHaveNoneMessage.h: New class.
  14926. * src/BtHandshakeMessage.h: New class.
  14927. * src/BtSuggestPieceMessage.h: New class.
  14928. * src/BtHaveMessage.h: New class.
  14929. * src/BtPieceMessage.h: New class.
  14930. * src/BtHaveAllMessage.h: New class.
  14931. * src/BtKeepAliveMessage.h: New class.
  14932. * src/BtPortMessage.h: New class.
  14933. * src/BtRejectMessage.h: New class.
  14934. * src/BtBitfieldMessage.h: New class.
  14935. * src/BtRequestMessage.h: New class.
  14936. * src/DefaultBtRequestFactory.h: New class.
  14937. * src/DefaultBtMessageReceiver.h: New class.
  14938. * src/BtInteractive.h: New class.
  14939. * src/BtMessageDispatcher.h: New class.
  14940. * src/DefaultBtMessageDispatcher.h: New class.
  14941. * src/DefaultBtInteractive.h: New class.
  14942. * src/BitfieldManFactory.h: New class.
  14943. * src/HandleRegistry.h: New class.
  14944. * src/BtMessageFactory.h: New class.
  14945. * src/BtMessageReceiver.h: New class.
  14946. * src/DefaultBtMessageFactory.h: New class.
  14947. * src/PeerObject.h: New class.
  14948. * src/BtRequestFactory.h: New class.
  14949. * src/SuggestPieceMessage.h: Removed.
  14950. * src/PortMessage.h: Removed.
  14951. * src/SuggestPieceMessage.h: Removed.
  14952. * src/KeepAliveMessage.h: Removed.
  14953. * src/HandshakeMessage.h: Removed.
  14954. * src/PeerInteraction.h: Removed.
  14955. * src/UnchokeMessage.h: Removed.
  14956. * src/PieceMessage.h: Removed.
  14957. * src/RequestMessage.h: Removed.
  14958. * src/InterestedMessage.h: Removed.
  14959. * src/HaveMessage.h: Removed.
  14960. * src/CancelMessage.h: Removed.
  14961. * src/RejectMessage.h: Removed.
  14962. * src/AllowedFastMessage.h: Removed.
  14963. * src/HaveNoneMessage.h: Removed.
  14964. * src/SimplePeerMessage.h: Removed.
  14965. * src/HaveAllMessage.h: Removed.
  14966. * src/BitfieldMessage.h: Removed.
  14967. * src/PeerMessageFactory.h: Removed.
  14968. * src/NotInterestedMessage.h: Removed.
  14969. * src/ChokeMessage.h: Removed.
  14970. * src/PeerMessage.h: Removed.
  14971. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14972. To know root cause of exception:
  14973. * src/Exception.h
  14974. (cause): New variable.
  14975. (Exception): Added a parameter.
  14976. (getMsg): Return const reference to msg.
  14977. (getCause): New function.
  14978. * src/DlRetryEx.h
  14979. (DlRetryEx): Added a parameter 'cause'.
  14980. Added an overloaded constructor.
  14981. (DlAbortEx): Added a parameter 'cause'.
  14982. Added an overloaded constructor.
  14983. * src/SimpleLogger.cc
  14984. (writeLog): Log nested exception messages recursively.
  14985. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14986. * src/DefaultBtProgressInfoFile.cc
  14987. (load): Fixed memory leak when the infohash doesn't match.
  14988. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14989. * src/DefaultPeerStorage.cc
  14990. (calculateStat): Simplified the code by combining 2 loops into 1.
  14991. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14992. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  14993. for BitTorrent download:
  14994. * src/PeerAbstractCommand.cc
  14995. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  14996. * src/main.cc:
  14997. (timeoutSpecified): Removed.
  14998. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  14999. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  15000. * src/TorrentRequestInfo.cc
  15001. (timeoutSpecified): Removed.
  15002. (torrentHandler): Removed timeoutSpecified and the adjustment of
  15003. timeout value.
  15004. * src/prefs.h
  15005. (PREF_BT_TIMEOUT): New definition.
  15006. Delete unused variables:
  15007. * src/TorrentRequestInfo.cc
  15008. (requestInfo): Removed.
  15009. Move setSignalHander to Util::setGlobalSignalHandler:
  15010. * src/TorrentRequestInfo.cc:
  15011. setSignalHander -> Util::setGlobalSignalHandler
  15012. * src/main.cc
  15013. (setSignalHander): Removed.
  15014. (main): setSignalHander -> Util::setGlobalSignalHandler
  15015. * src/Util.h
  15016. (setGlobalSignalHandler): New function.
  15017. * src/Util.cc
  15018. (setGlobalSignalHandler): New function.
  15019. * src/UrlRequestInfo.cc:
  15020. setSignalHander -> Util::setGlobalSignalHandler
  15021. Reset peer status in order to exit gracefully:
  15022. * src/PeerAbstractCommand.cc
  15023. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  15024. To fix the bug that causes the number of bytes uploaded is not saved
  15025. to .aria2 file:
  15026. * src/DefaultPeerStorage.h
  15027. (removedPeerSessionDownloadLength): New variable.
  15028. (removedPeerSessionUploadLength): New variable.
  15029. * src/DefaultPeerStorage.cc
  15030. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  15031. removedPeerSessionUploadLength(0).
  15032. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  15033. through all peers, and then add removedPeerSessionDownloadLength(
  15034. removedPeerSessionUploadLength) to it.
  15035. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  15036. (to) the peer to removedPeerSessionDownloadLength
  15037. (removedPeerSessionUploadLength).
  15038. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15039. To add Metalink location option:
  15040. * src/MetalinkRequestInfo.cc
  15041. (execute): Call MetalinkEntry::setLocationPreference()
  15042. * src/main.cc
  15043. (showUsage): Added the help message for --metalink-location option.
  15044. (main): Added --metalink-location option.
  15045. * src/prefs.h
  15046. (PREF_METALINK_LOCATION): New definition.
  15047. * src/MetalinkEntry.cc
  15048. (AddLocationPreference): New function object.
  15049. (setLocationPreference): New function.
  15050. * src/Xml2MetalinkProcessor.cc
  15051. (getResource): Set location attribute to MetalinkResource
  15052. To show URLs to download
  15053. * src/UrlRequestInfo.h
  15054. (printUrls): New function.
  15055. To add multiple <file> Metalink support:
  15056. * src/MetalinkEntry.h
  15057. (MetalinkResources): Removed.
  15058. (setLocationPreference): New function.
  15059. (MetalinkEntryHandle): New type definition.
  15060. (MetalinkEntries): New type definition.
  15061. * src/Xml2MetalinkProcessor.h
  15062. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  15063. (getResource): MetalinkResource* -> MetalinkResourceHandle
  15064. (parseFile): Metalinker* -> MetalinkerHandle
  15065. * src/UrlRequestInfo.h
  15066. (execute): RequestInfo* -> RequestInfos
  15067. * src/MetalinkRequestInfo.cc
  15068. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  15069. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  15070. (execute): RequestInfo* -> RequestInfos
  15071. Added multiple <file> support. Print filename when it is queued.
  15072. * src/MetalinkRequestInfo.h
  15073. (execute): RequestInfo* -> RequestInfos
  15074. (getDownloadEngine): Removed.
  15075. * src/RequestInfo.h
  15076. (RequestInfoHandle): New type definition.
  15077. (RequestInfos): New type definition.
  15078. (execute): RequestInfo* -> RequestInfos
  15079. (getDownloadEngine): Removed.
  15080. * src/MetalinkResource.h
  15081. (MetalinkResourceHandle): New type definition.
  15082. (MetalinkResources): New type definition.
  15083. * src/MetalinkEntry.cc
  15084. (~MetalinkEntry): Removed the deletion of the elements of resources,
  15085. because the element is now of type MetalinkResourceHandle.
  15086. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  15087. (Supported): MetalinkResource* -> MetalinkResourceHandle
  15088. (dropUnsupportedResource): Removed the deletion of the elements of
  15089. resources because the element is now of type MetalinkResourceHandle.
  15090. * src/Xml2MetalinkProcessor.cc
  15091. (parseFile): Metalinker* -> MetalinkerHandle
  15092. MetalinkEntry* -> MetalinkEntryHandle
  15093. Removed try-catch block.
  15094. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  15095. MetalinkResource* -> MetalinkResourceHandle
  15096. Removed try-catch block.
  15097. (getResource): MetalinkResource* -> MetalinkResourceHandle
  15098. Free result by using xmlXPathFreeObject()
  15099. * src/Metalinker.cc
  15100. (~Metalinker): Removed the deletion of entries.
  15101. MetalinkEntry* -> MetalinkEntryHandle
  15102. (queryEntry): Add multiple <file> Metalink support.
  15103. * src/Metalinker.h
  15104. (MetalinkEntries): Removed.
  15105. (queryEntry): MetalinkEntry* -> MetalinkEntries
  15106. * src/MetalinkProcessor.h
  15107. (parseFile): Metalinker* -> MetalinkerHandle
  15108. Bug fixes:
  15109. * src/PeerChokeCommand.cc
  15110. (execute): cat01->cat02
  15111. * src/DefaultPieceStorage.cc
  15112. (DefaultPieceStorage): Added diskAdaptor(0)
  15113. * src/TrackerWatcherComand.cc:
  15114. (execute): Use btAnnounce->noMoreAnnounce()
  15115. to determin whether the function returns true or not.
  15116. * src/TrackerUpdateCommand.cc:
  15117. (execute): Use btAnnounce->noMoreAnnounce()
  15118. to determin whether the function returns true or not.
  15119. * src/FtpConnection.cc
  15120. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  15121. This is the fix of the busy loop bug.
  15122. * src/DownloadCommand.cc
  15123. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  15124. cached PeerStat.
  15125. The value of "name" entry in torrent file is now set by
  15126. *DiskAdaptor::setTopDir(...) methods.
  15127. * src/MultiDiskAdaptor.h
  15128. (topDir): New variable.
  15129. (setTopDir): New function.
  15130. (getTopDir): New function.
  15131. * src/MultiDiskAdaptor.cc
  15132. (getFilePath): Concat storDir, "/" and topDir.
  15133. (mkdir): Use getFilePath() to get the directory path for output.
  15134. * src/DefaultPieceStorage.cc
  15135. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  15136. CopyDiskAdaptor.
  15137. * src/CopyDiskAdaptor.h
  15138. (topDir): New variable.
  15139. (setTopDir): New function.
  15140. (getTopDir): New function.
  15141. * src/CopyDiskAdaptor.cc
  15142. (fixFilename): Updated.
  15143. Misc
  15144. * src/UrlRequestInfo.h
  15145. (e): Removed.
  15146. (UrlRequestInfo): Removed e.
  15147. (getDownloadEngine): Removed.
  15148. * src/UrlRequestInfo.cc
  15149. (handler): Rewritten.
  15150. (printUrls): New function.
  15151. (execute): Call printUrls().
  15152. * src/HandshakeMessage.cc
  15153. (check): peerinteraction->getBtContext() -> btContext
  15154. * src/PeerInteraction.h
  15155. (getBtContext): Removed.
  15156. * src/TorrentRequestInfo.h
  15157. (execute): RequestInfo* -> RequestInfos
  15158. (getDownloadEngine): Removed.
  15159. * src/TorrentRequestInfo.cc
  15160. (haltRequested): Removed.
  15161. (btHaltRequested): New variable.
  15162. (torrentHandler): haltRequested -> btHaltRequested
  15163. (execute): RequestInfo* -> RequestInfos
  15164. * src/TorrentConsoleDownloadEngine.cc
  15165. (afterEachIteration): haltRequested -> btHaltRequested.
  15166. * src/ConsoleDownloadEngine.h
  15167. (initStatistics): Added virtual.
  15168. (calculateStatistics): Added virtual.
  15169. (onEndOfRun): Added virtual.
  15170. (afterEachIteration): Added virtual.
  15171. * src/ConsoleDownloadEngine.cc
  15172. (haltRequested): New variable.
  15173. (afterEachIteration): New function.
  15174. * src/main.cc
  15175. (requestInfo): Removed.
  15176. * src/SegmentMan.cc
  15177. (findSlowerSegmentEntry): Refactored.
  15178. * Release 0.9.0
  15179. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15180. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  15181. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  15182. * src/TorrentMan.h: Removed.
  15183. * src/TorrentMan.cc: Removed.
  15184. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  15185. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  15186. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  15187. * src/PeerAbstractCommand.cc: Use btRuntime.
  15188. * src/BtContextAwareCommand.h: New class.
  15189. * src/FileEntry.h: Added accessor methods for following variables.
  15190. (path): Made private.
  15191. (length): Made private.
  15192. (offset): Made private.
  15193. (extracted): Made private.
  15194. (requested): Made private.
  15195. (FileEntries): New definition.
  15196. (FileEntryHandle): New definition.
  15197. * src/FileEntry.cc: New file.
  15198. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  15199. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  15200. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  15201. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  15202. * src/PieceStorage.h: New file.
  15203. * src/PeerInteractionCommand.h: Use btContext.
  15204. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  15205. btRuntime.
  15206. * src/DefaultBtProgressInfoFile.h: New file.
  15207. * src/DefaultBtProgressInfoFile.cc: New file.
  15208. * src/File.cc
  15209. (Util.h): New include.
  15210. (mkdirs): New function.
  15211. * src/MultiDiskAdaptor.h
  15212. (mkdir): New function.
  15213. * src/PeerListProcessor.h
  15214. (Peers): Removed.
  15215. * src/PeerInteraction.h
  15216. (torrentMan): Removed.
  15217. (btContext): New variable.
  15218. (peerStorage): New variable.
  15219. (pieceStorage): New variable.
  15220. (btAnnounce): New variable.
  15221. (getTorrentMan): Removed.
  15222. (getBtContext): New function.
  15223. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  15224. btAnnounce.
  15225. * src/HandshakeMessage.h
  15226. (TorrentMan.h): Removed.
  15227. * src/HandshakeMessage.cc: Use btContext.
  15228. * src/DefaultBtAnnounce.cc: New file.
  15229. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  15230. * src/DefaultPieceStorage.cc: New file.
  15231. * src/DefaultBtContext.h: New file.
  15232. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  15233. Use the accessor methods of FileEntry.
  15234. * src/CookieBox.cc: Updated to use Util::slice().
  15235. * src/PieceMessage.cc: Use btContext, pieceStorage.
  15236. * src/common.h (SharedHandle.h): New include.
  15237. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  15238. pieceStorage.
  15239. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  15240. * src/DiskAdaptor.h
  15241. (topDir): Removed.
  15242. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  15243. (setTopDir): Removed.
  15244. (getTopDir): Removed.
  15245. * src/BtContext.h: New file.
  15246. * src/DefaultPeerStorage.h: New file.
  15247. * src/PieceMessage.h (TorrentMan.h): Removed.
  15248. * src/RequestMessage.h (TorrentMan.h): Removed.
  15249. * src/TorrentDownloadEngine.h
  15250. (uploadLength): New variable.
  15251. (btContext): New variable.
  15252. (btRuntime): New variable.
  15253. (pieceStorage): New variable.
  15254. (peerStorage): New variable.
  15255. (btAnnounce): New variable.
  15256. (btProgressInfoFile): New variable.
  15257. (torrentMan): Removed.
  15258. (setBtContext): New function.
  15259. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  15260. peerStorage, btAnnounce, btProgressInfoFile.
  15261. * src/Piece.h
  15262. (toString): New function.
  15263. (Pieces): New type definition.
  15264. * src/Peer.h
  15265. (active): New variable.
  15266. (Peer): Added active.
  15267. (activate): Set active to true.
  15268. (deactivate): Set active to false.
  15269. (isActive): New function.
  15270. (Peers): New type definition.
  15271. * src/DirectDiskAdaptor.cc
  15272. (getFilePath): Use the accessor methods of FileEntry.
  15273. * src/TorrentConsoleDownloadEngine.h
  15274. (afterEachIteration): New function.
  15275. * src/TorrentConsoleDownloadEngine.cc
  15276. (haltRequested): New variable.
  15277. (sendStatistics): Use pieceStorage, btRuntime.
  15278. (afterEachIteration): New function.
  15279. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  15280. * src/Directry.h
  15281. (Directory): New function.
  15282. (DirectoryHandle): New type definition.
  15283. * src/BtProgressInfoFile.h: New file.
  15284. * src/RequestMessage.cc: Use pieceStorage.
  15285. * src/BtRuntime.h: New file.
  15286. * src/DefaultBtContext.cc: New file.
  15287. * src/BitfieldMan.h
  15288. (getCompletedLength): New function(private).
  15289. (getCompletedLength): New function.
  15290. (getFilteredCompletedLength): New function.
  15291. * src/BitfieldMan.h
  15292. (getCompletedLength): New function(private).
  15293. (getCompletedLength): New function.
  15294. (getFilteredCompletedLength): New function.
  15295. * src/MultiDiskAdaptor.cc
  15296. (mkdir): New function.
  15297. (openFile): Call mkdir().
  15298. (initAndOpenFile): Call mkdir().
  15299. * src/CancelMessage.h
  15300. (TorrentMan.h): Removed.
  15301. * src/RejectMessage.h
  15302. (TorrentMan.h): Removed.
  15303. * src/DownloadEngineFactory.cc
  15304. (DefaultPieceStorage.h): New include.
  15305. (DefaultPeerStorage.h): New include.
  15306. (DefaultBtAnnounce.h): New include.
  15307. (DefaultBtProgressInfoFile.h): New include.
  15308. (newTorrentConsoleEngine): Rewritten.
  15309. * src/ShareRatioSeedCriteria.h
  15310. (torrentMan): Removed.
  15311. (btContext): New variable.
  15312. (peerStorage): New variable.
  15313. (btRuntime): New variable.
  15314. (evaluate): Use btContext, btRuntime, peerStorage.
  15315. * src/AnnounceTier.h: New file.
  15316. * src/BtAnnounce.h: New file.
  15317. * src/BtRegistry.h: New file.
  15318. * src/PeerInitiateConnectionCommand.h: Added btContext.
  15319. * src/PeerConnection.h (TorrentMan.h): Removed.
  15320. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  15321. * src/Util.h
  15322. (slice): Added an argument.
  15323. * src/Util.cc
  15324. (slice): Added an argument to control whether trim is made or not.
  15325. * src/PeerStorage.h: New file.
  15326. * src/BtRegistry.cc: New file.
  15327. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  15328. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  15329. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  15330. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  15331. * src/TorrentRequestInfo.h
  15332. (e): Removed.
  15333. (showFileEntry): Added an argument.
  15334. (getDownloadEngine): Return 0.
  15335. * src/DefaultBtAnnounce.h: New file.
  15336. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  15337. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  15338. * src/PeerMessageFactory.h
  15339. (btContext): New variable.
  15340. (pieceStorage): New variable.
  15341. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  15342. btAnnounce.
  15343. * src/DiskAdaptor.cc
  15344. (DiskAdaptor): Removed topDir.
  15345. (~DiskAdaptor): Removed topDir.
  15346. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  15347. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  15348. * src/File.h (mkdirs): New function.
  15349. * src/DefaultPeerStorage): New file.
  15350. * src/DownloadEngineFactory.h
  15351. (newTorrentConsoleEngine): Use btContext.
  15352. * src/BtContextAwareCommand.cc: New file.
  15353. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  15354. * src/PeerMessage.h
  15355. (btContext): New variable.
  15356. (peerStorage): New variable.
  15357. (pieceStorage): New variable.
  15358. (setBtContext): New function.
  15359. * src/Directry.cc
  15360. (Directory): New function.
  15361. (createDir): Do nothing if name.size() == 0.
  15362. * src/AnnounceList.h
  15363. (AnnounceTier): Removed.
  15364. (AnnounceTiers): Removed.
  15365. * src/DefaultPieceStorage.h: New file.
  15366. * src/Piece.cc (toString): New function.
  15367. To fix typo:
  15368. * src/main.cc (showVersion): Fixed typo.
  15369. To fix compile warning:
  15370. * src/DelegatingPeerListProcessor.cc
  15371. (canHandle): Added "return false".
  15372. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15373. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  15374. make the process of announce request testable.
  15375. * src/TrackerWatcherCommand.h
  15376. (TimeA2.h): Removed.
  15377. (interval): Removed.
  15378. (checkPoint): Removed.
  15379. (createRequestCommand): Added an argument 'url'.
  15380. (TrackerWatherCommand): Removed interval.
  15381. (createCommand): New function.
  15382. * src/DownloadEngineFactory.cc
  15383. (newTorrentConsoleEngine): Updated according to the changes in
  15384. TrackerWatherCommand.
  15385. * src/TorrentMan.cc
  15386. (DelegatingPeerListProcessor.h): New includes.
  15387. (TorrentMan): Added the initialization of announceInterval.
  15388. (isStoppedAnnounceReady): New function.
  15389. (isCompletedAnnounceReady): New function.
  15390. (isDefaultAnnounceReady): New function.
  15391. (isAnnounceReady): New function.
  15392. (getAnnounceUrl): New function.
  15393. (announceStart): New function.
  15394. (announceFailure): New function.
  15395. (announceSuccess): New function.
  15396. (isAllAnnounceFailed): New function.
  15397. (resetAnnounce): New function.
  15398. (processAnnounceResponse): New function.
  15399. (needMorePeerConnection): New function.
  15400. (noMoreAnnounce): New function.
  15401. * src/TrackerUpdateCommand.h
  15402. (getTrackerResponse): int->size_t
  15403. * src/TorrentMan.h
  15404. (isStoppedAnnounceReady): New function.
  15405. (isCompletedAnnounceReady): New function.
  15406. (isDefaultAnnounceReady): New function.
  15407. (announceInterval): New variable.
  15408. (isAnnounceReady): New function.
  15409. (getAnnounceUrl): New function.
  15410. (announceStart): New function.
  15411. (announceFailure): New function.
  15412. (announceSuccess): New function.
  15413. (isAllAnnounceFailed): New function.
  15414. (resetAnnounce): New function.
  15415. (processAnnounceResponse): New function.
  15416. (needMorePeerConnection): New function.
  15417. (noMoreAnnounce): New function.
  15418. * src/TrackerWatcherCommand.cc
  15419. (TrackerWatherCommand): Removed interval and checkPoint.
  15420. (execute): Rewritten.
  15421. (createCommand): New function.
  15422. (createRequestCommand): Rewritten.
  15423. * src/TrackerUpdateCommand.cc
  15424. (MetaFileUtil.h): Removed.
  15425. (DelegatingPeerListProcessor.h): Removed.
  15426. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  15427. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15428. Request -> RequestHandle:
  15429. * src/HttpResponseCommand.h: Request->RequestHandle
  15430. * src/AbstractCommand.cc: Request->RequestHandle
  15431. * src/HttpDownloadCommand.cc: Request->RequestHandle
  15432. * src/HttpRequestCommand.cc: Request->RequestHandle
  15433. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  15434. * src/AbstractCommand.h: Request->RequestHandle
  15435. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  15436. * src/HttpResponseCommand.cc: Request->RequestHandle
  15437. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  15438. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  15439. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  15440. * src/HttpConnection.h: Request->RequestHandle
  15441. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  15442. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  15443. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15444. * src/DownloadCommand.h: Request->RequestHandle
  15445. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  15446. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  15447. * src/HttpRequestCommand.h: Request->RequestHandle
  15448. * src/FtpNegotiateCommand.h: Request->RequestHandle
  15449. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15450. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  15451. * src/HttpDownloadCommand.h: Request->RequestHandle
  15452. * src/FtpConnection.cc: Request->RequestHandle
  15453. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  15454. * src/UrlRequestInfo.cc: Request->RequestHandle
  15455. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  15456. * src/HttpConnection.h: Request->RequestHandle
  15457. * src/DownloadCommand.cc: Request->RequestHandle
  15458. * src/FtpConnection.h: Request->RequestHandle
  15459. * src/FtpDowndloadCommand.h: Request->RequestHandle
  15460. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  15461. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  15462. * src/Request.h
  15463. (SharedHandle.h): New include.
  15464. (RequestHandle): New type definition.
  15465. (Requests): Redefined.
  15466. To add MULTITRACKER support:
  15467. * src/TrackerWatcherCommand.h
  15468. (createRequestCommand): New function.
  15469. * src/DownloadEngineFactory.cc
  15470. (newTorrentConsoleEngine): Removed req.
  15471. * src/prefs.h
  15472. (PREF_TRACKER_MAX_TRIES): New definition.
  15473. * src/TorrentMan.cc
  15474. (TorrentMan): Removed req. Added trackerNumTry.
  15475. (~TorrentMan): Removed req.
  15476. (setupInternal1): Added announceList.
  15477. * src/TorrentRequestInfo.cc
  15478. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  15479. announces is now specified by PREF_TRACKER_MAX_TRIES.
  15480. * src/main.cc
  15481. (main): Added PREF_TRACKER_MAX_TRIES.
  15482. * src/TorrentMan.h
  15483. (Request.h): Removed.
  15484. (AnnounceList.h): New include.
  15485. (trackerNumTry): New variable.
  15486. (req): Removed.
  15487. (announceList): New variable.
  15488. * src/TrackerWatcherCommand.cc
  15489. (execute): Rewritten.
  15490. (createRequestCommand): New function.
  15491. * src/TrackerUpdateCommand.cc
  15492. (execute): Updated with the use of AnnounceList.
  15493. * src/AnnounceList.cc: New class.
  15494. * src/AnnounceList.h: New class.
  15495. To fix typo:
  15496. * src/prefs.h
  15497. (PREF_MAX_TRIES): max_try->max_tries
  15498. To not to decode "+" as space in URL decode:
  15499. * src/Util.cc
  15500. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  15501. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15502. To add timeout to async name resolution:
  15503. * src/AbstractCommand.h
  15504. (nameResolveFinished): New function. This is not elegant way. It needs
  15505. to be more refined.
  15506. (nameResolverCheck): New variable.
  15507. * src/AbstractCommand.cc
  15508. (AbstractCommand): Added nameResolverCheck.
  15509. (execute): Added the check whether the name resolution has finished.
  15510. (setNameResolverCheck): Set nameResolverCheck to true.
  15511. (disableNameResolverCheck): Set nameResolverCheck to false.
  15512. (nameResolverFinished): New function.
  15513. * src/FtpInitiateConnectionCommand.h
  15514. (nameResolverFinished): New function.
  15515. * src/FtpInitiateConnectionCommand.cc
  15516. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15517. * src/HttpInitiateConnectionCommand.h
  15518. (nameResolverFinished): New function.
  15519. * src/HttpInitiateConnectionCommand.cc
  15520. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15521. * src/prefs.h
  15522. (PREF_DNS_TIMEOUT): New definition.
  15523. * src/main.cc
  15524. (main): Added PREF_DNS_TIMEOUT.
  15525. To add the support for a non-compact response from a tracker:
  15526. * src/PeerListProcessor.h: New class.
  15527. * src/DefaultPeerListProcessor.h: New class.
  15528. * src/DefaultPeerListProcessor.cc: New class.
  15529. * src/CompactPeerListProcessor.h: New class.
  15530. * src/CompactPeerListProcessor.cc: New class.
  15531. * src/DelegatingPeerListProcessor.h: New class.
  15532. * src/DelegatingPeerListProcessor.cc: New class.
  15533. * src/TorrentMan.cc
  15534. (addPeer): New function(overload).
  15535. (addPeer): Delete unused peers only when new peer is added.
  15536. * src/TorrentMan.h
  15537. (PeerListProcessor.h): Included.
  15538. (Peers): Removed.
  15539. (addPeer): New function(overload).
  15540. * src/TrackerUpdateCommand.cc
  15541. (netinet/in.h): Removed.
  15542. (DelegatingPeerListProcessor.h): Included.
  15543. (execute): Updated to use DelegatingPeerListProcessor.
  15544. To fix the memory leak in TorrentMan::peers:
  15545. * src/PeerAbstractCommand.cc
  15546. (onAbort): Added peer->resetStatus().
  15547. * src/Peer.h
  15548. (resetStatus): Made public.
  15549. To improve the precision of the speed calculation:
  15550. * src/SpeedCalc.h
  15551. (nextInterval): New variable.
  15552. * src/SpeedCalc.cc
  15553. (reset): Added nextInterval.
  15554. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  15555. (changeSw): Set nextInterval to 15 seconds relative to the current
  15556. instant time.
  15557. * src/main.cc
  15558. (showVersion): Updated.
  15559. (showUsage): Updated.
  15560. * Release 0.8.1
  15561. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15562. * src/main.cc
  15563. (showUsage): Commented out --min-segment-size option.
  15564. (main): Commented out --min-segment-size option.
  15565. * Release 0.8.0
  15566. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15567. * src/*.{h,cc}:
  15568. Added an exception to the license which allows linking with OpenSSL.
  15569. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15570. * src/AbstractCommand.cc
  15571. (execute): Check whether the download has finished before checking
  15572. socket status.
  15573. Return true if peerStat->getStatus() == REQUEST_IDLE.
  15574. Do not exit even if no segment is available.
  15575. * src/prefs.h
  15576. (PREF_STARTUP_IDLE_TIME): New definition.
  15577. * src/PeerInteractionCommand.cc
  15578. (executeInternal): Removed max speed limit. Because it performs bad.
  15579. (receiveMessages): Added max speed limit. This was better than above,
  15580. but still a little bit to be desired. Sometimes the download speed
  15581. became much faster than I specified.
  15582. * src/SpeedCalc.h
  15583. (start): New variable.
  15584. (accumulatedLength): New variable.
  15585. (getAvgSpeed): New function.
  15586. * src/SpeedCalc.cc
  15587. (reset): Added start, accumulatedLength.
  15588. (update): Added calculation of an average speed.
  15589. (getAvgSpeed): New function.
  15590. * src/DownloadCommand.h
  15591. (sw): Removed.
  15592. * src/main.cc
  15593. (main): Added PREF_STARTUP_IDLE_TIME.
  15594. * src/PeerStat.h
  15595. (STATUS): Added REQUEST_IDLE.
  15596. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  15597. (getAvgDownloadSpeed): New function
  15598. (requestIdle): New function.
  15599. * src/SegmentMan.h
  15600. (SegmentEntryHandle): New type definition.
  15601. (SegmentEntries): Now holds SegmentEntryHandle.
  15602. (findSlowerSegmentEntry): New funtion.
  15603. * src/SegmentMan.cc
  15604. (save): Updated according to the changes in SegmentEntries.
  15605. (read): Updated according to the changes in SegmentEntries.
  15606. (FindSegmentEntryByIndex): Updated according to the changes in
  15607. SegmentEntries.
  15608. (FindSegmentEntryByCuid): Updated according to the changes in
  15609. SegmentEntries.
  15610. (checkoutSegment): Updated according to the changes in SegmentEntries.
  15611. (onNullBitfield): Updated according to the changes in SegmentEntries.
  15612. Renamed uitr as itr.
  15613. (findSlowerSegmentEntry): New function.
  15614. (getSegment): Updated according to the changes in SegmentEntries.
  15615. Added the feature that cancels the segment with slow server and fast
  15616. one takes it over.
  15617. (cancelSegment): Updated according to the changes in SegmentEntries.
  15618. (getDownloadLength): Updated according to the changes in
  15619. SegmentEntries.
  15620. (init): Assigned 0 to bitfield after deleting it.
  15621. * src/DownloadCommand.cc
  15622. (STARTUP_IDLE_TIME): Removed.
  15623. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  15624. * src/PeerChokeCommand.cc
  15625. (optUnchokingPeer): Updated according to the changes in Peer.
  15626. (ResetDelta): Removed.
  15627. (UploadFaster): Updated according to the changes in Peer.
  15628. (DownloadFaster): Updated according to the changes in Peer.
  15629. (execute): I clarify the meaning of "upload" and "download" here.
  15630. "upload" means the transfer from localhost to remote host.
  15631. "download" means the transfer from remote host to localhost.
  15632. Based on this rule, I swapped orderByUploadRate and
  15633. orderByDownloadRate.
  15634. * src/PeerInteractionCommand.cc
  15635. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  15636. (executeInternal): Removed the argument of
  15637. peerInteraction->sendMessages().
  15638. (receiveMessages): Rewritten download speed limit.
  15639. (sendKeepAlive): Removed peerInteraction->sendMessages().
  15640. * src/HttpResponseCommand.cc
  15641. (handleDefaultEncoding): If file size is unknown in torrent request,
  15642. do not call segmentMan->initBitfield() here.
  15643. Disabled persistent connection feature in torrent request.
  15644. * src/UrlRequestInfo.h
  15645. (UrlRequestInfo): Removed const qualifier from option.
  15646. * src/TorrentMan.h
  15647. (TransferStat): New class.
  15648. (deltaDownloadLength): Removed.
  15649. (deltaUploadLength): Removed.
  15650. (addDeltaDownloadLength): Removed.
  15651. (getDeltaDownloadLength): Removed.
  15652. (resetDeltaDownloadLength): Removed.
  15653. (addDeltaUploadLength): Removed.
  15654. (getDeltaUploadLength): Removed.
  15655. (resetDeltaUploadLength): Removed.
  15656. (addActivePeer): Added peer->activate().
  15657. (deleteActivePeer): Added peer->deactivate().
  15658. (calculateStat): New function.
  15659. * src/TorrentMan.cc
  15660. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  15661. (calculateStat): New function.
  15662. * src/PeerInteraction.h
  15663. (uploadLimit): Removed.
  15664. (option): New variable.
  15665. (setUploadLimit): Removed.
  15666. (getUploadSpeed): Removed.
  15667. (sendMessages): Removed the argument "currentUploadSpeed".
  15668. * src/PeerInteraction.cc
  15669. (prefs.h): Included.
  15670. (PeerInteraction): Removed uploadLimit. Added option.
  15671. (sendMessages): Rewritten upload speed limit.
  15672. (sendHandshake): Removed the argument from sendMessages().
  15673. (sendBitfield): Removed the argument from sendMessages().
  15674. * src/PeerAbstractCommand.cc
  15675. (execute): Commented out the portion of upload limit.
  15676. (onAbort): Removed peer->resetStatus().
  15677. * src/TorrentRequestInfo.cc
  15678. (timeoutSpecified): Declared extern.
  15679. (execute): Set timeout to 180 if timeout is not specified by.
  15680. command-line.
  15681. * src/PieceMessage.cc
  15682. (receivedAction): Added peer->updateDownloadLength().
  15683. Removed peer->addPeerUpload().
  15684. Removed torrentMan->addDeltaDownloadLength().
  15685. (send): Added peer->updateUploadLength().
  15686. Removed peer->addPeerDownload().
  15687. Removed torrentMan->addDeltaUploadLength().
  15688. * src/main.cc
  15689. (timeoutSpecified): New variable.
  15690. (main): Set timeoutSpecified to false.
  15691. If the command-line option "--upload-limit" is specified, then
  15692. timeoutSpecified is set to true. This option will remain in the next
  15693. release, but be deprecated in the future release.
  15694. * src/TorrentRequestInfo.h
  15695. (TorrentRequestInfo): Removed const qualifier from op.
  15696. * src/PeerStat.h
  15697. (uploadSpeed): New variable.
  15698. (PeerStat): Added default value to cuid.
  15699. (calculateUploadSpeed): New function.
  15700. (updateUploadLength): New function.
  15701. (getMaxUploadSpeed): New function.
  15702. (getAvgUploadSpeed): New function.
  15703. (reset): Added uploadSpeed. Set status to IDLE.
  15704. * src/TorrentDownloadEngine.h
  15705. (cp): Declared as Time.
  15706. (sessionDownloadLengthArray): Removed.
  15707. (sessionUploadLengthArray): Removed.
  15708. (currentCp): Removed.
  15709. (lastCalcStat): New variable
  15710. (lastElapsed): Removed.
  15711. (sessionDownloadLength): Removed.
  15712. (calculateStat): New function.
  15713. * src/TorrentDownloadEngine.cc
  15714. (initStatistics): Removed lastElapsed, cp[],
  15715. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  15716. currentCp, sessionDownloadLength.
  15717. Added cp.reset() and lastCalcStat.reset().
  15718. (calculateSpeed): Changed the name of the argument.
  15719. (calculateStatistics): Rewritten.
  15720. (calculateStat): New function.
  15721. * src/Peer.h
  15722. (PeerStat.h): Included.
  15723. (peerUpload): Removed.
  15724. (peerDownload): Removed.
  15725. (peerStat): New variable.
  15726. (sessionUploadLength): New variable.
  15727. (sessionDownloadLength): New variable.
  15728. (deltaUpload): Removed.
  15729. (deltaDownload): Removed.
  15730. (resetStatus): Made private.
  15731. (Peer): Added sessionUploadLength, sessionDownloadLength.
  15732. Removed peerUpload, peerDownload.
  15733. (updateUploadLength): New function.
  15734. (addDeltaUpload): Removed.
  15735. (updateDownloadLength): New function.
  15736. (resetDeltaUpload): Removed.
  15737. (getDeltaUpload): Removed.
  15738. (addDeltaDownload): Removed.
  15739. (calculateUploadSpeed): New function.
  15740. (resetDeltaDownload): Removed.
  15741. (getDeltaDownload): Removed.
  15742. (calculateDownloadSpeed): New function.
  15743. (getSessionUploadLength): New function.
  15744. (getSessionDownloadLength): New function.
  15745. (activate): New function.
  15746. (deactivate): New function.
  15747. (addPeerUpload): Removed.
  15748. (setPeerUpload): Removed.
  15749. (getPeerUpload): Removed.
  15750. (addPeerDownload): Removed.
  15751. (setPeerDownload): Removed.
  15752. (getPeerDownload): Removed.
  15753. * src/Peer.cc
  15754. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  15755. * src/MetalinkRequestInfo.h
  15756. (MetalinkRequestInfo): Removed const qualifier from op.
  15757. * src/RequestInfo.h
  15758. (op): Removed const qualifier.
  15759. (RequestInfo): Removed const qualifier from op.
  15760. * src/prefs.h
  15761. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  15762. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  15763. * src/PeerInteractionCommand.cc
  15764. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  15765. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  15766. * src/PeerInteraction.cc
  15767. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  15768. * src/main.cc
  15769. (showUsage): Updated the description of "--lowest-speed-limit" option.
  15770. Added the description of "--max-download-limit" option.
  15771. Removed the description of "--upload-limit" option.
  15772. Added the description of "--max-upload-limit" option.
  15773. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  15774. Added "--max-download-limit" option and "--max-upload-limit" option.
  15775. Added the warning message if "--upload-limit" option is used.
  15776. * src/DownloadCommand.cc
  15777. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  15778. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15779. To rewrite segment download mechanism for HTTP/FTP download.
  15780. Use BitfieldMan to manage segment download.
  15781. * src/HttpResponseCommand.h
  15782. (executeInternal): Pass the reference of segment.
  15783. * src/AbstractCommand.cc
  15784. (prepareForRetry): Call segmentMan->cancelSegment here.
  15785. (onAbort): Call segmentMan->cancelSegment here.
  15786. * src/HttpDownloadCommand.cc
  15787. (prepareForNextSegment): New function.
  15788. * src/DownloadEngineFactory.cc
  15789. (newConsoleEngine): Removed splitter.
  15790. (newTorrentConsoleEngine): Removed splitter.
  15791. * src/Request.h
  15792. (segment): Renamed from seg.
  15793. * src/FtpInitiateConnectionCommand.h
  15794. (executeInternal): Pass the reference of segment.
  15795. * src/AbstractCommand.h
  15796. (executeInternal): Pass the reference of segment.
  15797. * src/pref.h
  15798. (PREF_SEGMENT_SIZE): New definition.
  15799. * src/HttpProxyRequestCommand.h
  15800. (executeInternal): Pass the reference of segment.
  15801. * src/HttpResponseCommand.cc
  15802. (checkResponse): Allowed status 206 when a request range starts 0.
  15803. (handleDefaultEncoding): Rewritten the code related to Segment.
  15804. (handleOtherEncoding): Rewritten the code related to Segment.
  15805. * src/SegmentMan.h
  15806. (SegmentEntry): New class.
  15807. (SegmentEntries): New type definition.
  15808. (bitfield): New variable.
  15809. (usedSegmentEntries): New variable.
  15810. (onNullBitfield): New function.
  15811. (checkoutSegment): New function.
  15812. (segments): Removed.
  15813. (splitter): Removed.
  15814. (unregisterId): Removed.
  15815. (getSegment): New function(overload)
  15816. (getDownloadedSize): Removed.
  15817. (cancelSegment): New function.
  15818. (completeSegment): New function.
  15819. (initBitfield): New function.
  15820. (hasSegment): New function.
  15821. (getDownloadLength): New function.
  15822. * src/BitfieldMan.h
  15823. (getStartIndex): New function.
  15824. (getEndIndex): New function.
  15825. (getMissingUnusedIndex): New function(overload).
  15826. (getSparseMissingUnusedIndex): New function.
  15827. * src/BitfieldMan.cc
  15828. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  15829. (getMissingUnusedIndex): New function(overload).
  15830. (Range): New class.
  15831. (getStartIndex): New function.
  15832. (getEndIndex): New function.
  15833. (getSparseMissingUnusedIndex): New function.
  15834. (isBitSetInternal): Return false if the given index is less than 0.
  15835. * src/HttpInitiateConnectionCommand.h
  15836. (executeInternal): Pass the reference of segment.
  15837. * src/FtpNegotiateCommand.h
  15838. (executeInternal): Pass the reference of segment.
  15839. * src/FtpNegotiateCommand.cc
  15840. (recvSize): Initialize bitfield here.
  15841. * src/FtpTunnelResponseCommand.h
  15842. (executeInternal): Pass the reference of segment.
  15843. * src/HttpConnection.cc
  15844. (createRequest): Rewritten range header processing.
  15845. * src/DownloadCommand.h
  15846. (executeInternal): Pass the reference of segment.
  15847. (prepareForRetry): Removed.
  15848. (prepareForNextSegment): Added an argument segment. Made it a virtual
  15849. function.
  15850. * src/main.cc
  15851. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  15852. * src/SegmentMan.cc
  15853. (SegmentMan): Added bitfield. Removed splitter.
  15854. (~SegmentMan): Added bitfield. Removed splitter.
  15855. (unregisterId): Removed.
  15856. (getSegment): Rewritten.
  15857. (updateSegment): Rewritten.
  15858. (save): Rewritten.
  15859. (read): Rewritten.
  15860. (finished): Rewritten.
  15861. (getDownloadedSize): Removed.
  15862. (initBitfield): New function.
  15863. (FindSegmentEntryByIndex): New function object.
  15864. (FindSegmentEntryByCuid): New function object.
  15865. (checkoutSegment): New function.
  15866. (onNullBitfield): New function.
  15867. (getSegment): New function(overload).
  15868. (CancelSegment): New function object.
  15869. (cancelSegment): New function.
  15870. (completeSegment): New function.
  15871. (hasSegment): New function.
  15872. (getDownloadLength): New function.
  15873. * src/FtpInitiateConnectionCommand.cc
  15874. (executeInternal): Load .aria2 file after hostname resolution finishes.
  15875. * src/Segment.h: Rewritten.
  15876. * src/Segment.cc (operator<<): New function.
  15877. * src/HttpDownloadCommand.h
  15878. (prepareForNextSegment): New function.
  15879. * src/Request.cc
  15880. (resetUrl): Made segment null.
  15881. * src/DownloadEngine.cc
  15882. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  15883. * src/HttpProxyRequestCommand.h
  15884. (executeInternal): Pass the reference of segment.
  15885. * src/DownloadCommand.cc
  15886. (executeInternal): Rewritten the code related to Segment.
  15887. (prepareForRetry): Removed.
  15888. (prepareForNextSegment): Rewritten.
  15889. * src/FtpTunnelResponseCommand.h
  15890. (executeInternal): Pass the reference of segment.
  15891. To add HTTP 1.1 persistent connection support(experimental)
  15892. * src/HttpRequestCommand.cc
  15893. (executeInternal): Disable keep alive if it is disabled by
  15894. configuration.
  15895. * src/Request.h
  15896. (keepAlive): New variable.
  15897. (isKeepAlive): New function.
  15898. (setKeepAlive): New function.
  15899. * src/pref.h
  15900. (PREF_HTTP_KEEP_ALIVE): New definition.
  15901. * src/HttpResponseCommand.cc
  15902. (executeInternal): Check the remote server supports keep alive.
  15903. * src/HttpConnection.cc
  15904. (createRequest): Send "Connection: close" only if keep alive is
  15905. disabled.
  15906. * src/main.cc
  15907. (main):
  15908. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  15909. To add max download speed limit:
  15910. * src/pref.h
  15911. (PREF_MAX_SPEED_LIMIT): New definition.
  15912. * src/PeerInteractionCommand.cc
  15913. (executeInternal): Added max download speed limit. Not tested yet.
  15914. * src/SegmentMan.h
  15915. (PeerStats): New type definition.
  15916. (peerStats): New variable.
  15917. (registerPeerStat): New function.
  15918. (FindPeerStat): New function object.
  15919. (getPeerStat): New function.
  15920. (calculateDownloadSpeed): New function.
  15921. * src/SpeedCalc.h: New class.
  15922. * src/SpeedCalc.cc: New class.
  15923. * src/main.cc
  15924. (main):
  15925. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  15926. download speed is not restricted).
  15927. * src/PeerStat.h: New class.
  15928. * src/SegmentMan.cc
  15929. (registerPeerStat): New function.
  15930. (calculateDownloadSpeed): New function.
  15931. * src/DownloadCommand.cc
  15932. (STARTUP_IDLE_TIME): New definition.
  15933. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  15934. downloadStart.
  15935. (~DownloadCommand): Call peerStat->downloadStop.
  15936. (executeInternal): Added download speed limitter. Rewritten lowest
  15937. speed limitter.
  15938. * src/HttpConnection.cc
  15939. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  15940. * src/AbstractCommand.cc
  15941. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  15942. Added hostname to the error message.
  15943. * src/ConsoleDownloadEngine.cc
  15944. (calculateStatistics): Initialize psize with dlSize.
  15945. * src/PieceMessage.cc
  15946. (receivedAction): Do not call peerInteraction->abortPiece here.
  15947. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  15948. * src/BitfieldMan.h
  15949. (clearAllUseBit): New function.
  15950. (setAllUseBit): New function.
  15951. * src/BitfieldMan.cc
  15952. (clearAllBit): Do not clear useBitfield here.
  15953. (clearAllUseBit): New function.
  15954. (setAllUseBit): New function.
  15955. * src/Piece.cc
  15956. (clearAllBlock): Call bitfield->clearAllUseBit().
  15957. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15958. To make filename URL-decoded:
  15959. * src/HttpResponseCommand.h: Updated doc.
  15960. * src/HttpResponseCommand.cc
  15961. (determinFilename): Made filename URL-decoded.
  15962. * src/FtpInitiateConnectionCommand.cc
  15963. (executeInternal): Made filename URL-decoded.
  15964. * src/Util.h (urldecode): New function.
  15965. * src/Util.cc (urldecode): New function.
  15966. To fix a bug that caused assertion failure in ares_strerror:
  15967. * src/NameResolver.cc (callback): Fixed the bug.
  15968. * Release 0.7.3
  15969. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15970. To add --seed-time and --seed-ratio command-line option:
  15971. * src/Option.h (getAsDouble): New function.
  15972. * src/Option.cc (getAsDouble): New function.
  15973. * src/SeedCheckCommand.h: New class.
  15974. * src/SeedCheckCommand.cc: New class.
  15975. * src/DownloadEngineFactory.cc
  15976. (SeedCheckCommand.h): Included.
  15977. (UnionSeedCriteria.h): Included.
  15978. (TimeSeedCriteria.h): Included.
  15979. (ShareRatioSeedCriteria.h): Included.
  15980. (newTorrentConsoleEngine): Added the processing of seed option.
  15981. * src/SeedCriteria.h: New class.
  15982. * src/ShareRatioSeedCriteria.h: New class.
  15983. * src/TimeSeedCriteria.h: New class.
  15984. * src/UnionSeedCriteria.h: New class.
  15985. * src/prefs.h
  15986. (PREF_SEED_TIME): New definition.
  15987. (PREF_SEED_RATIO): New definition.
  15988. * src/main.cc
  15989. (showUsage): Added --seed-time and --seed-ratio option.
  15990. (main): Added --seed-time and --seed-ratio option.
  15991. Made default log file name "/dev/null".
  15992. * src/SharedHandle.h
  15993. (SharedHandle): Copy constructor. Made it assignable from the
  15994. SharedHandle of the subclasses.
  15995. (operator=): Made it assignable from the SharedHandle of the
  15996. subclasses.
  15997. (getRefCount): New function.
  15998. To add notice log level and the switch to write log to stdout. This
  15999. switch is configurable per log level.
  16000. * src/Logger.h
  16001. (notice): New function.
  16002. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  16003. constant.
  16004. * src/LogFactory.cc
  16005. (getInstance): The use of NullLogger was removed. A log message with
  16006. notice log level was made written to stdout along with log file.
  16007. * src/NullLogger.h
  16008. (notice): New function.
  16009. * src/SimpleLogger.h
  16010. (writeHeader): Added the 'file' argument.
  16011. (writeLog): Added the 'file' argument.
  16012. (writeFile): New function.
  16013. (stdoutField): New variable.
  16014. (SimpleLogger): Removed the default constructor.
  16015. (SimpleLogger): Made the default value of logfile 0.
  16016. (debug): Added 'virtual' keyword.
  16017. (info): Added 'virtual' keyword.
  16018. (warn): Added 'virtual' keyword.
  16019. (error): Added 'virtual' keyword.
  16020. (notice): New function.
  16021. (setStdout): New function.
  16022. * src/SimpleLogger.cc
  16023. (WRITE_LOG): Replaced writeLog with writeFile.
  16024. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  16025. (SimpleLogger): Removed the default constructor.
  16026. (setStdout): New function.
  16027. (writeLog): Added the handling of NOTICE log level.
  16028. (writeFile): New function.
  16029. (notice): New function.
  16030. * src/TorrentMan.h: Updated doc.
  16031. * src/BitfieldMan.h: Updated doc.
  16032. * src/TrackerWatcherCommand.cc
  16033. (execute): Return true if error occurred in the request to the tracker
  16034. and halt is requested.
  16035. * src/TrackerUpdateCommand.cc
  16036. (execute): Return true if error occurred in the request to the tracker
  16037. and halt is requested.
  16038. To call onDownloadComplete from TorrentMan::completePiece(), not from
  16039. DownloadEngine:
  16040. * src/TorrentConsoleDownloadEngine.h
  16041. (onSelectiveDownloadingCompletes): Removed.
  16042. * src/TorrentConsoleDownloadEngine.cc
  16043. (onSelectiveDownloadingCompletes): Removed.
  16044. * src/TorrentDownloadEngine.h
  16045. (onEndOfRun): Added 'virtual' keyword.
  16046. (afterEachIteration): Removed.
  16047. (onSelectiveDownloadingCompletes): Removed.
  16048. * src/TorrentDownloadEngine.cc
  16049. (onEndOfRun): Removed filenameFixed.
  16050. (afterEachIteration): Removed.
  16051. * src/TorrentMan.cc
  16052. (completePiece): Call onDownloadComplete here.
  16053. (onDownloadComplete): Added 2 log messages.
  16054. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16055. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  16056. * src/NameResolver.h: Added the prototype declaration of callback().
  16057. To support c-ares library:
  16058. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16059. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16060. * src/FtpInitiateConnectionCommand.h:
  16061. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16062. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16063. * src/HttpInitiateConnectionCommand.h:
  16064. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16065. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  16066. Added thes upport of c-ares's ares_strerror(the idea came from patch
  16067. #1542285 by tizianomueller)
  16068. * src/HttpInitiateConnectionCommand.cc:
  16069. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16070. * src/FtpInitiateConnectionCommand.cc:
  16071. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16072. * src/DownloadEngine.h:
  16073. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16074. * src/DownloadEngine.cc:
  16075. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16076. To fix the bug that causes compilation failure with metalink-support
  16077. disabled(bug#1543587):
  16078. * src/main.cc: Fixed with the patch by tizianomueller.
  16079. * Release 0.7.2
  16080. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16081. * src/main.cc
  16082. (main): Added a message to inform users that aria2 is starting to
  16083. verify checksum.
  16084. * src/RequestInfo.cc
  16085. (printDownloadAbortMessage): Added a message to inform users that
  16086. transfer can be resumed.
  16087. * src/FeatureConfig.cc
  16088. (FEATURE_ASYNC_DNS): New definition.
  16089. (FeatureConfig): Added aysnc DNS entry.
  16090. To replace CommandUuid with Command* in SocketEntry and
  16091. NameResolverEntry:
  16092. * src/DownloadEngine.h
  16093. (CommandUuids): Removed.
  16094. (SocketEntry::commandUuid): Removed.
  16095. (SocketEntry::command): New variable.
  16096. (SocketEntry::SocketEntry): Updated.
  16097. (SocketEntry::operator==): Updated.
  16098. (NameResolverEntry::commandUuid): Removed.
  16099. (NameResolverEntry::command): New variable.
  16100. (NameResolverEntry::NameResolverEntry): Updated.
  16101. (NameResolverEntry::operator==): Updated.
  16102. (waitData): Changed the argument type.
  16103. (addSocketForReadCheck): Changed the argument type.
  16104. (deleteSocketForReadCheck): Changed the argument type.
  16105. (addSocketForWriteCheck): Changed the argument type.
  16106. (deleteSocketForWriteCheck): Changed the argument type.
  16107. (addNameResolverCheck): Changed the argument type.
  16108. (deleteNameResolverCheck): Changed the argument type.
  16109. * src/DownloadEngine.cc
  16110. (FindCommand): Removed.
  16111. (run): Removed activeUuid. Added activeCommands instead.
  16112. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  16113. (AccumulateActiveCommand): New function object.
  16114. (waitData): Use AccumulateActiveCommand.
  16115. (addSocketForReadCheck): Use Command instead of CommandUuid.
  16116. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  16117. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  16118. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  16119. (addNameResolverCheck): Use Command instead of CommandUuid.
  16120. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  16121. * src/AbstractCommand.cc
  16122. (disableReadCheckSocket): Updated according to the changes in
  16123. DownloadEngine.
  16124. (setReadCheckSocket): Updated according to the changes in
  16125. DownloadEngine.
  16126. (disableWriteCheckSocket): Updated according to the changes in
  16127. DownloadEngine.
  16128. (setWriteCheckSocket): Updated according to the changes in
  16129. DownloadEngine.
  16130. (setNameResolverCheck): Updated according to the changes in
  16131. DownloadEngine.
  16132. (disableNameResolverCheck): Updated according to the changes in
  16133. DownloadEngine.
  16134. * src/AbstractCommand.cc
  16135. (disableReadCheckSocket): Updated according to the changes in
  16136. DownloadEngine.
  16137. (setReadCheckSocket): Updated according to the changes in
  16138. DownloadEngine.
  16139. (disableWriteCheckSocket): Updated according to the changes in
  16140. DownloadEngine.
  16141. (setWriteCheckSocket): Updated according to the changes in
  16142. DownloadEngine.
  16143. * release 0.7.1
  16144. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16145. To handle the case where some BitTorrent tracker requires all letters
  16146. except for [A-Za-z0-9] is URL encoded.
  16147. * src/Util.h
  16148. (torrentUrlencode): New function.
  16149. * src/Util.cc
  16150. (ctype.h): Included.
  16151. (torrentUrlencode): New function.
  16152. * src/TrackerWatcherCommand.cc
  16153. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  16154. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16155. To add asynchronous DNS support(libares):
  16156. * src/AbstractCommand.h
  16157. (setNameResolverCheck): New function.
  16158. (disableNameResolverCheck): New function
  16159. (resolveHostname): New function.
  16160. * src/AbstractCommand.cc
  16161. (setNameResolverCheck): New function.
  16162. (disableNameResolverCheck): New function
  16163. (resolveHostname): New function.
  16164. * src/FtpInitiateConnectionCommand.h
  16165. (nameResolver): New function.
  16166. * src/FtpInitiateConnectionCommand.cc
  16167. (Util.h): Included.
  16168. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  16169. disableWriteCheckSocket.
  16170. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  16171. (executeInternal): Added async DNS support.
  16172. * src/HttpInitiateConnectionCommand.h
  16173. (nameResolver): New function.
  16174. * src/HttpInitiateConnectionCommand.cc
  16175. (DlRetryEx.h): Included.
  16176. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  16177. disableWriteCheckSocket.
  16178. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  16179. (executeInternal): Added async DNS support.
  16180. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  16181. by extern "C" declaration.
  16182. * src/NameResolver.cc: New class.
  16183. * src/Util.h:
  16184. (isNumberAndDotsNotation): New function
  16185. * src/Util.cc
  16186. (isNumberAndDotsNotation): New function.
  16187. * src/DownloadEngine.h
  16188. (NameResolver.h): Included.
  16189. (NameResolverEntry): New class.
  16190. (NameResolverEntries): New type definition.
  16191. (addNameResolverCheck): New function.
  16192. (deleteNameResolverCheck): New function.
  16193. * src/DownloadEngine.cc
  16194. (run): Initialize cp with 0.
  16195. (SetDescriptor::operator()): Added for NameResolverEntry.
  16196. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  16197. (waitData): Check nameResolver entries.
  16198. (updateFdSet): Update fds in nameResolver entries.
  16199. (addNameResolverCheck): New function.
  16200. (deleteNameResolverCheck): new function.
  16201. * src/PeerInteractionCommand.cc
  16202. (executeInternal): Fixed wrong socket handling.
  16203. * src/main.cc
  16204. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  16205. * src/Util.cc
  16206. (fileChecksum): Removed the call to ctx.digestReset().
  16207. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16208. * po/ru.po: Azamat sent me Russian translation.
  16209. * src/FtpNegotiateCommand.cc
  16210. (recvGreeting): Call disableWriteCheckSocket just after
  16211. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  16212. (recvRetr): Recognized status code 125 as a acceptable response code.
  16213. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  16214. case-insesitive filesystem(BUG#1531057).
  16215. * src/Time.h: Renamed as TimeA2.h.
  16216. * src/Time.cc: Renamed as TimeA2.cc.
  16217. * src/TimeA2.h: New class.
  16218. * src/TimeA2.cc: New class.
  16219. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  16220. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  16221. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  16222. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  16223. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  16224. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  16225. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  16226. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  16227. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  16228. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  16229. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  16230. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  16231. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  16232. * release 0.7.0
  16233. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16234. * src/PeerChokeCommand.h
  16235. (PeerChokeCommand): Rearranged the arguments.
  16236. * src/PeerChokeCommand.cc
  16237. (PeerChokeCommand): Rearranged the arguments.
  16238. * src/MetalinkEntry.h
  16239. (Checksum.h): Included.
  16240. (md5): Removed.
  16241. (sha1): Removed.
  16242. (checksum): New variable.
  16243. (operator=): Updated.
  16244. (check): Removed.
  16245. * src/prefs.h
  16246. (PREF_LOWEST_SPEED_LIMIT): New definition.
  16247. (PREF_FOLLOW_TORRENT): New definition.
  16248. (PREF_SELECT_FILE): New definition.
  16249. (PREF_FOLLOW_METALINK): New definition.
  16250. * src/MetalinkResource.h
  16251. (TYPE_HTTPS): Added to enum TYPE.
  16252. * src/TorrentMan.cc
  16253. (~TorrentMan): Rewritten.
  16254. * src/MultiDiskWriter.cc
  16255. (MultiDiskAdaptor): Updated according to the changes in
  16256. MessageDigestContext.
  16257. (~MultiDiskAdaptor): Updated according to the changes in
  16258. MessageDigestContext.
  16259. (hashUpdate): Updated according to the changes in MessageDigestContext.
  16260. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16261. * src/Util.h
  16262. (fileChecksum): Updated according to the changes in
  16263. MessageDigestContext.
  16264. * src/Util.cc
  16265. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16266. (fileChecksum): Updated according to the changes in
  16267. MessageDigestContext.
  16268. * src/messageDigest.h: Rewritten.
  16269. * src/MetalinkEntry.cc
  16270. (check): Removed.
  16271. (Supported): Updated.
  16272. (dropUnsupportedResource): Fixed a memory leak.
  16273. * src/ShaVisitor.cc
  16274. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  16275. (~ShaVisitor): Updated according to the changes in
  16276. MessageDigestContext.
  16277. (visit): Updated according to the changes in MessageDigestContext.
  16278. * src/main.cc
  16279. (main): Rewritten the portion of download loop. --lowest-speed-limit
  16280. command-line option added.
  16281. * src/DownloadEngine.h
  16282. (SocketEntry): New class.
  16283. (SocketEntries): New definition.
  16284. (PairFind): Removed.
  16285. (SockCmdMap): Removed.
  16286. * src/DownloadEngine.cc
  16287. (DownloadEngine): Rewritten.
  16288. (~DownloadEngine): Rewritten.
  16289. (run): Renamed activeCommandUuids as activeUuids.
  16290. (SetDescriptor): Rewritten.
  16291. (AccumulateActiveCommandUuid): Removed.
  16292. (AccumulateActiveUuid): New function object.
  16293. (waitData): Rewritten.
  16294. (updateFdSet): Rewritten.
  16295. (addSocket): Rewritten.
  16296. (deleteSocket): Rewritten.
  16297. (addSocketForReadCheck): Rewritten.
  16298. (deleteSocketForReadCheck): Rewritten.
  16299. (addSocketForWriteCheck): Rewritten.
  16300. (deleteSocketForWriteCheck): Rewritten.
  16301. * src/Xml2MetalinkProcessor.cc
  16302. (getEntry): Rewritten the portion of MetalinkEntry creation.
  16303. * src/DownloadCommand.cc
  16304. (executeInternal): Added the check routine for lowest speed limit.
  16305. * src/AbstractDiskWriter.cc
  16306. (AbstractDiskWriter): Updated according to the changes in
  16307. MessageDigestContext.
  16308. (~AbstractDiskWriter): Updated according to the changes in
  16309. MessageDigestContext.
  16310. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16311. * src/RequestInfo.h: New class.
  16312. * src/UrlRequestInfo.h: New class.
  16313. * src/UrlRequestInfo.cc: New class.
  16314. * src/TorrentRequestInfo.h: New class.
  16315. * src/TorrentRequestInfo.cc: New class.
  16316. * src/MetalinkRequestInfo.h: New class.
  16317. * src/MetalinkRequestInfo.cc: New class.
  16318. * src/Checksum.h: New class.
  16319. * src/DownloadEngineFactory.h: New class.
  16320. * src/DownloadEngineFactory.cc: New class.
  16321. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16322. * src/Option.h
  16323. (getAsBool): New function.
  16324. * src/Option.cc
  16325. (prefs.h): Included.
  16326. (defined): 0-length value is now recognized as undefined.
  16327. (getAsInt): Rewritten.
  16328. (getAsLLInt): Rewritten.
  16329. (getAsBool): New function.
  16330. * src/FeatureConfig.h: Rewritten.
  16331. * src/FeatureConfig.cc: Rewritten.
  16332. * src/prefs.h
  16333. (PREF_STDOUT_LOG): New definition.
  16334. (PREF_LOG): New definition.
  16335. (PREF_DIR): New definition.
  16336. (PREF_OUT): New definition.
  16337. (PREF_SPLIT): New definition.
  16338. (PREF_DAEMON): New definition.
  16339. (PREF_REFERER): New definition.
  16340. (PREF_TORRENT_FILE): New definition.
  16341. (PREF_LISTEN_PORT): New definition.
  16342. (PREF_METALINK_FILE): New definition.
  16343. (PREF_METALINK_VERSION): New definition.
  16344. (PREF_METALINK_LANGUAGE): New definition.
  16345. (PREF_METALINK_OS): New definition.
  16346. (PREF_METALINK_SERVERS): New definition.
  16347. * src/main.cc
  16348. (main): Following command-line parameters are now put into Option
  16349. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  16350. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  16351. metalinkLanguage, metalinkOs, metalinkServers
  16352. To fix the bug that aria2 can not handle http response header properly.
  16353. * src/HttpHeader.cc
  16354. (put): Made name lowercased.
  16355. (defined): Made name lowercased.
  16356. (getFirst): Made name lowercased.
  16357. (get): Made name lowercased.
  16358. (getFirstAsInt): Rewritten.
  16359. (getFirstAsLLInt): Rewritten.
  16360. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16361. * src/TorrentMan.h:
  16362. (advertisePiece): Updated doc.
  16363. (getAdvertisedPieceIndexes): Updated doc.
  16364. (removeAdvertisedPiece); New function.
  16365. * src/TorrentMan.cc
  16366. (FindElapsedHave): New function object.
  16367. (removeAdvertisedPiece): New function.
  16368. * src/HaveEraseCommand.h: New class.
  16369. * src/HaveEraseCommand.cc: New class.
  16370. * src/FeatureConfig.h: New class.
  16371. * src/FeatureConfig.cc: New class.
  16372. * src/Request.h
  16373. (defaultPorts): Removed.
  16374. * src/Request.cc
  16375. (FeatureConfig.h): Included.
  16376. (Request): Removed the statements related to defaultPorts.
  16377. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  16378. A default port number is now retrieved from FeatureConfig.
  16379. * src/main.cc
  16380. (HaveEraseCommand.h): Included.
  16381. (showVersion): Added the output of feature list.
  16382. (main): Added HaveEraseCommand to command queue in BitTorrent
  16383. downloading.
  16384. * src/PeerInteractionCommand.h
  16385. (chokeCheckPoint): Commented out.
  16386. (periodicExecPoint): New variable.
  16387. * src/PeerInteractionCommand.cc
  16388. (executeInternal): Following methods are now called in at least every
  16389. 0.5 seconds to reduce CPU usage:
  16390. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  16391. checkHave(), sendKeepAlive().
  16392. (checkLongTimePeerChoking): Commented out.
  16393. * src/BitfieldMan.h
  16394. (getNthBitIndex): Changed the method signature.
  16395. (getMissingIndexRandomly): Changed the method signature.
  16396. * src/BitfieldMan.cc
  16397. (getNthBitIndex): Rewritten
  16398. (getMissingIndexRandomly): Rewritten.
  16399. (hasMissingPiece): Rewritten.
  16400. (getMissingIndex): Refactored.
  16401. (getMissingUnusedIndex); Refactored.
  16402. (getMissingIndex): Refactored.
  16403. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16404. * src/PeerMessage.h
  16405. (Piece.h): Included.
  16406. (SharedHandle.h): Included.
  16407. (invalidate): New variable.
  16408. (uploading): New variable.
  16409. (isInvalidate): New function.
  16410. (isUploading): New function.
  16411. (onPush): New function.
  16412. (onChoked): New function.
  16413. (onCanceled): New function.
  16414. (onAbortPiece): New function.
  16415. (PeerMessageHandle): New type definition.
  16416. * src/PeerMessage.cc
  16417. (PeerMessage): Added the initialization for invalidate and uploading.
  16418. * src/CancelMessage.h
  16419. (CancelMessage): Rewritten.
  16420. * src/RejectMessage.h
  16421. (RejectMessage): Rewritten.
  16422. * src/Metalinker.h
  16423. (operator=): Defined.
  16424. * src/MetaEntry.h
  16425. (operator=): Defined.
  16426. * src/MetalinkResource.h
  16427. (operator=): Defined.
  16428. * src/AllowedFastMessage.h
  16429. (AllowedFastMessage): Rewritten.
  16430. * src/HandshakeMessage.h
  16431. (HandshakeMessage): New function(overload).
  16432. * src/HandshakeMessage.cc
  16433. (HandshakeMessage): Rewritten.
  16434. (init): New function.
  16435. * src/HaveMessage.h
  16436. (HaveMessage): Rewritten.
  16437. * src/Time.h
  16438. (operator=): Defined the function body here.
  16439. * src/Time.cc
  16440. (operator=): Removed.
  16441. * src/SocketCore.h
  16442. (operator==): Defined here.
  16443. (operator!=): Defined here.
  16444. (operator<): Defined here.
  16445. * src/SocketCore.cc
  16446. (operator==): Removed.
  16447. (operator<): Removed.
  16448. * src/BitfieldMan.h
  16449. (operator=): Defined the function body here.
  16450. * src/BitfieldMan.cc
  16451. (operator=): Removed.
  16452. * src/TorrentMan.h
  16453. (deleteErrorPeer): Removed.
  16454. (deleteUnusedPeer); New function.
  16455. * src/TorrentMan.cc
  16456. (addPeer): Call deleteUnusedPeer.
  16457. (deleteErrorPeer): Removed.
  16458. (deleteUnusedPeer): New function.
  16459. * src/PeerAbstractCommand.h
  16460. (setNoCheck): New function.
  16461. (noCheck): New variable.
  16462. * src/PeerAbstractCommand.cc
  16463. (PeerAbstractCommand): Added the initialization of noCheck.
  16464. (execute): Added a check for noCheck.
  16465. (setNoCheck): New function.
  16466. * src/Util.h
  16467. (stdio.h): Included.
  16468. * src/Util.cc
  16469. (unistd.h): Included.
  16470. * src/DefaultDiskWriter.cc
  16471. (unistd.h): Included.
  16472. * src/Peer.h
  16473. (operator==): Defined the function body here.
  16474. (operator!=): Defined the function body here.
  16475. * src/Peer.cc
  16476. (operator==): Removed.
  16477. (operator!=): Removed.
  16478. * src/Piece.h
  16479. (Piece): Defined the function body here(copy constructor).
  16480. (operator=): Defined the function body here.
  16481. (operator==): Defined the function body here.
  16482. * src/Piece.cc
  16483. (Piece): Removed(copy constructor).
  16484. (operator=): Removed.
  16485. (operator==): Removed.
  16486. * src/PeerMessageUtil.h
  16487. (ChokeMessage.h): Removed.
  16488. (UnchokeMessage.h): Removed.
  16489. (InterestedMessage.h): Removed.
  16490. (NotInterestedMessage.h): Removed.
  16491. (HaveMessage.h): Removed.
  16492. (BitfieldMessage.h): Removed.
  16493. (RequestMessage.h): Removed.
  16494. (CancelMessage.h): Removed.
  16495. (PieceMessage.h): Removed.
  16496. (HandshakeMessage.h): Removed.
  16497. (KeepAliveMessage.h): Removed.
  16498. (PortMessage.h): Removed.
  16499. (HaveAllMessage.h): Removed.
  16500. (HaveNoneMessage.h): Removed.
  16501. (PeerConnection.h): Removed.
  16502. (HandshakeMessage.h): Included.
  16503. * src/BitfieldMessage.h
  16504. (init): New function.
  16505. (BitfieldMessage): Rewritten.
  16506. (BitfieldMessage): New function(overload).
  16507. * src/RequestSlot.h
  16508. (operator=): Defined the function body here.
  16509. (operator==): Defined the function body here.
  16510. * src/RequestSlot.cc
  16511. (operator=): Removed.
  16512. (operator==): Removed.
  16513. To remove the dependency on the PeerMessage subclass from
  16514. PeerInteraction:
  16515. * src/PeerMessageFactory.h: New class.
  16516. * src/PeerMessageFactory.cc: New class.
  16517. * src/SimplePeerMessage.cc
  16518. (send): If invalidate is true then do nothing.
  16519. * src/PeerInteractionCommand.cc
  16520. (HandshakeMessage.h): Included.
  16521. (KeepAliveMessage.h): Included.
  16522. (ChokeMessage.h): Included.
  16523. (UnchokeMessage.h): Included.
  16524. (HaveMessage.h): Included.
  16525. (executeInternal): Call setNoCheck().
  16526. Removed setWriteCheckSocket(socket).
  16527. * src/PeerInteraction.h
  16528. (ChokeMessage.h): Removed.
  16529. (UnchokeMessage.h): Removed.
  16530. (InterestedMessage.h): Removed.
  16531. (NotInterestedMessage.h): Removed.
  16532. (HaveMessage.h): Removed.
  16533. (BitfieldMessage.h): Removed.
  16534. (RequestMessage.h): Removed.
  16535. (CancelMessage.h): Removed.
  16536. (PieceMessage.h): Removed.
  16537. (HandshakeMessage.h): Removed.
  16538. (KeepAliveMessage.h): Removed.
  16539. (PortMessage.h): Removed.
  16540. (HaveAllMessage.h): Removed.
  16541. (HaveNoneMessage.h): Removed.
  16542. (RejectMessage.h): Removed.
  16543. (AllowedFastMessage.h): Removed.
  16544. (SuggestPieceMessage.h): Removed.
  16545. (PeerMessageFactory.h): Included.
  16546. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  16547. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  16548. (PeerMessageFactory): New variable.
  16549. (createPeerMessage): Removed.
  16550. (createHandshakeMessage): Removed.
  16551. (setPeerMessageCommonProperty): Removed.
  16552. (addRequestSlot): New function.
  16553. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  16554. (getPeerMessageFactory): New function.
  16555. (createRequestMessage): Removed.
  16556. (createCancelMessage): Removed.
  16557. (createPieceMessage): Removed.
  16558. (createHaveMessage): Removed.
  16559. (createChokeMessage): Removed.
  16560. (createUnchokeMessage): Removed.
  16561. (createInterestedMessage): Removed.
  16562. (createNotInterestedMessage): Removed.
  16563. (createBitfieldMessage): Removed.
  16564. (createKeepAliveMessage): Removed.
  16565. (createHaveAllMessage): Removed.
  16566. (createHaveNoneMessage): Removed.
  16567. (createRejectMessage): Removed.
  16568. (createAllowedFastMessage): Removed.
  16569. * src/PeerInteraction.cc
  16570. (PeerInteraction): Allocate PeerMessageFactory here.
  16571. (~PeerInteraction): Deallocate PeerMessageFactory here.
  16572. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  16573. PieceMessage::ID.
  16574. (addMessage): Simplified by using PeerMessage::onPush().
  16575. (addRequestSlot): New function.
  16576. (rejectAllPieceMessageInQueue): Simplified by using
  16577. PeerMessage::onChoked().
  16578. (rejectPieceMessageInQueue): Simplified by using
  16579. PeerMessage::onCanceled().
  16580. (abortPiece): Simplified by using PeerMessage::abortPiece().
  16581. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  16582. (createHandshakeMessage): Removed.
  16583. (createPeerMessage): Removed.
  16584. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  16585. (setPeerMessageCommonProperty): Removed.
  16586. (createRequestMessage): Removed.
  16587. (createCancelMessage): Removed.
  16588. (createPieceMessage): Removed.
  16589. (createHaveMessage): Removed.
  16590. (createChokeMessage): Removed.
  16591. (createUnchokeMessage): Removed.
  16592. (createInterestedMessage): Removed.
  16593. (createNotInterestedMessage): Removed.
  16594. (createBitfieldMessage): Removed.
  16595. (createKeepAliveMessage): Removed.
  16596. (createHaveAllMessage): Removed.
  16597. (createHaveNoneMessage): Removed.
  16598. (createRejectMessage): Removed.
  16599. (createAllowedFastMessage): Removed.
  16600. * src/PieceMessage.h
  16601. (createRejectMessage): New function.
  16602. (PieceMessage): Rewritten.
  16603. (onChoked): New function.
  16604. (onCanceled): New function.
  16605. * src/PieceMessage.cc
  16606. (send): If invalidate is true then do nothing, just return.
  16607. (createRejectMessage): New function.
  16608. (onChoked): New function.
  16609. (onCanceled): New function.
  16610. * src/RequestMessage.h
  16611. (RequestMessage): Rewritten.
  16612. (onPush): New function.
  16613. (onAbortPiece): New function.
  16614. * src/RequestMessage.cc
  16615. (onPush): New function.
  16616. (onAbortPiece): New function.
  16617. Update fd_set when a socket is added or deleted in order to improve
  16618. performance:
  16619. * src/DownloadEngine.h
  16620. (rfdset): New variable.
  16621. (wfdset): New variable.
  16622. (updateFdSet): New function.
  16623. * src/DownloadEngine.cc
  16624. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  16625. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  16626. (waitData): Copy rfdset and wfdset.
  16627. (updateFdSet): New function.
  16628. (addSocket): Call updateFdSet.
  16629. (deleteSocket): Call updateFdSet.
  16630. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16631. To add the support for Metalink3.0 backward compatible links:
  16632. * src/Request.h
  16633. (SAFE_CHARS): Added '#'.
  16634. (METALINK_MARK): New definition.
  16635. * src/Request.cc
  16636. (parseUrl): Added the support for Metalink3.0 backward compatible
  16637. links.
  16638. etc
  16639. * src/PeerInteraction.cc
  16640. (MsgPushBack): Removed.
  16641. (sendMessages): Use STL copy and back_inserter.
  16642. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  16643. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  16644. * src/TorrentMan.h
  16645. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  16646. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16647. * src/SharedHandle.h: New class.
  16648. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  16649. * src/HttpResponseCommand.h
  16650. (HttpResponseCommand): Wrapped Socket.
  16651. * src/SocketCore.h
  16652. (operator==): New function.
  16653. (operator!=): New function.
  16654. (operator<): New function.
  16655. (getSockfd): New function.
  16656. (isOpen): New function.
  16657. (writeData): New function.
  16658. * src/SocketCore.cc
  16659. (operator==): New function.
  16660. (operator!=): New function.
  16661. (operator<): New function.
  16662. * src/AbstractCommand.h
  16663. (socket): Changed its type to SocketHandle.
  16664. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16665. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16666. (disableReadCheckSocket): New function.
  16667. (disableWriteCheckSocket): New function.
  16668. (readCheckTarget): Changed its type to SocketHandle.
  16669. (writeCheckTarget): Changed its type to SocketHandle.
  16670. (AbstractCommand): Replaced Socket with SocketHandle.
  16671. * src/AbstractCommand.cc
  16672. (AbstractCommand): Replaced Socket with SocketHandle.
  16673. (~AbstractCommand): Removed the deallocation for Socket object.
  16674. (disableReadCheckSocket): New function.
  16675. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16676. (disableWriteCheckSocket): New function.
  16677. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16678. * src/HttpDownloadCommand.cc
  16679. (DownloadCommand): Replaced Socket with SocketHandle.
  16680. * src/PeerAbstractCommand.h
  16681. (socket): Changed its type to SocketHandle.
  16682. (peer): Changed its type to PeerHandle.
  16683. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16684. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16685. (disableReadCheckSocket): New function.
  16686. (disableWriteCheckSocket): New function.
  16687. (readCheckTarget): Changed its type to SocketHandle.
  16688. (writeCheckTarget): Changed its type to SocketHandle.
  16689. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  16690. Replaced Peer with PeerHandle.
  16691. * src/HttpRequestCommand.cc
  16692. (HttpRequestCommand): Replaced Socket with SocketHandle.
  16693. Use disableReadCheckSocket.
  16694. * src/PeerInitiateConnectionCommand.h
  16695. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  16696. * src/PeerChokeCommand.cc
  16697. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  16698. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  16699. (execute): Use PeerHandle.
  16700. * src/PeerConnection.h
  16701. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  16702. (socket): Changed its type to SocketHandle.
  16703. (PeerConnection): Replaced Socket with SocketHandle.
  16704. * src/PeerConnection.cc
  16705. (PeerConnection): Replaced Socket with SocketHandle.
  16706. * src/PeerInteractionCommand.h
  16707. (PeerInteractionCommand): Replaced socket with SocketHandle.
  16708. Replaced Peer with PeerHandle.
  16709. * src/PeerInteractionCommand.cc
  16710. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  16711. Replaced Peer with PeerHandle.
  16712. (executeInternal): Use disableWriteCheckSocket.
  16713. Use HandshakeMessageHandle.
  16714. (receiveMessages): Use PeerMessageHandle.
  16715. (prepareForNextPeer): Use PeerHandle.
  16716. * src/HttpProxyRequestCommand.h
  16717. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16718. * src/HttpResponseCommand.cc
  16719. (HttpResponseCommand): Replaced Socket with SocketHandle.
  16720. * src/TorrentMan.cc
  16721. (nullPeer): Added external reference.
  16722. (~TorrentMan): Removed the deallocation of the elements of peers.
  16723. (addPeer): Rewritten.
  16724. (isPeerAvailable): Use nullPeer.
  16725. (deleteOldpeers): Replaced with deleteErrorPeer.
  16726. (deleteErrorPeer): New function.
  16727. (getPeer): Use PeerHandle and nullPeer.
  16728. (hasMissingPiece): Replaced Peer with PeerHandle.
  16729. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  16730. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  16731. (getMissingFastPiece): Replaced Peer with PeerHandle.
  16732. (getMissingPiece): Replaced Peer with PeerHandle.
  16733. * src/FtpNegotiateCommand.cc
  16734. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  16735. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  16736. (recvGreeting): Use disableWriteCheckSocket.
  16737. (recvPasv): Removed the allocation of Socket.
  16738. Use disableReadCheckSocket.
  16739. (sendRestPasv): Use disableWriteCheckSocket.
  16740. (recvRetr): Changed assertion.
  16741. * src/PeerInteraction.h
  16742. (SharedHandle.h): Included SharedHandle.h.
  16743. (PeerMessageHandle): New type definition.
  16744. (HandshakeMessageHandle): New type definition.
  16745. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  16746. (peer): Changed its type to PeerHandle.
  16747. (createHandshakeMessage): Replaced HandshakeMessage with
  16748. HandshakeMessageHandle.
  16749. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  16750. (PeerInteraction): Replaced Peer with PeerHandle.
  16751. Replaced Socket with SocketHandle.
  16752. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  16753. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  16754. (receiveHandshake): Replaced HandshakeMessage with
  16755. HandshakeMessageHandle.
  16756. * src/PeerInteraction.cc
  16757. (PeerInteraction): Replaced Peer with PeerHandle.
  16758. Replaced Socket with SocketHandle.
  16759. (~PeerInteraction): Removed the deallocation of the elements of
  16760. messageQueue.
  16761. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  16762. (isSendingMessageInProgress): Replaced PeerMessage with
  16763. PeerMessageHandle.
  16764. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  16765. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  16766. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  16767. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  16768. (abortPiece): Use PeerMessageHandle.
  16769. (receiveHandshake): Replaced HandshakeMessage with
  16770. HandshakeMessageHandle. Removed try-catch block.
  16771. (createHandshakeMessage): Replaced HandshakeMessage with
  16772. HandshakeMessageHandle.
  16773. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  16774. Removed try-catch block.
  16775. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  16776. * src/HttpProxyResponseCommand.cc
  16777. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16778. * src/FtpTunnelResponseCommand.h
  16779. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  16780. * src/HttpConnection.cc
  16781. (HttpConnection): Replaced Socket with SocketHandle.
  16782. * src/PeerAbstractCommand.cc
  16783. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  16784. (~PeerAbstractCommand): Removed the deallocation of socket.
  16785. Use disableReadCheckSocket, disableWriteCheckSocket.
  16786. (disableReadCheckSocket): New function.
  16787. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16788. (disableWriteCheckSocket): New function.
  16789. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16790. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  16791. * src/FtpTunnelRequestCommand.cc
  16792. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  16793. (~FtpTunnelRequestCommand): Corrected indentation.
  16794. * src/DownloadCommand.h
  16795. (DownloadCommand): Replaced Socket with SocketHandle.
  16796. * src/PeerListenCommand.cc
  16797. (PeerListenCommand): Removed the initialization of socket.
  16798. (~PeerListenCommand): Removed the deallocation of socket.
  16799. (bindPort): Use SocketHandle.
  16800. (execute): Use SocketHandle and PeerHandle.
  16801. * src/FtpDowndloadCommand.cc
  16802. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  16803. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  16804. * src/main.cc
  16805. (main): Corrected indentation.
  16806. * src/HttpInitiateConnectionCommand.cc
  16807. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  16808. (executeInternal): Removed the allocation of socket.
  16809. * src/HttpRequestCommand.h
  16810. (HttpRequestCommand): Replaced Socket with SocketHandle.
  16811. * src/FtpNegotiationCommand.h
  16812. (dataSocket): Changed its type to SocketHandle.
  16813. (serverSocket): Changed its type to SocketHandle.
  16814. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  16815. * src/TorrentMan.h
  16816. (MAX_PEER_UPDATE): Removed.
  16817. (MAX_PEERS): New definition.
  16818. (Peers): The element is now of type PeerHandle.
  16819. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  16820. (getPeer): Replaced Peer with PeerHandle.
  16821. (deleteOldErrorPeers): Removed.
  16822. (deleteErrorPeer): New function.
  16823. (hasMissingPiece): Replaced Peer with PeerHandle.
  16824. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  16825. (getMissingPiece): Replaced Peer with PeerHandle.
  16826. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  16827. (getMissingFastPiece): Replaced Peer with PeerHandle.
  16828. (addActivePeer): Replaced Peer with PeerHandle.
  16829. (deleteActivePeer): Replaced Peer with PeerHandle.
  16830. Added a check for the return value of find.
  16831. * src/FtpTunnelResponseCommand.cc
  16832. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  16833. * src/FtpInitiateConnectionCommand.cc
  16834. (executeInternal): Removed the allocation of socket.
  16835. * src/DownloadEngine.h
  16836. (Sockets): An element is now of type SocketHandle.
  16837. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  16838. (CommandUuids): New type definition.
  16839. (rsockets): Changed its type to SockCmdMap.
  16840. (wsockets): Changed its type to SockCmdMap.
  16841. (addSocket): Rewritten.
  16842. (deleteSocket): Rewritten.
  16843. (addSocketForReadCheck): Rewritten.
  16844. (deleteSocketForReadCheck): Rewritten.
  16845. (addSocketForWriteCheck): Rewritten.
  16846. (deleteSocketForWriteCheck): Rewritten.
  16847. (PairFind): New template class.
  16848. * src/HttpDownloadCommand.h
  16849. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  16850. * src/FtpConnection.cc
  16851. (FtpConnection): Replaced Socket with SocketHandle.
  16852. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  16853. block.
  16854. * src/InitiateConnectionCommandFactory.cc
  16855. (DlAbortEx.h): Included DlAbortEx.h.
  16856. (createInitiateConnectionCommand): Throw exception if the protocol of
  16857. requested URI is not supported.
  16858. * src/Peer.cc
  16859. (nullPeer): Changed its type to PeerHandle.
  16860. (operator==): New function.
  16861. (operator!=): New function.
  16862. * src/Peer.h
  16863. (SharedHandle.h): Included SharedHandle.h.
  16864. (operator==): New function.
  16865. (operator!=): New function.
  16866. (Peer): Added the default constructor.
  16867. Use resetStatus() to initialize member variables.
  16868. (nullPeer): Removed.
  16869. * src/TrackerUpdateCommand.cc
  16870. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  16871. with MIN_PEERS.
  16872. * src/PeerListenCommand.h
  16873. (socket): Changed its type to SocketHandle.
  16874. * src/Command.h
  16875. (CommandUuid): New type definition.
  16876. (uuid): New variable.
  16877. (uuidGen): New variable.
  16878. (Command): Added the initialization of uuid.
  16879. (getUuid): New function.
  16880. * src/Socket.h
  16881. (Socket): Removed.
  16882. (SocketHandle): New type definition.
  16883. * src/DownloadEngine.h
  16884. (FindCommand): New function object.
  16885. (run): The portion of socket check was rewritten.
  16886. (SetDescriptor): New function object.
  16887. (AccumulateActiveCommandUuid): New function object.
  16888. (waitData): Rewritten.
  16889. (addSocket): Rewritten.
  16890. (deleteSocket): Rewritten.
  16891. (addSocketForReadCheck): Rewritten.
  16892. (addSocketForWriteCheck): Rewritten.
  16893. (deleteSocketForReadCheck): Rewritten.
  16894. (deleteSocketForWriteCheck): Rewritten.
  16895. * src/HttpProxyResponseCommand.h
  16896. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  16897. * src/HttpConnection.h
  16898. (socket): Changed its type to SocketHandle.
  16899. (HttpConnection): Replaced Socket with SocketHandle.
  16900. * src/PeerInitiateConnectionCommand.cc
  16901. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  16902. (executeInternal): Removed the allocation of socket.
  16903. (prepareForNextPeer): Use PeerHandle.
  16904. * src/PeerMessage.h
  16905. (peer): Changed its type to PeerHandle.
  16906. (getPeer): Replaced Peer with PeerHandle.
  16907. (setPeer): Replaced Peer with PeerHandle.
  16908. * src/DownloadCommand.cc
  16909. (DownloadCommand): Replaced Socket with SocketHandle.
  16910. * src/FtpConnection.h
  16911. (socket): Changed its type to SocketHandle.
  16912. (FtpConnection): Replaced Socket with SocketHandle.
  16913. (sendPort); Replaced Socket with SocketHandle.
  16914. * src/FtpDowndloadCommand.h
  16915. (ctrlSocket): Changed its type to SocketHandle.
  16916. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  16917. * src/HttpProxyRequestCommand.cc
  16918. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16919. * src/FtpTunnelRequestCommand.h
  16920. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  16921. etc
  16922. * src/PeerChokeCommand.h
  16923. (setAllPeerChoked): Removed.
  16924. (setAllPeerResetDelta): Removed.
  16925. * src/PeerChokeCommand.cc
  16926. (setAllPeerChoked): Removed.
  16927. (ChokePeer): New function object.
  16928. (setAllPeerResetDelta): Removed.
  16929. (ResetDelta): New function object.
  16930. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  16931. (execute): Show download speed when the local node is a seeder.
  16932. setAllPeerChoked and setAllPeerResetDelta were rewritten
  16933. using STL.
  16934. * src/TrackerWatcherCommand.h
  16935. (MIN_PEERS): Removed.
  16936. * src/TorrentMan.cc
  16937. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  16938. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16939. To fix the bug that .aria2 file is not saved if downloading is stopped
  16940. by the errors:it results that aria2 can not resume downloading:
  16941. * src/main.cc
  16942. (normalDownload): Added the call to save().
  16943. (main): Added the deletion of the elements in 'reserved'.
  16944. To fix log:
  16945. * src/PeerInteraction.cc
  16946. (receiveHandshake): Fixed log.
  16947. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16948. To improve download performance in BitTorrent:
  16949. * src/TorrentMan.cc
  16950. (getPeer): Check the number of connections. Return nullPeer if
  16951. it is greater than MAX_PEER_UPDATE.
  16952. This code was originally here, but was removed in 0.5.1.
  16953. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16954. To improve the conditional compilation:
  16955. * src/MultiDiskWriter.h:
  16956. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16957. * src/MultiDiskWriter.cc:
  16958. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16959. * src/Util.h:
  16960. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16961. Added ENABLE_BITTORRENT around computeFastSet().
  16962. * src/Util.cc:
  16963. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16964. Added ENABLE_BITTORRENT around computeFastSet().
  16965. * src/messageDigest.h:
  16966. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  16967. * src/ShaVisitor.h:
  16968. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16969. * src/ShaVisitor.cc:
  16970. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16971. * src/main.cc:
  16972. Added ENABLE_BITTORRENT around includes and blocks related to
  16973. BitTorrent.
  16974. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  16975. digest support is not available.
  16976. * src/AbstractDiskWriter.h:
  16977. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16978. * src/AbstractDiskWriter.cc:
  16979. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16980. * src/MetalinkEntry.cc
  16981. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  16982. support is not available.
  16983. To add command-line options for Metalink:
  16984. * src/main.cc:
  16985. Added metalink-version, metalink-language, metalink-os,
  16986. follow-metalink.
  16987. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  16988. * src/main.cc: Use these definition.
  16989. * Release 0.6.0
  16990. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16991. To add Metalink support(http/ftp only):
  16992. * src/AbstractCommand.h
  16993. (tryReserved): New function.
  16994. * src/AbstractCommand.cc
  16995. (execute): Call tryReserved().
  16996. (tryReserved): New function.
  16997. * src/Request.h
  16998. (Requests): New type definition.
  16999. * src/SegmentMan.h
  17000. (reserved): New variable.
  17001. * src/Util.h
  17002. (fileChecksum): New function.
  17003. (toUpper): New function.
  17004. (toLower): New function.
  17005. * src/Util.cc
  17006. (messageDigest.h): Included.
  17007. (trim): Trim \r\n\t.
  17008. (fileChecksum): New function.
  17009. (toUpper): New function.
  17010. (toLower): New function.
  17011. * src/main.cc
  17012. (normalDownload): New function.
  17013. (main): Added 2 command-line options: metalink-file,
  17014. metalink-connection. Their usage has not been written yet.
  17015. * src/MetalinkProcessor.h: New class.
  17016. * src/Xml2MetalinkProcessor.h: New class.
  17017. * src/Xml2MetalinkProcessor.cc: New class.
  17018. * src/MetalinkEntry.h: New class.
  17019. * src/MetalinkEntry.cc: New class.
  17020. * src/MetalinkResource.h: New class.
  17021. * src/MetalinkResource.cc: New class.
  17022. To add md5 message digest checking:
  17023. * src/messageDigest.h: Rewritten.
  17024. * src/MultiDiskWriter.cc: Updated according to the changes in
  17025. messageDigest.h.
  17026. * src/ShaVisitor.cc: Updated according to the changes in
  17027. messageDigest.h.
  17028. * src/Util.cc: Updated according to the changes in messageDigest.h.
  17029. * src/AbstractDiskWriter.cc: Updated according to the changes in
  17030. messageDigest.h.
  17031. To fix a bug that causes segfault when the payload length in peer
  17032. message is less than 0:
  17033. * src/PeerConnection.cc:
  17034. (receiveMessage): Fixed the bug.
  17035. * src/PeerMessageUtil.cc
  17036. (checkLength): Throw an exception if length is less than or equals to
  17037. 0.
  17038. To add new interfaces to Base64 encoding/decoding:
  17039. * src/Base64.h
  17040. (part_encode): Changed the method signature.
  17041. (encode): New function(overload).
  17042. (decode): New function(overload).
  17043. * src/Base64.cc
  17044. (part_encode): Rewritten.
  17045. (encode): Rewritten.
  17046. (encode): New function(overload).
  17047. To prevent a peer to download same piece if there is an error in
  17048. checksum:
  17049. * src/PieceMessage.cc
  17050. (receivedAction): Call peerInteraction->abortPiece().
  17051. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17052. To fix the bug that causes same have message is sent many times to
  17053. a single peer.
  17054. * src/Time.cc
  17055. (isNewer): Use Util::difftv().
  17056. * src/Util.cc
  17057. (difftv): Added a cast to (long long int).
  17058. * src/TorrentMan.cc
  17059. (advertisePiece): Use push_front.
  17060. (getAdvertisedPieceIndexes): A performance improvement was made.
  17061. To fix the bug that sends tracker requests without a sleep interval
  17062. when the number of connections is less than 15.
  17063. * src/TrackerWatcherCommand.cc
  17064. (execute): Now the number of connections is not a factor to decide
  17065. whether or not a tracker request should be sent or not.
  17066. * src/Time.h
  17067. (setTimeInSec): New function.
  17068. * src/Time.cc
  17069. (setTimeInSec): New function.
  17070. etc.
  17071. * src/ChokeMessage.cc
  17072. (receivedAction): Removed peer->snubbing = false
  17073. * src/PeerConnection.h
  17074. (receiveHandshake): Updated doc.
  17075. * src/TorrentMan.h
  17076. (getAdvertisedPieceIndexes): Updated the method signature.
  17077. * src/TorrentMan.cc
  17078. (getAdvertisedPieceIndexes): Updated the method signature.
  17079. * src/Time.h
  17080. (getTimeInMicros): Added a cast to (long long int).
  17081. (getTimeInMillis): Added a cast to (long long int).
  17082. * Release 0.5.2
  17083. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17084. To make a listening socket non-block:
  17085. * src/SocketCore.h
  17086. (setNonBlockingMode): New function.
  17087. * src/SocketCore.cc
  17088. (setNonBlockingMode): New function.
  17089. (beginListen): Added a call to setNonBlockingMode().
  17090. (acceptConnection): Call setNonBlockingMode().
  17091. (setBlockingMode): Updated.
  17092. To handle tracker's NAT-checking:
  17093. * src/PeerConnection.cc
  17094. (receiveHandshake): 'msg' param is filled with received data and
  17095. its length is assigned to 'length' param, even if all handshake
  17096. message is not yet received.
  17097. * src/PeerInteractionCommand.cc
  17098. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  17099. a new peer connects to localhost.
  17100. A call to peerInteraction->sendHandshake() was removed because
  17101. it is called from peerInteraction->receiveHandshake(true).
  17102. * src/PeerInteraction.h
  17103. (quickReplied): New variable.
  17104. (receiveHandshake): Added an argument.
  17105. * src/PeerInteraction.cc
  17106. (PeerInteraction): Added the initialization of quickReplied.
  17107. (receiveHandshake): Send handshake message as soon as the info hash
  17108. in a handshake message from a peer is correct.
  17109. To change the random part of peer id and key parameter:
  17110. * src/TorrentMan.h
  17111. (key): New variable.
  17112. * src/TorrentMan.cc
  17113. (setupInternal1): Use Util::randomAlpha() to generate random part
  17114. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  17115. key is also generated by Util::randomAlpha() and it is now 8 character
  17116. long.
  17117. * src/Util.h
  17118. (randomAlpha): New function.
  17119. * src/Util.cc
  17120. (randomAlpha): New function.
  17121. * src/TrackerWatcherCommand.cc
  17122. (execute): In a tracker request: Use torrentMan->key as key parameter.
  17123. Added no_peer_id=1.
  17124. Set snubbing flag to false when a choke message is received from a
  17125. snubbed peer.
  17126. * src/ChokeMessage.cc
  17127. (receivedAction): Set snubbing flag to false.
  17128. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17129. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  17130. * src/SimpleLogger.h (writeHeader): New function.
  17131. * src/SimpleLogger.cc (writeHeader): New function.
  17132. (writeLog): Fixed the bug that causes segfaults if exception message
  17133. contains an unescaped "%" character.
  17134. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  17135. when a tracker request fails.
  17136. * src/Request.cc (parseUrl): Query string is now handled properly.
  17137. * Release 0.5.1
  17138. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17139. To add Time class which represents a specific instant in time and
  17140. its precision is microseconds. Time checking procedures were rewritten
  17141. using this object.
  17142. * src/Time.h: New class.
  17143. * src/Time.cc: New class.
  17144. * src/AbstractCommand.h
  17145. (updateCheckPoint): Removed.
  17146. (isTimeoutDetected): Removed.
  17147. (checkPoint): Changed the type to Time.
  17148. (timeout): New variable.
  17149. (setTimeout): New function.
  17150. * src/AbstractCommand.cc
  17151. (AbstractCommand): Removed the initialization of checkPoint.
  17152. Added the initialization of timeout.
  17153. (updateCheckPoint): Removed.
  17154. (isTimeoutDetected): Removed.
  17155. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  17156. * src/PeerChokeCommand.h
  17157. (checkPoint): Changed the type to Time.
  17158. * src/PeerChokeCommand.cc
  17159. (PeerChokeCommand): Removed the initialization of checkPoint.
  17160. (execute): Rewritten using Time object.
  17161. * src/TrackerWatcherCommand.h
  17162. (checkPoint): Changed the type to Time.
  17163. * src/TrackerWatcherCommand.cc
  17164. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  17165. (execute): Rewritten.
  17166. * src/ConsoleDownloadEngine.h
  17167. (cp): Changed the type to Time.
  17168. (startup): Changed the type to Time.
  17169. * src/ConsoleDownloadEngine.cc
  17170. (initStatistics): Use cp.reset(), startup.reset().
  17171. (calculateStatistics): Rewritten using Time object.
  17172. * src/PeerAbstractCommand.h
  17173. (updateCheckPoint): Removed.
  17174. (isTimeoutDetected): Removed.
  17175. (checkPoint): Changed the type to Time.
  17176. * src/PeerAbstractCommand.cc
  17177. (PeerAbstractCommand): Removed the initialization of checkPoint.
  17178. (updateCheckPoint): Removed.
  17179. (isTimeoutDetected): Removed.
  17180. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  17181. * src/PeerInteractionCommand.cc
  17182. (PeerInteractionCommand): Removed the initializations of struct
  17183. timeval variables.
  17184. * src/PeerInteractionCommand.h
  17185. (keepAliveCheckPoint): Changed the type to Time.
  17186. (chokeCheckPoint): Changed the type to Time.
  17187. (freqCheckPoint): Changed the type to Time.
  17188. (haveCheckTime): Changed the type to Time.
  17189. * src/PeerInteractionCommand.cc
  17190. (executeInternal): Rewritten using Time object.
  17191. (detectMessageFlooding): Rewritten using Time object.
  17192. (checkLongTimePeerChoking): Rewritten using Time object.
  17193. (sendKeepAlive): Rewritten using Time object.
  17194. (checkHave): Rewritten using Time object.
  17195. * src/SleepCommand.h
  17196. (checkPoint): Changed the type to Time.
  17197. * src/SleepCommand.cc
  17198. (SleepCommand): Removed the initialization of checkPoint.
  17199. (execute): Rewritten using Time object.
  17200. * src/TorrentAutoSaveCommand.h
  17201. (checkPoint): Changed the type to Time.
  17202. * src/TorrentAutoSaveCommand.cc
  17203. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  17204. (execute): Rewritten.
  17205. * src/DownloadCommand.h
  17206. (sw): Changed the type to Time.
  17207. * src/DownloadCommand.cc
  17208. (DownloadCommand): Removed the initialization of sw.
  17209. (executeInternal): Rewritten.
  17210. * src/RequestSlot.h
  17211. (dispatchedTime): Changed the type to Time.
  17212. * src/RequestSlot.cc
  17213. (RequestSlot): Removed the call to setDispatchedTime().
  17214. (setDispatchedTime): Rewirtten.
  17215. (isTimeout): Rewritten.
  17216. (getLatencyInMillis): Rewritten.
  17217. * src/TorrentDownloadEngine.h
  17218. (cp): Changed the type to Time[2].
  17219. (startup): Changed the type to Time.
  17220. * src/TorrentDownloadEngine.cc
  17221. (initStatistics): Rewritten.
  17222. (calculateStatistics): Rewritten.
  17223. * src/DownloadEngine.cc
  17224. (run): Rewritten.
  17225. To detect all attempts to connect to the tracker are failed:
  17226. * src/AbstractCommand.cc
  17227. (execute): Increment e->segmentMan->errors if a command aborted.
  17228. * src/SegmentMan.h
  17229. (errors): New variable.
  17230. * src/SegmentMan.cc
  17231. (SegmentMan): Added the initialization of errors.
  17232. (init): Added the initialization of errors.
  17233. * src/TrackerWatcherCommand.cc
  17234. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  17235. request was failed.
  17236. To handle snubbed peers:
  17237. * src/PeerChokeCommand.cc
  17238. (optUnchokingPeer): Snubbed peers don't get unchoked.
  17239. (execute): Snubbed peers don't get unchoked.
  17240. * src/PeerInteraction.h
  17241. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  17242. * src/PeerInteraction.cc
  17243. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  17244. back the requested 16k block in 60 seconds.
  17245. * src/PieceMessage.cc
  17246. (receivedAction): A peer's snubbed state is cleard if it sends
  17247. the requested 16k block in 60 seconds.
  17248. * src/Peer.h
  17249. (snubbing): New variable.
  17250. * src/Peer.cc
  17251. (resetStatus): Added snubbed = false.
  17252. To fix the bug that causes have message is not sent:
  17253. * src/PeerInteractionCommand.cc
  17254. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  17255. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  17256. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  17257. * src/TorrentMan.h
  17258. (HaveEntry): New class.
  17259. (advertisePiece): Rewritten.
  17260. (getAdvertisedPieceIndexes): Rewritten.
  17261. (Haves): Changed the type.
  17262. (getAdvertisedPieceIndexes): Added an argument.
  17263. Others:
  17264. * src/TorrentMan.h
  17265. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  17266. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  17267. * src/TorrentMan.cc
  17268. (getPeer): Don't check the number of connections here.
  17269. (setupInternal1): Changed peerId.
  17270. * src/PeerInteractionCommand.h
  17271. (KEEP_ALIVE_INTERVAL): New definition.
  17272. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  17273. * src/main.cc
  17274. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  17275. * src/DownloadEngine.h: Removed unnecessary header includes.
  17276. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17277. To fix the bug that causes segfaults if a tracker returns a zero-length
  17278. list as "peers":
  17279. * src/TrackerUpdateCommand.cc
  17280. (execute): Added a check to see wether the type of peers is Data*.
  17281. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17282. * Release 0.5.0
  17283. To fix compile issue with gcc3:
  17284. * src/CancelMessage.h
  17285. (ID): Renamed as ID_t
  17286. (ID_t): New enum.
  17287. * src/RejectMessage.h
  17288. (ID): Renamed as ID_t
  17289. (ID_t): New enum.
  17290. * src/SuggestPieceMessage.h
  17291. (ID): Renamed as ID_t
  17292. (ID_t): New enum.
  17293. * src/AllowedFastMessage.h
  17294. (ID): Renamed as ID_t
  17295. (ID_t): New enum.
  17296. * src/PortMessage.h
  17297. (ID): Renamed as ID_t
  17298. (ID_t): New enum.
  17299. * src/HaveNoneMessage.h
  17300. (ID): Renamed as ID_t
  17301. (ID_t): New enum.
  17302. * src/KeepAliveMessage.h
  17303. (ID): Renamed as ID_t
  17304. (ID_t): New enum.
  17305. * src/HaveAllMessage.h
  17306. (ID): Renamed as ID_t
  17307. (ID_t): New enum.
  17308. * src/UnchokeMessage.h
  17309. (ID): Renamed as ID_t
  17310. (ID_t): New enum.
  17311. * src/BitfieldMessage.h
  17312. (ID): Renamed as ID_t
  17313. (ID_t): New enum.
  17314. * src/PieceMessage.h
  17315. (ID): Renamed as ID_t
  17316. (ID_t): New enum.
  17317. * src/RequestMessage.h
  17318. (ID): Renamed as ID_t
  17319. (ID_t): New enum.
  17320. * src/NotInterestedMessage.h
  17321. (ID): Renamed as ID_t
  17322. (ID_t): New enum.
  17323. * src/ChokeMessage.h
  17324. (ID): Renamed as ID_t
  17325. (ID_t): New enum.
  17326. * src/InterestedMessage.h
  17327. (ID): Renamed as ID_t
  17328. (ID_t): New enum.
  17329. * src/HaveMessage.h
  17330. (ID): Renamed as ID_t
  17331. (ID_t): New enum.
  17332. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17333. * src/PeerAbstractCommand.h
  17334. (beforeSocketCheck): Removed.
  17335. * src/PeerAbstractCommand.cc
  17336. Modified in order to call executeInternal() even if socket check
  17337. and upload limit check fail.
  17338. * src/PeerInteractionCommand.h
  17339. (keepAlive): Removed.
  17340. (sendKeepAlive): New function.
  17341. (checkHave): New function.
  17342. (beforeSocketCheck): Removed.
  17343. * src/PeerInteractionCommand.cc
  17344. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  17345. calls to checkHave() and sendKeepAlive().
  17346. (keepAlive): Renamed to sendKeepAlive().
  17347. (sendKeepAlive): New function.
  17348. (beforeSocketCheck): Removed.
  17349. (checkHave): New function.
  17350. * src/BitfieldMan.cc
  17351. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  17352. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  17353. 0.
  17354. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  17355. * src/TorrentMan.h
  17356. (UsedPieces): Removed.
  17357. (Pieces): New type definition.
  17358. * src/Piece.h: Updated doc.
  17359. * src/Peer.h
  17360. (totalLength): Removed.
  17361. * src/Peer.cc
  17362. (updateLatency): Fixed the latency calculation.
  17363. * src/TorrentMan.cc
  17364. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  17365. than or equal to MAX_PEER_LIST_SIZE.
  17366. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  17367. then return false.
  17368. (deleteOldErrorPeers): Rewritten.
  17369. (deleteUsedPiece): Fixed the miss use of STL remove.
  17370. * src/PeerInteraction.h
  17371. (Pieces): Removed.
  17372. (deleteTimeoutRequestSlot): Removed.
  17373. (deleteCompletedRequestSlot): Removed.
  17374. (checkRequestSlot): New function.
  17375. * src/PeerInteraction.cc
  17376. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  17377. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  17378. (checkRequestSlot): New function.
  17379. * src/DownloadEngine.cc
  17380. (run): Clear activeSockets before calling waitData().
  17381. (waitData): Removed a call to activeSockets.clear().
  17382. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17383. To attempt to handle EINTR:
  17384. * src/SocketCore.cc
  17385. (isReadable): Added EINTR handling.
  17386. (isWritable): Added EINTR handling.
  17387. To improve the performance:
  17388. * src/AbstractCommand.cc
  17389. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  17390. * src/PeerInteractionCommand.h
  17391. (receiveMessage): Renamed as receiveMessages().
  17392. (receiveMessages): New function.
  17393. * src/PeerInteractionCommand.cc
  17394. (executeInternal): receiveMessage loop is moved to new receiveMessages
  17395. () function. detectMessageFlooding() is moved here.
  17396. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  17397. (). The flooding detection for have message is comment out.
  17398. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  17399. Util::difftv().
  17400. (receiveMessage): Renamed as receiveMessages().
  17401. (receiveMessages): New function.
  17402. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  17403. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  17404. * src/SleepCommand.cc
  17405. (execute): Use Util::difftvsec() instead of Util::difftv().
  17406. * src/BitfieldMan.h
  17407. (getNthBitIndex): New function.
  17408. (hasMissingPiece): New function.
  17409. (getAllMissingIndexes): New function.
  17410. * src/BitfieldMan.cc
  17411. (countSetBit): Rewritten.
  17412. (getNthBitIndex): New function.
  17413. (getMissingIndexRandomly): Rewritten.
  17414. (hasMissingPiece): New function.
  17415. (getAllMissingIndexes): New function.
  17416. * src/TorrentMan.cc
  17417. (hasMissingPiece): New function.
  17418. (deleteUsedPiece): Rewritten using STL.
  17419. * src/PeerInteraction.cc
  17420. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  17421. is a little bit faster then TorrentMan::getMissingPieceIndex().
  17422. (addRequests): Updated the number of pending requests.
  17423. * src/PeerAbstractCommand.cc
  17424. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  17425. (execute): Returns true if TorrentMan::isHalt() is true.
  17426. Corrected the condition of upload limit checking.
  17427. * src/Util.h
  17428. (countBit): New function.
  17429. * src/Util.cc
  17430. (nbits): New variable.
  17431. (countBit): New function.
  17432. * src/DownloadEngine.h
  17433. (SockCmdMap): New type definition.
  17434. (waitData): Added an argument.
  17435. (addSocket): Added an argument.
  17436. (addSocketForReadCheck): Added an argument.
  17437. (addSocketForWriteCheck): Added an argument.
  17438. * src/DownloadEngine.cc
  17439. (run): Executes only commands whose sockets are ready to read or write.
  17440. All commands are executed in every 1 second.
  17441. (waitData): Calls select() again if it returned
  17442. EINTR.
  17443. (addSocket): Saves socket and command object pair to the map.
  17444. (deleteSocket): Deletes socket and command object pair from the map.
  17445. (addSocketForReadCheck): Added an argument.
  17446. (addSocketForWriteCheck): Added an argument.
  17447. * src/DownloadCommand.cc
  17448. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  17449. To send "event=stopped" to the tracker when the application finishes:
  17450. * src/PeerChokeCommand.h
  17451. (checkPoint): New variable.
  17452. * src/PeerChokeCommand.cc
  17453. (PeerChokeCommand): Added the initialization of checkPoint.
  17454. (execute): The interval check is now done by checkPoint, not
  17455. SleepCommand. Return true if TorrentMan::isHalt() is true.
  17456. * src/TorrentMan.h
  17457. (halt): New function.
  17458. (hasMissingPiece): New function.
  17459. (isHalt): New function.
  17460. (setHalt): New function.
  17461. * src/TorrentMan.cc
  17462. (TorrentMan): Added the initialization of halt.
  17463. * src/TorrentAutoSaveCommand.h
  17464. (checkPoint): New variable.
  17465. * src/PeerListenCommand.cc
  17466. (execute): Returns true if TorrentMan::isHalt() is true.
  17467. * src/main.cc
  17468. (setSignalHander): Added flags argument.
  17469. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  17470. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  17471. Removed printDownloadAbortMessage() after torrent downloading loop.
  17472. * src/TorrentAutoSaveCommand.cc
  17473. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  17474. (execute): Returns true if TorrentMan::isHalt() is true.
  17475. The interval check is now done by checkPoint, not SleepCommand.
  17476. * src/TrackerWatcherCommand.cc
  17477. (execute): If TorrentMan::isHalt(), then create a tracker request with
  17478. event=stopped.
  17479. * src/TrackerUpdateCommand.cc
  17480. (prepareForRetry): Do not use SleepCommand here.
  17481. (execute): Returns true if TorrentMan::isHalt() is true.
  17482. Others:
  17483. * src/TorrentMan.cc
  17484. (getMissingPieceIndex): Updated log message.
  17485. * src/PeerInteraction.cc
  17486. (createPeerMessag): Updated log message.
  17487. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17488. To add the ability to download several pieces in mix in a command and
  17489. increase the number of request slots according to request-cancel
  17490. latency:
  17491. * src/PeerInteractionCommand.cc
  17492. (executeInternal): The number of messages to be received at a time
  17493. is increased from 10 to 50.
  17494. * src/LogFactory
  17495. (getInstance): Added NullLogger.
  17496. * src/NullLogger.h: New class.
  17497. * src/BitfieldMan.h
  17498. (getMissingIndex): New function.
  17499. * src/BitfieldMan.cc
  17500. (getMissingIndex): New function.
  17501. * src/TorrentMan.h
  17502. (checkOutPiece): New function.
  17503. (getMissingPieceIndex): New function.
  17504. (getMissingFastPieceIndex): New function.
  17505. (getMissingFastPiece): New function.
  17506. * src/TorrentMan.cc
  17507. (updatePiece): Rewritten using STL.
  17508. (syncPiece): Rewritten using STL.
  17509. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  17510. checkOutPiece().
  17511. (getMissingPieceIndex): New function.
  17512. (getMissingFastPieceIndex): New function.
  17513. (getMissingFastPiece): New function.
  17514. (checkOutPiece): New function.
  17515. * src/PeerInteraction.h
  17516. (Pieces): New type definition.
  17517. (piece): Removed.
  17518. (pieces): New variable.
  17519. (getNewPieceAndSendInterest): Added the "piece" argument.
  17520. (abortPiece): Added the "piece" argument.
  17521. (abortAllPieces): New function.
  17522. (isInRequestSlot): New function.
  17523. (hasDownloadPiece): Added the "index" argument.
  17524. (setDownloadPiece): Removed.
  17525. (getDownloadPiece): Added the "index" argument.
  17526. (updatePiece): New function.
  17527. (createRequestMessage): Added the "index" argument.
  17528. * src/PeerInteraction.cc
  17529. (onChoked): Rewritten.
  17530. (abortPiece): Rewirtten.
  17531. (abortAllPieces): New function.
  17532. (deleteTimeoutRequestSlot): Rewritten.
  17533. Clarified code a little bit.
  17534. (deleteCompletedRequestSlot): Rewritten.
  17535. (isInRequestSlot): New function.
  17536. (syncPiece): Rewritten.
  17537. (updatePiece): New function.
  17538. (getNewPieceAndSendInterest): Rewritten.
  17539. (addRequests): Rewritten.
  17540. (getDownloadPiece): Rewritten.
  17541. (hasDownloadPiece): Rewritten.
  17542. (createRequestMessage): Added the "index" argument.
  17543. * src/common.h
  17544. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  17545. (DIV_FLOOR): New definition.
  17546. * src/PieceMessage.cc
  17547. (receivedAction): Update request-piece latency here.
  17548. * src/RequestSlot.h
  17549. (getLatencyInMillis): New function.
  17550. * src/RequestSlot.cc
  17551. (isTimeout): Rewritten using getLatencyInMillis.
  17552. (getLatencyInMillis): New function.
  17553. * src/Piece.h
  17554. (operator==): New function.
  17555. (getMissingBlockIndex): New function.
  17556. * src/Piece.cc
  17557. (operator==): New function.
  17558. (getMissingBlockIndex): New function.
  17559. * src/Peer.h
  17560. (DEFAULT_LATENCY): New definition.
  17561. (latency): New variable.
  17562. (updateLatency): New function.
  17563. (getLatency): New function.
  17564. * src/Peer.cc
  17565. (resetStatus): Reset latecy.
  17566. (updateLatency): New function.
  17567. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17568. * src/SocketCore.cc
  17569. (isReadable): Added secure to the condition.
  17570. * src/HttpConnection.cc
  17571. (receiveResponse): Fixed a bug that causes no response header
  17572. exception.
  17573. * src/Peer.h
  17574. (getFastSet): Fixed the return value type.
  17575. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17576. To remove a wait from download loop:
  17577. * src/DownloadEngine.cc
  17578. (run): Comment out shortSleep.
  17579. To rewrite the message handling:
  17580. * src/SimplePeerMessage.h: New class.
  17581. * src/SimplePeerMessage.cc: New class.
  17582. * src/CancelMessage.h: Derived from SimplePeerMessage.
  17583. (msg): New variable.
  17584. (create): New function.
  17585. (send): Removed.
  17586. (getMessage): New function.
  17587. (getMessageLength): New function.
  17588. * src/CancelMessage.cc
  17589. (create): New function.
  17590. (receivedAction): Replaced deleteRequestMessageInQueue with
  17591. rejectPieceMessageInQueue.
  17592. (send): Removed.
  17593. (getMessage): New function.
  17594. (getMessageLength): New function.
  17595. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  17596. (msg): New variable.
  17597. (msgLength): New variable.
  17598. (~BitfieldMessage): Deleted msg.
  17599. (send): Removed.
  17600. (getMessage): New function.
  17601. (getMessageLength): New function.
  17602. * src/BitfieldMessage.cc
  17603. (create): New function.
  17604. (send): Removed.
  17605. (getMessage): New function.
  17606. (getMessageLength): New function.
  17607. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  17608. (msg): New variable.
  17609. (sendPredicate): New function.
  17610. (onSendComplete): New function.
  17611. (send): Removed.
  17612. (getMessage): New function.
  17613. (getMessageLength): New function.
  17614. (create): New function.
  17615. * src/ChokeMessage.cc
  17616. (create): New function.
  17617. (send): Removed.
  17618. (sendPredicate): New function.
  17619. (getMessage): New function.
  17620. (getMessageLength): New function.
  17621. (onSendComplete): New function.
  17622. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  17623. (msg): New variable.
  17624. (send): Removed.
  17625. (getMessage): New function.
  17626. (getMessageLength): New function.
  17627. * src/KeepAliveMessage.cc
  17628. (send): Removed.
  17629. (getMessage): New function.
  17630. (getMessageLength): New function.
  17631. * src/PortMessage.h
  17632. (create): New function.
  17633. (receivedAction): Updated log message.
  17634. * src/PortMessage.cc: New file.
  17635. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  17636. (msg): New variable.
  17637. (sendPredicate): New function.
  17638. (onSendComplete): New function.
  17639. (create): New function.
  17640. (send): Removed.
  17641. (getMessage): New function.
  17642. (getMessageLength): New function.
  17643. * src/UnchokeMessage.cc
  17644. (create): New function.
  17645. (send): Removed.
  17646. (sendPredicate): New function.
  17647. (getMessage): New function.
  17648. (getMessageLength): New function.
  17649. (onSendComplete): New function.
  17650. * src/PieceMessage.h
  17651. (leftPieceDataLength): Removed.
  17652. (leftDataLength): New variable.
  17653. (headerSend): New variable.
  17654. (pendingCount): New variable.
  17655. (msgHeader): New variable.
  17656. (sendPieceData): New function.
  17657. (incrementPendingCount): New function.
  17658. (isPendingCountMax): New function.
  17659. (create): New function.
  17660. (getMessageHeader): New function.
  17661. (getMessageHeaderLength): New function.
  17662. * src/PieceMessage.cc
  17663. (create): New function.
  17664. (getMessageHeader): New function.
  17665. (getMessageHeaderLength): New function.
  17666. (send): Rewritten.
  17667. (sendPieceData): New function.
  17668. * src/HaveMessage.h: Derived from SimplePeerMessage.
  17669. (msg): New variable.
  17670. (create): New function.
  17671. (getMessage): New function.
  17672. (getMessageLength): New function.
  17673. * src/HaveMessage.cc
  17674. (create): New function.
  17675. (send): Removed.
  17676. (sendPieceData): New function.
  17677. (getMessage): New function.
  17678. (getMessageLength): New function.
  17679. * src/RequestMessage.h: Derived from SimplePeerMessage.
  17680. (msg): New variable.
  17681. (create): New function.
  17682. (send): Removed.
  17683. (getMessage): New function.
  17684. (getMessageLength): New function.
  17685. * src/RequestMessage.cc
  17686. (create): New function.
  17687. (receivedAction): Added the handling of fast extension.
  17688. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  17689. (send): Removed.
  17690. (getMessage): New function.
  17691. (getMessageLength): New function.
  17692. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  17693. (msg): New variable.
  17694. (sendPredicate): New function.
  17695. (onSendComplete): New function.
  17696. (create): New function.
  17697. (getMessage): New function.
  17698. (getMessageLength): New function.
  17699. * src/InterestedMessage.cc
  17700. (create): New function.
  17701. (send): Removed.
  17702. (sendPieceData): New function.
  17703. (getMessage): New function.
  17704. (getMessageLength): New function.
  17705. (onSendComplete): New function.
  17706. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  17707. (msg): New variable.
  17708. (sendPieceData): New function.
  17709. (onSendComplete): New function.
  17710. (create): New function.
  17711. (send): Removed.
  17712. (getMessage): New function.
  17713. (getMessageLength): New function.
  17714. * src/NotInterestedMessage.cc
  17715. (create): New function.
  17716. (send): Removed.
  17717. (sendPredicate): New function.
  17718. (getMessage): New function.
  17719. (getMessageLength): New function.
  17720. (onSendComplete): New function.
  17721. * src/AllowedFastMessage.h: New class.
  17722. * src/AllowedFastMessage.cc: New class.
  17723. * src/RejectMessage.h: New class.
  17724. * src/RejectMessage.cc: New class.
  17725. * src/SuggestPieceMessage.h: New class.
  17726. * src/SuggestPieceMessage.cc: New class.
  17727. * src/HaveAllMessage.h: New class.
  17728. * src/HaveAllMessage.cc: New class.
  17729. * src/HaveNoneMessage.h: New class.
  17730. * src/HaveNoneMessage.cc: New class.
  17731. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  17732. (msg): New variable.
  17733. (reserved): New variable.
  17734. (create): New function.
  17735. (getId): New function.
  17736. (receivedAction): New function.
  17737. (getMessage): New function.
  17738. (getMessageLength): New function.
  17739. (isFastExtensionSupported): New function.
  17740. * src/HandshakeMessage.cc
  17741. (HandshakeMessage): Moved here from HandshakeMessage.h.
  17742. (create): New function.
  17743. (getMessage): New function.
  17744. (getMessageLength): New function.
  17745. (toString): Added the output of reserved field.
  17746. (check): Added const qualifier.
  17747. (isFastExtensionSupported): New function.
  17748. * src/PeerMessageUtil.h
  17749. (createChokeMessage): Removed.
  17750. (createUnchokeMessage): Removed.
  17751. (createInterestedMessage): Removed.
  17752. (createNotInterestedMessage): Removed.
  17753. (createHaveMessage): Removed.
  17754. (createBitfieldMessage): Removed.
  17755. (createRequestMessage): Removed.
  17756. (createCancelMessage): Removed.
  17757. (createPieceMessage): Removed.
  17758. (createPortMessage): Removed.
  17759. (createChokeMessage): Removed.
  17760. (createUnchokeMessage): Removed.
  17761. (createInterestedMessage): Removed.
  17762. (createNotInterestedMessage): Removed.
  17763. (createHaveMessage): Removed.
  17764. (createBitfieldMessage): Removed.
  17765. (createRequestMessage): Removed.
  17766. (createCancelMessage): Removed.
  17767. (createPieceMessage): Removed.
  17768. (createKeepAliveMessage): Removed.
  17769. (createHandshakeMessage): Removed.
  17770. (setIntParam): New function.
  17771. (createPeerMessageString): New function.
  17772. * src/PeerMessageUtil.cc
  17773. (createChokeMessage): Removed.
  17774. (createUnchokeMessage): Removed.
  17775. (createInterestedMessage): Removed.
  17776. (createNotInterestedMessage): Removed.
  17777. (createHaveMessage): Removed.
  17778. (createBitfieldMessage): Removed.
  17779. (createRequestMessage): Removed.
  17780. (createCancelMessage): Removed.
  17781. (createPieceMessage): Removed.
  17782. (createPortMessage): Removed.
  17783. (createRequestMessage): Removed.
  17784. (createCancelMessage): Removed.
  17785. (createPieceMessage): Removed.
  17786. (createHaveMessage): Removed.
  17787. (createChokeMessage): Removed.
  17788. (createUnchokeMessage): Removed.
  17789. (createInterestedMessage): Removed.
  17790. (createNotInterestedMessage): Removed.
  17791. (createBitfieldMessage): Removed.
  17792. (createKeepAliveMessage): Removed.
  17793. (createHandshakeMessage): Removed.
  17794. (setIntParam): New function.
  17795. (createPeerMessageString): New function.
  17796. * src/PeerConnection.h
  17797. (peer): Removed.
  17798. (torrentMan): Removed.
  17799. (createNLengthMessage): Removed.
  17800. (setIntParam): Removed.
  17801. (writeOutgoingMessageLog): Removed all overloaded functions.
  17802. (PeerConnection): Deleted peer and torrentMan from its arguments.
  17803. (sendMessage): New function.
  17804. (sendHandshake): Removed.
  17805. (sendKeepAlive): Removed.
  17806. (sendChoke): Removed.
  17807. (sendUnchoke): Removed.
  17808. (sendInterested): Removed.
  17809. (sendNotInterested): Removed.
  17810. (sendHave): Removed.
  17811. (sendBitfield): Removed.
  17812. (sendRequest): Removed.
  17813. (sendPiece): Removed.
  17814. (sendPieceHeader): Removed.
  17815. (sendPieceData): Removed.
  17816. (sendCancel): Removed.
  17817. (getPeer): Removed.
  17818. * src/PeerConnection.cc
  17819. (PeerConnection): Deleted peer and torrentMan from its arguments.
  17820. (sendHandshake): Removed.
  17821. (sendKeepAlive): Removed.
  17822. (createNLengthMessage): Removed.
  17823. (setIntParam): Removed.
  17824. (writeOutgoingMessageLog): Removed all overloaded functions.
  17825. (sendChoke): Removed.
  17826. (sendUnchoke): Removed.
  17827. (sendInterested): Removed.
  17828. (sendNotInterested): Removed.
  17829. (sendHave): Removed.
  17830. (sendBitfield): Removed.
  17831. (sendRequest): Removed.
  17832. (sendPiece): Removed.
  17833. (sendPieceHeader): Removed.
  17834. (sendPieceData): Removed.
  17835. (sendMessage): New function.
  17836. (sendCancel): Removed.
  17837. * src/PeerInteractionCommand.cc
  17838. (PeerInteractionCommand): Call setUploadLimit.
  17839. (executeInternal): Call setUploadLimit.
  17840. Added the handling of "inProgress" state of handshake message.
  17841. Call sendBitfield() or sendAllowdFast() instead of deprecated
  17842. sendNow().
  17843. (keepAlive): Call addMessage and sendMessage instead of deprecated
  17844. sendNow().
  17845. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  17846. * src/TorrentMan.h
  17847. (PEER_ID_LENGTH): New definition.
  17848. (hasAllPieces): New function.
  17849. * src/TorrentMan.cc
  17850. (getMissingPiece): Added the handling of fast extension.
  17851. (cancelPiece): Call updatePiece().
  17852. (hasAllPieces): New function.
  17853. * src/PeerInteraction.h
  17854. (fastSet): New variable.
  17855. (getNewPieceAndSendInterest): Changed the return type to void.
  17856. (send): Renamed as sendMessages.
  17857. (deleteAllRequestSlot): Removed.
  17858. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17859. (cancelAllRequest): Removed all overloaded functions.
  17860. (deleteAllRequestSlot): Removed.
  17861. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17862. (rejectPieceMessageInQueue): New function.
  17863. (rejectAllPieceMessageInQueue): New function.
  17864. (onChoked): New function.
  17865. (isSendingMessageInProgress): New function.
  17866. (getCorrespondingRequestSlot): Changed its arguments.
  17867. (isInFastSet): New function.
  17868. (addFastSetIndex): New function.
  17869. (addRequests): New function.
  17870. (sendNow): Removed.
  17871. (trySendNow): Removed.
  17872. (sendBitfield): New function.
  17873. (sendAllowdFast): New function.
  17874. (createHaveAllMessage): New function.
  17875. (createHaveNoneMessage): New function.
  17876. (createRejectMessage): New function.
  17877. (createAllowedFastMessage): New function.
  17878. * src/PeerInteraction.cc
  17879. (send): Renamed as sendMessages.
  17880. (sendMessages): New function.
  17881. (MsgPushBack): New class.
  17882. (isSendingMessageInProgress): New function.
  17883. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17884. (rejectAllPieceMessageInQueue): New function.
  17885. Added the handling of fast extension.
  17886. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17887. (rejectPieceMessageInQueue): New function.
  17888. Added the handling of fast extension.
  17889. (deleteRequestSlot): Replaced for loop with std::find.
  17890. (onChoked): New function.
  17891. (deleteAllRequestSlot): Removed.
  17892. (abortPiece): Rewirtten.
  17893. (deleteTimeoutRequestSlot): Updated log messages.
  17894. (getCorrespondingRequestSlot): Changed its arguments.
  17895. (cancelAllRequest): Removed all overloaded functions.
  17896. (receiveHandshake): Added the check to see whether an incoming peer
  17897. supports fast extension.
  17898. (createHandshakeMessage): Use HandshakeMessage::create instead of
  17899. PeerMessageUtil.
  17900. (createPeerMessage): Use create() of each message class instead of
  17901. PeerMessageUtil.
  17902. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  17903. AllowedFastMessage were added.
  17904. (getNewPieceAndSendInterest): Changed its return value type to void.
  17905. Added the handling of fast extension.
  17906. (addRequests): New function.
  17907. (sendNow): Removed.
  17908. (sendHandshake): Rewritten.
  17909. (trySendNow): Removed.
  17910. (sendBitfield): New function.
  17911. (sendAllowdFast): New function.
  17912. (isInFastSet): New function.
  17913. (addFastSetIndex): New function.
  17914. (createRequestMessage): Use RequestMessage::create instead of
  17915. PeerMessageUtil.
  17916. (createCancelMessage): Use CancelMessage::create instead of
  17917. PeerMessageUtil.
  17918. (createPieceMessage): Use PieceMessage::create instead of
  17919. PeerMessageUtil.
  17920. (createHaveMessage): Use HaveMessage::create instead of
  17921. PeerMessageUtil.
  17922. (createChokeMessage): Use ChokeMessage::create instead of
  17923. PeerMessageUtil.
  17924. (createUnchokeMessage): Use UnchokeMessage::create instead of
  17925. PeerMessageUtil.
  17926. (createInterestedMessage): Use InterestedMessage::create instead of
  17927. PeerMessageUtil.
  17928. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  17929. of PeerMessageUtil.
  17930. (createBitfieldMessage): Use BitfieldMessage::create instead of
  17931. PeerMessageUtil.
  17932. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  17933. PeerMessageUtil.
  17934. (createHaveAllMessage): New function.
  17935. (createHaveNoneMessage): New function.
  17936. (createRejectMessage): New function.
  17937. (createAllowedFastMessage: New function.
  17938. * src/Util.h
  17939. (sha1Sum): New function.
  17940. (computeFastSet): New function.
  17941. * src/Util.cc
  17942. (sha1Sum): New function.
  17943. (computeFastSet): New function.
  17944. * src/Peer.h
  17945. (fastExtensionEnabled): New variable.
  17946. (fastSet): New variable.
  17947. (setAllBitfield): New function.
  17948. (setFastExtensionEnabled): New function.
  17949. (isFastExtensionEnabled): New function.
  17950. (addFastSetIndex): New function.
  17951. (getFastSet): New function.
  17952. (isInFastSet): New function.
  17953. (countFastSet): New function.
  17954. * src/Peer.cc
  17955. (isInFastSet): New function.
  17956. (addFastSetIndex): New function.
  17957. (setAllBitfield): New function.
  17958. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  17959. sockets.
  17960. * src/PeerAbstractCommand.cc
  17961. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  17962. and uploadLimit.
  17963. (execute): Changed the procedure of checking sockets. The upload speed
  17964. checking were added.
  17965. (setUploadLimit): New function.
  17966. (setUploadLimitCheck): New function.
  17967. * src/PeerAbstractCommand.h
  17968. (setUploadLimit): New function.
  17969. (setUploadLimitCheck): New function.
  17970. (uploadLimit): New variable.
  17971. (uploadLimitCheck): New variable.
  17972. To contact a tracker regularly:
  17973. * src/TrackerWatcherCommand.h (interval): New variable.
  17974. (checkPoint): New variable.
  17975. (TrackerWatcherCommand): Added interval argument.
  17976. * src/TrackerWatcherCommand.cc
  17977. (TrackerWatcherCommand): Initialized checkPoint.
  17978. (execute): Now a tracker is contacted in every specified period.
  17979. If peer list is not needed, send request with numwant=0.
  17980. * src/TrackerUpdateCommand.cc
  17981. (execute): Updated log messages.
  17982. * src/DownloadEngine.cc
  17983. (~DownloadEngine): Removed two asserts.
  17984. (waitData): Uncommented wfds. May be a bug fix.
  17985. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17986. * src/PeerInteractionCommand.h
  17987. (checkInactiveConnection): Removed.
  17988. * src/PeerInteractionCommand.cc
  17989. (executeInternal): Removed following function calls:
  17990. detectMessageFlooding(), checkLongTimePeerChoking and
  17991. checkInactiveConnection().
  17992. (checkInactiveConnection): Removed.
  17993. (detectMessageFlooding): Removed function call to
  17994. checkInactiveConnection().
  17995. * src/PeerMessageUtil.h
  17996. (createChokeMessage): New function. Overload.
  17997. (createUnchokeMessage): New function. Overload.
  17998. (createInterestedMessage): New function. Overload.
  17999. (createNotInterestedMessage): New function. Overload.
  18000. (createHaveMessage): New function. Overload.
  18001. (createBitfieldMessage): New function. Overload.
  18002. (createRequestMessage): New function. Overload.
  18003. (createCancelMessage): New function. Overload.
  18004. (createPieceMessage): New function. Overload.
  18005. (createKeepAliveMessage): New function. Overload.
  18006. * src/PeerMessageUtil.cc
  18007. (createChokeMessage): New function. Overload.
  18008. (createUnchokeMessage): New function. Overload.
  18009. (createInterestedMessage): New function. Overload.
  18010. (createNotInterestedMessage): New function. Overload.
  18011. (createHaveMessage): New function. Overload.
  18012. (createBitfieldMessage): New function. Overload.
  18013. (createRequestMessage): New function. Overload.
  18014. (createCancelMessage): New function. Overload.
  18015. (createPieceMessage): New function. Overload.
  18016. (createKeepAliveMessage): New function. Overload.
  18017. * src/SendMessageQueue.cc
  18018. (createRequestMessage): Use PeerMessageUtil.
  18019. (createCancelMessage): Use PeerMessageUtil.
  18020. (createPieceMessage): Use PeerMessageUtil.
  18021. (createHaveMessage): Use PeerMessageUtil.
  18022. (createChokeMessage): Use PeerMessageUtil.
  18023. (createUnchokeMessage): Use PeerMessageUtil.
  18024. (createInterestedMessage): Use PeerMessageUtil.
  18025. (createNotInterestedMessage): Use PeerMessageUtil.
  18026. (createBitfieldMessage): Use PeerMessageUtil.
  18027. (createKeepAliveMessage): Use PeerMessageUtil.
  18028. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  18029. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  18030. * src/PeerInteraction.h: New class.
  18031. * src/PeerInteraction.cc: New class.
  18032. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18033. Each peer message has its own class.
  18034. * src/PendingMessages.h: Removed.
  18035. * src/PendingMessages.cc: Removed. The sending process was moved to
  18036. each message class.
  18037. * src/RequestSlotMan.h: Removed.
  18038. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  18039. SendMessageQueue.
  18040. * src/RequestMessage.h: New class.
  18041. * src/RequestMessage.cc: New class.
  18042. * src/CancelMessage.h: New class.
  18043. * src/CancelMessage.cc: New class.
  18044. * src/BitfieldMessage.h: New class.
  18045. * src/BitfieldMessage.cc: New class.
  18046. * src/ChokeMessage.h: New class.
  18047. * src/ChokeMessage.cc: New class.
  18048. * src/KeepAliveMessage.h: New class.
  18049. * src/KeepAliveMessage.cc: New class.
  18050. * src/PortMessage.h: New class.
  18051. * src/UnchokeMessage.h: New class.
  18052. * src/UnchokeMessage.cc: New class.
  18053. * src/PieceMessage.h: New class.
  18054. * src/PieceMessage.cc: New class.
  18055. * src/HaveMessage.h: New class.
  18056. * src/HaveMessage.cc: New class.
  18057. * src/BitfieldMessage.h: New class.
  18058. * src/BitfieldMessage.cc: New class.
  18059. * src/NotInterestedMessage.h: New class.
  18060. * src/NotInterestedMessage.cc: New class.
  18061. * src/InterestedMessage.h: New class.
  18062. * src/InterestedMessage.cc: New class.
  18063. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  18064. (getSendMessageQueue): New function.
  18065. (setSendMessageQueue): New function.
  18066. * src/HandshakeMessage.cc: New class.
  18067. * src/PeerConnection.h (receiveMessage): Changed return value and
  18068. arguments.
  18069. (receiveHandshake): Changed return value and arguments.
  18070. * src/PeerConnection.cc (receiveMessage): Do not create message class
  18071. here.
  18072. (receiveHandshake): Do not create handshake class here.
  18073. * src/PeerInteractionCommand.h (peerConnection): Removed.
  18074. (piece): Removed.
  18075. (syncPiece): Removed.
  18076. (sendInterest): Removed.
  18077. (sendMessages): Removed.
  18078. (createRequestPendingMessage): Removed.
  18079. (checkPieceHash): Removed.
  18080. (erasePieceOnDisk): Removed.
  18081. (getNewPieceAndSendInterest): Removed.
  18082. (onGotNewPice): Removed.
  18083. (onGotWrongPiece): Removed.
  18084. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  18085. Removed peerConnection, piece.
  18086. (~PeerInteractionCommand): Removed peerConnection.
  18087. (executeInternal): Use sendMessageQueue instead of peerConnection.
  18088. (syncPiece): Moved to SendMessageQueue.
  18089. (decideChoking): Removed PendingMessage.
  18090. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  18091. The action after receiving peer message was moved to each message
  18092. class.
  18093. (onGotNewPice): Moved to SendMessageQueue.
  18094. (onGotWrongPiece): Moved to SendMessageQueue.
  18095. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  18096. (sendInterest): Moved to SendMessageQueue.
  18097. (createRequestPendingMessage): Removed.
  18098. (sendMessages): Moved to SendMessageQueue.
  18099. (onAbort): Use SendMessageQueue::abortPiece()
  18100. (keepAlive): Use sendMessageQueue instead of peerConnection.
  18101. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  18102. (checkPieceHash): Moved to SendMessageQueue.
  18103. (erasePieceOnDisk): Moved to SendMessageQueue.
  18104. * src/PeerMessageUtil.h
  18105. (createBitfieldMessage): Removed.
  18106. (createHaveMessage): Changed return value and arguments.
  18107. (createBitfieldMessage): Changed return value and arguments.
  18108. (createRequestCancelMessage): Removed.
  18109. (createPieceMessage): Changed return value and arguments.
  18110. (getShortIntParam): New function.
  18111. (checkIndex): Changed arguments.
  18112. (checkBegin): Changed arguments.
  18113. (checkLength): Changed arguments.
  18114. (checkPieceOffset): Removed.
  18115. (checkRange): New function.
  18116. (checkBitfield): Changed arguments.
  18117. (createPeerMessage): Removed.
  18118. (checkIntegrity): Removed.
  18119. (createHandshakeMessage): Changed arguments.
  18120. (createChokeMessage): New function.
  18121. (createUnchokeMessage): New function.
  18122. (createInterestedMessage): New function.
  18123. (createNotInterestedMessage): New function.
  18124. (createRequestMessage): New function.
  18125. (createCancelMessage): New function.
  18126. (createPortMessage): New function.
  18127. * src/PeerMessageUtil.cc
  18128. (createBitfieldMessage): Removed.
  18129. (createHaveMessage): Changed return value and arguments.
  18130. (createBitfieldMessage): Changed return value and arguments.
  18131. (createRequestCancelMessage): Removed.
  18132. (createPieceMessage): Changed return value and arguments.
  18133. (getShortIntParam): New function.
  18134. (checkIndex): Changed arguments.
  18135. (checkBegin): Changed arguments.
  18136. (checkLength): Changed arguments.
  18137. (checkPieceOffset): Removed.
  18138. (checkRange): New function.
  18139. (checkBitfield): Changed arguments.
  18140. (createPeerMessage): Removed.
  18141. (checkIntegrity): Removed.
  18142. (createHandshakeMessage): Changed arguments.
  18143. (createChokeMessage): New function.
  18144. (createUnchokeMessage): New function.
  18145. (createInterestedMessage): New function.
  18146. (createNotInterestedMessage): New function.
  18147. (createRequestMessage): New function.
  18148. (createCancelMessage): New function.
  18149. (createPortMessage): New function.
  18150. * src/PeerMessage.h
  18151. (id): Removed.
  18152. (index): Removed.
  18153. (begin): Removed.
  18154. (length): Removed.
  18155. (bitfield): Removed.
  18156. (bitfieldLength): Removed.
  18157. (block): Removed.
  18158. (blockLength): Removed.
  18159. (inProgress): New variable.
  18160. (cuid): New variable.
  18161. (peer): New variable.
  18162. (sendMessageQueue): New variable.
  18163. (logger): New variable.
  18164. (setBitfield): Removed.
  18165. (getBitfield): Removed.
  18166. (setBlock): Removed.
  18167. (getBlock): Removed.
  18168. (getBitfieldLength): Removed.
  18169. (getBlockLength): Removed.
  18170. (isInProgress): New function.
  18171. (toString): Made pure virtual.
  18172. (check): New function.
  18173. (send): New function.
  18174. (receivedAction): New function.
  18175. (getId): Made pure virtual.
  18176. (setId): Removed.
  18177. (getIndex): Removed.
  18178. (setIndex): Removed.
  18179. (getBegin): Removed.
  18180. (setBegin): Removed.
  18181. (getLength): Removed.
  18182. (setLength): Removed.
  18183. (getCuid): New function.
  18184. (setCuid): New function.
  18185. (getPeer): New function.
  18186. (setPeer): New function.
  18187. (getSendMessageQueue): New function.
  18188. (setSendMessageQueue): New function.
  18189. (ID): Removed.
  18190. * src/PeerMessage.cc
  18191. (setBitfield): Removed.
  18192. (setBlock): Removed.
  18193. (toString): Removed.
  18194. * src/TorrentMan.h
  18195. (getPieceLength): New function.
  18196. (getPieceLength): New function.
  18197. * src/SendMessageQueue.h
  18198. (REQUEST_TIME_OUT): New definition.
  18199. (RequestSlots): New definition.
  18200. (MessageQueue): New definition.
  18201. (requestSlotMan): Removed.
  18202. (pendingMessages): Removed.
  18203. (requestSlots): New variable.
  18204. (messageQueue): New variable.
  18205. (torrentMan): New variable.
  18206. (peerConnection): New variable.
  18207. (peer): New variable.
  18208. (piece): New variable.
  18209. (getNewPieceAndSendInterest): New function.
  18210. (createPeerMessage): New function.
  18211. (createHandshakeMessage): New function.
  18212. (send): Made private.
  18213. (setPeerMessageCommonProperty): New function.
  18214. (deleteAllRequestSlot): New function.
  18215. (deleteRequestMessageInQueue): New function.
  18216. (cancelAllRequest): Made private.
  18217. (cancelAllRequest): Made private.
  18218. (countRequestSlot): Made private.
  18219. (addPendingMessage): Removed.
  18220. (deletePendingPieceMessage): Removed.
  18221. (deletePendingRequestMessage): Removed.
  18222. (addMessage): New function.
  18223. (deletePieceMessageInQueue): New function.
  18224. (deleteTimeoutRequestSlot): Changed argument.
  18225. (deleteCompletedRequestSlot): Changed argument.
  18226. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  18227. (getCorrespondingRequestSlot): New function.
  18228. (countPendingMessage): Removed.
  18229. (countMessageInQueue): New function.
  18230. (getTorrentMan): New function.
  18231. (getPeerConnection): New function.
  18232. (hasDownloadPiece): New function.
  18233. (getDownloadPiece): New function.
  18234. (setDownloadPiece): New function.
  18235. (syncPiece): New function.
  18236. (sendMessages): New function.
  18237. (sendNow): New function.
  18238. (trySendNow): New function.
  18239. (abortPiece): New function.
  18240. (sendHandshake): New function.
  18241. (receiveMessage): New function.
  18242. (receiveHandshake): New function.
  18243. (createRequestMessage): New function.
  18244. (createCancelMessage): New function.
  18245. (createPieceMessage): New function.
  18246. (createHaveMessage): New function.
  18247. (createChokeMessage): New function.
  18248. (createUnchokeMessage): New function.
  18249. (createInterestedMessage): New function.
  18250. (createNotInterestedMessage): New function.
  18251. (createBitfieldMessage): New function.
  18252. (createKeepAliveMessage): New function.
  18253. * src/SendMessageQueue.cc
  18254. (SendMessageQueue): Removed requestSlotMan.
  18255. Instantiated peerConnection here.
  18256. (~SendMessageQueue): Removed requestSlotMan.
  18257. Added deletion of peerConnection and the contents of messageQueue.
  18258. (send): Updated according to the change of messageQueue.
  18259. (addPendingMessage): Renamed to addMessage.
  18260. (addMessage): New function.
  18261. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  18262. (deletePieceMessageInQueue): New function.
  18263. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  18264. (deleteRequestMessageInQueue): New function.
  18265. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  18266. here.
  18267. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  18268. (...) was moved here.
  18269. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  18270. moved here.
  18271. (deleteCompletedRequestSlot):
  18272. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  18273. (getCorrespondingRequestSlot):
  18274. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  18275. And renamed to getCorrespondingRequestSlot, correcting a typo.
  18276. (countPendingMessage): Renamed to countMessageInQueue.
  18277. (countMessageInQueue): New function.
  18278. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  18279. (receiveHandshake): New function.
  18280. (createHandshakeMessage): New function.
  18281. (receiveMessage): New function.
  18282. (createPeerMessage): New function.
  18283. (syncPiece): New function.
  18284. (getNewPieceAndSendInterest): New function.
  18285. (sendMessages): New function.
  18286. (sendNow): New function.
  18287. (trySendNow): New function.
  18288. (sendHandshake): New function.
  18289. (abortPiece): New function.
  18290. (getDownloadPiece): New function.
  18291. (getPeerMessageCommonProperty): New function.
  18292. (createRequestMessage): New function.
  18293. (createCancelMessage): New function.
  18294. (createPieceMessage): New function.
  18295. (createHaveMessage): New function.
  18296. (createChokeMessage): New function.
  18297. (createUnchokeMessage): New function.
  18298. (createInterestedMessage): New function.
  18299. (createNotInterestedMessage): New function.
  18300. (createBitfieldMessage): New function.
  18301. (createKeepAliveMessage): New function.
  18302. To add simple Content-Disposition support:
  18303. * src/HttpResponseCommand.h (determinFilename): New function.
  18304. * src/HttpResponseCommand.cc (executeInternal):
  18305. Use determinFilename(headers) instead of req->getFile() when comparing
  18306. filename.
  18307. (determinFilename): New function.
  18308. (handleDefaultEncoding): Use determinFilename(headers) instead of
  18309. req->getFile().
  18310. (handleOtherEncoding): Use determinFilename(headers) instead of
  18311. req->getFile().
  18312. * src/Util.h (getContentDispositionFilename): New function.
  18313. * src/Util.cc (getContentDispositionFilename): New function.
  18314. * src/LogFactory.h (release): New function.
  18315. * src/LogFactory.cc (release): New function.
  18316. To fix a bug that causes out-of-bound exception when HTTP status
  18317. line is wrong:
  18318. * src/HttpConnection.cc (receiveResponse): Added a check for header
  18319. size.
  18320. * src/common.h (Deleter): New class.
  18321. * src/SegmentMan.cc
  18322. (~SegmentMan): Added deletion of splitter and diskWriter.
  18323. * src/DownloadEngine.h
  18324. (Commands): Use deque.
  18325. (clearQueue): New function.
  18326. * src/DownloadEngine.cc
  18327. (~DownloadEngine): Added deletion of segmentMan.
  18328. (cleanQueue): New function.
  18329. * src/TorrentDownloadEngine.h
  18330. (TorrentDownloadEngine): The implementation was moved to
  18331. TorrentDownloadEngine.cc.
  18332. (~TorrentDownloadEngine): The implementation was moved to
  18333. TorrentDownloadEngine.cc.
  18334. * src/TorrentDownloadEngine.cc
  18335. (~TorrentDownloadEngine): Added deletion of torrentMan.
  18336. * src/main.cc
  18337. (clearRequest): Removed.
  18338. (handler): Added deletion of e.
  18339. (torrentHandler): Added deletion of te.
  18340. (main): Do not share splitter.
  18341. Use Deleter instead of clearRequest.
  18342. Deletion of classes were updated.
  18343. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18344. * src/main.cc (main): Fixed typo.
  18345. * src/message.h: Fixed typo.
  18346. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  18347. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18348. To add --select-file command-line option:
  18349. * src/Util.cc
  18350. (unfoldRange): New function.
  18351. (getNum): New function.
  18352. (unfoldSubRange): New function
  18353. * src/main.cc
  18354. (showUsage): Added help message.
  18355. (main): Added --select-file command-line option. Updated the layout of
  18356. file listing.
  18357. * src/common.h
  18358. (Integers): New definition.
  18359. * src/SocketCore.cc
  18360. (writeData): Removed timeout argument.
  18361. (readData): Removed timeout argument.
  18362. (peekData): Removed timeout argument.
  18363. * src/Socket.cc
  18364. (writeData): Removed timeout argument.
  18365. (readData): Removed timeout argument.
  18366. (peekData): Removed timeout argument.
  18367. * Release 0.4.1
  18368. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18369. To deploy upload rate based choking algorithm:
  18370. * src/PeerInteractionCommand.cc
  18371. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  18372. peer currently used.
  18373. (decideChoking): Deleted the choke/unchoke decision algorithm when
  18374. download completes. Simplified.
  18375. (receiveMessage): Updated.
  18376. * src/TorrentMan.h
  18377. (activePeers): New variable.
  18378. (addActivePeer): New function.
  18379. (getActivePeers): New function.
  18380. (deleteActivePeer): New function.
  18381. * src/TorrentMan.cc
  18382. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  18383. * src/PeerAbstractCommand.cc
  18384. (onAbort): Use peer->resetStatus().
  18385. * src/main.cc
  18386. (PeerChokeCommand.h): Included.
  18387. (main): Added the instance of ChokingCommand to the command queue.
  18388. * src/Peer.h
  18389. (amChoking): Renamed from amChocking
  18390. (chokingRequired): New variable.
  18391. (optUnchoking): New variable.
  18392. (deltaUpload): New variable.
  18393. (deltaDownload): New variable.
  18394. (addDeltaUpload): New function.
  18395. (resetDeltaUpload): New function.
  18396. (addDeltaDownload): New function.
  18397. (resetDeltaDownload): New function.
  18398. (addPeerUpload): Added a call to addDeltaUpload.
  18399. (addPeerDownload): Added a call to addDeltaDownload.
  18400. * src/Peer.cc
  18401. (shouldBeChoking): Renamed from shouldChoke.
  18402. (resetStatus): New function.
  18403. * src/PeerChokeCommand.h: New class.
  18404. * src/PeerChokeCommand.cc: New class.
  18405. To add lazy upload speed limiter:
  18406. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  18407. statistics calculation to TorrentDownloadEngine.
  18408. * src/TorrentConsoleDownloadEngine.cc
  18409. (sendStatistics): Renamed from printStatistics.
  18410. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  18411. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  18412. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  18413. * src/TorrentDownloadEngine.h: Added the variables for statistics
  18414. calculation.
  18415. (sendStatistics): New function as pure virtual function.
  18416. (getUploadSpeed): New function.
  18417. * src/TorrentDownloadEngine.cc
  18418. (initStatistics): New function.
  18419. (calculateSpeed): New function.
  18420. (calculateStatistics): New function.
  18421. * src/SendMessageQueue.h
  18422. (uploadLength): New variable.
  18423. (send): Added an argument.
  18424. (setUploadLimit): New function.
  18425. (getUploadLimit): New function.
  18426. * src/SendMessageQueue.cc
  18427. (send): Added upload speed limiter.
  18428. * src/prefs.h
  18429. (PREF_UPLOAD_LIMIT): New definition.
  18430. * src/PeerInteractionCommand.cc
  18431. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  18432. * src/main.cc
  18433. (main): Added --upload-limit option
  18434. For bug fixes:
  18435. * src/main.cc
  18436. (showUsage): Corrected --listen-port help
  18437. Other changes:
  18438. * src/TorrentMan.cc
  18439. (getPeer): Return nullPeer if connection is grather than
  18440. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  18441. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18442. To add some useful information to the exception message:
  18443. * src/SocketCore.cc : Updated messages.
  18444. * src/SegmentMan.cc :
  18445. * src/TorrentMan.cc : Updated messages.
  18446. * src/MultiDiskWriter.cc : Updated messages.
  18447. * src/Util.cc : Updated messages.
  18448. * src/AbstractDiskWriter.cc : Updated messages.
  18449. * src/PreAllocationDiskWriter.cc : Updated messages.
  18450. * src/message.cc : Added new messages. Updated some messages.
  18451. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  18452. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  18453. Updated threshold from 30 to 15.
  18454. * src/AbstractDiskWriter.h (filename): New variable.
  18455. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  18456. (createFile): Assigned filename.
  18457. * src/main.cc: Updated the help message for http-auth-scheme.
  18458. * Release 0.4.0
  18459. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18460. To add TrackerUpdateCommand with which replaces
  18461. CompactTrackerResponseProcessor:
  18462. * src/TrackerWatcherCommand.h (req): Removed.
  18463. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  18464. if the number of peer connections are less than 30.
  18465. * src/ByteArrayDiskWriter.h (readData): Implemented.
  18466. * src/SegmentMan.h (diskWriter): New function.
  18467. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  18468. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  18469. (main): Use TrackerUpdateCommand.
  18470. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  18471. (req): New variable.
  18472. (setTrackerResponseProcessor): Removed.
  18473. (getTrackerResponseProcessor): Removed.
  18474. (processTrackerResponse): Removed.
  18475. * src/DownloadEngine.h (diskWriter): Removed.
  18476. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  18477. to torrentMan->processTrackerResponse().
  18478. To add Util::expandBuffer:
  18479. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  18480. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  18481. * src/Util.h (expandBuffer): New function.
  18482. To fix the bug that causes segmentation fault when "-l ." is specified
  18483. in command-line option:
  18484. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  18485. (openFile): New function.
  18486. (closeFile): New function.
  18487. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  18488. (~SimpleLogger): Call closeFile();
  18489. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  18490. * src/main.cc (main): Added a check to see logger is configured
  18491. properly.
  18492. To enable HTTP authentication without specifying "--http-auth-scheme"
  18493. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  18494. * src/HttpConnection.cc (createRequest): Send Authorization header
  18495. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  18496. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  18497. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  18498. * src/Peer.cc (shouldChoke): Updated algorithm.
  18499. * src/message.h (EX_AUTH_FAILED): New definition.
  18500. (EX_FILE_OPEN): New definition.
  18501. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  18502. if status == 401.
  18503. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  18504. if req->isTorrent == true.
  18505. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  18506. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  18507. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  18508. (createFile): Updated message.
  18509. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18510. To add a readout of estimated remaining time to normal HTTP/FTP
  18511. downloads:
  18512. * src/ConsoleDownloadEngine.h (startup): New variable.
  18513. (startupLength): New variable.
  18514. (isStartupLengthSet): New variable.
  18515. (avgSpeed): New variable.
  18516. (eta): New variable.
  18517. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  18518. estimated remaining time.
  18519. (initStatistics): Initialized newly added variables.
  18520. (calculateStatistics): Calculate average speed and estimated remaining
  18521. time.
  18522. To decouple TorrentDownloadEngine from HttpResponseCommand:
  18523. * src/TrackerDownloadCommand.h: Removed.
  18524. * src/TrackerDownloadCommand.cc: Removed.
  18525. * src/TrackerInitCommand.h: Removed.
  18526. * src/TrackerInitCommand.cc: Removed.
  18527. * src/TrackerUpdateCommand.h: Removed.
  18528. * src/TrackerUpdateCommand.cc: Removed.
  18529. * src/TrackerWatcherCommand.cc (execute): The construction of request
  18530. url written in TrackerInitCommand was moved here. Do not create
  18531. tracker request command if torrentMan->trackers != 0.
  18532. * src/CompactTrackerResponseProcessor.h: New class.
  18533. * src/CompactTrackerResponseProcessor.cc: New class.
  18534. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  18535. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  18536. Decoupled TorrentDownloadEngine from this.
  18537. * src/SegmentMan.h (init): New function.
  18538. * src/SegmentMan.cc (init): New function.
  18539. * src/TorrentMan.h (responseProcessor): New variable.
  18540. (trackers): New variable.
  18541. (setTrackerResponseProcessor): New function.
  18542. (getTrackerResponseProcessor): New function.
  18543. (processTrackerResponse): New function.
  18544. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  18545. (processTrackerResponse): New function.
  18546. * src/main.cc (main): Use ByteArrayDiskWriter and
  18547. CompactTrackerResponseProcessor.
  18548. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  18549. processTrackerResponse().
  18550. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  18551. readout.
  18552. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  18553. which indicates download has completed.
  18554. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  18555. (closeFile): fd >= 0, not fd > 0
  18556. * src/main.cc (main): Added short cut for show-files.
  18557. Added short cut for torrent-file.
  18558. Added new command-line option listen-port.
  18559. Updated i18n messages.
  18560. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18561. To add LogFactory which creates singleton logger:
  18562. * src/LogFactory.h: New class.
  18563. * src/LogFactory.cc: New class.
  18564. * src/Command.h (logger): New variable.
  18565. (Constructor): Use LogFactory.
  18566. * src/AbstractCommand.cc: Use Command::logger
  18567. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  18568. Use LogFactory.
  18569. * src/SegmentSplitter.h : Made logger protected.
  18570. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  18571. * src/SegmentMan.cc (Constructor): Use LogFactory.
  18572. * src/DownloadEngine.h : Made logger protected.
  18573. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  18574. * src/PeerInteractionCommand.cc : Use Command::logger.
  18575. * src/HttpResponseCommand.cc : Use Command::logger.
  18576. * src/SegmentMan.h : Made logger private.
  18577. * src/TorrentMan.h : Made logger private.
  18578. * src/TorrentMan.cc : Use LogFactory.
  18579. * src/FtpNegotiateCommand.cc : Use Command::logger.
  18580. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  18581. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  18582. Use LogFactory.
  18583. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  18584. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  18585. Use LogFactory.
  18586. * src/DownloadCommand.cc : Use Command::logger.
  18587. * src/PeerAbstractCommand.cc : Use Command::logger.
  18588. * src/PeerListenCommand.cc : Use Command::logger.
  18589. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  18590. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  18591. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  18592. * src/TrackerWatcherCommand.cc : Use Command::logger.
  18593. * src/TrackerUpdateCommand.cc : Use Command::logger.
  18594. * src/TrackerDownloadCommand.cc : Use Command::logger.
  18595. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  18596. Use LogFactory.
  18597. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  18598. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  18599. Use LogFactory.
  18600. * src/main.cc (main): Use LogFactory.
  18601. * src/DiskAdaptor.h (logger): New variable.
  18602. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  18603. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  18604. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18605. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  18606. parameter to a tracker request.
  18607. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  18608. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  18609. * src/main.cc (setSignalHander): New function.
  18610. (main): Added a handler for SIGTERM.
  18611. (handler): Updated message.
  18612. (torrentHandler): Updated message.
  18613. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18614. * src/TorrentConsoleDownloadEngine.cc
  18615. (onPartialDownloadingCompletes): Renamed as
  18616. onSelectiveDownloadingCompletes.
  18617. (onSelectiveDownloadingCompletes): Updated message.
  18618. To add DiskAdaptor which abstract DiskWriter family:
  18619. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  18620. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  18621. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  18622. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  18623. MultiDiskAdaptor.h.
  18624. (readFileEntry): Changed its arguments.
  18625. (setup): setupDiskWriter is merged into this function.
  18626. (setupDiskWriter): Removed.
  18627. (setFileFilter): New function.
  18628. (readFileEntryFromMetaInfoFile): Updated according to the changes
  18629. made in readFileEntry.
  18630. (getFilePath): Removed.
  18631. (getTempFilePath): Removed.
  18632. (getSegmentFilePath): Updated due to the removal of getFilePath.
  18633. (fixFilename): Removed.
  18634. (copySingleFile): Removed.
  18635. (splitMultiFile): Removed.
  18636. (deleteTempFile): Removed.
  18637. (setFileEntriesToDownload): Removed.
  18638. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  18639. (isSelectiveDownloadingMode): New function.
  18640. (setAllMultiFileRequestedState): Removed.
  18641. (finishPartialDownloadingMode): Renamed as
  18642. finishSelectiveDownloadingMode.
  18643. (finishSelectiveDownloadingMode): New function.
  18644. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  18645. (getSelectedTotalLength): New function.
  18646. (onDownloadComplete): Use diskAdaptor.
  18647. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  18648. (Range): Removed.
  18649. (setMultiFileEntries): Renamed as setFileEntries.
  18650. (setFileEntries): New function.
  18651. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  18652. (pieceLength): New variable.
  18653. * src/main.cc (printDownloadCompeleteMessage): New function.
  18654. (torrentHandler): Use diskAdaptor instead of diskWriter.
  18655. (main): Renamed torrent-show-files to show-files.
  18656. Rewritten file contents listing.
  18657. * src/TorrentMan.h (FileEntry): Removed.
  18658. (multiFileTopDir): Removed.
  18659. (multiFileEntries): Removed.
  18660. (diskWriter): Removed.
  18661. (diskAdaptor): New variable.
  18662. * src/DefaultDiskWriter.h (totalLength): New variable.
  18663. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  18664. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  18665. diskWriter.
  18666. * src/TorrentConsoleDownloadEngine.h
  18667. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  18668. (partialTotalLength): Renamed as selectedTotalLength.
  18669. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  18670. openExistingFile, otherwise call initAndOpenFile.
  18671. (closeFile): fd > 0, not fd != 0.
  18672. * src/DirectDiskAdaptor.h: New class.
  18673. * src/DirectDiskAdaptor.cc: New class.
  18674. * src/MultiDiskAdaptor.h: New class.
  18675. * src/MultiDiskAdaptor.cc: New class.
  18676. * src/CopyDiskAdaptor.h: New class.
  18677. * src/CopyDiskAdaptor.cc: New class.
  18678. * src/DiskAdaptor.h: New class.
  18679. * src/DiskAdaptor.cc: New class.
  18680. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  18681. (PREF_SHOW_FILES): New definition.
  18682. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18683. To add the ability to download multi torrent into respective files
  18684. directly:
  18685. * src/DiskWriter.h (openFile): New function.
  18686. (seek): Removed.
  18687. * src/MultiDiskWriter.h: New class.
  18688. * src/MultiDiskWriter.cc: New class.
  18689. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  18690. protected.
  18691. (openFile): New function.
  18692. * src/AbstractDiskWriter.cc (openFile): New function.
  18693. * src/prefs.h (V_FALSE): New definition.
  18694. (PREF_DIRECT_FILE_MAPPING): New definition.
  18695. * src/TorrentMan.h (setupDiskWriter): New function.
  18696. (setAllMultiFileRequestedState): New function.
  18697. (onDownloadComplete): New function.
  18698. * src/TorrentMan.cc : Included MultiDiskWriter.h
  18699. (setupDiskWriter): New function.
  18700. (getFilePath): Updated.
  18701. (getTempFilePath): Updated.
  18702. (getSegmentFilePath): Updated.
  18703. (fixFilename): Updated.
  18704. (deleteTempFile): Updated.
  18705. (setAllMultiFileRequestedState): New function.
  18706. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  18707. (finishPartialDownloadingMode): Reset requested flags.
  18708. (onDownloadComplete): New function.
  18709. * src/main.cc: Added --direct-file-mapping option.
  18710. Use TorrentMan::setupDiskWriter().
  18711. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  18712. onDownloadComplete().
  18713. To fix ETA bug:
  18714. * src/Util.h (difftvsec): New function.
  18715. * src/Util.cc (difftvsec): New function.
  18716. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  18717. type of "elapsed" instead of long long int.
  18718. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  18719. The updates of statistics takes place every 1 seconds.
  18720. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  18721. (calculateSpeed): Changed its argument signature.
  18722. * src/PeerMessage.cc (toString): Fixed message.
  18723. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18724. To print ETA:
  18725. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  18726. completion handling when dealing with
  18727. TorrentMan::isPartialDownloadingMode() == true.
  18728. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  18729. New function.
  18730. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  18731. (sessionDownloadLength): New variable.
  18732. (avgSpeed): New variable.
  18733. (eta): New variable.
  18734. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  18735. new variables: eta, avgSpeed, startup.
  18736. (calculateSpeed): Calculate average speed and ETA.
  18737. (printStatistics): Added ETA.
  18738. * src/Util.h (secfmt): New function.
  18739. * src/Util.cc (secfmt): New function.
  18740. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18741. To detect "keep alive" flooding:
  18742. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  18743. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  18744. variable: keepAliveCount.
  18745. (detectMessageFlooding): Added "keep alive" flooding detection.
  18746. (receiveMessage): Increase keepAliveCount when "keep alive" message
  18747. received.
  18748. To add the ability to download only specified files in multi-file
  18749. torrent:
  18750. * src/BitfieldMan.h (filterBitfield): New variable.
  18751. (filterEnabled): New variable.
  18752. (setFilterBit): New function.
  18753. (enableFilter): New function.
  18754. (disableFilter): New function.
  18755. (isFilterEnabled): New function.
  18756. (getFilteredTotalLength): New function.
  18757. (getCompletedLength): New function.
  18758. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  18759. filterBitfield, filterEnabled.
  18760. (CopyConstructor): Added filterBitfield and filterEnabled.
  18761. (operator==): Added filterBitfield and filterEnabled.
  18762. (Destructor): Added filterBitfield.
  18763. (getMissingIndex): Use filterBitfield.
  18764. (getMissingUnusedIndex): Use filterBitfield.
  18765. (getFirstMissingUnusedIndex): Use filterBitfield.
  18766. (getFirstMissingUnusedIndex): Use filterBitfield.
  18767. (getAllMissingIndexes): Use filterBitfield.
  18768. (countMissingBlock): Use filterBitfield.
  18769. (countBlock): Use filterBitfield.
  18770. (setBitInternal): Added new argument on.
  18771. (setUseBit): Use setBitInternal.
  18772. (unsetUseBit): Use setBitInternal.
  18773. (setBit): Use setBitInternal.
  18774. (unsetBit): Use setBitInternal.
  18775. (isAllBitSet): Use filterBitfield.
  18776. (setFilterBit): New function.
  18777. (addFilter): New function.
  18778. (enableFilter): New function.
  18779. (disableFilter): New function.
  18780. (clearFilter): New function.
  18781. (isFilterEnabled): New function.
  18782. (getFilteredTotalLength): New function.
  18783. (getCompletedLength): New function.
  18784. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  18785. Initalized newly added variables.
  18786. [FileEntry](offset): New variable.
  18787. [FileEntry](extracted): New variable.
  18788. [FileEntry](requested): New variable.
  18789. (readFileEntry): New function.
  18790. (option): New variable.
  18791. (splitMultiFile): Removed const qualifier.
  18792. (fixFilename): Removed const qualifier.
  18793. (readFileEntryFromMetaInfoFile): New function.
  18794. (finishPartialDownloadingMode): New function.
  18795. (isPartialDownloadingMode): New function.
  18796. (setFileEntriesToDownload): New function.
  18797. (getCompletedLength): New function.
  18798. (getPartialTotalLength): New function.
  18799. * src/TorrentMan.cc (readFileEntry): New function.
  18800. (setup): Use readFileEntry. If no-preallocation option is specified,
  18801. use DefaultDiskWriter.
  18802. (readFileEntryFromMetaInfoFile): New function.
  18803. (fixFilename): Removed const qualifier.
  18804. (splitMultiFile): Removed const qualifier.
  18805. (setFileEntriesToDownload): New function.
  18806. (isPartialDownloadingMode): New function.
  18807. (finishPartialDownloadingMode): New function.
  18808. (getCompletedLength): New function.
  18809. (getPartialTotalLength): New function.
  18810. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  18811. New variable.
  18812. (partialTotalLength): New variable.
  18813. (downloadLength): New variable.
  18814. (totalLength): New variable.
  18815. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  18816. Added log.
  18817. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  18818. partialTotalLength, downloadLength, totalLength.
  18819. (calculate): Calculate downloadLength and totalLength.
  18820. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  18821. * src/main.cc (addCommand): Changed argument signature.
  18822. (main): Added new variable: args. Added new option "torrent-show-files"
  18823. "no-preallocation". Usage is not updated yet.
  18824. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18825. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  18826. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18827. Attempt to add the ability to listing file entries in a .torrent file.
  18828. This feature is not yet complete.
  18829. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  18830. * src/TorrentMan.cc (getMultiFileEntries): New function.
  18831. (getName): New function.
  18832. * src/TorrentMan.h (getMultiFileEntries): New function.
  18833. (getName): New function.
  18834. * src/main.cc (main): Use above 2 funtion.
  18835. * Release 0.3.2
  18836. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18837. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  18838. (detectMessageFlooding): Updated threshold value.
  18839. (checkLongTimePeerChoking): Updated timeout value.
  18840. (getNewPieceAndSendInterest): Added debug log.
  18841. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  18842. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  18843. (getPeer): Updated.
  18844. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  18845. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  18846. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  18847. is localhost.
  18848. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  18849. * src/PendingMessage.cc (processMessage): Not to send piece message
  18850. if peer is not interested in the pieces localhost has.
  18851. * src/Peer.cc (shouldChoke): Updated.
  18852. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  18853. * src/Util.cc (isPowerOf): New function.
  18854. * src/Util.h (isPowerOf): New function.
  18855. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  18856. whether or not it is power of 2.
  18857. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18858. Added new class SendMessageQueue that includes PendingMessages and
  18859. RequestSlotMan.
  18860. * src/SendMessageQueue.h: New class.
  18861. * src/SendMessageQueue.cc: New class.
  18862. * src/PendingMessage.h: Added new member variable blockIndex and its
  18863. accessors.
  18864. (createRequestMessage): Updated.
  18865. * src/PendingMessage.cc (createRequestMessage): Updated.
  18866. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  18867. SendMessageQueue.
  18868. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  18869. (receiveMessage): Updated with SendMessageQueue.
  18870. (deletePendingPieceMessage): Removed.
  18871. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  18872. (sendInterest): Updated with SendMessageQueue.
  18873. (createRequestPendingMessage): Updated with SendMessageQueue.
  18874. (sendMessages): Updated with SendMessageQueue.
  18875. (onAbort): Updated with SendMessageQueue.
  18876. (keepAlive): Updated with SendMessageQueue.
  18877. (beforeSocketCheck): Updated SendMessageQueue.
  18878. * src/PeerInteractionCommand (sendMessages): Shuffle
  18879. missingBLockIndexes before using it.
  18880. Added its own timeout for peer connection.
  18881. * src/PeerAbstractCommand.h: Added member variable timeout and its
  18882. setter.
  18883. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  18884. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  18885. Added setTimeout() call.
  18886. (executeInternal): Added setTimeout() call.
  18887. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  18888. Added timeout.
  18889. (isTimeoutDetected): Updated.
  18890. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  18891. option.
  18892. Added *simple* message flooding checker.
  18893. * src/PeerInteractionCommand.cc (executeInternal):
  18894. Added detectMessageFlooding() call.
  18895. (detectMessageFlooding): New function.
  18896. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  18897. (beforeSocketCheck): Added detectMessageFlooding() call.
  18898. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  18899. chokeUnchokeCount, haveCount, detectMessageFlooding().
  18900. Removed deletePendingPieceMessage(), getRequestSlot(),
  18901. deleteRequestSlot(), deleteAllRequestSlot().
  18902. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  18903. Added checkLongTimePeerChoking() call.
  18904. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  18905. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  18906. if duplicate == false.
  18907. The parameter "uploaded" and "downloaded" in the tracker request are
  18908. the size since the client sent the "started" event to the tracker.
  18909. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  18910. uploaded size to preDownloadedSize, preUploadedSize respectively.
  18911. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  18912. getSessionDownloadedSize(), getSessionUploadedSize().
  18913. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  18914. getSessionUploadedSize() instead of getDownloadedSize(),
  18915. getUploadedSize().
  18916. * src/PendingMessage.cc (processMessage): Do not send request message
  18917. if the peer is choking the client.
  18918. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  18919. less than interval.
  18920. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18921. * configure.in: Added gnutls support. Added several CPP macros.
  18922. * m4/openssl.m4: Added.
  18923. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  18924. readData(), peekData(). Added gnutls support.
  18925. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  18926. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  18927. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  18928. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  18929. Instead, added a check for whether setup method has executed
  18930. successfully.
  18931. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  18932. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  18933. * src/Makefile.am: Updated.
  18934. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  18935. using whether OpenSSL or gcrypt, depending on the result of configure
  18936. script.
  18937. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  18938. messageDigest.h.
  18939. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  18940. * src/PeerListenCommand.cc: Added log about port binded successfully.
  18941. Fixed memory leak.
  18942. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  18943. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  18944. Removed instantiation of TrackerInitCommand. Instead,
  18945. TrackerWatcherCommand is instantiated and pushed to the command queue.
  18946. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  18947. ENABLE_SSL.
  18948. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  18949. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  18950. If a piece is already acquired by another command, delete the request
  18951. slots for the piece.
  18952. * src/TrackerUpdateCommand.cc (execute):
  18953. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  18954. Added a check whether peer list is null.
  18955. Fixed the bug that causes sending completed event to the tracker
  18956. several times.
  18957. * src/TrackerInitCommand.cc (execute):
  18958. Fixed the bug that causes sending completed event to the tracker
  18959. several times.
  18960. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  18961. by using messageDigest.h.
  18962. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18963. * PeerConnection.cc: Replaced log message "keep-alive" with
  18964. "keep alive".
  18965. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  18966. localhost long time.
  18967. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  18968. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  18969. at most 100 failure entry from the list. If with duplicate = false,
  18970. MAX_PEER_LIST is not checked.
  18971. * PeerListenCommand.cc: Fixed the argument order of log message.
  18972. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18973. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  18974. Added warn().
  18975. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  18976. Implemented warn().
  18977. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  18978. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18979. * Request.h: Added AFTER_COMPLETED event.
  18980. * TorrentDownloadEngine.cc: Prints "Download complete" message
  18981. instead of downloaded size and progress(%) after download completes.
  18982. * PeerInteractionCommand.cc: After download completes, sends unchoke
  18983. message to the peer if it is interested in what localhost has
  18984. downloaded.
  18985. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  18986. destination instead of just renaming it.
  18987. * TorrentMan.cc: Added deleteTempFile().
  18988. * PeerAbstractCommand.cc: do not stop execution after download
  18989. completes. This makes localhost a seeder.
  18990. * Util.{h,cc}: Added fileCopy().
  18991. * PeerListenCommand.cc: do not stop execution after download completes.
  18992. This makes localhost a seeder.
  18993. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  18994. Added TorrentMan::deleteTempFile() to torrentHandler.
  18995. Initialized the variable dir as ".".
  18996. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  18997. Deleted renameSingleFile().
  18998. Added copySingleFile(), deleteTempFile().
  18999. * DownloadEngine.h: Added virtual function afterEachIteration().
  19000. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  19001. in onEndOfRun() to afterEachIteration().
  19002. In onEndOfRun(), changed if condition to check whether filenameFixed is
  19003. true.
  19004. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  19005. In rangedFileCopy(), added try-catch block to properly close file
  19006. descriptors.
  19007. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  19008. Added afterEachIteration(), isFilenameFixed().
  19009. * Peer.cc: Changed choking strategy.
  19010. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  19011. * TrackerInitCommand.cc: Send completed event only once.
  19012. * DownloadEngine.cc: Added a call to afterEachIteration().
  19013. * TrackerUpdateCommand.cc: Do not stop execution after download
  19014. completes.
  19015. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  19016. connect the peers at most MAX_PEER_UPDATE when a peer list is
  19017. received from a tracker.
  19018. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  19019. Decreased the number of failure peers to delete to 0(just comment out
  19020. the line).
  19021. * Release 0.3.1
  19022. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19023. * PeerInteractionCommand.cc: added a call to
  19024. TorrentMan::unadvertisePiece in Destructor.
  19025. * PeerInteractionCommand.cc: make have message sent immediately
  19026. if the size of pending message queue is zero.
  19027. * TorrentMan.cc: set the maximum size of peer list to 250.
  19028. * TorrentMan.h: changed the container type of Peers and UsedPieces
  19029. to deque.
  19030. * Util.cc: fixed rangedFileCopy.
  19031. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  19032. to Constructor. Also, moved digest cleanup to Destructor.
  19033. * MetaFileUtil.cc: fixed memory leak
  19034. * replaced std::vector with std::deque.
  19035. * AbstractCommand.cc: casted timeout value to long long int.
  19036. * ChunkedEncoding.cc: fixed memory leak.
  19037. * PeerInteractionCommand.cc: casted timeout value to long long int.
  19038. * SleepCommand.cc: casted timeout value to long long int.
  19039. * Data.cc: fixed memory leak.
  19040. * Data.cc: fixed toLLInt().
  19041. * BitfieldMan.cc: fixed memory leak.
  19042. * TorrentMan.cc: initialized storeDir to ".".
  19043. * TorrentMan.cc: fixed memory leak.
  19044. * TorrentMan.cc: corrected file paths of splitted files.
  19045. * PeerAbstractCommand.cc: casted timeout to long long int.
  19046. * main.cc: added delete(req) and delete(te->diskWriter).
  19047. * RequestSlot.cc: casted timeout value to long long int.
  19048. * Request.cc: fixed memory leak.
  19049. * PendingMessage.cc: make HAVE messages sent only when peer does not
  19050. have the piece.
  19051. * Peer.{h,cc}: added hasPiece(int index).
  19052. * main.cc: corrected addCommand.
  19053. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19054. * BitTorrent protocol support added.
  19055. * Release 0.3.0
  19056. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19057. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  19058. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19059. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  19060. decoding did not work properly.
  19061. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19062. * DownloadEngine.h: included sys/time.h
  19063. * DownloadEngine.cc: remove sys/time.h
  19064. * Makefile.am (SUBDIRS): Add intl.
  19065. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  19066. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19067. * main.cc: correct help message for --http-auth-scheme.
  19068. * main.cc: changed e-mail address for bug reports.
  19069. * ja.po: added japanese translation.
  19070. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19071. * SimpleLogger.cc: flush log file instead of stdout.
  19072. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19073. * main.cc: Fixed command-line option: max-tries
  19074. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  19075. does not equal to seg.sp.
  19076. * DownloadCommand.cc: If EOF is got from the server and the total size
  19077. of file is not zero, then throw DlRetryEx.
  19078. * main.cc: Set the minium value of min-segment-size to 1024.
  19079. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  19080. fails because of a regression since 0.2.0 release.
  19081. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19082. * HttpConnection.cc:
  19083. * common.h: defined the user agent name as macro
  19084. * DownloadEngine.{h, cc}:
  19085. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  19086. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  19087. * main.cc: Download complete/abort message is now generated by main.
  19088. * Makefile.am (SUBDIRS): Add m4.
  19089. (ACLOCAL_AMFLAGS): New variable.
  19090. (EXTRA_DIST): New variable.
  19091. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  19092. * gettext: added gettext functionality
  19093. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19094. * AbstractCommand.cc:
  19095. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  19096. unregister its cuid from SegmentMan.
  19097. * DownloadEngine.cc: .aria2 file was written when a downloading
  19098. failed with errors.
  19099. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  19100. Added "User-Agent" header to CONNECT proxy request.
  19101. Fixed "Proxy-Authorization" header. Now proxy authorization works
  19102. properly.
  19103. * Logger.h:
  19104. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  19105. * ChunkedEncoding.cc: Added #include directive for strings.h
  19106. * Release 0.2.1
  19107. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19108. * Util.{h,cc}: added startsWith().
  19109. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  19110. Util::endsWith().
  19111. * SocketCore.cc: struct addrinfo is now zero-initialized.
  19112. * common.h: added #include directive of limit.h.
  19113. * DownloadEngine.cc: added #include directive of sys/time.h and
  19114. algorithm.
  19115. * Exception.h: added #include directive of stdio.h.
  19116. * AbstractCommand.h: added #include directive of sys/time.h.
  19117. * DownloadCommand.h: added #include directive of sys/time.h.
  19118. * *.h: added #include directive of common.h to all base classes.
  19119. subclasses' one was removed.
  19120. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  19121. does not define these macros.
  19122. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19123. * Release 0.2.0
  19124. * main.cc:
  19125. * HttpInitiateConnectionCommand.{h,cc}:
  19126. * prefs.h:
  19127. * HttpConnection.{h,cc}: added --http-proxy-method option.
  19128. We can now use GET command in http proxy.
  19129. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19130. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  19131. that splits slowest segment of SegmentMan::commands vector.
  19132. This is the default split algorithm of aria2.
  19133. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  19134. that splits first segment of SegmentMan::commands vector.
  19135. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  19136. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  19137. * Segment.h:
  19138. * SegmentMan.cc: Added speed field to Segment.h
  19139. * main.cc: -s option now affects all URLs in command-line arguemtns.
  19140. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  19141. * message.h: Change file size related %d to %lld.
  19142. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19143. * FtpInitiateConnectionCommand.{h,cc}:
  19144. * FtpNegotiationCommand.{h,cc}:
  19145. * FtpDownloadCommand.{h,cc}:
  19146. * FtpConnection.{h,cc}: Added FTP support
  19147. * SimpleLogger.cc: Log message now includes time information.
  19148. * main.cc: The value of --http-auth-scheme option is chagned from
  19149. 'BASIC' to 'basic'
  19150. * main.cc: Added --timeout command-line option.
  19151. * main.cc: Added --min-segment-size command-line option.
  19152. * main.cc: Added --max-retries command-line option.
  19153. * prefs.h: option string constants are now defined in prefs.h
  19154. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19155. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  19156. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  19157. with version 0.1.0's one.
  19158. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19159. * configure.in: Added --enable-ssl option to configure script.
  19160. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  19161. cannot permit absoluteURI as Request-URI.
  19162. * HttpConnection.cc: Added Referer support.
  19163. * main.cc: Added referer command-line option.
  19164. * main.cc: Added rety-wait command-line option.
  19165. * Exception.h: Fixed formating bug in Exception::setMsg()
  19166. * SocketCore.{h,cc}:
  19167. * Socket.{h, cc}:
  19168. * Request.cc:
  19169. * InitiateConnectionCommandFactory.cc:
  19170. * HttpRequestCommand.cc: Added HTTPS support.
  19171. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  19172. for SocketCore.
  19173. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  19174. size is wrong
  19175. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  19176. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  19177. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  19178. * Release 0.1.0