ChangeLog 656 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099
  1. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Updated Russian, Ukrainian, German and French translations.
  3. Thanks to all translators involved.
  4. * po/de.po
  5. * po/fr.po
  6. * po/ru.po
  7. * po/uk.po
  8. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  9. Mentioned about pkg-config
  10. * README
  11. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  12. Fixed typo. Referred --index-out option in BitTorrent notes.
  13. * README
  14. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  15. Store all addresses found by getifaddrs() and getaddrinfo(). In
  16. bind, try all addresses until success
  17. * src/SocketCore.cc
  18. * src/SocketCore.h
  19. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  20. Updated po templates.
  21. * po/aria2.pot
  22. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  23. Bump up version number to 1.7.0
  24. * configure.ac
  25. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  26. Fixed compile error if ENABLE_BITTORRENT is undefined.
  27. * src/DefaultPieceStorage.cc
  28. * src/DefaultPieceStorage.h
  29. * src/PieceStorage.h
  30. * src/UnknownLengthPieceStorage.cc
  31. * src/UnknownLengthPieceStorage.h
  32. * test/MockPieceStorage.h
  33. * test/ProtocolDetectorTest.cc
  34. * test/XmlRpcMethodTest.cc
  35. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  36. Documented in man page that if getifaddrs() is missing,
  37. --interface option doesn't accept interface name.
  38. * doc/aria2c.1.txt
  39. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  40. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  41. * src/DefaultBtAnnounce.cc
  42. * src/DefaultBtAnnounce.h
  43. * test/DefaultBtAnnounceTest.cc
  44. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  45. Fixed the bug that connection is always dropped if handshake
  46. message in extension protocol don't have metadata_size.
  47. src/HandshakeExtensionMessage.cc
  48. * src/HandshakeExtensionMessage.cc
  49. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  50. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  51. text saying DHT is recommended when Magnet URI is provided.
  52. * doc/aria2c.1.txt
  53. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  54. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  55. URI is supplied. Notify user that they should consider enabling
  56. DHT if they use Magnet URI.
  57. * src/RequestGroup.cc
  58. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  59. Added --disable-ipv6 option to disable IPv6.
  60. * doc/aria2c.1.txt
  61. * src/InitiateConnectionCommand.cc
  62. * src/NameResolver.cc
  63. * src/NameResolver.h
  64. * src/OptionHandlerFactory.cc
  65. * src/main.cc
  66. * src/prefs.cc
  67. * src/prefs.h
  68. * src/usage_text.h
  69. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  70. Updated usage text for --bt-prioritize-piece option.
  71. * doc/aria2c.1.txt
  72. * src/usage_text.h
  73. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  74. In configure script, if --with-PACKAGE and --enable-FEATURE are
  75. given and PACKAGE is missing in the system or FEATURE cannot be
  76. enabled, print error message and stop the script.
  77. * configure.ac
  78. * m4/aria2_arg.m4
  79. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  80. Halt metadata download immediately when metadata download is done.
  81. Don't wait unresponsive tracker.
  82. * src/ByteArrayDiskWriter.h
  83. * src/DefaultBtInteractive.cc
  84. * src/DefaultExtensionMessageFactory.cc
  85. * src/DefaultExtensionMessageFactory.h
  86. * src/PeerInteractionCommand.cc
  87. * src/UTMetadataDataExtensionMessage.cc
  88. * src/UTMetadataDataExtensionMessage.h
  89. * src/UTMetadataRequestExtensionMessage.cc
  90. * test/UTMetadataDataExtensionMessageTest.cc
  91. * test/UTMetadataRequestExtensionMessageTest.cc
  92. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  93. Documented --interface option in man page.
  94. * doc/aria2c.1.txt
  95. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  96. Try resolved address in the order received from the resolver.
  97. * src/DNSCache.h
  98. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  99. Added debug logs.
  100. * src/SocketCore.cc
  101. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  102. Fixed type of tail to uint64_t
  103. * src/util.cc
  104. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  105. Added --interface option. This feature binds sockets to given
  106. interface. You can specify interface name, IP address and
  107. hostname.
  108. * configure.ac
  109. * src/OptionHandlerFactory.cc
  110. * src/SocketCore.cc
  111. * src/SocketCore.h
  112. * src/main.cc
  113. * src/message.h
  114. * src/prefs.cc
  115. * src/prefs.h
  116. * src/usage_text.h
  117. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  118. Updated man page for bt-prioritize-piece option in -i list.
  119. * doc/aria2c.1.txt
  120. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  121. Added bt-prioritize-piece option to -i list.
  122. * src/download_helper.cc
  123. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  124. Removed --http-auth-scheme option from man page.
  125. * doc/aria2c.1.txt
  126. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  127. Removed --http-auth-scheme option since it doesn't do nothing.
  128. * src/OptionHandlerFactory.cc
  129. * src/prefs.cc
  130. * src/prefs.h
  131. * src/usage_text.h
  132. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  133. Adjusted the number of peer info which get_peers reply message can
  134. carry.
  135. * src/DHTGetPeersReplyMessage.cc
  136. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  137. Added extension_message_test_helper.h to aria2c_SOURCES.
  138. * test/Makefile.am
  139. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  140. Documented --bt-prioritize-piece option in man page.
  141. * doc/aria2c.1.txt
  142. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  143. Added option --bt-prioritize-piece. This option instruct aria2 to
  144. try to download first and last pieces of each file first. The
  145. argument can contain 2 keywords:head and tail. To include both
  146. keywords, they must be separated by comma. These keywords can take
  147. one parameter, SIZE. For example , if head=SIZE is specified,
  148. pieces in the range of first SIZE bytes of each file get higher
  149. priority. tail=SIZE means the range of last SIZE bytes of each
  150. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  151. * src/DefaultPieceStorage.h
  152. * src/Makefile.am
  153. * src/OptionHandlerFactory.cc
  154. * src/OptionHandlerImpl.h
  155. * src/PriorityPieceSelector.cc
  156. * src/PriorityPieceSelector.h
  157. * src/RequestGroup.cc
  158. * src/prefs.cc
  159. * src/prefs.h
  160. * src/usage_text.h
  161. * src/util.cc
  162. * src/util.h
  163. * test/Makefile.am
  164. * test/MockPieceSelector.h
  165. * test/PriorityPieceSelectorTest.cc
  166. * test/UtilTest.cc
  167. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  168. Fixed typo
  169. * src/HttpRequest.h
  170. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  171. In Magnet URI with tr parameter, put each announce URI in separate
  172. tier.
  173. * src/bittorrent_helper.cc
  174. * test/BittorrentHelperTest.cc
  175. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  176. Renamed ExtensionMessage::getBencodedData() as
  177. ExtensionMessage::getPayload()
  178. * src/BtExtendedMessage.cc
  179. * src/ExtensionMessage.h
  180. * src/HandshakeExtensionMessage.cc
  181. * src/HandshakeExtensionMessage.h
  182. * src/UTMetadataDataExtensionMessage.cc
  183. * src/UTMetadataDataExtensionMessage.h
  184. * src/UTMetadataRejectExtensionMessage.cc
  185. * src/UTMetadataRejectExtensionMessage.h
  186. * src/UTMetadataRequestExtensionMessage.cc
  187. * src/UTMetadataRequestExtensionMessage.h
  188. * src/UTPexExtensionMessage.cc
  189. * src/UTPexExtensionMessage.h
  190. * test/HandshakeExtensionMessageTest.cc
  191. * test/MockExtensionMessage.h
  192. * test/UTMetadataDataExtensionMessageTest.cc
  193. * test/UTMetadataRejectExtensionMessageTest.cc
  194. * test/UTMetadataRequestExtensionMessageTest.cc
  195. * test/UTPexExtensionMessageTest.cc
  196. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  197. Updated man page for BitTorrent Magnet URI.
  198. * doc/aria2c.1.txt
  199. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  200. Call DownloadContext::setOwnerRequestGroup() in
  201. RequestGroup::setDownloadContext().
  202. * src/BtDependency.cc
  203. * src/RequestGroup.cc
  204. * src/RequestGroup.h
  205. * src/download_helper.cc
  206. * test/DefaultBtMessageDispatcherTest.cc
  207. * test/DefaultExtensionMessageFactoryTest.cc
  208. * test/HandshakeExtensionMessageTest.cc
  209. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  210. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  211. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  212. from metadata, use new metadata2Torrent() function.
  213. * src/BtDependency.cc
  214. * src/UTMetadataPostDownloadHandler.cc
  215. * src/bittorrent_helper.cc
  216. * src/bittorrent_helper.h
  217. * test/BittorrentHelperTest.cc
  218. * test/BtDependencyTest.cc
  219. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  220. Use createRequestGroupForUri to create the download for torrent
  221. file.
  222. * src/Metalink2RequestGroup.cc
  223. * test/Metalink2RequestGroupTest.cc
  224. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  225. Fixed typo
  226. * src/DownloadContext.h
  227. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  228. Use createRequestGroupForBitTorrent()
  229. * src/BtPostDownloadHandler.cc
  230. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  231. Added remove().
  232. * src/Option.cc
  233. * src/Option.h
  234. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  235. Removed options which is only valid for URIs specified in
  236. command-line. If they are left, because op is used as a template
  237. for new RequestGroup(such as created in XML-RPC command,
  238. BtPostDownloadHandler etc), they causes unintentional effect.
  239. * src/main.cc
  240. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  241. Refer to option value of PREF_OUT only in download_helper.
  242. * src/FtpNegotiationCommand.cc
  243. * src/HttpResponseCommand.cc
  244. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  245. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  246. * src/download_helper.cc
  247. * src/download_helper.h
  248. * src/XmlRpcMethodImpl.cc
  249. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  250. Updated man page for changeOption XML-RPC method.
  251. * doc/aria2c.1.txt
  252. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  253. Added --bt-max-peers option to changeOption XML-RPC method.
  254. * src/XmlRpcMethod.cc
  255. * src/XmlRpcMethodImpl.cc
  256. * test/XmlRpcMethodTest.cc
  257. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  258. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  259. * test/XmlRpcMethodTest.cc
  260. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  261. Removed redundant DownloadContext::hasAttribute(...) calls.
  262. * src/ConsoleStatCalc.cc
  263. * src/RequestGroup.cc
  264. * src/XmlRpcMethodImpl.cc
  265. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  266. Changed the number of tracker request attempt from 5 to 2.
  267. * src/TrackerWatcherCommand.cc
  268. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  269. Use host and protocol in original URI, because URI selector
  270. selects URI based on original URI, not redirected one.
  271. * src/Request.cc
  272. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  273. Fixed the bug which causes segmentation fault with tellWaiting
  274. XML-RPC method when BitTorrent download is waiting. The key of
  275. BtRegistry is changed from info hash to GID, because it is
  276. registered per RequestGroup, not info hash.
  277. * src/BtRegistry.cc
  278. * src/BtRegistry.h
  279. * src/BtSetup.cc
  280. * src/ConsoleStatCalc.cc
  281. * src/InitiatorMSEHandshakeCommand.cc
  282. * src/PeerInitiateConnectionCommand.cc
  283. * src/PeerInteractionCommand.cc
  284. * src/PeerInteractionCommand.h
  285. * src/PeerReceiveHandshakeCommand.cc
  286. * src/RequestGroup.cc
  287. * src/XmlRpcMethodImpl.cc
  288. * test/BtRegistryTest.cc
  289. * test/XmlRpcMethodTest.cc
  290. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  291. Updated man page for changeOption XML-RPC method.
  292. * doc/aria2c.1.txt
  293. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  294. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  295. method.
  296. * src/XmlRpcMethod.cc
  297. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  298. Documented about BitTorrent Magnet URI in man page.
  299. * doc/aria2c.1.txt
  300. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  301. Fixed the bug that trackers in BitTorrent Magnet URI are not
  302. inherited to generated RequestGroup.
  303. * src/UTMetadataPostDownloadHandler.cc
  304. * test/UTMetadataPostDownloadHandlerTest.cc
  305. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  306. Prepended "[METADATA]" before dn.
  307. * src/bittorrent_helper.cc
  308. * test/BittorrentHelperTest.cc
  309. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  310. Rewritten Magnet URI parser.
  311. * src/Makefile.am
  312. * src/ProtocolDetector.cc
  313. * src/bittorrent_helper.cc
  314. * src/bittorrent_helper.h
  315. * src/download_helper.cc
  316. * src/magnet.cc
  317. * src/magnet.h
  318. * test/BittorrentHelperTest.cc
  319. * test/MagnetTest.cc
  320. * test/Makefile.am
  321. * test/ProtocolDetectorTest.cc
  322. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  323. Use hton64
  324. * src/base32.cc
  325. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  326. Added Base32 encoded BitTorrent Magnet Link support.
  327. * src/Makefile.am
  328. * src/base32.cc
  329. * src/base32.h
  330. * src/bittorrent_helper.cc
  331. * test/Base32Test.cc
  332. * test/BittorrentHelperTest.cc
  333. * test/Makefile.am
  334. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  335. Added BitTorrent Magnet Link support. Base32 encoded link is not
  336. supported yet. Fixed typo in method name in RequestGroup. In
  337. metadataGetMode, don't show "Your share ratio was ..." message.
  338. * src/DefaultBtInteractive.cc
  339. * src/DefaultBtInteractive.h
  340. * src/DownloadHandlerFactory.cc
  341. * src/DownloadHandlerFactory.h
  342. * src/HandshakeExtensionMessage.cc
  343. * src/Makefile.am
  344. * src/Metalink2RequestGroup.cc
  345. * src/PeerInteractionCommand.cc
  346. * src/RequestGroup.cc
  347. * src/RequestGroup.h
  348. * src/UTMetadataPostDownloadHandler.cc
  349. * src/UTMetadataPostDownloadHandler.h
  350. * src/download_helper.cc
  351. * test/HandshakeExtensionMessageTest.cc
  352. * test/Makefile.am
  353. * test/UTMetadataPostDownloadHandlerTest.cc
  354. * test/UTMetadataRejectExtensionMessageTest.cc
  355. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  356. In metadataGetMode, don't show SEEDING.
  357. * src/ConsoleStatCalc.cc
  358. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  359. Fixed ut_metadata data handling. Implemented
  360. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  361. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  362. metadata_size is received.
  363. * src/DefaultExtensionMessageFactory.cc
  364. * src/DefaultExtensionMessageFactory.h
  365. * src/HandshakeExtensionMessage.cc
  366. * src/HandshakeExtensionMessage.h
  367. * src/UTMetadataDataExtensionMessage.cc
  368. * src/UTMetadataDataExtensionMessage.h
  369. * src/UTMetadataRequestExtensionMessage.cc
  370. * src/UTMetadataRequestFactory.cc
  371. * src/UTMetadataRequestFactory.h
  372. * src/UTMetadataRequestTracker.cc
  373. * src/UTMetadataRequestTracker.h
  374. * test/DefaultExtensionMessageFactoryTest.cc
  375. * test/HandshakeExtensionMessageTest.cc
  376. * test/MockBtMessage.h
  377. * test/UTMetadataDataExtensionMessageTest.cc
  378. * test/UTMetadataRequestExtensionMessageTest.cc
  379. * test/UTMetadataRequestFactoryTest.cc
  380. * test/UTMetadataRequestTrackerTest.cc
  381. * test/extension_message_test_helper.h
  382. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  383. Drop connection if ut_metadata reject message is received.
  384. * src/UTMetadataRejectExtensionMessage.cc
  385. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  386. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  387. get high enough in that mode.
  388. * src/ActivePeerConnectionCommand.cc
  389. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  390. Added BitTorrent magnet link support to ProtocolDetector.
  391. * src/ProtocolDetector.cc
  392. * src/ProtocolDetector.h
  393. * test/ProtocolDetectorTest.cc
  394. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  395. Don't inject validator into BtMessage in metadataGetMode because
  396. most of the checks depends on the total length of download but it
  397. is unknown. Delegate metadataGetMode to BtMessage.
  398. * src/DefaultBtMessageFactory.cc
  399. * src/DefaultBtMessageFactory.h
  400. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  401. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  402. * src/DefaultPieceStorage.h
  403. * src/PieceStorage.h
  404. * src/UnknownLengthPieceStorage.h
  405. * test/MockPieceStorage.h
  406. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  407. Added markTotalLengthIsKnown().
  408. * src/DownloadContext.h
  409. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  410. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  411. missing. If metadata is missing, always use DHT when it is ready.
  412. * src/BtSetup.cc
  413. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  414. Added parseMagnetLink(). Hex encoded info hash is supported.
  415. Base32 encoded info hash is not supported yet.
  416. * src/bittorrent_helper.cc
  417. * src/bittorrent_helper.h
  418. * test/BittorrentHelperTest.cc
  419. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  420. Added FromHex()
  421. * src/util.cc
  422. * src/util.h
  423. * test/UtilTest.cc
  424. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  425. Added _metadataGetMode member variable. It toggles the action when
  426. messages are received: usually they almost do nothing if
  427. _metadataGetMode is true.
  428. * src/AbstractBtMessage.cc
  429. * src/AbstractBtMessage.h
  430. * src/BtAllowedFastMessage.cc
  431. * src/BtBitfieldMessage.cc
  432. * src/BtCancelMessage.cc
  433. * src/BtChokeMessage.cc
  434. * src/BtHaveAllMessage.cc
  435. * src/BtHaveMessage.cc
  436. * src/BtInterestedMessage.cc
  437. * src/BtNotInterestedMessage.cc
  438. * src/BtPieceMessage.cc
  439. * src/BtRejectMessage.cc
  440. * src/BtRequestMessage.cc
  441. * src/BtUnchokeMessage.cc
  442. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  443. Added bencode::decode overload functions. They have extra argument
  444. 'end', passed by reference. 'end' points to the beyond the last
  445. position of data used in decoding process.
  446. * src/bencode.cc
  447. * src/bencode.h
  448. * test/BencodeTest.cc
  449. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  450. Initial support of Extension for Peers to Send Metadata
  451. Files(BEP9). Currently aria2 only serves metadata and cannot get
  452. metadata from swarm.
  453. * src/BtConstants.h
  454. * src/DefaultBtInteractive.cc
  455. * src/DefaultExtensionMessageFactory.cc
  456. * src/DefaultExtensionMessageFactory.h
  457. * src/ExtensionMessage.h
  458. * src/ExtensionMessageRegistry.h
  459. * src/HandshakeExtensionMessage.cc
  460. * src/HandshakeExtensionMessage.h
  461. * src/Makefile.am
  462. * src/PeerConnection.h
  463. * src/PeerInteractionCommand.cc
  464. * src/UTMetadataDataExtensionMessage.cc
  465. * src/UTMetadataDataExtensionMessage.h
  466. * src/UTMetadataExtensionMessage.cc
  467. * src/UTMetadataExtensionMessage.h
  468. * src/UTMetadataRejectExtensionMessage.cc
  469. * src/UTMetadataRejectExtensionMessage.h
  470. * src/UTMetadataRequestExtensionMessage.cc
  471. * src/UTMetadataRequestExtensionMessage.h
  472. * src/bittorrent_helper.cc
  473. * src/bittorrent_helper.h
  474. * test/BittorrentHelperTest.cc
  475. * test/DefaultExtensionMessageFactoryTest.cc
  476. * test/HandshakeExtensionMessageTest.cc
  477. * test/Makefile.am
  478. * test/UTMetadataDataExtensionMessageTest.cc
  479. * test/UTMetadataRejectExtensionMessageTest.cc
  480. * test/UTMetadataRequestExtensionMessageTest.cc
  481. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  482. Cancel segment in prepareForRetry() because there is a chance that
  483. the command has segments.
  484. * src/CreateRequestCommand.cc
  485. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  486. Fixed the bug that slow server is not knocked down in favor of
  487. faster one.
  488. * src/AbstractCommand.cc
  489. * src/DefaultPieceStorage.cc
  490. * src/DefaultPieceStorage.h
  491. * src/PieceStorage.h
  492. * src/UnknownLengthPieceStorage.cc
  493. * src/UnknownLengthPieceStorage.h
  494. * test/MockPieceStorage.h
  495. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  496. Fixed the bug that Request object is not added to
  497. _inFlightRequests in findFasterRequest().
  498. * src/FileEntry.cc
  499. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  500. Changed the strategry of how to increase the number of outstanding
  501. requests. Now the number is doubled if there are no outstanding
  502. requests after receiving messages.
  503. * src/BtConstants.h
  504. * src/DefaultBtInteractive.cc
  505. * src/DefaultBtInteractive.h
  506. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  507. Check socket for reading if there are outstanding requests.
  508. * src/PeerInteractionCommand.cc
  509. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  510. Moved frequently called methods to header file so they get
  511. inlined.
  512. * src/RequestSlot.cc
  513. * src/RequestSlot.h
  514. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  515. Copied in_addr instead of just casting from char* which might
  516. violate strict aliasing rules.
  517. * src/AsyncNameResolver.cc
  518. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  519. Use dynamic_pointer_cast
  520. * test/BtPieceMessageTest.cc
  521. * test/BtRequestMessageTest.cc
  522. * test/DefaultBtRequestFactoryTest.cc
  523. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  524. Added testSetUrl20()
  525. * test/RequestTest.cc
  526. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  527. Code cleanup
  528. * src/bittorrent_helper.cc
  529. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  530. Use C++ style cast
  531. * src/AsyncNameResolver.cc
  532. * src/Base64.h
  533. * src/BtBitfieldMessage.cc
  534. * src/BtHandshakeMessage.cc
  535. * src/DefaultBtMessageFactory.cc
  536. * src/DefaultBtProgressInfoFile.cc
  537. * src/EpollEventPoll.cc
  538. * src/ExpatMetalinkProcessor.cc
  539. * src/IteratableChecksumValidator.cc
  540. * src/IteratableChunkChecksumValidator.cc
  541. * src/MessageDigestHelper.cc
  542. * src/Platform.cc
  543. * src/RequestGroupMan.cc
  544. * src/SingleFileAllocationIterator.cc
  545. * src/Sqlite3MozCookieParser.cc
  546. * src/XML2SAXMetalinkProcessor.cc
  547. * src/Xml2XmlRpcRequestProcessor.cc
  548. * src/util.cc
  549. * src/util.h
  550. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  551. Fixed integer potential alignment problem.
  552. * src/bitfield.h
  553. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  554. Applied a patch from tizianomueller to fix sigbus errors on Linux
  555. sparc. I modified the patch to eliminate a cast to uint32_t* and
  556. include file ordering.
  557. * src/PeerListProcessor.h
  558. * src/bittorrent_helper.cc
  559. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  560. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  561. * src/Request.cc
  562. * src/util.cc
  563. * src/util.h
  564. * test/RequestTest.cc
  565. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  566. Rewritten util::uitos()
  567. * src/util.h
  568. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  569. Code cleanup
  570. * src/Request.cc
  571. * src/Request.h
  572. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  573. Rewritten Request::parseUrl()
  574. * src/Request.cc
  575. * test/RequestTest.cc
  576. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  577. Removed unused macro SAFE_CHARS
  578. * src/Request.cc
  579. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  580. Updated doc
  581. * src/DHTRoutingTableDeserializer.cc
  582. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  583. Release 1.6.3
  584. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  585. Removed unused function.
  586. * test/DHTPeerAnnounceStorageTest.cc
  587. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  588. Only decrement cols if cols > 0
  589. * src/ConsoleStatCalc.cc
  590. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  591. Updated Polish, Catalan, French, Italian, Russian and Japanese
  592. translations. Thanks to all translators.
  593. * po/ca.po
  594. * po/fr.po
  595. * po/it.po
  596. * po/ja.po
  597. * po/pl.po
  598. * po/ru.po
  599. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  600. Updated translation template
  601. * po
  602. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  603. Fixed compile error without ssl library.
  604. * src/util.cc
  605. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  606. Logged received nodes in get_peers reply message.
  607. * src/DHTAbstractNodeLookupTask.cc
  608. * src/DHTAbstractNodeLookupTask.h
  609. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  610. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  611. error occurred in DHTMessageDispatcherImpl::sendMessage().
  612. * src/DHTMessageDispatcherImpl.cc
  613. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  614. Don't reuse URI if Request pool is not empty.
  615. * src/CreateRequestCommand.cc
  616. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  617. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  618. receive get_peers request for torrent which the client is now
  619. downloading.
  620. * src/BtSetup.cc
  621. * src/DHTPeerAnnounceEntry.cc
  622. * src/DHTPeerAnnounceEntry.h
  623. * src/DHTPeerAnnounceStorage.cc
  624. * src/DHTPeerAnnounceStorage.h
  625. * src/RequestGroup.cc
  626. * test/DHTPeerAnnounceEntryTest.cc
  627. * test/DHTPeerAnnounceStorageTest.cc
  628. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  629. Fixed the bug that in Windows environment new blank line is
  630. inserted when console readout is updated.
  631. * src/ConsoleStatCalc.cc
  632. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  633. Throw exception if binding listening port is failed. Removed
  634. RequestGroupMan::getInitialCommand(). Use
  635. fillRequestGroupFromReserver() instead. Delete commands for
  636. RequestGroup which has errors when it is being added.
  637. * src/BtSetup.cc
  638. * src/DownloadEngine.cc
  639. * src/DownloadEngine.h
  640. * src/DownloadEngineFactory.cc
  641. * src/MultiUrlRequestInfo.cc
  642. * src/RequestGroupMan.cc
  643. * src/RequestGroupMan.h
  644. * test/RequestGroupManTest.cc
  645. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  646. Fixed the bug that when downloading more than one torrent,
  647. listening port is not reported properly to tracker for 2nd or
  648. later torrents.
  649. * src/BtSetup.cc
  650. * src/PeerListenCommand.cc
  651. * src/PeerListenCommand.h
  652. * src/RequestGroup.cc
  653. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  654. Bump up version number to 1.6.3
  655. * configure.ac
  656. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  657. Removed Util.cc from POTFILES.in
  658. * po/POTFILES.in
  659. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  660. Updated man page for previous change.
  661. * doc/aria2c.1.txt
  662. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  663. If user name is embedded but password is missing in URI, first
  664. resolve password using .netrc. If password is found in .netrc,
  665. then use it as password. If not, use the password specified in
  666. --ftp-passwd.
  667. * src/AuthConfigFactory.cc
  668. * src/Request.cc
  669. * src/Request.h
  670. * test/AuthConfigFactoryTest.cc
  671. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  672. Fixed typo
  673. * doc/aria2c.1.txt
  674. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  675. Fixed typo
  676. * src/usage_text.h
  677. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  678. Added missing bitfield.cc
  679. * src/bitfield.cc
  680. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  681. Renamed Util.{cc,h} as util.{cc,h}
  682. * src/Util.cc
  683. * src/Util.h
  684. * src/util.cc
  685. * src/util.h
  686. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  687. Moved static functions in Util class to namespace util.
  688. * src
  689. * test
  690. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  691. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  692. Moved generateRandomKey to bittorrent_helper.cc.
  693. * src/DHTBucket.cc
  694. * src/DHTGetPeersMessage.cc
  695. * src/DHTGetPeersReplyMessage.cc
  696. * src/DHTMessage.cc
  697. * src/DHTNode.cc
  698. * src/DHTTokenTracker.cc
  699. * src/DHTUtil.cc: Removed.
  700. * src/DHTUtil.h: Removed.
  701. * src/Makefile.am
  702. * src/Util.cc
  703. * src/Util.h
  704. * src/bitfield.h
  705. * src/bittorrent_helper.cc
  706. * src/bittorrent_helper.h
  707. * test/ARC4Test.cc
  708. * test/BNodeTest.cc
  709. * test/DHTAnnouncePeerMessageTest.cc
  710. * test/DHTAnnouncePeerReplyMessageTest.cc
  711. * test/DHTFindNodeMessageTest.cc
  712. * test/DHTFindNodeReplyMessageTest.cc
  713. * test/DHTGetPeersMessageTest.cc
  714. * test/DHTGetPeersReplyMessageTest.cc
  715. * test/DHTPingMessageTest.cc
  716. * test/DHTPingReplyMessageTest.cc
  717. * test/DHTTokenTrackerTest.cc
  718. * test/DHTUtilTest.cc: Removed.
  719. * test/Makefile.am
  720. * test/UtilTest.cc
  721. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  722. Removed the call to trim() because trim() is called for each
  723. element in split().
  724. * src/CookieParser.cc
  725. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  726. Replaced Util::slice() with split()
  727. * src/AbstractCommand.cc
  728. * src/CookieParser.cc
  729. * src/File.cc
  730. * src/HttpHeaderProcessor.cc
  731. * src/HttpRequest.cc
  732. * src/Metalink2RequestGroup.cc
  733. * src/MetalinkParserController.cc
  734. * src/Netrc.cc
  735. * src/NsCookieParser.cc
  736. * src/ParameterizedStringParser.cc
  737. * src/ServerStatMan.cc
  738. * src/UriListParser.cc
  739. * src/Util.cc
  740. * src/Util.h
  741. * src/bittorrent_helper.cc
  742. * test/UtilTest.cc
  743. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  744. Use request->getDir() instead of "/" for embedded user/pass in
  745. URI.
  746. * src/AuthConfigFactory.cc
  747. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  748. Fixed wrong insertion point for BasicCred.
  749. * src/AuthConfigFactory.cc
  750. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  751. Allowed non-regular file in LocalFilePathOptionHandler
  752. * src/OptionHandlerImpl.h
  753. * src/message.h
  754. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  755. Fixed the bug that Netrc::parse() cannot recognize comment line.
  756. * src/Netrc.cc
  757. * src/Util.h
  758. * test/NetrcTest.cc
  759. * test/sample.netrc
  760. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  761. Fixed typo
  762. * src/BtDependency.cc
  763. * src/BtRejectMessage.cc
  764. * src/FtpConnection.cc
  765. * src/HttpHeaderProcessor.h
  766. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  767. Fixed lintian report in man page
  768. * doc/aria2c.1.txt
  769. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  770. Release 1.6.2
  771. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  772. Updated Ukrainian translation. Thanks to all translators.
  773. * po/uk.po
  774. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  775. Updated translation template
  776. * po
  777. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  778. Bump up version number to 1.6.2
  779. * configure.ac
  780. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  781. Updated licence message in -v output.
  782. * src/version_usage.cc
  783. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  784. Replaced aria2 with aria2c in help message.
  785. * src/version_usage.cc
  786. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  787. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  788. * src/version_usage.cc
  789. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  790. Quoted localedir
  791. * src/Makefile.am
  792. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  793. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  794. utime. Check header for utime.h.
  795. * configure.ac
  796. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  797. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  798. * configure.ac
  799. * src/daemon.cc
  800. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  801. Don't set localedir manually. Leave it to autoconf.
  802. * configure.ac
  803. * src/Makefile.am
  804. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  805. Added --install to ACLOCAL_AMFLAGS.
  806. Removed m4 from SUBDIRS.
  807. Updated automake 1.11 and autoconf 2.64.
  808. Replaced some obsolute macros with new one.
  809. * Makefile.am
  810. * configure.ac
  811. * m4/aria2_arg.m4
  812. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  813. Removed Makefile.am in m4 directory.
  814. * configure.ac
  815. * m4/ChangeLog
  816. * m4/Makefile.am
  817. * m4/Makefile.in
  818. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  819. Removed unused m4 macros.
  820. * m4/intldir.m4
  821. * m4/inttypes.m4
  822. * m4/isc-posix.m4
  823. * m4/libgnutls-extra.m4
  824. * m4/ulonglong.m4
  825. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  826. Fixed the bug that causes segmentation fault if
  827. req->getCurrentUrl() contains printf formatting characters such as
  828. %d. The statement that causes this bug is useless and removed.
  829. * src/AbstractCommand.cc
  830. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  831. * Release 1.6.1
  832. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  833. Updated Simplified Chinese translation. Thanks to translators.
  834. * po/zh_CN.po
  835. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  836. Updated translation template
  837. * po
  838. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  839. Bump up version number to 1.6.1
  840. * configure.ac
  841. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  842. Changed interval from 120 to 60 for dropping inactive peer.
  843. * src/DefaultBtInteractive.cc
  844. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  845. Updated man page for --user-agent and --peer-id-prefix option.
  846. * doc/aria2c.1.txt
  847. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  848. Code clean up
  849. * src/BtPostDownloadHandler.cc
  850. * src/ContentTypeRequestGroupCriteria.cc
  851. * src/ContentTypeRequestGroupCriteria.h
  852. * src/DownloadHandlerConstants.cc
  853. * src/DownloadHandlerConstants.h
  854. * src/DownloadHandlerFactory.cc
  855. * src/MetalinkPostDownloadHandler.cc
  856. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  857. Don't save control file when aria2 exists while checking piece
  858. hash(behavior of -V option). If control file doesn't exist when
  859. aria2 launched, the completed length in saved control file will be
  860. 0 byte and this confuses user. disableSaveControlFile() is called
  861. in RequestGroup::processCheckIntegrityEntry().
  862. enableSaveControlFile() will be called after hash checking is
  863. done. See CheckIntegrityCommand.
  864. * src/CheckIntegrityCommand.cc
  865. * src/RequestGroup.cc
  866. * src/RequestGroup.h
  867. * src/RequestGroupMan.cc
  868. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  869. Included version number in Peer ID and client version. Peer ID
  870. now starts with "aria2/VERSION-", where VERSION is
  871. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  872. * src/DefaultBtInteractive.cc
  873. * src/OptionHandlerFactory.cc
  874. * src/bittorrent_helper.cc
  875. * src/bittorrent_helper.h
  876. * src/main.cc
  877. * src/usage_text.h
  878. * test/BittorrentHelperTest.cc
  879. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  880. Fixed memory leak.
  881. * src/DownloadCommand.cc
  882. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  883. Removed server, port, user and passwd key from options before
  884. XMLRPC::Client.call since they are not options of aria2.
  885. * doc/xmlrpc/aria2mon
  886. * doc/xmlrpc/aria2rpc
  887. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  888. Included version number in user-agent string.
  889. * src/OptionHandlerFactory.cc
  890. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  891. Fixed the bug that the option values changed by XML-RPC
  892. method(changeOption and changeGlobalOption) are overwritten to the
  893. previous value by the next these request which doesn't contain
  894. that option value. Supporse max-download-limit is initially 0. You
  895. changed this value to 100K by changeOption. Then you issue
  896. changeOption request to change max-upload-limit to 50K. This
  897. second request doesn't contain xml-download-limit, so it is back
  898. to initial value, 0. Another improvement is that exception is
  899. thrown when changeOption and changeGlobalOption request contains
  900. option name which doesn't allowed in each request.
  901. * src/DownloadEngine.h
  902. * src/XmlRpcMethod.cc
  903. * src/XmlRpcMethod.h
  904. * src/XmlRpcMethodImpl.cc
  905. * src/download_helper.cc
  906. * src/download_helper.h
  907. * test/XmlRpcMethodTest.cc
  908. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  909. Added missing MetalinkParserStateImpl.{cc,h}
  910. * src/MetalinkParserStateImpl.cc
  911. * src/MetalinkParserStateImpl.h
  912. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  913. Put all MetalinkParserState subclasses into
  914. MetalinkParserStateImpl.cc. Use stack to track element structure.
  915. * src/FileMetalinkParserState.cc: Removed
  916. * src/FileMetalinkParserState.h: Removed
  917. * src/FilesMetalinkParserState.cc: Removed
  918. * src/FilesMetalinkParserState.h: Removed
  919. * src/FinMetalinkParserState.cc: Removed
  920. * src/FinMetalinkParserState.h: Removed
  921. * src/HashMetalinkParserState.cc: Removed
  922. * src/HashMetalinkParserState.h: Removed
  923. * src/InitialMetalinkParserState.cc: Removed
  924. * src/InitialMetalinkParserState.h: Removed
  925. * src/LanguageMetalinkParserState.cc: Removed
  926. * src/LanguageMetalinkParserState.h: Removed
  927. * src/Makefile.am
  928. * src/MetalinkMetalinkParserState.cc: Removed
  929. * src/MetalinkMetalinkParserState.h: Removed
  930. * src/MetalinkParserState.h
  931. * src/MetalinkParserStateMachine.cc
  932. * src/MetalinkParserStateMachine.h
  933. * src/OSMetalinkParserState.cc: Removed
  934. * src/OSMetalinkParserState.h: Removed
  935. * src/PieceHashMetalinkParserState.cc: Removed
  936. * src/PieceHashMetalinkParserState.h: Removed
  937. * src/PiecesMetalinkParserState.cc: Removed
  938. * src/PiecesMetalinkParserState.h: Removed
  939. * src/ResourcesMetalinkParserState.cc: Removed
  940. * src/ResourcesMetalinkParserState.h: Removed
  941. * src/SignatureMetalinkParserState.cc: Removed
  942. * src/SignatureMetalinkParserState.h: Removed
  943. * src/SizeMetalinkParserState.cc: Removed
  944. * src/SizeMetalinkParserState.h: Removed
  945. * src/SkipTagMetalinkParserState.cc: Removed
  946. * src/SkipTagMetalinkParserState.h: Removed
  947. * src/URLMetalinkParserState.cc: Removed
  948. * src/URLMetalinkParserState.h: Removed
  949. * src/VerificationMetalinkParserState.cc: Removed
  950. * src/VerificationMetalinkParserState.h: Removed
  951. * src/VersionMetalinkParserState.cc: Removed
  952. * src/VersionMetalinkParserState.h: Removed
  953. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  954. Move all functions in PeerMessageUtil to bittorrent_helper.
  955. * src/BtBitfieldMessage.cc
  956. * src/BtBitfieldMessageValidator.h
  957. * src/BtExtendedMessage.cc
  958. * src/BtHandshakeMessage.cc
  959. * src/BtHandshakeMessageValidator.h
  960. * src/BtPieceMessage.cc
  961. * src/BtPieceMessageValidator.h
  962. * src/BtPortMessage.cc
  963. * src/DHTFindNodeReplyMessage.cc
  964. * src/DHTGetPeersReplyMessage.cc
  965. * src/DHTMessageFactoryImpl.cc
  966. * src/DHTRoutingTableDeserializer.cc
  967. * src/DHTRoutingTableSerializer.cc
  968. * src/DHTTokenTracker.cc
  969. * src/DefaultBtMessageFactory.cc
  970. * src/IndexBtMessage.cc
  971. * src/IndexBtMessage.h
  972. * src/IndexBtMessageValidator.h
  973. * src/Makefile.am
  974. * src/PeerMessageUtil.cc: Removed.
  975. * src/PeerMessageUtil.h: Removed.
  976. * src/RangeBtMessage.cc
  977. * src/RangeBtMessage.h
  978. * src/RangeBtMessageValidator.h
  979. * src/UTPexExtensionMessage.cc
  980. * src/ZeroBtMessage.cc
  981. * src/ZeroBtMessage.h
  982. * src/bittorrent_helper.cc
  983. * src/bittorrent_helper.h
  984. * test/BittorrentHelperTest.cc
  985. * test/BtAllowedFastMessageTest.cc
  986. * test/BtBitfieldMessageTest.cc
  987. * test/BtCancelMessageTest.cc
  988. * test/BtChokeMessageTest.cc
  989. * test/BtExtendedMessageTest.cc
  990. * test/BtHandshakeMessageTest.cc
  991. * test/BtHaveAllMessageTest.cc
  992. * test/BtHaveMessageTest.cc
  993. * test/BtHaveNoneMessageTest.cc
  994. * test/BtInterestedMessageTest.cc
  995. * test/BtNotInterestedMessageTest.cc
  996. * test/BtPieceMessageTest.cc
  997. * test/BtPortMessageTest.cc
  998. * test/BtRejectMessageTest.cc
  999. * test/BtRequestMessageTest.cc
  1000. * test/BtSuggestPieceMessageTest.cc
  1001. * test/BtUnchokeMessageTest.cc
  1002. * test/DHTFindNodeReplyMessageTest.cc
  1003. * test/DHTGetPeersReplyMessageTest.cc
  1004. * test/DHTMessageFactoryImplTest.cc
  1005. * test/DHTRoutingTableDeserializerTest.cc
  1006. * test/DHTRoutingTableSerializerTest.cc
  1007. * test/DefaultBtMessageFactoryTest.cc
  1008. * test/DefaultExtensionMessageFactoryTest.cc
  1009. * test/Makefile.am
  1010. * test/PeerListProcessorTest.cc
  1011. * test/PeerMessageUtilTest.cc: Removed.
  1012. * test/UTPexExtensionMessageTest.cc
  1013. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1014. Limit the size of values list when sending get_peers reply.
  1015. * src/DHTGetPeersReplyMessage.cc
  1016. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1017. Updated banner
  1018. * doc/xmlrpc/aria2rpc
  1019. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1020. Added missing help message for remove command.
  1021. * doc/xmlrpc/aria2rpc
  1022. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1023. Generated configure and config.h.in
  1024. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  1025. Add check for fork(), which is missing on MinGW
  1026. * src/daemon.cc
  1027. * configure.ac
  1028. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1029. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  1030. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  1031. Util::httpGMT().
  1032. * src/Util.cc
  1033. * src/Util.h
  1034. * test/UtilTest.cc
  1035. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1036. * Release 1.6.0
  1037. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1038. Fixed a path to xmlrpc/README.txt
  1039. * doc/Makefile.am
  1040. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1041. Added XML-RPC in -v Configuration output.
  1042. * src/FeatureConfig.cc
  1043. * src/FeatureConfig.h
  1044. * test/FeatureConfigTest.cc
  1045. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1046. Updated Bulgarian, Russian, Slovak and Japanese
  1047. translations. Thanks to all translators.
  1048. * po/bg.po
  1049. * po/ja.po
  1050. * po/ru.po
  1051. * po/sk.po
  1052. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1053. Removed --retry-wait option from aria2rpc
  1054. * doc/xmlrpc/aria2rpc
  1055. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1056. Removed --retry-wait option from man page.
  1057. * doc/aria2c.1.txt
  1058. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1059. Removed --retry-wait option since the current architecture doesn't
  1060. allow sleep for particular URI.
  1061. * src/AbstractCommand.cc
  1062. * src/OptionHandlerFactory.cc
  1063. * src/download_helper.cc
  1064. * src/prefs.cc
  1065. * src/prefs.h
  1066. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1067. Removed Retry-After header support. Since the current architecture
  1068. doesn't allow sleep for particular URI.
  1069. * src/HttpSkipResponseCommand.cc
  1070. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1071. Updated the help message for --daemon option.
  1072. * doc/aria2c.1.txt
  1073. * src/usage_text.h
  1074. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1075. Added our own daemon() function for systems which desn't have
  1076. daemon(3).
  1077. * configure.ac
  1078. * src/Makefile.am
  1079. * src/daemon.cc
  1080. * src/daemon.h
  1081. * src/option_processing.cc
  1082. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1083. Simplified File::getCurrentDir()
  1084. * src/File.cc
  1085. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1086. Use exit() instead of _exit
  1087. * src/RequestGroupMan.cc
  1088. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1089. Replaced "CATEGORY" with "TAGS".
  1090. * src/usage_text.h
  1091. * doc/aria2c.1.txt
  1092. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1093. Updated the help message for --help option.
  1094. * src/usage_text.h
  1095. * doc/aria2c.1.txt
  1096. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1097. Updated man page for added help tags.
  1098. * doc/aria2c.1.txt
  1099. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1100. Added help category #file. Added #file tag to the options related
  1101. to downloaded file.
  1102. * src/OptionHandlerFactory.cc
  1103. * src/help_tags.h
  1104. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1105. Added help categories: #cookie and #hook. Added #https tag to
  1106. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  1107. * src/OptionHandlerFactory.cc
  1108. * src/help_tags.h
  1109. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1110. Made MSG_NOT_FILE translatable.
  1111. * src/message.h
  1112. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1113. Updated man page for --help option.
  1114. * doc/aria2c.1.txt
  1115. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1116. Updated doc.
  1117. * src/XmlRpcMethod.h
  1118. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1119. Help category now starts with "#" to distinguish a category from
  1120. keyword search. For example, "http" categroy is now "#http". You
  1121. can type "--help=#http" to get explanation of options related to
  1122. http. If '#' is omitted, then the argument is treated as a keyword
  1123. and aria2 searches options whose name includes the keyword and
  1124. print matched ones. For example, "--help=http" will show options
  1125. whose name includes "http".
  1126. * src/OptionHandlerFactory.cc
  1127. * src/help_tags.h
  1128. * src/usage_text.h
  1129. * src/version_usage.cc
  1130. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1131. Documented missing experimental tag and newly added xml-rpc tag in
  1132. man page.
  1133. * doc/aria2c.1.txt
  1134. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1135. Added xml-rpc help tag. Tagged xml-rpc related options with
  1136. xml-rpc tag.
  1137. * src/OptionHandlerFactory.cc
  1138. * src/help_tags.h
  1139. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1140. Updated message when a path is not a file. Updated common message
  1141. for wrong option.
  1142. * src/OptionHandlerException.cc
  1143. * src/message.h
  1144. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1145. Use File::isFile() instead of File::exists(). Updated message when
  1146. a path is not a file.
  1147. * src/OptionHandlerImpl.cc
  1148. * src/message.h
  1149. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1150. Fixed the bug that server performence profile is not updated when
  1151. aria2c was terminated by emergency shutdown.
  1152. * src/TrackerWatcherCommand.cc
  1153. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1154. Use LocalFilePathOptionHandler for -T and -M option.
  1155. Updated message of MSG_FILE_NOT_EXIST.
  1156. * src/OptionHandlerFactory.cc
  1157. * src/message.h
  1158. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1159. Added LocalFilePathOptionHandler which check whether the specified
  1160. file path does exist or not.
  1161. * src/OptionHandlerImpl.cc
  1162. * src/message.h
  1163. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1164. Updated wiki page URI.
  1165. * README
  1166. * doc/aria2c.1.txt
  1167. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1168. Added README.txt for xmlrpc directory.
  1169. * doc/Makefile.am
  1170. * doc/xmlrpc/README.txt
  1171. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1172. Bump up version number to 1.6.0.
  1173. * configure.ac
  1174. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1175. Added XML-RPC client scripts written in ruby.
  1176. * doc/Makefile.am
  1177. * doc/xmlrpc/aria2mon
  1178. * doc/xmlrpc/aria2rpc
  1179. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1180. Added support for IPv6 literal address in URI. Now aria2 can
  1181. handle URI such as http://[::1]/
  1182. * src/HttpRequest.cc
  1183. * src/HttpRequest.h
  1184. * src/Request.cc
  1185. * src/Request.h
  1186. * test/HttpRequestTest.cc
  1187. * test/OptionHandlerTest.cc
  1188. * test/RequestTest.cc
  1189. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1190. Fixed the bug that HTTP request header for XML-RPC request is not
  1191. parsed properly.
  1192. * src/HttpHeader.cc
  1193. * src/HttpHeaderProcessor.cc
  1194. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1195. Fixed the bug that XML-RPC authorization might be done before HTTP
  1196. request header is fully received.
  1197. * src/HttpServerCommand.cc
  1198. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1199. Documented --xml-rpc-listen-all option in man page.
  1200. * doc/aria2c.1.txt
  1201. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1202. Added --xml-rpc-listen-all option. If true is given to this
  1203. option, aria2 listens incoming XML-RPC requests on all network
  1204. interfaces. If false is given, listens only on local loopback
  1205. interface. The default value is false.
  1206. * src/HttpListenCommand.cc
  1207. * src/OptionHandlerFactory.cc
  1208. * src/SocketCore.cc
  1209. * src/SocketCore.h
  1210. * src/prefs.cc
  1211. * src/prefs.h
  1212. * src/usage_text.h
  1213. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1214. * Release 1.5.2
  1215. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1216. Updated Ukrainian and Russian translations. Thanks to all
  1217. translators.
  1218. * po/ru.po
  1219. * po/uk.po
  1220. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1221. Bump up version number to 1.5.2
  1222. * configure.ac
  1223. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1224. Get comment, comment.utf-8, created by and creation date from
  1225. .torrent file and print them in -S output.
  1226. * src/bittorrent_helper.cc
  1227. * src/bittorrent_helper.h
  1228. * test/BittorrentHelperTest.cc
  1229. * test/test.torrent
  1230. * test/utf8.torrent
  1231. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1232. Show exact file size along in -S option output.
  1233. * src/Util.h
  1234. * src/bittorrent_helper.cc
  1235. * test/UtilTest.cc
  1236. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1237. Avoided unnecessary memory allocation in
  1238. BitfieldMan::getCompletedLength().
  1239. * src/BitfieldMan.cc
  1240. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1241. Fixed the bug that download fails if
  1242. SocketCore::establishConnection() throws exception and aria2
  1243. doesn't try another address.
  1244. * src/AbstractCommand.cc
  1245. * src/InitiateConnectionCommand.cc
  1246. * src/message.h
  1247. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1248. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  1249. detected properly.
  1250. * m4/sqlite3.m4
  1251. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1252. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  1253. because it causes compile error if PARAMS macro is defined.
  1254. * src/XmlRpcElements.cc
  1255. * src/XmlRpcElements.h
  1256. * src/XmlRpcRequestParserStateImpl.cc
  1257. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1258. * Release 1.5.1
  1259. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1260. Bump up version number to 1.5.1
  1261. * configure.ac
  1262. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1263. Fixed compile error without BitTorrent support
  1264. * src/DefaultBtProgressInfoFile.cc
  1265. * src/DownloadEngine.cc
  1266. * src/DownloadEngine.h
  1267. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1268. Added missing '=' in Download Results
  1269. * src/RequestGroupMan.cc
  1270. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1271. Fixed compiler warning
  1272. * src/DefaultBtProgressInfoFile.cc
  1273. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1274. Fixed compiler warning on 32bit systems.
  1275. * src/DownloadCommand.cc
  1276. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1277. Call flush from ServerStatMan::save()
  1278. * src/ServerStatMan.cc
  1279. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1280. Check stream status after file is opened.
  1281. * src/CookieStorage.cc
  1282. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1283. Rewritten Signature::save()
  1284. * src/Signature.cc
  1285. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1286. Rewritten RequestGroupMan::saveServerStat()
  1287. * src/RequestGroupMan.cc
  1288. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1289. Rewritten stream error handling
  1290. * src/DHTAutoSaveCommand.cc
  1291. * src/DHTRoutingTableDeserializer.cc
  1292. * src/DHTRoutingTableSerializer.cc
  1293. * src/DHTSetup.cc
  1294. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1295. Check stream status after file is opened.
  1296. * src/DefaultBtProgressInfoFile.cc
  1297. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1298. Rewritten stream error handling
  1299. * src/DefaultBtProgressInfoFile.cc
  1300. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1301. Make sure that stream is closed before renaming file. Unit test
  1302. fails on mingw32 in the previous implementation.
  1303. * src/CookieStorage.cc
  1304. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1305. Fixed the unit test error without sqlite3
  1306. * test/CookieStorageTest.cc
  1307. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1308. Fixed the undefined reference error
  1309. * test/HttpResponseTest.cc
  1310. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1311. * Release 1.5.0
  1312. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1313. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  1314. Ukrainian translations. Thanks to all translators.
  1315. * po/ru.po
  1316. * po/it.po
  1317. * po/da.po
  1318. * po/bg.po
  1319. * po/ja.po
  1320. * po/uk.po
  1321. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1322. Added missing src/Logger.cc
  1323. * src/Logger.cc
  1324. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1325. Rewritten Logger to avoiding constly virtual call.
  1326. * src/LogFactory.cc
  1327. * src/LogFactory.h
  1328. * src/Logger.h
  1329. * src/Makefile.am
  1330. * src/Makefile.in
  1331. * src/NullLogger.h: Removed.
  1332. * src/SimpleLogger.cc
  1333. * src/SimpleLogger.h
  1334. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1335. Updated doc
  1336. * src/main.cc
  1337. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1338. Updated debug log message
  1339. * src/AbstractCommand.cc
  1340. * src/message.h
  1341. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1342. Avoid to create zombie process when commands specified in
  1343. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  1344. X and NetBSD.
  1345. * src/main.cc
  1346. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1347. Fixed typo
  1348. * src/usage_text.h
  1349. * doc/aria2c.1.txt
  1350. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1351. Documented 'errorCode' of tellStatus in man page.
  1352. * doc/aria2c.1.txt
  1353. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1354. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  1355. This key is only available for stopped/completed downloads and its
  1356. value is the error code defined in EXIT STATUS in man page.
  1357. * src/XmlRpcMethodImpl.cc
  1358. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1359. Fixed the bug that session download length is not updated when
  1360. PeerStat is not fastest one.
  1361. * src/SegmentMan.cc
  1362. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1363. Updated doc.
  1364. * doc/aria2c.1.txt
  1365. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1366. Updated doc.
  1367. * src/AbstractCommand.cc
  1368. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1369. Handle the case when DownloadContext has no FileEntry.
  1370. * src/XmlRpcMethodImpl.cc
  1371. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1372. Handle the situation where struct option.name is char *.
  1373. * configure.ac
  1374. * src/OptionParser.cc
  1375. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1376. Code cleanup
  1377. * src/AbstractCommand.cc
  1378. * src/DownloadCommand.cc
  1379. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1380. Use option of each download to create AuthConfig instead of global
  1381. option.
  1382. * src/AuthConfigFactory.cc
  1383. * src/AuthConfigFactory.h
  1384. * src/FtpNegotiationCommand.cc
  1385. * src/HttpRequest.cc
  1386. * src/HttpRequest.h
  1387. * src/HttpRequestCommand.cc
  1388. * src/HttpSkipResponseCommand.cc
  1389. * src/MultiUrlRequestInfo.cc
  1390. * test/AuthConfigFactoryTest.cc
  1391. * test/FtpConnectionTest.cc
  1392. * test/HttpRequestTest.cc
  1393. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1394. Don't call prepareForRetry(1) if all segments are ignored in
  1395. SegmentMan.
  1396. * src/AbstractCommand.cc
  1397. * src/BitfieldMan.cc
  1398. * src/BitfieldMan.h
  1399. * src/SegmentMan.cc
  1400. * src/SegmentMan.h
  1401. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1402. Removed FileEntry::getAssociatedUris()
  1403. * src/FileEntry.h
  1404. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1405. Updated doc: TODO1.5 -> TODO
  1406. * src/FileEntry.cc
  1407. * src/HttpResponseCommand.cc
  1408. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1409. Added assertion fileEntries.size() == 1 if BitTorrent is not
  1410. involved.
  1411. * src/RequestGroup.cc
  1412. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1413. Eliminated duplicated filterBitfield initialization code.
  1414. * src/BitfieldMan.cc
  1415. * src/BitfieldMan.h
  1416. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1417. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  1418. relatively naive approach, though). For DownloadFailureException,
  1419. we handle the case when req is null properly.
  1420. * src/AbstractCommand.cc
  1421. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1422. Added function returning suffix of control file to
  1423. DefaultBtProgressInfoFile.
  1424. * src/DefaultBtProgressInfoFile.cc
  1425. * src/DefaultBtProgressInfoFile.h
  1426. * src/RequestGroup.cc
  1427. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1428. Documented getVersion in man page.
  1429. * doc/aria2c.1.txt
  1430. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1431. Documented type of offset and num for tellWaiting xml-rpc method.
  1432. * doc/aria2c.1.txt
  1433. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1434. Implemented getVersion xml-rpc method. This method returns struct
  1435. which has 2 key-value pairs: "version" key is associated to the
  1436. version of aria2, such as "1.5.0". "enabledFeatures" key is
  1437. associated to the list of enabled features, such as "Async DNS",
  1438. "BitTorrent".
  1439. * src/FeatureConfig.h
  1440. * src/XmlRpcMethodFactory.cc
  1441. * src/XmlRpcMethodImpl.cc
  1442. * src/XmlRpcMethodImpl.h
  1443. * test/XmlRpcMethodTest.cc
  1444. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1445. Removed TLS1.1 protocol support when aria2 is built with gnutls
  1446. for compatibility issue.
  1447. * src/SocketCore.cc
  1448. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1449. Fixed compile error with openSSL
  1450. * src/bittorrent_helper.cc
  1451. * src/messageDigest.h
  1452. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1453. Removed bad code: setting certificate type priority to key
  1454. exchange priority.
  1455. * src/SocketCore.cc
  1456. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1457. Disconnect seeder if client is also in seed state.
  1458. * src/BtBitfieldMessage.cc
  1459. * src/BtHaveAllMessage.cc
  1460. * src/BtHaveMessage.cc
  1461. * src/message.h
  1462. * test/BtBitfieldMessageTest.cc
  1463. * test/BtHaveAllMessageTest.cc
  1464. * test/BtHaveMessageTest.cc
  1465. * test/MockPieceStorage.h
  1466. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1467. Keep CreateRequestCommand in queue when no segment is available so
  1468. that they can pick up pieces which slow BitTorrent peers are
  1469. downloading.
  1470. * src/AbstractCommand.cc
  1471. * src/CreateRequestCommand.cc
  1472. * src/CreateRequestCommand.h
  1473. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1474. --bt-stop-timeout now only checks download speed.
  1475. * src/BtStopDownloadCommand.cc
  1476. * src/BtStopDownloadCommand.h
  1477. * src/BtSetup.cc
  1478. * src/usage_text.h
  1479. * doc/aria2c.1.txt
  1480. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1481. Fixed compile error regarding BUFSIZE.
  1482. * src/DownloadCommand.cc
  1483. * src/DownloadCommand.h
  1484. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1485. Documented tellWaiting xml-rpc method in man page.
  1486. * doc/aria2c.1.txt
  1487. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1488. Bump up version number to 1.5.0
  1489. * configure.ac
  1490. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1491. Removed resolved TODO1.5
  1492. * src/AbstractCommand.cc
  1493. * src/DownloadCommand.cc
  1494. * src/RequestGroup.cc
  1495. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1496. Release pooled and in-flight Request objectsand URIResult objects
  1497. in FileEntry after download completed.
  1498. * src/DownloadContext.cc
  1499. * src/DownloadContext.h
  1500. * src/FileEntry.cc
  1501. * src/FileEntry.h
  1502. * src/RequestGroup.cc
  1503. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1504. Set manual and source attribute in aria2c.1.txt
  1505. * doc/aria2c.1.txt
  1506. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1507. Documented that the default value of --use-head is 'false' in man
  1508. page.
  1509. * doc/aria2c.1.txt
  1510. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1511. Added bt-stop-timeout option to -i list.
  1512. * doc/aria2c.1.txt
  1513. * src/download_helper.cc
  1514. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1515. Fixed typo
  1516. * doc/aria2c.1.txt
  1517. * src/usage_text.h
  1518. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1519. Removed peer-id-prefix option from -i list.
  1520. * doc/aria2c.1.txt
  1521. * src/download_helper.cc
  1522. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1523. Fixed typo
  1524. * doc/aria2c.1.txt
  1525. * src/usage_text.h
  1526. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1527. Documented --bt-stop-timeout option in man page.
  1528. * doc/aria2c.1.txt
  1529. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1530. Updated README regarding multi-file torrent web-seeding.
  1531. * doc/README.txt
  1532. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1533. Updated man page regarding multi-file torrent web-seeding.
  1534. * doc/aria2c.1.txt
  1535. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1536. Updated doc
  1537. * src/version_usage.cc
  1538. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1539. Winsock select() doesn't work if no socket is in FD_SET. To
  1540. overcome this problem, a dummy socket is added to FD_SET and it is
  1541. given to select().
  1542. * src/SelectEventPoll.cc
  1543. * src/SelectEventPoll.h
  1544. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1545. Disabled --use-head option by default because --use-head=true
  1546. causes problems on some web sites.
  1547. * src/OptionHandlerFactory.cc
  1548. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1549. Print URL List in -S option for torrent.
  1550. * src/bittorrent_helper.cc
  1551. * src/bittorrent_helper.h
  1552. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1553. Allocate buffer in ctor of DownloadCommand.
  1554. * src/DownloadCommand.cc
  1555. * src/DownloadCommand.h
  1556. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1557. Removed DiskAdaptor::onDownloadComplete()
  1558. * src/DirectDiskAdaptor.cc
  1559. * src/DirectDiskAdaptor.h
  1560. * src/DiskAdaptor.h
  1561. * src/MultiDiskAdaptor.cc
  1562. * src/MultiDiskAdaptor.h
  1563. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1564. Committed missing BtStopDownloadCommand.{cc,h}
  1565. * src/BtStopDownloadCommand.cc
  1566. * src/BtStopDownloadCommand.h
  1567. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1568. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  1569. download if the download speed is 0 and the number of seeder is 0
  1570. in consecutive SEC seconds. By default, this function is disabled.
  1571. * src/BtSetup.cc
  1572. * src/Makefile.am
  1573. * src/OptionHandlerFactory.cc
  1574. * src/prefs.cc
  1575. * src/prefs.h
  1576. * src/usage_text.h
  1577. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1578. Removed the call to DiskAdaptor::onDownloadComplete() from
  1579. BtCheckIntegrityEntry and DefaultPieceStorage.
  1580. * src/BtCheckIntegrityEntry.cc
  1581. * src/DefaultPieceStorage.cc
  1582. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1583. Commented out throw statements when number of piece is 0 to
  1584. download 0 length torrent.
  1585. * src/bittorrent_helper.cc
  1586. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1587. Call RequestGroup::createNextCommandWithAdj() from
  1588. BtFileAllocationEntry if at least one FileEntry has URI. The
  1589. static function hasAssociatedUri in RequestGroup.cc is renamed as
  1590. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  1591. * src/BtFileAllocationEntry.cc
  1592. * src/FileEntry.h
  1593. * src/RequestGroup.cc
  1594. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1595. Generate peer ID after SimpleRandomizer is initialized.
  1596. * src/main.cc
  1597. * src/option_processing.cc
  1598. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1599. Removed unused method argument.
  1600. * src/CreateRequestCommand.cc
  1601. * src/RequestGroup.cc
  1602. * src/RequestGroup.h
  1603. * src/RequestGroupMan.cc
  1604. * src/TrackerWatcherCommand.cc
  1605. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1606. Made URI reusing function work.
  1607. * src/CreateRequestCommand.cc
  1608. * src/FileEntry.cc
  1609. * src/FileEntry.h
  1610. * test/FileEntryTest.cc
  1611. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1612. Add formerly fastest PeerStat's sessionDownloadLength to new
  1613. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  1614. bytes in a session.
  1615. * src/PeerStat.cc
  1616. * src/SegmentMan.cc
  1617. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1618. If pipelining is enabled, we can always pool socket.
  1619. * src/HttpDownloadCommand.cc
  1620. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1621. In a single file download, file size becomes known just after
  1622. downloading, set total length to FileEntry object when download
  1623. completed.
  1624. * src/DownloadCommand.cc
  1625. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1626. Use std::vector::reserve() for fileEntries and pieceHashes in
  1627. bittorrent_helper
  1628. * src/bittorrent_helper.cc
  1629. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1630. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  1631. Removed hidden option PREF_RESET_URI.
  1632. * src/AbstractCommand.cc
  1633. * src/OptionHandlerFactory.cc
  1634. * src/prefs.cc
  1635. * src/prefs.h
  1636. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1637. Removed unused variable/function.
  1638. * src/PeerStat.h
  1639. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1640. Show first URL in Download Results if file path is not available.
  1641. * src/FileEntry.h
  1642. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1643. Throw exception if file path doesn't exist in FTP URL.
  1644. * src/InitiateConnectionCommandFactory.cc
  1645. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1646. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  1647. * src/BitfieldMan.cc
  1648. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1649. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  1650. of PeerStat in SegmentMan. peerStats is used for calculating
  1651. download speed. Therefore all active PeerStats should be in
  1652. there. Another one is _fastestPeerStats and it only contains
  1653. fastest PeerStat for each hostname/protocol pair. They are used
  1654. for updating ServerStat.
  1655. * src/DownloadCommand.cc
  1656. * src/Request.h
  1657. * src/RequestGroupMan.cc
  1658. * src/SegmentMan.cc
  1659. * src/SegmentMan.h
  1660. * test/SegmentManTest.cc
  1661. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1662. Try all available addresses returned by DNS until it gets
  1663. connected in HTTP(S)/FTP download
  1664. * src/AbstractCommand.cc
  1665. * src/AbstractCommand.h
  1666. * src/AbstractProxyRequestCommand.cc
  1667. * src/AbstractProxyRequestCommand.h
  1668. * src/DNSCache.h
  1669. * src/DownloadEngine.cc
  1670. * src/DownloadEngine.h
  1671. * src/FtpInitiateConnectionCommand.cc
  1672. * src/FtpInitiateConnectionCommand.h
  1673. * src/FtpNegotiationCommand.cc
  1674. * src/FtpNegotiationCommand.h
  1675. * src/HttpInitiateConnectionCommand.cc
  1676. * src/HttpInitiateConnectionCommand.h
  1677. * src/HttpRequestCommand.cc
  1678. * src/HttpRequestCommand.h
  1679. * src/InitiateConnectionCommand.cc
  1680. * src/InitiateConnectionCommand.h
  1681. * test/DNSCacheTest.cc
  1682. * test/Makefile.am
  1683. * test/SimpleDNSCacheTest.cc
  1684. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1685. Updated doc
  1686. * src/download_helper.cc
  1687. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1688. Refactored fieldMan ctor.
  1689. * src/BitfieldMan.cc
  1690. * src/BitfieldMan.h
  1691. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1692. Don't print "No files to download." message if -S is given.
  1693. * src/main.cc
  1694. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1695. Set referer and method to newly created Request object.
  1696. * src/CreateRequestCommand.cc
  1697. * src/FileEntry.cc
  1698. * src/FileEntry.h
  1699. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1700. Removed ctor of AbstractCommand which doesn't take FileEntry.
  1701. * src/AbstractCommand.cc
  1702. * src/AbstractCommand.h
  1703. * src/CreateRequestCommand.cc
  1704. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1705. Get proxy download working
  1706. * src/AbstractProxyRequestCommand.cc
  1707. * src/AbstractProxyRequestCommand.h
  1708. * src/AbstractProxyResponseCommand.cc
  1709. * src/AbstractProxyResponseCommand.h
  1710. * src/FtpInitiateConnectionCommand.cc
  1711. * src/FtpTunnelRequestCommand.cc
  1712. * src/FtpTunnelRequestCommand.h
  1713. * src/FtpTunnelResponseCommand.cc
  1714. * src/FtpTunnelResponseCommand.h
  1715. * src/HttpInitiateConnectionCommand.cc
  1716. * src/HttpProxyRequestCommand.cc
  1717. * src/HttpProxyRequestCommand.h
  1718. * src/HttpProxyResponseCommand.cc
  1719. * src/HttpProxyResponseCommand.h
  1720. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1721. Use SegmentMan::getSegment(cuid) for single file download.
  1722. * src/AbstractCommand.cc
  1723. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1724. Fixed bufSize calculation
  1725. * src/DownloadCommand.cc
  1726. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1727. Don't append "/" if base URI ends with "/".
  1728. * src/bittorrent_helper.cc
  1729. * test/url-list-multiFile.torrent
  1730. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1731. HTTP pipelining is now working. Fixed Segmention fault in
  1732. BitfieldMan's copy ctor.
  1733. * src/AbstractCommand.cc
  1734. * src/BitfieldMan.cc
  1735. * src/BitfieldMan.h
  1736. * src/DownloadCommand.cc
  1737. * src/HttpDownloadCommand.cc
  1738. * src/HttpRequest.cc
  1739. * src/SegmentMan.cc
  1740. * src/SegmentMan.h
  1741. * test/BitfieldManTest.cc
  1742. * test/SegmentManTest.cc
  1743. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1744. Removed ServerHost. Same functionality is implemented using
  1745. FileEntry's in-flight Request objects.
  1746. * src/AbstractCommand.cc
  1747. * src/BtDependency.cc
  1748. * src/CreateRequestCommand.cc
  1749. * src/FileEntry.cc
  1750. * src/FileEntry.h
  1751. * src/FtpNegotiationCommand.cc
  1752. * src/HttpResponseCommand.cc
  1753. * src/Makefile.am
  1754. * src/Metalink2RequestGroup.cc
  1755. * src/RequestGroup.cc
  1756. * src/RequestGroup.h
  1757. * src/ServerHost.cc: Removed
  1758. * src/ServerHost.h: Removed
  1759. * test/BtDependencyTest.cc
  1760. * test/FileEntryTest.cc
  1761. * test/RequestGroupTest.cc
  1762. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1763. Rewritten PeerStat handling. In the previous implementation,
  1764. faster command tries to find slower command. In this new
  1765. implementation, slower command tries to find faster command.
  1766. PeerStat is now created in each HTTP/FTP request to get download
  1767. rate correctly. If the download range is small, the download rate
  1768. tends to small and this will occur at the later stage of download.
  1769. * src/AbstractCommand.cc
  1770. * src/DownloadCommand.cc
  1771. * src/FileEntry.cc
  1772. * src/FileEntry.h
  1773. * src/Request.cc
  1774. * src/Request.h
  1775. * src/RequestGroup.h
  1776. * src/RequestGroupMan.cc
  1777. * src/SegmentMan.cc
  1778. * src/SegmentMan.h
  1779. * test/SegmentManTest.cc
  1780. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1781. Removed _uris from RequestGroup. All functions that refer to _uris
  1782. were moved to FileEntry. Exit status code are now defined in
  1783. DownloadResultCode.h.
  1784. * src/AbstractCommand.cc
  1785. * src/AdaptiveURISelector.cc
  1786. * src/AdaptiveURISelector.h
  1787. * src/AutoSaveCommand.cc
  1788. * src/BtPostDownloadHandler.cc
  1789. * src/CheckIntegrityDispatcherCommand.cc
  1790. * src/CookieStorage.cc
  1791. * src/DHTAutoSaveCommand.cc
  1792. * src/DHTBucketRefreshCommand.cc
  1793. * src/DHTEntryPointNameResolveCommand.cc
  1794. * src/DHTInteractionCommand.cc
  1795. * src/DHTPeerAnnounceCommand.cc
  1796. * src/DHTTokenUpdateCommand.cc
  1797. * src/DlAbortEx.h
  1798. * src/DlRetryEx.h
  1799. * src/DownloadCommand.cc
  1800. * src/DownloadContext.h
  1801. * src/DownloadFailureException.h
  1802. * src/DownloadResult.h
  1803. * src/DownloadResultCode.h
  1804. * src/FeedbackURISelector.cc
  1805. * src/FeedbackURISelector.h
  1806. * src/FileEntry.cc
  1807. * src/FileEntry.h
  1808. * src/FtpNegotiationCommand.cc
  1809. * src/HttpListenCommand.cc
  1810. * src/HttpResponseCommand.cc
  1811. * src/HttpServerResponseCommand.cc
  1812. * src/HttpSkipResponseCommand.cc
  1813. * src/InOrderURISelector.cc
  1814. * src/InOrderURISelector.h
  1815. * src/Makefile.am
  1816. * src/Makefile.in
  1817. * src/Metalink2RequestGroup.cc
  1818. * src/MultiUrlRequestInfo.cc
  1819. * src/MultiUrlRequestInfo.h
  1820. * src/OptionHandlerFactory.cc
  1821. * src/PeerListenCommand.cc
  1822. * src/RecoverableException.h
  1823. * src/RequestGroup.cc
  1824. * src/RequestGroup.h
  1825. * src/RequestGroupMan.cc
  1826. * src/RequestGroupMan.h
  1827. * src/TimedHaltCommand.cc
  1828. * src/TrackerWatcherCommand.cc
  1829. * src/URIResult.cc
  1830. * src/URIResult.h
  1831. * src/URISelector.h
  1832. * src/XmlRpcMethodImpl.cc
  1833. * src/bittorrent_helper.cc
  1834. * src/bittorrent_helper.h
  1835. * src/download_helper.cc
  1836. * src/main.cc
  1837. * src/option_processing.cc
  1838. * test/BtDependencyTest.cc
  1839. * test/BtPostDownloadHandlerTest.cc
  1840. * test/CookieStorageTest.cc
  1841. * test/DefaultBtMessageDispatcherTest.cc
  1842. * test/DownloadHandlerFactoryTest.cc
  1843. * test/DownloadHelperTest.cc
  1844. * test/FeedbackURISelectorTest.cc
  1845. * test/FileEntryTest.cc
  1846. * test/InOrderURISelectorTest.cc
  1847. * test/Metalink2RequestGroupTest.cc
  1848. * test/MetalinkPostDownloadHandlerTest.cc
  1849. * test/RequestGroupManTest.cc
  1850. * test/RequestGroupTest.cc
  1851. * test/XmlRpcMethodTest.cc
  1852. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1853. Removed MockBtContext.h
  1854. * test/Makefile.am
  1855. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1856. Removed _currentRequest from StreamCheckIntegrityEntry and
  1857. StreamFileAllocationEntry.
  1858. * src/AbstractCommand.cc
  1859. * src/HttpResponseCommand.cc
  1860. * src/RequestGroup.cc
  1861. * src/StreamCheckIntegrityEntry.cc
  1862. * src/StreamCheckIntegrityEntry.h
  1863. * src/StreamFileAllocationEntry.cc
  1864. * src/StreamFileAllocationEntry.h
  1865. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1866. Rewritten DownloadContext and removed SingleFileDownloadContext
  1867. and BtContext and its derived classes. BitTorrent specific
  1868. attributes are now set by DownloadContext::setAttribute() with key
  1869. bittorrent::BITTORRENT.
  1870. * src/AbstractBtMessage.cc
  1871. * src/AbstractBtMessage.h
  1872. * src/AbstractCommand.cc
  1873. * src/AbstractCommand.h
  1874. * src/AbstractProxyRequestCommand.cc
  1875. * src/AbstractProxyResponseCommand.cc
  1876. * src/ActivePeerConnectionCommand.cc
  1877. * src/ActivePeerConnectionCommand.h
  1878. * src/AnnounceList.cc
  1879. * src/BtCheckIntegrityEntry.cc
  1880. * src/BtConstants.h
  1881. * src/BtContext.h: Removed
  1882. * src/BtDependency.cc
  1883. * src/BtExtendedMessage.cc
  1884. * src/BtPieceMessage.cc
  1885. * src/BtPieceMessage.h
  1886. * src/BtPostDownloadHandler.cc
  1887. * src/BtRegistry.cc
  1888. * src/BtRegistry.h
  1889. * src/BtSetup.cc
  1890. * src/CheckIntegrityCommand.cc
  1891. * src/CheckIntegrityEntry.cc
  1892. * src/ChecksumCheckIntegrityEntry.cc
  1893. * src/ConsoleStatCalc.cc
  1894. * src/ContentTypeRequestGroupCriteria.cc
  1895. * src/DHTGetPeersCommand.cc
  1896. * src/DHTGetPeersCommand.h
  1897. * src/DHTPeerLookupTask.cc
  1898. * src/DHTPeerLookupTask.h
  1899. * src/DHTTaskFactory.h
  1900. * src/DHTTaskFactoryImpl.cc
  1901. * src/DHTTaskFactoryImpl.h
  1902. * src/DefaultBtAnnounce.cc
  1903. * src/DefaultBtAnnounce.h
  1904. * src/DefaultBtContext.cc: Removed
  1905. * src/DefaultBtContext.h: Removed
  1906. * src/DefaultBtInteractive.cc
  1907. * src/DefaultBtInteractive.h
  1908. * src/DefaultBtMessageDispatcher.cc
  1909. * src/DefaultBtMessageDispatcher.h
  1910. * src/DefaultBtMessageFactory.cc
  1911. * src/DefaultBtMessageFactory.h
  1912. * src/DefaultBtMessageReceiver.cc
  1913. * src/DefaultBtMessageReceiver.h
  1914. * src/DefaultBtProgressInfoFile.cc
  1915. * src/DefaultBtRequestFactory.cc
  1916. * src/DefaultBtRequestFactory.h
  1917. * src/DefaultExtensionMessageFactory.cc
  1918. * src/DefaultExtensionMessageFactory.h
  1919. * src/DefaultPeerStorage.cc
  1920. * src/DefaultPeerStorage.h
  1921. * src/DefaultPieceStorage.cc
  1922. * src/DefaultSegmentManFactory.cc
  1923. * src/DiskAdaptor.cc
  1924. * src/DiskAdaptor.h
  1925. * src/DownloadContext.cc
  1926. * src/DownloadContext.h
  1927. * src/DownloadEngine.cc
  1928. * src/DownloadEngineFactory.cc
  1929. * src/DownloadHandler.cc
  1930. * src/DownloadResult.h
  1931. * src/FileAllocationCommand.cc
  1932. * src/FileAllocationDispatcherCommand.cc
  1933. * src/FileAllocationEntry.cc
  1934. * src/FileEntry.h
  1935. * src/FillRequestGroupCommand.cc
  1936. * src/FtpDownloadCommand.cc
  1937. * src/FtpFinishDownloadCommand.cc
  1938. * src/FtpInitiateConnectionCommand.cc
  1939. * src/FtpNegotiationCommand.cc
  1940. * src/FtpTunnelRequestCommand.cc
  1941. * src/FtpTunnelResponseCommand.cc
  1942. * src/HandshakeExtensionMessage.cc
  1943. * src/HandshakeExtensionMessage.h
  1944. * src/HaveEraseCommand.cc
  1945. * src/HttpDownloadCommand.cc
  1946. * src/HttpInitiateConnectionCommand.cc
  1947. * src/HttpProxyRequestCommand.cc
  1948. * src/HttpProxyResponseCommand.cc
  1949. * src/HttpRequest.cc
  1950. * src/HttpRequest.h
  1951. * src/HttpRequestCommand.cc
  1952. * src/HttpResponseCommand.cc
  1953. * src/HttpServerBodyCommand.cc
  1954. * src/HttpServerCommand.cc
  1955. * src/HttpSkipResponseCommand.cc
  1956. * src/InitiateConnectionCommandFactory.cc
  1957. * src/InitiatorMSEHandshakeCommand.cc
  1958. * src/InitiatorMSEHandshakeCommand.h
  1959. * src/IteratableChecksumValidator.cc
  1960. * src/IteratableChecksumValidator.h
  1961. * src/IteratableChunkChecksumValidator.cc
  1962. * src/MSEHandshake.cc
  1963. * src/MSEHandshake.h
  1964. * src/Makefile.am
  1965. * src/Makefile.in
  1966. * src/Metalink2RequestGroup.cc
  1967. * src/MetalinkPostDownloadHandler.cc
  1968. * src/MultiDiskAdaptor.cc
  1969. * src/MultiDiskAdaptor.h
  1970. * src/MultiFileAllocationIterator.cc
  1971. * src/MultiUrlRequestInfo.cc
  1972. * src/PeerChokeCommand.cc
  1973. * src/PeerChokeCommand.h
  1974. * src/PeerInitiateConnectionCommand.cc
  1975. * src/PeerInitiateConnectionCommand.h
  1976. * src/PeerInteractionCommand.cc
  1977. * src/PeerInteractionCommand.h
  1978. * src/PeerReceiveHandshakeCommand.cc
  1979. * src/PieceHashCheckIntegrityEntry.cc
  1980. * src/RealtimeCommand.cc
  1981. * src/ReceiverMSEHandshakeCommand.cc
  1982. * src/RequestGroup.cc
  1983. * src/RequestGroup.h
  1984. * src/RequestGroupEntry.cc
  1985. * src/RequestGroupMan.cc
  1986. * src/SeedCheckCommand.cc
  1987. * src/SeedCheckCommand.h
  1988. * src/SegmentMan.cc
  1989. * src/ShareRatioSeedCriteria.h
  1990. * src/SingleFileDownloadContext.cc: Removed
  1991. * src/SingleFileDownloadContext.h: Removed
  1992. * src/SleepCommand.cc
  1993. * src/StreamCheckIntegrityEntry.cc
  1994. * src/TrackerWatcherCommand.cc
  1995. * src/TrackerWatcherCommand.h
  1996. * src/UnknownLengthPieceStorage.cc
  1997. * src/Util.cc
  1998. * src/Util.h
  1999. * src/XmlRpcMethodImpl.cc
  2000. * src/bittorrent_helper.cc
  2001. * src/bittorrent_helper.h
  2002. * src/download_helper.cc
  2003. * src/main.cc
  2004. * src/option_processing.cc
  2005. * test/BitfieldManTest.cc
  2006. * test/BittorrentHelperTest.cc
  2007. * test/BtCancelMessageTest.cc
  2008. * test/BtChokeMessageTest.cc
  2009. * test/BtDependencyTest.cc
  2010. * test/BtPieceMessageTest.cc
  2011. * test/BtPostDownloadHandlerTest.cc
  2012. * test/BtRegistryTest.cc
  2013. * test/BtRejectMessageTest.cc
  2014. * test/BtRequestMessageTest.cc
  2015. * test/DHTPeerAnnounceStorageTest.cc
  2016. * test/DefaultBtAnnounceTest.cc
  2017. * test/DefaultBtContextTest.cc: Removed
  2018. * test/DefaultBtMessageDispatcherTest.cc
  2019. * test/DefaultBtMessageFactoryTest.cc
  2020. * test/DefaultBtProgressInfoFileTest.cc
  2021. * test/DefaultBtRequestFactoryTest.cc
  2022. * test/DefaultExtensionMessageFactoryTest.cc
  2023. * test/DefaultPeerStorageTest.cc
  2024. * test/DefaultPieceStorageTest.cc
  2025. * test/DirectDiskAdaptorTest.cc
  2026. * test/DownloadContextTest.cc
  2027. * test/DownloadHandlerFactoryTest.cc
  2028. * test/DownloadHelperTest.cc
  2029. * test/HandshakeExtensionMessageTest.cc
  2030. * test/HttpRequestTest.cc
  2031. * test/HttpResponseTest.cc
  2032. * test/IteratableChecksumValidatorTest.cc
  2033. * test/IteratableChunkChecksumValidatorTest.cc
  2034. * test/MSEHandshakeTest.cc
  2035. * test/Makefile.am
  2036. * test/Makefile.in
  2037. * test/Metalink2RequestGroupTest.cc
  2038. * test/MetalinkPostDownloadHandlerTest.cc
  2039. * test/MockBtContext.h: Removed
  2040. * test/MockDHTTaskFactory.h
  2041. * test/MockDownloadContext.h: Removed
  2042. * test/MockPieceStorage.h
  2043. * test/MultiDiskAdaptorTest.cc
  2044. * test/MultiFileAllocationIteratorTest.cc
  2045. * test/RequestGroupManTest.cc
  2046. * test/RequestGroupTest.cc
  2047. * test/SegmentManTest.cc
  2048. * test/ShareRatioSeedCriteriaTest.cc
  2049. * test/SingleFileDownloadContextTest.cc: Removed
  2050. * test/UtilTest.cc
  2051. * test/XmlRpcMethodTest.cc
  2052. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2053. Added experimental support of WEB-Seeding for multi-file torrent.
  2054. Due to fundamental changes in file handling in HTTP/FTP code, many
  2055. functions are not working: PeerStat, ServerHost, proxy..etc
  2056. * src/AbstractCommand.cc
  2057. * src/AbstractCommand.h
  2058. * src/BitfieldMan.cc
  2059. * src/BitfieldMan.h
  2060. * src/CreateRequestCommand.cc
  2061. * src/CreateRequestCommand.h
  2062. * src/DefaultPieceStorage.cc
  2063. * src/DefaultPieceStorage.h
  2064. * src/DownloadCommand.cc
  2065. * src/DownloadCommand.h
  2066. * src/DownloadContext.cc
  2067. * src/DownloadContext.h
  2068. * src/FileEntry.cc
  2069. * src/FileEntry.h
  2070. * src/FtpDownloadCommand.cc
  2071. * src/FtpDownloadCommand.h
  2072. * src/FtpFinishDownloadCommand.cc
  2073. * src/FtpFinishDownloadCommand.h
  2074. * src/FtpInitiateConnectionCommand.cc
  2075. * src/FtpInitiateConnectionCommand.h
  2076. * src/FtpNegotiationCommand.cc
  2077. * src/FtpNegotiationCommand.h
  2078. * src/FtpTunnelResponseCommand.cc
  2079. * src/HttpDownloadCommand.cc
  2080. * src/HttpDownloadCommand.h
  2081. * src/HttpInitiateConnectionCommand.cc
  2082. * src/HttpInitiateConnectionCommand.h
  2083. * src/HttpProxyResponseCommand.cc
  2084. * src/HttpRequest.cc
  2085. * src/HttpRequest.h
  2086. * src/HttpRequestCommand.cc
  2087. * src/HttpRequestCommand.h
  2088. * src/HttpResponseCommand.cc
  2089. * src/HttpResponseCommand.h
  2090. * src/HttpSkipResponseCommand.cc
  2091. * src/HttpSkipResponseCommand.h
  2092. * src/InitiateConnectionCommand.cc
  2093. * src/InitiateConnectionCommand.h
  2094. * src/InitiateConnectionCommandFactory.cc
  2095. * src/InitiateConnectionCommandFactory.h
  2096. * src/Makefile.am
  2097. * src/PieceStorage.h
  2098. * src/RequestGroup.cc
  2099. * src/RequestGroup.h
  2100. * src/RequestGroupMan.cc
  2101. * src/SegmentMan.cc
  2102. * src/SegmentMan.h
  2103. * src/SingleFileDownloadContext.h
  2104. * src/StreamFileAllocationEntry.cc
  2105. * src/TrackerWatcherCommand.cc
  2106. * src/UnknownLengthPieceStorage.cc
  2107. * src/UnknownLengthPieceStorage.h
  2108. * src/array_fun.h
  2109. * src/bitfield.h
  2110. * src/download_helper.cc
  2111. * test/DownloadContextTest.cc
  2112. * test/Makefile.am
  2113. * test/MockDownloadContext.h
  2114. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2115. Added tellWaiting XML-RPC method.
  2116. * src/SingleFileDownloadContext.cc
  2117. * src/XmlRpcMethodFactory.cc
  2118. * src/XmlRpcMethodImpl.cc
  2119. * src/XmlRpcMethodImpl.h
  2120. * test/XmlRpcMethodTest.cc
  2121. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2122. Updated CookieStorageTest
  2123. * test/CookieStorageTest.cc
  2124. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2125. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  2126. handle excepion inside these functions.
  2127. * src/LibgnutlsTLSContext.cc
  2128. * src/LibgnutlsTLSContext.h
  2129. * src/LibsslTLSContext.cc
  2130. * src/LibsslTLSContext.h
  2131. * src/MultiUrlRequestInfo.cc
  2132. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2133. Added comment
  2134. * src/RequestGroup.cc
  2135. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2136. In CookieStorage::load() and saveNsFormat(), handle exception
  2137. inside the functions. When saving Cookies, first write temporary
  2138. file and after successful writes, then renames it to final
  2139. destination.
  2140. * src/CookieStorage.cc
  2141. * src/CookieStorage.h
  2142. * src/MultiUrlRequestInfo.cc
  2143. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2144. The default value of --dir option is the absolute path to the
  2145. current directory. If getcwd() is failed, then it is ".", which is
  2146. the same value with old implementation. This change is necessary
  2147. because after daemon() call, the current working directory is
  2148. changed to /.
  2149. * src/File.cc
  2150. * src/File.h
  2151. * src/OptionHandlerFactory.cc
  2152. * src/option_processing.cc
  2153. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2154. Call daemon() with arguments(0,0), which means daemon() changes
  2155. current working directory to / and redirects stdin, stdout and
  2156. stderr to /dev/null.
  2157. * src/option_processing.cc
  2158. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2159. Small performance optimizations.
  2160. * src/RequestGroupMan.cc
  2161. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2162. Added _xmlRpc member variable to RequestGroupMan to reduce the
  2163. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  2164. * src/RequestGroupMan.cc
  2165. * src/RequestGroupMan.h
  2166. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2167. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  2168. setNoWiat(true) if newly created command calls
  2169. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  2170. * src/HttpListenCommand.cc
  2171. * src/HttpServerBodyCommand.cc
  2172. * src/HttpServerCommand.cc
  2173. * src/HttpServerResponseCommand.cc
  2174. * src/InitiateConnectionCommand.cc
  2175. * src/RequestGroup.cc
  2176. * src/StreamFileAllocationEntry.cc
  2177. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2178. Removed include vector
  2179. * src/BtRegistry.h
  2180. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2181. Rewritten BtRegistry
  2182. * src/BtRegistry.cc
  2183. * src/BtRegistry.h
  2184. * src/BtSetup.cc
  2185. * src/ConsoleStatCalc.cc
  2186. * src/PeerInteractionCommand.cc
  2187. * src/PeerReceiveHandshakeCommand.cc
  2188. * src/ReceiverMSEHandshakeCommand.cc
  2189. * src/RequestGroup.cc
  2190. * src/XmlRpcMethodImpl.cc
  2191. * test/BtRegistryTest.cc
  2192. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2193. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  2194. * src/DefaultBtProgressInfoFile.cc
  2195. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2196. Throw an exception if position is less than 0.
  2197. * src/XmlRpcMethodImpl.cc
  2198. * test/XmlRpcMethodTest.cc
  2199. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2200. Use writeFilePath() in ConsoleStatCalc.cc
  2201. * src/ConsoleStatCalc.cc
  2202. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2203. Receive the return value as const reference from
  2204. DownloadContext::getFileEntries().
  2205. * src/DefaultPieceStorage.cc
  2206. * src/RequestGroupMan.cc
  2207. * src/XmlRpcMethodImpl.cc
  2208. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2209. DownloadContext now has _fileEntries so that
  2210. DownloadContext::getFileEntries() can returns its const reference.
  2211. * src/DefaultBtContext.cc
  2212. * src/DefaultBtContext.h
  2213. * src/DownloadContext.cc
  2214. * src/DownloadContext.h
  2215. * src/SingleFileDownloadContext.cc
  2216. * src/SingleFileDownloadContext.h
  2217. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2218. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  2219. writeFilePath() function template from RequestGroupMan.cc to
  2220. FileEntry.h
  2221. * src/FileEntry.h
  2222. * src/RequestGroupMan.cc
  2223. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2224. Documented 'position' parameter is starting from 0 in man page.
  2225. * doc/aria2c.1.txt
  2226. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2227. Updated doc.
  2228. * src/MSEHandshake.cc
  2229. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2230. Removed _acceptFeatures and its accessor functions from
  2231. RequestGroup since they are not used practically.
  2232. * src/HttpRequestCommand.cc
  2233. * src/RequestGroup.cc
  2234. * src/RequestGroup.h
  2235. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2236. Removed member _maxTries from RequestGroup class to avoid
  2237. duplicate option value. Those classes who refer this variable
  2238. should use option value of PREF_MAX_TRIES directly.
  2239. * src/AbstractCommand.cc
  2240. * src/RequestGroup.cc
  2241. * src/RequestGroup.h
  2242. * src/TrackerWatcherCommand.cc
  2243. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2244. * Release 1.4.1
  2245. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2246. Fixed compiler warnings on netbsd
  2247. * src/DHTConnectionImpl.cc
  2248. * src/PeerListenCommand.cc
  2249. * src/PeerSessionResource.cc
  2250. * src/SegmentMan.cc
  2251. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2252. Updated Ukrainian translation. Thanks to all translators.
  2253. * po/uk.po
  2254. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2255. Bump up version number to 1.4.1.
  2256. * configure.ac
  2257. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2258. Added unit tests for strjoin, strconcat and strappend.
  2259. * test/a2functionalTest.cc
  2260. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2261. Rewritten strconcat and strappend using operator+ instead of
  2262. append().
  2263. * src/a2functional.h
  2264. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2265. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  2266. is enabled.
  2267. * src/Makefile.am
  2268. * test/Makefile.am
  2269. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2270. Added countSeeder() function which counts seeder in the given
  2271. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  2272. * src/ConsoleStatCalc.cc
  2273. * src/Peer.h
  2274. * src/XmlRpcMethodImpl.cc
  2275. * test/PeerTest.cc
  2276. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2277. Documented missing seeder in getPeers xml-rpc method.
  2278. Documented uploadLength and numSeeders.
  2279. * doc/aria2c.1.txt
  2280. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2281. Added uploadLength and numSeeders to the response of tellStatus
  2282. xml-rpc method. Assert that PeerStorage instance is not null
  2283. instead of checking if statement. It should be non-null in this
  2284. context.
  2285. * src/XmlRpcMethodImpl.cc
  2286. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2287. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  2288. * src/XmlRpcResponse.cc
  2289. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2290. Avoid intermediate object during string concatenation.
  2291. * src/HttpRequest.cc
  2292. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2293. Added strjoin function template. Use it in pathJoin()
  2294. * src/Util.h
  2295. * src/a2functional.h
  2296. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2297. Avoid intermediate object during string concatenation. Replaced
  2298. post-increment unary operator with pre-increment one in for loop.
  2299. * src/AdaptiveURISelector.cc
  2300. * src/AnnounceList.cc
  2301. * src/AuthConfig.h
  2302. * src/BtBitfieldMessage.cc
  2303. * src/BtExtendedMessage.cc
  2304. * src/BtHandshakeMessage.cc
  2305. * src/BtPieceMessage.cc
  2306. * src/BtPortMessage.cc
  2307. * src/Cookie.cc
  2308. * src/DHTAnnouncePeerMessage.cc
  2309. * src/DHTAutoSaveCommand.cc
  2310. * src/DHTGetPeersReplyMessage.cc
  2311. * src/DHTNode.cc
  2312. * src/DHTQueryMessage.cc
  2313. * src/DHTResponseMessage.cc
  2314. * src/DHTUnknownMessage.cc
  2315. * src/DefaultBtAnnounce.cc
  2316. * src/DefaultBtContext.cc
  2317. * src/DefaultBtInteractive.cc
  2318. * src/DefaultBtProgressInfoFile.cc
  2319. * src/DefaultPeerStorage.cc
  2320. * src/DownloadEngine.cc
  2321. * src/FeatureConfig.cc
  2322. * src/File.cc
  2323. * src/FtpConnection.cc
  2324. * src/FtpNegotiationCommand.cc
  2325. * src/HandshakeExtensionMessage.cc
  2326. * src/HttpConnection.cc
  2327. * src/HttpRequest.cc
  2328. * src/HttpResponseCommand.cc
  2329. * src/HttpServer.cc
  2330. * src/IndexBtMessage.cc
  2331. * src/Metalink2RequestGroup.cc
  2332. * src/OptionHandlerImpl.h
  2333. * src/PStringBuildVisitor.cc
  2334. * src/Peer.cc
  2335. * src/PeerListenCommand.cc
  2336. * src/Piece.cc
  2337. * src/RangeBtMessage.cc
  2338. * src/Request.cc
  2339. * src/Request.h
  2340. * src/RequestGroup.cc
  2341. * src/RequestGroupMan.cc
  2342. * src/ServerStat.cc
  2343. * src/ServerStatMan.cc
  2344. * src/UTPexExtensionMessage.cc
  2345. * src/Util.cc
  2346. * src/a2functional.h
  2347. * src/download_helper.cc
  2348. * src/messageDigest.cc
  2349. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2350. Unchoke a peer randomly at first and second choke round in seed
  2351. state.
  2352. * src/BtSeederStateChoke.cc
  2353. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  2354. Added (sock_t) to quiet compiler warnings in MinGW
  2355. * src/SocketCore.cc
  2356. * src/SocketCore.h
  2357. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2358. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  2359. * src/EpollEventPoll.h
  2360. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  2361. Added fork() emulation using CreateProcess() in MinGW
  2362. * src/RequestGroupMan.cc
  2363. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2364. * Release 1.4.0
  2365. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2366. Added utf8.torrent to EXTRA_DIST
  2367. * test/Makefile.am
  2368. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2369. Fixed docs of aria2.addMetalink xml-rpc method.
  2370. * doc/aria2c.1.txt
  2371. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2372. Added Slovak translation. Updated Ukrainian and Brazilian
  2373. Portuguese translation. Thanks to all translators.
  2374. * po/sk.po
  2375. * po/uk.po
  2376. * po/pt_BR.po
  2377. * po/LINGUAS
  2378. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2379. Added test case for XmlRpcProcessor to fail to parse malformed
  2380. document.
  2381. * test/XmlRpcRequestProcessorTest.cc
  2382. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2383. Removed *.gmo files in po because they are generated on 'make
  2384. dist'
  2385. * po/*.gmo
  2386. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2387. Documented max-concurrent-downloads of changeGlobalOption method
  2388. in man page.
  2389. * doc/aria2c.1.txt
  2390. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2391. Added max-concurrent-downloads option to changeGlobalOption
  2392. xml-rpc method. Rewritten loop conditional in
  2393. RequestGroupMan::fillRequestGroupFromReserver().
  2394. * src/RequestGroupMan.cc
  2395. * src/RequestGroupMan.h
  2396. * src/XmlRpcMethod.cc
  2397. * src/XmlRpcMethodImpl.cc
  2398. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2399. Documented position parameter in man page.
  2400. * doc/aria2c.1.txt
  2401. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2402. Added 'position' parameter to addUri, addTorrent and addMetalink
  2403. xml-rpc method.
  2404. * src/RequestGroupMan.cc
  2405. * src/RequestGroupMan.h
  2406. * src/XmlRpcMethodImpl.cc
  2407. * test/XmlRpcMethodTest.cc
  2408. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2409. Removed Peer.cc from compile source list when --disable-bittorrent
  2410. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  2411. takes Peer.
  2412. * src/DefaultPieceStorage.cc
  2413. * src/DefaultPieceStorage.h
  2414. * src/Makefile.am
  2415. * src/PieceStorage.h
  2416. * src/UnknownLengthPieceStorage.cc
  2417. * src/UnknownLengthPieceStorage.h
  2418. * test/MockPieceStorage.h
  2419. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2420. Implemented getter methods in header files to give them more
  2421. chance of optimization.
  2422. Return const reference for SharadHandle if possible.
  2423. * src/AbstractAuthResolver.cc
  2424. * src/AbstractAuthResolver.h
  2425. * src/AbstractBtMessage.cc
  2426. * src/AbstractBtMessage.h
  2427. * src/AbstractSingleDiskAdaptor.cc
  2428. * src/AbstractSingleDiskAdaptor.h
  2429. * src/AsyncNameResolver.cc
  2430. * src/AsyncNameResolver.h
  2431. * src/BNode.cc
  2432. * src/BNode.h
  2433. * src/BitfieldMan.cc
  2434. * src/BitfieldMan.h
  2435. * src/BtAbortOutstandingRequestEvent.h
  2436. * src/BtExtendedMessage.cc
  2437. * src/BtExtendedMessage.h
  2438. * src/BtSeederStateChoke.cc
  2439. * src/BtSeederStateChoke.h
  2440. * src/Cookie.cc
  2441. * src/Cookie.h
  2442. * src/DHTBucket.cc
  2443. * src/DHTBucket.h
  2444. * src/DHTConnectionImpl.cc
  2445. * src/DHTConnectionImpl.h
  2446. * src/DHTFindNodeReplyMessage.cc
  2447. * src/DHTFindNodeReplyMessage.h
  2448. * src/DHTGetPeersReplyMessage.cc
  2449. * src/DHTGetPeersReplyMessage.h
  2450. * src/DHTInteractionCommand.cc
  2451. * src/DHTMessage.cc
  2452. * src/DHTMessage.h
  2453. * src/DHTMessageDispatcherImpl.cc
  2454. * src/DHTMessageEntry.cc
  2455. * src/DHTMessageReceiver.cc
  2456. * src/DHTMessageReceiver.h
  2457. * src/DHTMessageTrackerEntry.cc
  2458. * src/DHTMessageTrackerEntry.h
  2459. * src/DHTPeerAnnounceEntry.cc
  2460. * src/DHTPeerAnnounceEntry.h
  2461. * src/DHTPeerLookupTask.cc
  2462. * src/DHTPeerLookupTask.h
  2463. * src/DHTRoutingTableDeserializer.cc
  2464. * src/DHTRoutingTableDeserializer.h
  2465. * src/DefaultBtAnnounce.cc
  2466. * src/DefaultBtAnnounce.h
  2467. * src/DefaultBtMessageDispatcher.cc
  2468. * src/DefaultBtMessageDispatcher.h
  2469. * src/DefaultBtRequestFactory.cc
  2470. * src/DefaultBtRequestFactory.h
  2471. * src/DiskAdaptor.cc
  2472. * src/DiskAdaptor.h
  2473. * src/DownloadContext.cc
  2474. * src/DownloadContext.h
  2475. * src/DownloadEngine.cc
  2476. * src/DownloadEngine.h
  2477. * src/EpollEventPoll.cc
  2478. * src/EpollEventPoll.h
  2479. * src/FtpConnection.cc
  2480. * src/FtpConnection.h
  2481. * src/HttpConnection.cc
  2482. * src/HttpConnection.h
  2483. * src/HttpHeader.cc
  2484. * src/HttpHeader.h
  2485. * src/HttpRequest.cc
  2486. * src/HttpRequest.h
  2487. * src/HttpResponse.cc
  2488. * src/HttpResponse.h
  2489. * src/LibsslTLSContext.cc
  2490. * src/LibsslTLSContext.h
  2491. * src/MSEHandshake.cc
  2492. * src/MSEHandshake.h
  2493. * src/MetalinkEntry.cc
  2494. * src/MetalinkEntry.h
  2495. * src/MetalinkParserController.cc
  2496. * src/MetalinkParserController.h
  2497. * src/MetalinkParserStateMachine.cc
  2498. * src/MetalinkParserStateMachine.h
  2499. * src/MultiDiskAdaptor.cc
  2500. * src/MultiDiskAdaptor.h
  2501. * src/NetrcAuthResolver.cc
  2502. * src/NetrcAuthResolver.h
  2503. * src/Peer.cc
  2504. * src/Peer.h
  2505. * src/PeerSessionResource.cc
  2506. * src/PeerSessionResource.h
  2507. * src/Piece.cc
  2508. * src/Piece.h
  2509. * src/PieceStatMan.cc
  2510. * src/PieceStatMan.h
  2511. * src/Request.cc
  2512. * src/Request.h
  2513. * src/RequestGroup.cc
  2514. * src/RequestGroup.h
  2515. * src/RequestGroupMan.cc
  2516. * src/RequestGroupMan.h
  2517. * src/RequestSlot.cc
  2518. * src/RequestSlot.h
  2519. * src/SegmentMan.cc
  2520. * src/SegmentMan.h
  2521. * src/SelectEventPoll.cc
  2522. * src/SelectEventPoll.h
  2523. * src/ServerStat.cc
  2524. * src/ServerStat.h
  2525. * src/Signature.cc
  2526. * src/Signature.h
  2527. * src/URIResult.cc
  2528. * src/URIResult.h
  2529. * src/UTPexExtensionMessage.cc
  2530. * src/UTPexExtensionMessage.h
  2531. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2532. Fixed compile error without BitTorrent and Metalink support.
  2533. * src/XmlRpcMethod.cc
  2534. * src/XmlRpcMethodFactory.cc
  2535. * src/XmlRpcMethodImpl.cc
  2536. * src/XmlRpcMethodImpl.h
  2537. * test/XmlRpcMethodTest.cc
  2538. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2539. Rewritten the help message for --allow-overwrite option.
  2540. * doc/aria2c.1.txt
  2541. * src/usage_text.h
  2542. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2543. Fixed typo
  2544. * doc/aria2c.1.txt
  2545. * src/usage_text.h
  2546. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2547. Updated README for 1.4.0 release. Use new table syntax of
  2548. asciidoc.
  2549. * README
  2550. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2551. Documented --xml-rpc-max-request-size option in man page.
  2552. * doc/aria2c.1.txt
  2553. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2554. Moved C_* constants from BtContext to DefaultBtContext.
  2555. * src/BtContext.cc: Removed.
  2556. * src/BtContext.h
  2557. * src/DefaultBtContext.cc
  2558. * src/DefaultBtContext.h
  2559. * src/Makefile.am
  2560. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2561. Use name.utf-8 and path.utf-8 key in higher priority than name and
  2562. path key respectively when persing .torrent file.
  2563. * src/BtContext.cc
  2564. * src/BtContext.h
  2565. * src/DefaultBtContext.cc
  2566. * test/DefaultBtContextTest.cc
  2567. * test/utf8.torrent
  2568. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2569. Added --xml-rpc-max-request-size option to limit the size of
  2570. XML-RPC request.
  2571. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2572. Documented XML-RPC API in man page.
  2573. * doc/aria2c.1.txt
  2574. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2575. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  2576. will break strict-aliasing rules
  2577. * src/PeerConnection.cc
  2578. * test/DHTRoutingTableSerializerTest.cc
  2579. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2580. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  2581. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  2582. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  2583. PKG_CHECK_MODULES macro uses latter name.
  2584. * m4/sqlite3.m4
  2585. * src/Makefile.am
  2586. * test/Makefile.am
  2587. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2588. Fixed typo
  2589. * configure.ac
  2590. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2591. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  2592. presence of libgnutls using pkg-config first. If it fails, fall
  2593. back to old macro libgnutls.m4.
  2594. * configure.ac
  2595. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2596. Use s itself instead of !s.bad()
  2597. * src/CookieStorage.cc
  2598. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2599. Documented --on-download-* option and --save-cookies option in man
  2600. page.
  2601. * doc/aria2c.1.txt
  2602. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2603. Set possible values for --load-cookie option to "/path/to/file".
  2604. * src/OptionHandlerFactory.cc
  2605. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2606. Added --save-cookies option.
  2607. * src/Cookie.cc
  2608. * src/Cookie.h
  2609. * src/CookieStorage.cc
  2610. * src/CookieStorage.h
  2611. * src/MultiUrlRequestInfo.cc
  2612. * src/OptionHandlerFactory.cc
  2613. * src/prefs.cc
  2614. * src/prefs.h
  2615. * src/usage_text.h
  2616. * test/CookieStorageTest.cc
  2617. * test/CookieTest.cc
  2618. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2619. Removed tellAll XML-RPC command because its reponse tends to be
  2620. big if stopped/waiting downloads pile up.
  2621. * src/XmlRpcMethodFactory.cc
  2622. * src/XmlRpcMethodImpl.cc
  2623. * src/XmlRpcMethodImpl.h
  2624. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2625. Added the ability to execute command when download starts and
  2626. stops. You can also specify command for particular cases such as
  2627. complete/error download. Added --on-download-start,
  2628. --on-download-stop, --on-download-complete and --on-download-error
  2629. option.
  2630. * src/OptionHandlerFactory.cc
  2631. * src/RequestGroupMan.cc
  2632. * src/prefs.cc
  2633. * src/prefs.h
  2634. * src/usage_text.h
  2635. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2636. Fixed test error
  2637. * test/BencodeTest.cc
  2638. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2639. Added unit tests.
  2640. * test/XmlRpcMethodTest.cc
  2641. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2642. Made exception message more verbose.
  2643. * src/bencode.cc
  2644. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2645. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  2646. space in console readout. Also they are now shown in MiB/s if
  2647. speed > 1024KiB/s.
  2648. * src/ConsoleStatCalc.cc
  2649. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2650. Added SEED to console output, which represents the number of
  2651. seeders currently the client is connecting to.
  2652. * src/ConsoleStatCalc.cc
  2653. * src/ConsoleStatCalc.h
  2654. * src/DownloadEngine.cc
  2655. * src/NullStatCalc.h
  2656. * src/StatCalc.h
  2657. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2658. Added source filename(__FILE__) and line number(__LINE__) to
  2659. exception message.
  2660. * src/AbstractCommand.cc
  2661. * src/AbstractDiskWriter.cc
  2662. * src/AbstractProxyResponseCommand.cc
  2663. * src/BDE.h
  2664. * src/BtAllowedFastMessage.cc
  2665. * src/BtHandshakeMessageValidator.h
  2666. * src/BtHaveAllMessage.cc
  2667. * src/BtHaveNoneMessage.cc
  2668. * src/BtPieceMessage.cc
  2669. * src/BtRejectMessage.cc
  2670. * src/ChunkedDecoder.cc
  2671. * src/CookieStorage.cc
  2672. * src/DHTAnnouncePeerMessage.cc
  2673. * src/DHTEntryPointNameResolveCommand.cc
  2674. * src/DHTMessageFactoryImpl.cc
  2675. * src/DHTMessageTracker.cc
  2676. * src/DHTRoutingTableDeserializer.cc
  2677. * src/DHTRoutingTableSerializer.cc
  2678. * src/DHTSetup.cc
  2679. * src/DHTTokenTracker.cc
  2680. * src/DefaultBtAnnounce.cc
  2681. * src/DefaultBtContext.cc
  2682. * src/DefaultBtInteractive.cc
  2683. * src/DefaultBtMessageFactory.cc
  2684. * src/DefaultBtProgressInfoFile.cc
  2685. * src/DefaultExtensionMessageFactory.cc
  2686. * src/DlAbortEx.h
  2687. * src/DlRetryEx.h
  2688. * src/DownloadCommand.cc
  2689. * src/DownloadEngineFactory.cc
  2690. * src/DownloadFailureException.h
  2691. * src/Exception.cc
  2692. * src/Exception.h
  2693. * src/ExpatMetalinkProcessor.cc
  2694. * src/ExpatXmlRpcRequestProcessor.cc
  2695. * src/FallocFileAllocationIterator.cc
  2696. * src/FatalException.h
  2697. * src/FtpConnection.cc
  2698. * src/FtpFinishDownloadCommand.cc
  2699. * src/FtpInitiateConnectionCommand.cc
  2700. * src/FtpNegotiationCommand.cc
  2701. * src/GZipDecoder.cc
  2702. * src/HandshakeExtensionMessage.cc
  2703. * src/HttpConnection.cc
  2704. * src/HttpHeaderProcessor.cc
  2705. * src/HttpInitiateConnectionCommand.cc
  2706. * src/HttpResponse.cc
  2707. * src/HttpResponseCommand.cc
  2708. * src/HttpServer.cc
  2709. * src/HttpSkipResponseCommand.cc
  2710. * src/InitiateConnectionCommandFactory.cc
  2711. * src/IteratableChunkChecksumValidator.cc
  2712. * src/LibgcryptARC4Context.h
  2713. * src/LibgcryptARC4Decryptor.h
  2714. * src/LibgcryptARC4Encryptor.h
  2715. * src/LibgcryptDHKeyExchange.h
  2716. * src/LibgnutlsTLSContext.cc
  2717. * src/LibsslARC4Context.h
  2718. * src/LibsslARC4Decryptor.h
  2719. * src/LibsslARC4Encryptor.h
  2720. * src/LibsslDHKeyExchange.h
  2721. * src/LibsslTLSContext.cc
  2722. * src/MSEHandshake.cc
  2723. * src/MessageDigestHelper.cc
  2724. * src/MetalinkHelper.cc
  2725. * src/MultiDiskAdaptor.cc
  2726. * src/NameMatchOptionHandler.h
  2727. * src/NameResolver.cc
  2728. * src/Netrc.cc
  2729. * src/NsCookieParser.cc
  2730. * src/OptionHandlerException.cc
  2731. * src/OptionHandlerException.h
  2732. * src/OptionHandlerImpl.h
  2733. * src/OptionParser.cc
  2734. * src/ParameterizedStringParser.cc
  2735. * src/PeerAbstractCommand.cc
  2736. * src/PeerConnection.cc
  2737. * src/PeerMessageUtil.cc
  2738. * src/PeerReceiveHandshakeCommand.cc
  2739. * src/Platform.cc
  2740. * src/ReceiverMSEHandshakeCommand.cc
  2741. * src/RecoverableException.h
  2742. * src/RequestGroup.cc
  2743. * src/SimpleLogger.cc
  2744. * src/SocketCore.cc
  2745. * src/Sqlite3MozCookieParser.cc
  2746. * src/UTPexExtensionMessage.cc
  2747. * src/Util.cc
  2748. * src/XML2SAXMetalinkProcessor.cc
  2749. * src/Xml2XmlRpcRequestProcessor.cc
  2750. * src/XmlRpcMethodImpl.cc
  2751. * src/bencode.cc
  2752. * src/download_helper.cc
  2753. * src/messageDigest.h
  2754. * test/ExceptionTest.cc
  2755. * test/TestUtil.cc
  2756. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2757. Bump up version number to 1.4.0
  2758. * configure.ac
  2759. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2760. Added 2files.metalink to EXTRA_DIST
  2761. * test/Makefile.am
  2762. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2763. Added missing 2files.metalink
  2764. * test/2files.metalink
  2765. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2766. Show "[MEMORY]" prefix before filename in download summary if it
  2767. is downloaded into memory.
  2768. * src/DownloadResult.h
  2769. * src/RequestGroup.cc
  2770. * src/RequestGroupMan.cc
  2771. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2772. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  2773. * src/ExpatXmlRpcRequestProcessor.cc
  2774. * src/Xml2XmlRpcRequestProcessor.cc
  2775. * src/message.h
  2776. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2777. Defined const BDEs to avoid duplicate instantiation.
  2778. Defined MSG_GID_NOT_PROVIDED.
  2779. * src/XmlRpcMethodImpl.cc
  2780. * src/message.h
  2781. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2782. Code cleanup
  2783. * src/Xml2XmlRpcRequestProcessor.cc
  2784. * src/Xml2XmlRpcRequestProcessor.h
  2785. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2786. Defined ENABLE_XML_RPC
  2787. * configure.ac
  2788. * configure
  2789. * config.h.in
  2790. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2791. Added ExpatXmlRpcRequestProcessor
  2792. * src/ExpatXmlRpcRequestProcessor.cc
  2793. * src/ExpatXmlRpcRequestProcessor.h
  2794. * src/Makefile.am
  2795. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2796. Added tests for addTorrent and addMetalink command.
  2797. * test/TestUtil.cc
  2798. * test/TestUtil.h
  2799. * test/XmlRpcMethodTest.cc
  2800. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2801. Corrected the description of --file-allocation option.
  2802. * doc/aria2c.1.txt
  2803. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2804. Added tellAll command.
  2805. * src/XmlRpcMethodFactory.cc
  2806. * src/XmlRpcMethodImpl.cc
  2807. * src/XmlRpcMethodImpl.h
  2808. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2809. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  2810. * src/XmlRpcMethodImpl.cc
  2811. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2812. Added changeGlobalOption command. Currently,
  2813. max-overall-download-limit and max-overall-upload-limit option are
  2814. available.
  2815. * src/RequestGroupMan.h
  2816. * src/XmlRpcMethod.cc
  2817. * src/XmlRpcMethod.h
  2818. * src/XmlRpcMethodFactory.cc
  2819. * src/XmlRpcMethodImpl.cc
  2820. * src/XmlRpcMethodImpl.h
  2821. * test/XmlRpcMethodTest.cc
  2822. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2823. Added changeOption command. Currently, max-download-limit,
  2824. max-upload-limit option are available in this command.
  2825. * src/RequestGroup.h
  2826. * src/XmlRpcMethod.cc
  2827. * src/XmlRpcMethod.h
  2828. * src/XmlRpcMethodFactory.cc
  2829. * src/XmlRpcMethodImpl.cc
  2830. * src/XmlRpcMethodImpl.h
  2831. * test/XmlRpcMethodTest.cc
  2832. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2833. Added purgeDownloadResult command.
  2834. * src/RequestGroupMan.cc
  2835. * src/RequestGroupMan.h
  2836. * src/XmlRpcMethodFactory.cc
  2837. * src/XmlRpcMethodImpl.cc
  2838. * src/XmlRpcMethodImpl.h
  2839. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2840. Refactored.
  2841. * src/XmlRpcMethod.cc
  2842. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2843. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  2844. XmlRpcResponse.
  2845. * src/HttpServerBodyCommand.cc
  2846. * src/Makefile.am
  2847. * src/XmlRpcMethod.cc
  2848. * src/XmlRpcMethod.h
  2849. * src/XmlRpcMethodImpl.cc
  2850. * src/XmlRpcResponse.cc
  2851. * src/XmlRpcResponse.h
  2852. * test/XmlRpcMethodTest.cc
  2853. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2854. In XML-RPC option struct, header and index-out option can take
  2855. array as value.
  2856. * src/XmlRpcMethod.cc
  2857. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2858. Removed unused option member from PeerConnection.
  2859. * src/InitiatorMSEHandshakeCommand.cc
  2860. * src/PeerConnection.cc
  2861. * src/PeerConnection.h
  2862. * src/PeerInteractionCommand.cc
  2863. * src/PeerReceiveHandshakeCommand.cc
  2864. * src/ReceiverMSEHandshakeCommand.cc
  2865. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2866. Added "seeder" key to getPeers response.
  2867. * src/XmlRpcMethodImpl.cc
  2868. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2869. Added addMetalink XML-RPC command.
  2870. * src/XmlRpcMethodFactory.cc
  2871. * src/XmlRpcMethodImpl.cc
  2872. * src/XmlRpcMethodImpl.h
  2873. * src/download_helper.cc
  2874. * src/download_helper.h
  2875. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2876. Fixed the bug that POU peers are never choked in seeding.
  2877. * src/BtSeederStateChoke.cc
  2878. * src/BtSeederStateChoke.h
  2879. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2880. Added web-seeding URI handling in addTorrent command.
  2881. * src/XmlRpcMethodImpl.cc
  2882. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2883. Added "length" key to getFiles response.
  2884. * src/XmlRpcMethodImpl.cc
  2885. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2886. Moved --no-netrc option from ftp option section to http/ftp option
  2887. section.
  2888. * doc/aria2c.1.txt
  2889. * src/OptionHandlerFactory.cc
  2890. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2891. Removed garbage "\" character before '
  2892. * doc/aria2c.1.txt
  2893. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2894. Removed garbage "\" character before http.
  2895. * doc/aria2c.1.txt
  2896. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2897. Documented additional options that can be specified in -i list.
  2898. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  2899. and --xml-rpc-passwd. Removed --enable-http-server and
  2900. --http-server-listen-port.
  2901. * doc/aria2c.1.txt
  2902. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2903. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  2904. * src/DefaultPeerStorage.cc
  2905. * src/DefaultPeerStorage.h
  2906. * src/PeerStorage.h
  2907. * src/XmlRpcMethodImpl.cc
  2908. * test/MockPeerStorage.h
  2909. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2910. Put a call to Socket::isReadable() in try block.
  2911. * src/HttpServerBodyCommand.cc
  2912. * src/HttpServerCommand.cc
  2913. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2914. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  2915. exception , so it is now in try block.
  2916. * src/HttpServerResponseCommand.cc
  2917. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2918. Added "amChoking" and "peerChoking" key in getPeers response.
  2919. * src/XmlRpcMethodImpl.cc
  2920. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2921. Added test case for zero-length filter.
  2922. * test/BitfieldManTest.cc
  2923. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2924. getFiles command now returns file data for finished/stopped
  2925. downloads.
  2926. * src/XmlRpcMethodImpl.cc
  2927. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2928. DownloadResult now has the list of FileEntry. The download
  2929. summary displays the path of first selected file and the number of
  2930. remaining files for multi-file torrent.
  2931. * src/DownloadResult.h
  2932. * src/RequestGroup.cc
  2933. * src/RequestGroupMan.cc
  2934. * test/RequestGroupTest.cc
  2935. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2936. Fixed segmentation fault error when no file is selected in
  2937. multi-file torrent.
  2938. * src/BitfieldMan.cc
  2939. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2940. Escaped <,>,& character in XML-RPC response.
  2941. * src/XmlRpcMethod.cc
  2942. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2943. Throw DlAbortEx instead of FatalException during parsing options
  2944. because we don't want for aria2 to quit when bad option is passed
  2945. via XML-RPC.
  2946. * src/OptionHandlerException.cc
  2947. * src/OptionHandlerException.h
  2948. * src/OptionHandlerImpl.h
  2949. * src/OptionParser.cc
  2950. * src/OptionParser.h
  2951. * src/PStringSegment.cc
  2952. * src/ParameterizedStringParser.cc
  2953. * src/download_helper.cc
  2954. * test/ParameterizedStringParserTest.cc
  2955. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2956. Selecting files are now done in
  2957. DefaultBtContext::setFileFileter().
  2958. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  2959. functions are removed because they are no longer used. Creating
  2960. filter in BitfieldMan is done in new funtion
  2961. PieceStorage::setupFileFilter()
  2962. * src/BtContext.cc
  2963. * src/BtContext.h
  2964. * src/DefaultBtContext.cc
  2965. * src/DefaultBtContext.h
  2966. * src/DefaultPieceStorage.cc
  2967. * src/DefaultPieceStorage.h
  2968. * src/DiskAdaptor.cc
  2969. * src/DiskAdaptor.h
  2970. * src/PieceStorage.h
  2971. * src/RequestGroup.cc
  2972. * src/UnknownLengthPieceStorage.h
  2973. * src/XmlRpcMethodImpl.cc
  2974. * test/DefaultBtContextTest.cc
  2975. * test/MockBtContext.h
  2976. * test/MockPieceStorage.h
  2977. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2978. Fixed compile error on Mac OS X
  2979. * src/HttpServer.cc
  2980. * src/XmlRpcMethod.h
  2981. * src/XmlRpcMethodImpl.cc
  2982. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2983. Use std::binary_search instead of std::find
  2984. * src/DefaultPieceStorage.cc
  2985. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2986. Removed unnecessary BDE() call; leave them to implicit conversion.
  2987. * src/XmlRpcMethodImpl.cc
  2988. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2989. Return connections and gid in string
  2990. * src/XmlRpcMethodImpl.cc
  2991. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2992. Renamed addURI as addUri
  2993. * src/XmlRpcMethodFactory.cc
  2994. * src/XmlRpcMethodImpl.cc
  2995. * src/XmlRpcMethodImpl.h
  2996. * test/XmlRpcMethodTest.cc
  2997. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2998. Renamed addTorrentFile as addTorrent
  2999. * src/XmlRpcMethodFactory.cc
  3000. * src/XmlRpcMethodImpl.cc
  3001. * src/XmlRpcMethodImpl.h
  3002. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3003. The information for files, URIs, peers are removed from the
  3004. reponse of TellaActive, TellStatus command because they tend to be
  3005. large. Instead they can be retrieved by the dedicated commands:
  3006. getFiles, getUris and getPeers respectively.
  3007. * src/XmlRpcMethodFactory.cc
  3008. * src/XmlRpcMethodImpl.cc
  3009. * src/XmlRpcMethodImpl.h
  3010. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3011. Removed --max-overall-upload-limit and
  3012. --max-overall-download-limit option from listRequestOptions.
  3013. * src/download_helper.cc
  3014. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3015. Log incoming host in HttpListenCommand.
  3016. * src/HttpListenCommand.cc
  3017. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3018. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  3019. --xml-rpc-passwd option.
  3020. * src/HttpServer.cc
  3021. * src/HttpServer.h
  3022. * src/HttpServerCommand.cc
  3023. * src/OptionHandlerFactory.cc
  3024. * src/prefs.cc
  3025. * src/prefs.h
  3026. * src/usage_text.h
  3027. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3028. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  3029. processing 0 length request.
  3030. * src/HttpServerBodyCommand.cc
  3031. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3032. Removed --enable-http-server and --http-server-listen-port
  3033. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  3034. instead. The original feature for --enable-http-server that
  3035. reports download progress in HTML was officially removed. Persist
  3036. XML-RPC connection if client supports keep-alive.
  3037. * src/DownloadEngineFactory.cc
  3038. * src/HttpServerCommand.cc
  3039. * src/HttpServerResponseCommand.cc
  3040. * src/Makefile.am
  3041. * src/Makefile.in
  3042. * src/OptionHandlerFactory.cc
  3043. * src/RequestGroupMan.cc
  3044. * src/main.cc
  3045. * src/option_processing.cc
  3046. * src/prefs.cc
  3047. * src/prefs.h
  3048. * src/usage_text.h
  3049. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3050. Added "uris" key to the response of tellStatus command. Added
  3051. "connections" key to the response of tellStatus and tellActive
  3052. command.
  3053. * src/XmlRpcMethodImpl.cc
  3054. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3055. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  3056. Added TellStatusXmlRpcMethod. Remove command can now remove
  3057. waiting RequestGroup.
  3058. * src/RequestGroupMan.cc
  3059. * src/RequestGroupMan.h
  3060. * src/XmlRpcMethodFactory.cc
  3061. * src/XmlRpcMethodImpl.cc
  3062. * src/XmlRpcMethodImpl.h
  3063. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3064. Initialized _peerId
  3065. * src/Peer.cc
  3066. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3067. Return fault structure for error. FailXmlRpcMethod is renamed as
  3068. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  3069. in non-torrent download. Return single param value.
  3070. * src/XmlRpcMethod.cc
  3071. * src/XmlRpcMethodFactory.cc
  3072. * src/XmlRpcMethodImpl.cc
  3073. * src/XmlRpcMethodImpl.h
  3074. * test/XmlRpcMethodTest.cc
  3075. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3076. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  3077. command.
  3078. * src/RequestGroup.cc
  3079. * src/RequestGroup.h
  3080. * src/RequestGroupMan.cc
  3081. * src/XmlRpcMethodImpl.cc
  3082. * test/RequestGroupTest.cc
  3083. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3084. Added more options that can be specified in -i list and xml-rpc
  3085. add* command.
  3086. * src/download_helper.h
  3087. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3088. The available options in -i list should be listed in
  3089. listRequestOptions().
  3090. * src/download_helper.cc
  3091. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3092. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  3093. command.
  3094. * src/XmlRpcMethodImpl.cc
  3095. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3096. Now RequestGroup has its own copy of Option object. This will help
  3097. to give custom option for each RequestGroup.
  3098. addTorrentFile command now takes options.
  3099. * src/AbstractCommand.cc
  3100. * src/AbstractCommand.h
  3101. * src/AbstractProxyRequestCommand.cc
  3102. * src/ActivePeerConnectionCommand.cc
  3103. * src/ActivePeerConnectionCommand.h
  3104. * src/AdaptiveURISelector.cc
  3105. * src/BtCheckIntegrityEntry.cc
  3106. * src/BtDependency.cc
  3107. * src/BtDependency.h
  3108. * src/BtFileAllocationEntry.cc
  3109. * src/BtPostDownloadHandler.cc
  3110. * src/CheckIntegrityEntry.cc
  3111. * src/DownloadCommand.cc
  3112. * src/FtpDownloadCommand.cc
  3113. * src/FtpFinishDownloadCommand.cc
  3114. * src/FtpInitiateConnectionCommand.cc
  3115. * src/FtpNegotiationCommand.cc
  3116. * src/HttpInitiateConnectionCommand.cc
  3117. * src/HttpRequestCommand.cc
  3118. * src/HttpResponseCommand.cc
  3119. * src/HttpSkipResponseCommand.cc
  3120. * src/InitiateConnectionCommand.cc
  3121. * src/InitiateConnectionCommandFactory.cc
  3122. * src/InitiatorMSEHandshakeCommand.cc
  3123. * src/InitiatorMSEHandshakeCommand.h
  3124. * src/Metalink2RequestGroup.cc
  3125. * src/Metalink2RequestGroup.h
  3126. * src/MetalinkPostDownloadHandler.cc
  3127. * src/MultiUrlRequestInfo.cc
  3128. * src/MultiUrlRequestInfo.h
  3129. * src/PeerAbstractCommand.cc
  3130. * src/PeerInteractionCommand.cc
  3131. * src/PeerInteractionCommand.h
  3132. * src/PeerReceiveHandshakeCommand.cc
  3133. * src/PeerReceiveHandshakeCommand.h
  3134. * src/RequestGroup.cc
  3135. * src/RequestGroup.h
  3136. * src/TrackerWatcherCommand.cc
  3137. * src/TrackerWatcherCommand.h
  3138. * src/XmlRpcMethod.cc
  3139. * src/XmlRpcMethod.h
  3140. * src/XmlRpcMethodImpl.cc
  3141. * src/download_helper.cc
  3142. * src/download_helper.h
  3143. * src/main.cc
  3144. * test/BtDependencyTest.cc
  3145. * test/BtPostDownloadHandlerTest.cc
  3146. * test/DefaultBtMessageDispatcherTest.cc
  3147. * test/DownloadHandlerFactoryTest.cc
  3148. * test/DownloadHelperTest.cc
  3149. * test/Metalink2RequestGroupTest.cc
  3150. * test/MetalinkPostDownloadHandlerTest.cc
  3151. * test/RequestGroupManTest.cc
  3152. * test/RequestGroupTest.cc
  3153. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3154. Added tellActiveStatus xml-rpc command which reports download
  3155. status of active downloads.
  3156. * src/XmlRpcMethodFactory.cc
  3157. * src/XmlRpcMethodImpl.cc
  3158. * src/XmlRpcMethodImpl.h
  3159. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3160. Added addTorrentFile xml-rpc command which receives uploaded
  3161. torrent file and add download for it.
  3162. * src/RequestGroupMan.cc
  3163. * src/XmlRpcMethodFactory.cc
  3164. * src/XmlRpcMethodImpl.cc
  3165. * src/XmlRpcMethodImpl.h
  3166. * src/download_helper.cc
  3167. * src/download_helper.h
  3168. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3169. Added remove xml-rpc command which removes specified download.
  3170. There is a known issue: the removed unfinished downloads are
  3171. reported ERR when aria2 exits. They should be reported as INPR.
  3172. * src/RequestGroupMan.cc
  3173. * src/RequestGroupMan.h
  3174. * src/XmlRpcMethodFactory.cc
  3175. * src/XmlRpcMethodImpl.cc
  3176. * src/XmlRpcMethodImpl.h
  3177. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3178. If --enable-http-server is enabled, don't stop aria2 when all
  3179. download finished and don't quit when no files to download at
  3180. start up.
  3181. * src/RequestGroupMan.cc
  3182. * src/main.cc
  3183. * src/option_processing.cc
  3184. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3185. Added missing AM_CONDITIONAL
  3186. * configure.ac
  3187. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3188. Added xml-rpc functionality. Currently only addURI commad is
  3189. supported. To enable xml-rpc, run aria2 with
  3190. --enable-http-server. This option name is temporal and will be
  3191. changed. The feature that reports download progress in html format
  3192. is temporarily disabled.
  3193. * src/HttpServer.cc
  3194. * src/HttpServer.h
  3195. * src/HttpServerBodyCommand.cc
  3196. * src/HttpServerBodyCommand.h
  3197. * src/HttpServerCommand.cc
  3198. * src/HttpServerResponseCommand.cc
  3199. * src/Makefile.am
  3200. * src/OptionParser.cc
  3201. * src/OptionParser.h
  3202. * src/RequestGroupMan.cc
  3203. * src/RequestGroupMan.h
  3204. * src/XmlRpcMethod.cc
  3205. * src/XmlRpcMethod.h
  3206. * src/XmlRpcMethodFactory.cc
  3207. * src/XmlRpcMethodFactory.h
  3208. * src/XmlRpcMethodImpl.cc
  3209. * src/XmlRpcMethodImpl.h
  3210. * src/download_helper.cc
  3211. * src/download_helper.h
  3212. * test/Makefile.am
  3213. * test/XmlRpcMethodTest.cc
  3214. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3215. Added xml-rpc request parser. The supported value types are:
  3216. i4/int, string, double, struct, array, base64. Currently only
  3217. libxml2 version is provided.
  3218. * src/Xml2XmlRpcRequestProcessor.cc
  3219. * src/Xml2XmlRpcRequestProcessor.h
  3220. * src/XmlRpcElements.cc
  3221. * src/XmlRpcElements.h
  3222. * src/XmlRpcRequest.h
  3223. * src/XmlRpcRequestParserController.cc
  3224. * src/XmlRpcRequestParserController.h
  3225. * src/XmlRpcRequestParserState.h
  3226. * src/XmlRpcRequestParserStateImpl.cc
  3227. * src/XmlRpcRequestParserStateImpl.h
  3228. * src/XmlRpcRequestParserStateMachine.cc
  3229. * src/XmlRpcRequestParserStateMachine.h
  3230. * src/XmlRpcRequestProcessor.h
  3231. * test/XmlRpcRequestParserControllerTest.cc
  3232. * test/XmlRpcRequestProcessorTest.cc
  3233. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3234. * Release 1.3.3
  3235. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3236. Fixed compile error since r1202.
  3237. * src/ExpatMetalinkProcessor.cc
  3238. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3239. Updated Ukrainian, Russian and Simplified Chinese
  3240. translations. Thanks to all translators.
  3241. * po/ru.po
  3242. * po/uk.po
  3243. * po/zh_CN.po
  3244. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3245. Pass reference of Option object instead of pointer.
  3246. * src/download_helper.cc
  3247. * src/download_helper.h
  3248. * src/main.cc
  3249. * test/DownloadHelperTest.cc
  3250. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3251. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  3252. from option directly. Instead, get them from RequestGroup.
  3253. * src/ActivePeerConnectionCommand.cc
  3254. * src/ActivePeerConnectionCommand.h
  3255. * src/PeerReceiveHandshakeCommand.cc
  3256. * src/RequestGroup.h
  3257. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3258. Removed unused uploadLimitCheck and uploadLimit from
  3259. PeerAbstractCommand. Removed unused maxDownloadLimit from
  3260. PeerInteractionCommand.
  3261. * src/PeerAbstractCommand.cc
  3262. * src/PeerAbstractCommand.h
  3263. * src/PeerInteractionCommand.cc
  3264. * src/PeerInteractionCommand.h
  3265. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3266. Fixed broken file renaming feature since r1202.
  3267. * src/FtpNegotiationCommand.cc
  3268. * src/FtpNegotiationCommand.h
  3269. * src/HttpResponseCommand.cc
  3270. * src/RequestGroup.cc
  3271. * src/RequestGroup.h
  3272. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3273. Removed unused debug log
  3274. * src/SocketCore.cc
  3275. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3276. Generated configure and Makefile.in using autoconf 2.63 and
  3277. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  3278. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  3279. * configure.ac
  3280. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3281. Moved piece statistics stuff to new PieceStatMan class.
  3282. Refactored PieceSelector interface.
  3283. * src/DefaultPieceStorage.cc
  3284. * src/DefaultPieceStorage.h
  3285. * src/LongestSequencePieceSelector.cc
  3286. * src/LongestSequencePieceSelector.h
  3287. * src/Makefile.am
  3288. * src/PieceSelector.h
  3289. * src/PieceStatMan.cc
  3290. * src/PieceStatMan.h
  3291. * src/RarestPieceSelector.cc
  3292. * src/RarestPieceSelector.h
  3293. * src/RequestGroup.cc
  3294. * test/DefaultPieceStorageTest.cc
  3295. * test/InOrderPieceSelector.h
  3296. * test/Makefile.am
  3297. * test/PieceStatManTest.cc
  3298. * test/RarestPieceSelectorTest.cc
  3299. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3300. Added static member _protocolFamily to SocketCore. By default,
  3301. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  3302. address. Sometime SocketCore::bind() and
  3303. SocketCore::establishConnection() use difference protocl family
  3304. and latter cannot connect to former. To avoid this situation, we
  3305. limit protocol family to AF_INET for unit tests.
  3306. * src/SocketCore.cc
  3307. * src/SocketCore.h
  3308. * test/AllTest.cc
  3309. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3310. Avoid std::bad_alloc for negative bencode string length.
  3311. * src/bencode.cc
  3312. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3313. Supported segmented downloading with chunked transfer encoding and
  3314. content-length.
  3315. * src/DownloadCommand.cc
  3316. * src/HttpResponseCommand.cc
  3317. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3318. Bump up version number to 1.3.3
  3319. * configure.ac
  3320. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3321. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  3322. from 4096 to 65536 (for insanely large ftp login banners)
  3323. * src/FtpConnection.h
  3324. * test/FtpConnectionTest.cc
  3325. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3326. In DefaultBtContext::getActualBasePath(), return first
  3327. FileEntry::getPath() for single file torrent.
  3328. * src/DefaultBtContext.cc
  3329. * test/DefaultBtContextTest.cc
  3330. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3331. Removed directIOAllowed() from BinaryStream, DiskWriter,
  3332. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  3333. Removed _directIOAllowed member from DiskWriter.
  3334. * src/AbstractDiskWriter.cc
  3335. * src/AbstractDiskWriter.h
  3336. * src/AbstractSingleDiskAdaptor.cc
  3337. * src/AbstractSingleDiskAdaptor.h
  3338. * src/BinaryStream.h
  3339. * src/ByteArrayDiskWriter.h
  3340. * src/DefaultPieceStorage.cc
  3341. * src/DiskWriter.h
  3342. * src/MultiDiskAdaptor.cc
  3343. * src/MultiDiskAdaptor.h
  3344. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3345. Now the constructor of AbstractDiskWriter takes filename as an
  3346. argument and filename argument is removed from openFile(),
  3347. initAndOpenFile(), openExistingFile() interface. storeDir member
  3348. and its accessor functions are removed from DiskAdaptor because it
  3349. is not used anymore. size() member function of DefaultDiskWriter,
  3350. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  3351. opening file.
  3352. * src/AbstractDiskWriter.cc
  3353. * src/AbstractDiskWriter.h
  3354. * src/AbstractSingleDiskAdaptor.cc
  3355. * src/AbstractSingleDiskAdaptor.h
  3356. * src/ByteArrayDiskWriter.cc
  3357. * src/ByteArrayDiskWriter.h
  3358. * src/ByteArrayDiskWriterFactory.cc
  3359. * src/ByteArrayDiskWriterFactory.h
  3360. * src/DefaultDiskWriter.cc
  3361. * src/DefaultDiskWriter.h
  3362. * src/DefaultDiskWriterFactory.cc
  3363. * src/DefaultDiskWriterFactory.h
  3364. * src/DefaultPieceStorage.cc
  3365. * src/DirectDiskAdaptor.cc
  3366. * src/DirectDiskAdaptor.h
  3367. * src/DiskAdaptor.h
  3368. * src/DiskWriter.h
  3369. * src/DiskWriterFactory.h
  3370. * src/MessageDigestHelper.cc
  3371. * src/MultiDiskAdaptor.cc
  3372. * src/RequestGroup.cc
  3373. * src/UnknownLengthPieceStorage.cc
  3374. * src/Util.cc
  3375. * test/DefaultDiskWriterTest.cc
  3376. * test/DirectDiskAdaptorTest.cc
  3377. * test/FallocFileAllocationIteratorTest.cc
  3378. * test/MessageDigestHelperTest.cc
  3379. * test/MetalinkProcessorTest.cc
  3380. * test/MultiDiskAdaptorTest.cc
  3381. * test/MultiFileAllocationIteratorTest.cc
  3382. * test/SingleFileAllocationIteratorTest.cc
  3383. * test/UtilTest.cc
  3384. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3385. Fixed the bug that aria2 aborts when --select-file is used. This
  3386. bug was introduced in r1199.
  3387. * src/MultiDiskAdaptor.cc
  3388. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3389. Code cleanup
  3390. * test/MockPieceStorage.cc
  3391. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3392. Fixed the bug that read-only file with wrong file size will cause
  3393. error because it cannot be truncated to the correct size. Now if
  3394. file size is different than the expected one, re-open file in
  3395. writable mode.
  3396. * src/AbstractSingleDiskAdaptor.cc
  3397. * src/AbstractSingleDiskAdaptor.h
  3398. * src/BtCheckIntegrityEntry.cc
  3399. * src/DiskAdaptor.h
  3400. * src/MultiDiskAdaptor.h
  3401. * src/RequestGroup.cc
  3402. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3403. Fixed the bug that with --check-integrity option aria2 reports
  3404. downloaded file size is 0 even if some parts of file is correctly
  3405. downloaded. This bug is reproducible for the download that a file
  3406. includes last piece is missing. This bug doesn't reveal for
  3407. single-torrent with file allocation on.
  3408. * src/IteratableChecksumValidator.cc
  3409. * test/IteratableChecksumValidatorTest.cc
  3410. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3411. Avoid circular reference between RequestGroup and AdaptiveURISelector
  3412. * src/RequestGroupMan.cc
  3413. * src/AdaptiveURISelector.cc
  3414. * src/AdaptiveURISelector.h
  3415. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3416. * Release 1.3.2
  3417. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3418. Updated README
  3419. * README
  3420. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3421. Updated Ukrainian translations. Thanks to Alexander10.
  3422. * po/uk.po
  3423. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3424. Code cleanup
  3425. * src/MetalinkParserStateMachine.cc
  3426. * src/MetalinkParserStateMachine.h
  3427. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3428. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  3429. and expat simultaneously, MetalinkProcessor is now not base class
  3430. and it is directly implemented in XML2SAXMetalinkProcessor and
  3431. ExpatMetalinkProcessor.
  3432. * src/ExpatMetalinkProcessor.cc
  3433. * src/ExpatMetalinkProcessor.h
  3434. * src/Makefile.am
  3435. * src/MetalinkHelper.cc
  3436. * src/MetalinkProcessor.h
  3437. * src/MetalinkProcessorFactory.cc: Removed.
  3438. * src/MetalinkProcessorFactory.h: Removed
  3439. * src/XML2SAXMetalinkProcessor.cc
  3440. * src/XML2SAXMetalinkProcessor.h
  3441. * test/MetalinkProcessorTest.cc
  3442. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3443. Bump up version number to 1.3.2
  3444. * configure.ac
  3445. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3446. Added missing file.
  3447. * test/Makefile.am
  3448. * test/url-list-singleFileEndsWithSlash.torrent
  3449. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3450. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  3451. request.
  3452. * src/AnnounceList.cc
  3453. * src/AnnounceList.h
  3454. * src/BDE.cc: Added
  3455. * src/BDE.h: Added
  3456. * src/DHTAbstractMessage.cc
  3457. * src/DHTAbstractMessage.h
  3458. * src/DHTAnnouncePeerMessage.cc
  3459. * src/DHTAnnouncePeerMessage.h
  3460. * src/DHTAnnouncePeerReplyMessage.cc
  3461. * src/DHTAnnouncePeerReplyMessage.h
  3462. * src/DHTFindNodeMessage.cc
  3463. * src/DHTFindNodeMessage.h
  3464. * src/DHTFindNodeReplyMessage.cc
  3465. * src/DHTFindNodeReplyMessage.h
  3466. * src/DHTGetPeersMessage.cc
  3467. * src/DHTGetPeersMessage.h
  3468. * src/DHTGetPeersReplyMessage.cc
  3469. * src/DHTGetPeersReplyMessage.h
  3470. * src/DHTMessageFactory.h
  3471. * src/DHTMessageFactoryImpl.cc
  3472. * src/DHTMessageFactoryImpl.h
  3473. * src/DHTMessageReceiver.cc
  3474. * src/DHTMessageTracker.cc
  3475. * src/DHTMessageTracker.h
  3476. * src/DHTPingMessage.cc
  3477. * src/DHTPingMessage.h
  3478. * src/DHTPingReplyMessage.cc
  3479. * src/DHTPingReplyMessage.h
  3480. * src/DHTQueryMessage.cc
  3481. * src/DHTQueryMessage.h
  3482. * src/DHTResponseMessage.cc
  3483. * src/DHTResponseMessage.h
  3484. * src/DefaultBtAnnounce.cc
  3485. * src/DefaultBtContext.cc
  3486. * src/DefaultBtContext.h
  3487. * src/HandshakeExtensionMessage.cc
  3488. * src/Makefile.am
  3489. * src/PeerListProcessor.h
  3490. * src/UTPexExtensionMessage.cc
  3491. * src/bencode.cc
  3492. * src/bencode.h
  3493. * test/AnnounceListTest.cc
  3494. * test/BDETest.cc: Added
  3495. * test/BencodeTest.cc
  3496. * test/DHTAnnouncePeerMessageTest.cc
  3497. * test/DHTAnnouncePeerReplyMessageTest.cc
  3498. * test/DHTFindNodeMessageTest.cc
  3499. * test/DHTFindNodeReplyMessageTest.cc
  3500. * test/DHTGetPeersMessageTest.cc
  3501. * test/DHTGetPeersReplyMessageTest.cc
  3502. * test/DHTMessageFactoryImplTest.cc
  3503. * test/DHTMessageTrackerTest.cc
  3504. * test/DHTPingMessageTest.cc
  3505. * test/DHTPingReplyMessageTest.cc
  3506. * test/Makefile.am
  3507. * test/MockDHTMessageFactory.h
  3508. * test/PeerListProcessorTest.cc
  3509. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3510. Use url-list (web-seeding) only for single-file torrent. This is
  3511. basically the same behavior with Metalink file with torrent and
  3512. URIs.
  3513. * src/RequestGroup.cc
  3514. * src/DefaultBtContext.cc
  3515. * test/DefaultBtContextTest.cc
  3516. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3517. Rewritten expr
  3518. * src/array_fun.h
  3519. * test/array_funTest.cc
  3520. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3521. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  3522. * src/DefaultBtMessageDispatcher.cc
  3523. * src/a2algo.h
  3524. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3525. Removed ExtendedMessagingAware. Instead of using inheritance,
  3526. added ExtensionMessageRegistry and it is passed to
  3527. DefaultExtensionMessageFactory.
  3528. * src/DefaultBtInteractive.cc
  3529. * src/DefaultBtInteractive.h
  3530. * src/DefaultExtensionMessageFactory.cc
  3531. * src/DefaultExtensionMessageFactory.h
  3532. * src/ExtendedMessagingAware.h: Removed.
  3533. * src/ExtensionMessageFactory.h
  3534. * src/ExtensionMessageRegistry.h: Added.
  3535. * src/Makefile.am
  3536. * src/PeerInteractionCommand.cc
  3537. * test/DefaultExtensionMessageFactoryTest.cc
  3538. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3539. Fixed typo in log messages
  3540. * src/MSEHandshake.cc
  3541. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3542. Fixed the bug that prevents torrent download from finishing. The
  3543. bug doesn't reveal for all torrents. The torrents affected this
  3544. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  3545. of pieces.
  3546. * src/bitfield.h
  3547. * test/bitfieldTest.cc
  3548. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3549. Code cleanup
  3550. * src/PeerListProcessor.h
  3551. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3552. Removed RequestGroupAware
  3553. * src/AbstractCommand.cc
  3554. * src/AbstractCommand.h
  3555. * src/ActivePeerConnectionCommand.cc
  3556. * src/ActivePeerConnectionCommand.h
  3557. * src/DHTGetPeersCommand.cc
  3558. * src/DHTGetPeersCommand.h
  3559. * src/InitiatorMSEHandshakeCommand.cc
  3560. * src/InitiatorMSEHandshakeCommand.h
  3561. * src/Makefile.am
  3562. * src/PeerInitiateConnectionCommand.cc
  3563. * src/PeerInitiateConnectionCommand.h
  3564. * src/PeerInteractionCommand.cc
  3565. * src/PeerInteractionCommand.h
  3566. * src/RealtimeCommand.cc
  3567. * src/RealtimeCommand.h
  3568. * src/RequestGroupAware.cc: Removed
  3569. * src/RequestGroupAware.h: Removed
  3570. * src/SeedCheckCommand.cc
  3571. * src/SeedCheckCommand.h
  3572. * src/SleepCommand.cc
  3573. * src/TrackerWatcherCommand.cc
  3574. * src/TrackerWatcherCommand.h
  3575. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3576. Rewritten PeerListProcessor
  3577. * src/PeerListProcessor.h
  3578. * src/CompactPeerListProcessor.h: Removed
  3579. * src/CompactPeerListProcessor.cc: Removed
  3580. * src/DelegatingPeerListProcessor.cc: Removed.
  3581. * src/DefaultBtAnnounce.cc
  3582. * src/Makefile.am
  3583. * src/UTPexExtensionMessage.cc
  3584. * src/DefaultPeerListProcessor.h: Removed.
  3585. * src/DefaultPeerListProcessor.cc: Removed.
  3586. * src/DelegatingPeerListProcessor.h: Removed.
  3587. * test/Makefile.am
  3588. * test/PeerListProcessorTest.cc
  3589. * test/DefaultPeerListProcessorTest.cc: Removed.
  3590. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3591. Rewritten RequestGroupMan::calculateStat()
  3592. * src/RequestGroupMan.cc
  3593. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3594. Removed unnecessary virtual destructor for Request class.
  3595. * src/Request.cc
  3596. * src/Request.h
  3597. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3598. Avoid dynamic_pointer_cast.
  3599. * src/DHTGetPeersCommand.cc
  3600. * src/DHTGetPeersCommand.h
  3601. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3602. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  3603. BtEvent.
  3604. * src/AbstractBtEventListener.h: Removed.
  3605. * src/AbstractBtMessage.cc
  3606. * src/AbstractBtMessage.h
  3607. * src/BtAbortOutstandingRequestEvent.h
  3608. * src/BtCancelSendingPieceEvent.h
  3609. * src/BtChokedEvent.h: Removed.
  3610. * src/BtChokingEvent.h
  3611. * src/BtEvent.h: Removed
  3612. * src/BtEventListener.h: Removed.
  3613. * src/BtMessage.h
  3614. * src/BtPieceMessage.cc
  3615. * src/BtPieceMessage.h
  3616. * src/BtRequestMessage.cc
  3617. * src/BtRequestMessage.h
  3618. * src/DefaultBtMessageDispatcher.cc
  3619. * src/Makefile.am
  3620. * src/a2functional.h
  3621. * test/BtPieceMessageTest.cc
  3622. * test/BtRequestMessageTest.cc
  3623. * test/DefaultBtMessageDispatcherTest.cc
  3624. * test/MockBtMessage.h
  3625. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3626. Code cleanup
  3627. * src/RequestGroupMan.cc
  3628. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3629. Code cleanup
  3630. * src/DownloadCommand.cc
  3631. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3632. Fixed segmentation fault when GZipDecoder::decode() returns 0
  3633. byte.
  3634. * src/DownloadCommand.cc
  3635. * src/bitfield.h
  3636. * test/bitfieldTest.cc
  3637. Fixed the bug that causes infinite loop if broken web server
  3638. returns chunked response without last "0" chunk-size marker and
  3639. closes connection.
  3640. * src/DownloadCommand.cc
  3641. Instantiate properly configured HttpDownloadCommand for
  3642. non-resumable downlaods.
  3643. * src/HttpResponseCommand.cc
  3644. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3645. Rewritten array operation functions.
  3646. * src/BitfieldMan.cc
  3647. * src/array_fun.h
  3648. * test/array_funTest.cc
  3649. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3650. Removed unused variable 'query'
  3651. * src/Request.cc
  3652. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3653. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  3654. accidentally set to false in r1162.
  3655. * configure.ac
  3656. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3657. Code cleanup
  3658. * src/BNode.cc
  3659. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3660. Increase prefixLength for the bucket which doesn't own local node
  3661. ID when splitting bucket.
  3662. * src/DHTBucket.cc
  3663. * test/DHTBucketTest.cc
  3664. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3665. * Release 1.3.1
  3666. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3667. Bump up version number to 1.3.1
  3668. * configure.ac
  3669. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3670. Removed unused variable checkPoint. Also removed include directive
  3671. for TimeA2.h.
  3672. * src/SeedCheckCommand.h
  3673. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3674. Fixed the bug that upload limit exceeds the value specified in
  3675. --seed-ratio option depending on the timing of the execution of
  3676. SeedCheckCommand.
  3677. * src/SeedCheckCommand.cc
  3678. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3679. Fixed the bug that removed peer's session upload/download length
  3680. are counted twice in _cachedTransferStat before it is
  3681. re-calculated. This affected the calculation of shara ratio,
  3682. resulting aria2 wrongly determines that specified share ratio is
  3683. reached. Also fixed the typo in calculateStatFor function name.
  3684. * src/BtSetup.cc
  3685. * src/DefaultPeerStorage.cc
  3686. * src/ShareRatioSeedCriteria.h
  3687. * test/ShareRatioSeedCriteriaTest.cc
  3688. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3689. * Release 1.3.0
  3690. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3691. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  3692. Nynorsk translations. Thanks to all translators.
  3693. * po/es.po
  3694. * po/ja.po
  3695. * po/nn.po
  3696. * po/ru.po
  3697. * po/uk.po
  3698. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3699. Rewritten isInRange()
  3700. * src/DHTBucket.cc
  3701. * test/DHTBucketTest.cc
  3702. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3703. Fixed typo
  3704. * doc/aria2c.1.txt
  3705. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3706. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  3707. malloc/realloc is not used.
  3708. * src/configure.ac
  3709. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3710. BitfieldMan::getMissingIndexes family functions now takes unsigned
  3711. char* bitfield instead of stl container for efficiency.
  3712. PieceSelector::select now takes this
  3713. bitfield. RarestPieceSelector::select now also performs
  3714. efficiently for this change. bitfield namespace is introduced and
  3715. it has several helper functions to handle basic bitfield
  3716. operations such as test, count set bits, etc.
  3717. * src/BitfieldMan.cc
  3718. * src/BitfieldMan.h
  3719. * src/DefaultBtRequestFactory.cc
  3720. * src/DefaultPieceStorage.cc
  3721. * src/DefaultPieceStorage.h
  3722. * src/LongestSequencePieceSelector.cc
  3723. * src/LongestSequencePieceSelector.h
  3724. * src/Makefile.am
  3725. * src/Piece.cc
  3726. * src/Piece.h
  3727. * src/PieceSelector.h
  3728. * src/RarestPieceSelector.cc
  3729. * src/RarestPieceSelector.h
  3730. * src/Util.cc
  3731. * src/Util.h
  3732. * src/bitfield.h
  3733. * test/BitfieldManTest.cc
  3734. * test/LongestSequencePieceSelectorTest.cc
  3735. * test/Makefile.am
  3736. * test/RarestPieceSelectorTest.cc
  3737. * test/UtilTest.cc
  3738. * test/bitfieldTest.cc
  3739. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3740. Made accepted socket non-block.
  3741. * src/FtpNegotiationCommand.cc
  3742. * src/HttpListenCommand.cc
  3743. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3744. Guarded #ifdef HAVE_POSIX_FALLOCATE
  3745. * src/AbstractSingleDiskAdaptor.cc
  3746. * src/DefaultPieceStorage.cc
  3747. * src/DiskAdaptor.h
  3748. * src/DiskAdaptor.h
  3749. * src/MultiFileAllocationIterator.cc
  3750. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3751. Run
  3752. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  3753. in every 1 sec. The timeout of RequestSlot is 60s by default and
  3754. it doesn't need to be called every time when
  3755. DefaultBtInteractive::doInteractionProcessing() is called.
  3756. * src/DefaultBtInteractive.cc
  3757. * src/DefaultBtInteractive.h
  3758. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3759. Documented 'falloc' in man page.
  3760. * doc/aria2c.1.txt
  3761. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3762. Updated doc
  3763. * src/usage_text.h
  3764. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3765. Added 'falloc' parameter for --file-allocation option. 'falloc'
  3766. allocation mode uses posix_fallocate() system call to allocate
  3767. file on disk. If you are using newer file systems such as ext4
  3768. (with extents support), btrfs or xfs, 'falloc' is your best
  3769. choice. It allocates large(few GiB) files almost instantly. Don't
  3770. use 'falloc' with legacy file systems such as ext3 because it
  3771. takes almost same time as 'prealloc' and it blocks aria2 entirely
  3772. until allocation finishes. 'falloc' may not be available if your
  3773. system doesn't have posix_fallocate() system call.
  3774. * configure.ac
  3775. * src/AbstractDiskWriter.cc
  3776. * src/AbstractDiskWriter.h
  3777. * src/AbstractSingleDiskAdaptor.cc
  3778. * src/BinaryStream.h
  3779. * src/BtCheckIntegrityEntry.cc
  3780. * src/ByteArrayDiskWriter.h
  3781. * src/CheckIntegrityEntry.cc
  3782. * src/CheckIntegrityEntry.h
  3783. * src/DefaultPieceStorage.cc
  3784. * src/DiskAdaptor.cc
  3785. * src/DiskAdaptor.h
  3786. * src/DiskWriter.h
  3787. * src/FallocFileAllocationIterator.cc
  3788. * src/FallocFileAllocationIterator.h
  3789. * src/FileAllocationEntry.cc
  3790. * src/FileAllocationEntry.h
  3791. * src/Makefile.am
  3792. * src/MultiFileAllocationIterator.cc
  3793. * src/MultiFileAllocationIterator.h
  3794. * src/OptionHandlerFactory.cc
  3795. * src/RequestGroup.cc
  3796. * src/StreamCheckIntegrityEntry.cc
  3797. * src/prefs.cc
  3798. * src/prefs.h
  3799. * src/usage_text.h
  3800. * test/FallocFileAllocationIteratorTest.cc
  3801. * test/Makefile.am
  3802. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3803. Removed duplicate enableDirectIO() call.
  3804. * src/MultiFileAllocationIterator.cc
  3805. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3806. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  3807. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  3808. cost of std::rotate().
  3809. * src/RarestPieceSelector.cc
  3810. * src/RarestPieceSelector.h
  3811. * test/RarestPieceSelectorTest.cc
  3812. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3813. Updated usage doc for --bt-tracker-interval option.
  3814. * src/usage_text.h
  3815. * doc/aria2c.1.txt
  3816. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3817. Documented --bt-tracker-interval option in man page.
  3818. * doc/aria2c.1.txt
  3819. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3820. Added an option to specify the interval between tracker requests.
  3821. If non-zero value is specified, aria2 uses it and ignores the
  3822. interval value in the response of tracker. If zero is specified,
  3823. aria2 determines the inteval value based on the tarcker response
  3824. and download progress.
  3825. * src/DefaultBtAnnounce.cc
  3826. * src/DefaultBtAnnounce.h
  3827. * src/OptionHandlerFactory.cc
  3828. * src/RequestGroup.cc
  3829. * src/prefs.cc
  3830. * src/prefs.h
  3831. * src/usage_text.h
  3832. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3833. Added operator+=, operator-=, operator-
  3834. * src/TransferStat.cc
  3835. * src/TransferStat.h
  3836. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3837. Refactored RarestPieceSelector to reduce CPU load, especially for
  3838. addPieceStats.
  3839. * src/RarestPieceSelector.cc
  3840. * src/RarestPieceSelector.h
  3841. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3842. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  3843. getAllMissingBlockIndexes to reduce a call to
  3844. array_function_base::operator[].
  3845. * src/BitfieldMan.cc
  3846. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3847. Cached TransferStat/download speed to avoid to sum them up in each
  3848. call.
  3849. * src/DefaultPeerStorage.cc
  3850. * src/DefaultPeerStorage.h
  3851. * src/SegmentMan.cc
  3852. * src/SegmentMan.h
  3853. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3854. Typedefed cuid_t as int32_t in Command.h
  3855. * src/CUIDCounter.h
  3856. * src/Command.cc
  3857. * src/Command.h
  3858. * src/DownloadEngine.cc
  3859. * src/DownloadEngine.h
  3860. * src/PeerStat.h
  3861. * src/SegmentMan.cc
  3862. * src/SegmentMan.h
  3863. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3864. Reduced the number of calls to PeerStorage::calculateStat() and
  3865. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  3866. transfer rate.
  3867. * src/DefaultBtInteractive.cc
  3868. * src/DefaultBtMessageDispatcher.cc
  3869. * src/DefaultPeerStorage.cc
  3870. * src/DefaultPeerStorage.h
  3871. * src/DownloadCommand.cc
  3872. * src/DownloadEngine.cc
  3873. * src/PeerStorage.h
  3874. * src/SegmentMan.cc
  3875. * src/SegmentMan.h
  3876. * test/MockPeerStorage.h
  3877. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3878. Prepended _dir+"/" after joining path elements in torrent file.
  3879. * src/DefaultBtContext.cc
  3880. * test/DefaultBtContextTest.cc
  3881. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3882. Added missing IndexBtMessageValidator.h
  3883. * src/Makefile.am
  3884. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3885. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  3886. Chinese translations. Thank you for contributing our project.
  3887. * po/id.po
  3888. * po/it.po
  3889. * po/ru.po
  3890. * po/uk.po
  3891. * po/zh_CN.po
  3892. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3893. Updated README
  3894. * README
  3895. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3896. Bump up version number to 1.3.0
  3897. * configure.ac
  3898. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3899. Updated doc
  3900. * src/DefaultBtContext.h
  3901. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3902. Slice/joinPath for name of single torrent.
  3903. * src/DefaultBtContext.cc
  3904. * test/DefaultBtContextTest.cc
  3905. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3906. Updated man page: Documented --dry-run and --index-out
  3907. options. Changed the default value of --uri-selector and
  3908. --http-auth-challenge options. Removed --direct-file-mapping
  3909. option. Added example for --index-out
  3910. * doc/aria2c.1.txt
  3911. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3912. Updated TEXT_DRY_RUN
  3913. * src/usage_text.h
  3914. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3915. Changed the default value of --uri-selector option from 'inorder'
  3916. to 'feedback'
  3917. * src/OptionHandlerFactory.cc
  3918. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3919. Included current URI in exception message.
  3920. * src/AbstractCommand.cc
  3921. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3922. Renamed ServerStatURISelector as FeedbackURISelector.
  3923. * src/FeedbackURISelector.cc
  3924. * src/FeedbackURISelector.h
  3925. * src/Makefile.am
  3926. * src/RequestGroupMan.cc
  3927. * src/ServerStatURISelector.cc
  3928. * src/ServerStatURISelector.h
  3929. * test/FeedbackURISelectorTest.cc
  3930. * test/Makefile.am
  3931. * test/ServerStatURISelectorTest.cc
  3932. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3933. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  3934. all URIs are tested and their timeout is not reached.
  3935. * src/AdaptiveURISelector.cc
  3936. * src/AdaptiveURISelector.h
  3937. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3938. Changed the default value of --http-auth-challenge option to false.
  3939. * src/OptionHandlerFactory.cc
  3940. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3941. Reuse URIs when all unused URIs run out.
  3942. * src/OptionHandlerFactory.cc
  3943. * src/RequestGroup.cc
  3944. * src/prefs.cc
  3945. * src/prefs.h
  3946. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3947. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  3948. and BtRejectMessage are derived from RangeBtMessage class.
  3949. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  3950. derived from IndexBtMessage class. BtChokeMessage,
  3951. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  3952. BtNotInterestedMessage and BtUnchokeMessage are derived from
  3953. ZeroBtMessage class.
  3954. * src/AbstractBtMessage.cc
  3955. * src/AbstractBtMessage.h
  3956. * src/BtAllowedFastMessage.cc
  3957. * src/BtAllowedFastMessage.h
  3958. * src/BtAllowedFastMessageValidator.h: Removed
  3959. * src/BtBitfieldMessage.cc
  3960. * src/BtBitfieldMessage.h
  3961. * src/BtCancelMessage.cc
  3962. * src/BtCancelMessage.h
  3963. * src/BtCancelMessageValidator.h: Removed
  3964. * src/BtChokeMessage.cc
  3965. * src/BtChokeMessage.h
  3966. * src/BtExtendedMessage.cc
  3967. * src/BtExtendedMessage.h
  3968. * src/BtHandshakeMessage.cc
  3969. * src/BtHandshakeMessage.h
  3970. * src/BtHaveAllMessage.cc
  3971. * src/BtHaveAllMessage.h
  3972. * src/BtHaveMessage.cc
  3973. * src/BtHaveMessage.h
  3974. * src/BtHaveMessageValidator.h: Removed
  3975. * src/BtHaveNoneMessage.cc
  3976. * src/BtHaveNoneMessage.h
  3977. * src/BtInterestedMessage.cc
  3978. * src/BtInterestedMessage.h
  3979. * src/BtKeepAliveMessage.cc
  3980. * src/BtKeepAliveMessage.h
  3981. * src/BtNotInterestedMessage.cc
  3982. * src/BtNotInterestedMessage.h
  3983. * src/BtPieceMessage.cc
  3984. * src/BtPieceMessage.h
  3985. * src/BtPortMessage.cc
  3986. * src/BtPortMessage.h
  3987. * src/BtRejectMessage.cc
  3988. * src/BtRejectMessage.h
  3989. * src/BtRejectMessageValidator.h: Removed
  3990. * src/BtRequestMessage.cc
  3991. * src/BtRequestMessage.h
  3992. * src/BtRequestMessageValidator.h: Removed
  3993. * src/BtSuggestPieceMessage.cc
  3994. * src/BtSuggestPieceMessage.h
  3995. * src/BtSuggestPieceMessageValidator.h: Removed
  3996. * src/BtUnchokeMessage.cc
  3997. * src/BtUnchokeMessage.h
  3998. * src/DefaultBtMessageFactory.cc
  3999. * src/IndexBtMessage.cc
  4000. * src/IndexBtMessage.h
  4001. * src/IndexBtMessageValidator.h
  4002. * src/Makefile.am
  4003. * src/PeerMessageUtil.cc
  4004. * src/PeerMessageUtil.h
  4005. * src/RangeBtMessage.cc
  4006. * src/RangeBtMessage.h
  4007. * src/RangeBtMessageValidator.h
  4008. * src/SimpleBtMessage.cc
  4009. * src/SimpleBtMessage.h
  4010. * src/ZeroBtMessage.cc
  4011. * src/ZeroBtMessage.h
  4012. * test/BtRequestMessageTest.cc
  4013. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4014. Reverted usage_text.h to r1093 to avoid to lose translated
  4015. messages.
  4016. * src/usage_text.h
  4017. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4018. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  4019. declared as non-const previously is now const and defined in class
  4020. definition.
  4021. * src/AbstractBtMessage.cc
  4022. * src/AbstractBtMessage.h
  4023. * src/BtAllowedFastMessage.cc
  4024. * src/BtAllowedFastMessage.h
  4025. * src/BtBitfieldMessage.h
  4026. * src/BtCancelMessage.cc
  4027. * src/BtCancelMessage.h
  4028. * src/BtChokeMessage.cc
  4029. * src/BtChokeMessage.h
  4030. * src/BtExtendedMessage.cc
  4031. * src/BtExtendedMessage.h
  4032. * src/BtHandshakeMessage.cc
  4033. * src/BtHandshakeMessage.h
  4034. * src/BtHaveAllMessage.cc
  4035. * src/BtHaveAllMessage.h
  4036. * src/BtHaveMessage.cc
  4037. * src/BtHaveMessage.h
  4038. * src/BtHaveNoneMessage.cc
  4039. * src/BtHaveNoneMessage.h
  4040. * src/BtInterestedMessage.cc
  4041. * src/BtInterestedMessage.h
  4042. * src/BtKeepAliveMessage.cc
  4043. * src/BtKeepAliveMessage.h
  4044. * src/BtMessage.h
  4045. * src/BtNotInterestedMessage.cc
  4046. * src/BtNotInterestedMessage.h
  4047. * src/BtPieceMessage.h
  4048. * src/BtPortMessage.cc
  4049. * src/BtPortMessage.h
  4050. * src/BtRejectMessage.cc
  4051. * src/BtRejectMessage.h
  4052. * src/BtRequestMessage.cc
  4053. * src/BtRequestMessage.h
  4054. * src/BtSuggestPieceMessage.cc
  4055. * src/BtSuggestPieceMessage.h
  4056. * src/BtUnchokeMessage.cc
  4057. * src/BtUnchokeMessage.h
  4058. * src/SimpleBtMessage.cc
  4059. * src/SimpleBtMessage.h
  4060. * test/MockBtMessage.h
  4061. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4062. Use FileEntry::exists()
  4063. * src/MultiDiskAdaptor.cc
  4064. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4065. Added exists()
  4066. * src/FileEntry.cc
  4067. * src/FileEntry.h
  4068. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4069. Added missing prefix dir.
  4070. * src/download_helper.cc
  4071. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4072. Removed --direct-file-mapping option and CopyDiskAdaptor.
  4073. * src/CopyDiskAdaptor.cc: Removed
  4074. * src/CopyDiskAdaptor.h: Removed
  4075. * src/DefaultPieceStorage.cc
  4076. * src/Makefile.am
  4077. * src/OptionHandlerFactory.cc
  4078. * src/prefs.cc
  4079. * src/prefs.h
  4080. * src/usage_text.h
  4081. * test/CopyDiskAdaptorTest.cc: Removed
  4082. * test/Makefile.am
  4083. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4084. Rewritten isSameFileBeingDownloaded()
  4085. * src/RequestGroupMan.cc
  4086. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4087. Removed getName() from DownloadContext. getName() is declared in
  4088. BtContext.
  4089. * src/BtContext.h
  4090. * src/DownloadContext.h
  4091. * src/SingleFileDownloadContext.cc
  4092. * src/SingleFileDownloadContext.h
  4093. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  4094. in AbstractSingleDiskAdaptor.
  4095. * src/AbstractSingleDiskAdaptor.h
  4096. * src/DiskAdaptor.h
  4097. * src/MultiDiskAdaptor.h
  4098. * src/RequestGroup.cc
  4099. Removed setTopDir() and getTopDir() and getTopDirPath() from
  4100. MultiDiskAdaptor.
  4101. * src/DefaultPieceStorage.cc
  4102. * src/MultiDiskAdaptor.cc
  4103. * src/MultiDiskAdaptor.h
  4104. * test/MultiDiskAdaptorTest.cc
  4105. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4106. FileEntry::getPath() contains store(top level) directory to
  4107. simplify path handling operation. In the previous implementation,
  4108. store directory is concatenated to FileEntry::getPath() in
  4109. DownloadContext.
  4110. * src/BtDependency.cc
  4111. * src/BtPostDownloadHandler.cc
  4112. * src/CopyDiskAdaptor.cc
  4113. * src/DefaultBtContext.cc
  4114. * src/DirectDiskAdaptor.cc
  4115. * src/FileEntry.cc
  4116. * src/FileEntry.h
  4117. * src/FtpNegotiationCommand.cc
  4118. * src/HttpResponse.cc
  4119. * src/HttpResponseCommand.cc
  4120. * src/Metalink2RequestGroup.cc
  4121. * src/MultiDiskAdaptor.cc
  4122. * src/MultiDiskAdaptor.h
  4123. * src/MultiFileAllocationIterator.cc
  4124. * src/RequestGroup.cc
  4125. * src/SingleFileDownloadContext.cc
  4126. * src/SingleFileDownloadContext.h
  4127. * src/download_helper.cc
  4128. * test/BtDependencyTest.cc
  4129. * test/CopyDiskAdaptorTest.cc
  4130. * test/DefaultBtContextTest.cc
  4131. * test/DefaultBtProgressInfoFileTest.cc
  4132. * test/DirectDiskAdaptorTest.cc
  4133. * test/DownloadHelperTest.cc
  4134. * test/FileEntryTest.cc
  4135. * test/MultiDiskAdaptorTest.cc
  4136. * test/MultiFileAllocationIteratorTest.cc
  4137. * test/RequestGroupTest.cc
  4138. * test/SingleFileDownloadContextTest.cc
  4139. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4140. Fixed compiler warning
  4141. * src/download_helper.cc
  4142. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4143. Throw exception if same infohash torrent is now downloading.
  4144. * src/RequestGroup.cc
  4145. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4146. Added --dry-run option. In this mode, aria2 just checks whether
  4147. the remote file is available and doesn't download data. This
  4148. option has effect on HTTP/FTP downloads and BitTorrent downloads
  4149. are canceled in this mode.
  4150. * src/FtpNegotiationCommand.cc
  4151. * src/HttpResponseCommand.cc
  4152. * src/HttpResponseCommand.h
  4153. * src/OptionHandlerFactory.cc
  4154. * src/RequestGroup.cc
  4155. * src/RequestGroupMan.cc
  4156. * src/prefs.cc
  4157. * src/prefs.h
  4158. * src/usage_text.h
  4159. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4160. Fixed compiler waring
  4161. * test/UriListParserTest.cc
  4162. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4163. Parse options in -i list using OptionParser.
  4164. * src/UriListParser.cc
  4165. * src/UriListParser.h
  4166. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4167. Don't reset URI in retry to avoid additional round trips because
  4168. of redirects.
  4169. * src/AbstractCommand.cc
  4170. * src/OptionHandlerFactory.cc
  4171. * src/prefs.cc
  4172. * src/prefs.h
  4173. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4174. Declared hide() in OptionHandler.
  4175. * src/NameMatchOptionHandler.h
  4176. * src/OptionHandler.h
  4177. * src/OptionHandlerImpl.h
  4178. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4179. Updated doc
  4180. * src/Peer.h
  4181. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4182. Added log message in setStatusInternal()
  4183. * src/ServerStat.cc
  4184. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4185. Call ServerStat::setError() in AbstractCommand::onAbort() to
  4186. effectively exclude failed server.
  4187. * src/AbstractCommand.cc
  4188. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4189. Added --index-out option to specify each file path for torrent.
  4190. Here index shown in --show-files option is used to specify which
  4191. file path should be altered. For example, to change the file path
  4192. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  4193. option multiple times: --index-out=1=aria2.tar.bz2
  4194. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  4195. available. This option can be specified in -i list.
  4196. * src/DefaultBtContext.cc
  4197. * src/DefaultBtContext.h
  4198. * src/MultiDiskAdaptor.cc
  4199. * src/MultiDiskAdaptor.h
  4200. * src/MultiFileAllocationIterator.cc
  4201. * src/OptionHandlerFactory.cc
  4202. * src/OptionHandlerImpl.h
  4203. * src/Util.cc
  4204. * src/Util.h
  4205. * src/download_helper.cc
  4206. * src/prefs.cc
  4207. * src/prefs.h
  4208. * src/usage_text.h
  4209. * test/DefaultBtContextTest.cc
  4210. * test/MultiDiskAdaptorTest.cc
  4211. * test/MultiFileAllocationIteratorTest.cc
  4212. * test/UtilTest.cc
  4213. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4214. Use Util::pathJoin()
  4215. * src/MetalinkParserController.cc
  4216. * test/test.xml
  4217. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4218. Use Util::pathJoin()
  4219. * src/DefaultBtContext.cc
  4220. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4221. Added Util::pathJoin()
  4222. * src/Util.h
  4223. * test/UtilTest.cc
  4224. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4225. Applied basename function to remove directory element in
  4226. content-disposition value.
  4227. Return empty string if content-disposition value is ".." or ".".
  4228. * src/Util.cc
  4229. * test/UtilTest.cc
  4230. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4231. Added --max-overall-download-limit in man page.
  4232. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  4233. * doc/aria2c.1.txt
  4234. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4235. Added --max-overall-download-limit option. Now --max-upload-limit
  4236. option is not ignored when --max-overall-upload-limit option has
  4237. non-zero value. aria2 checks download(upload) speed in the order:
  4238. first checks overall speed limit and if it is not exceeded, then
  4239. checks speed limit per download. Thus you can specify both
  4240. value. For example, set --max-overall-download-limit=1M and
  4241. --max-download-limit=500K to prevent from one download from eating
  4242. all overall speed limit.
  4243. * src/DefaultBtInteractive.cc
  4244. * src/DefaultBtInteractive.h
  4245. * src/DefaultBtMessageDispatcher.cc
  4246. * src/DefaultBtMessageDispatcher.h
  4247. * src/DownloadCommand.cc
  4248. * src/DownloadCommand.h
  4249. * src/FtpNegotiationCommand.cc
  4250. * src/HttpResponseCommand.cc
  4251. * src/OptionHandlerFactory.cc
  4252. * src/PeerInteractionCommand.cc
  4253. * src/RequestGroup.cc
  4254. * src/RequestGroup.h
  4255. * src/RequestGroupMan.cc
  4256. * src/RequestGroupMan.h
  4257. * src/prefs.cc
  4258. * src/prefs.h
  4259. * src/usage_text.h
  4260. * test/DefaultBtMessageDispatcherTest.cc
  4261. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4262. Documented select-file option in Input File section.
  4263. Documented --http-auth-challenge option.
  4264. * doc/aria2c.1.txt
  4265. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4266. Now select-file can be specified in the uri list(-i list).
  4267. * src/BtContext.cc
  4268. * src/BtContext.h
  4269. * src/RequestGroup.cc
  4270. * src/Sequence.h
  4271. * src/download_helper.cc
  4272. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4273. Made the upper value of --max-concurrent-downloads options unlimited.
  4274. * src/OptionHandlerFactory.cc
  4275. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4276. Fixed the bug that disk writer is not created even if it shares
  4277. same piece with the preceding file if the length of previous file
  4278. is 0.
  4279. * src/MultiDiskAdaptor.cc
  4280. * test/MultiDiskAdaptorTest.cc
  4281. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4282. In BitTorrent, Open files in read-only mode for hash check. After
  4283. that, re-open file in read/write mode only when the download is
  4284. not finished.
  4285. * src/AbstractDiskWriter.cc
  4286. * src/AbstractDiskWriter.h
  4287. * src/AbstractSingleDiskAdaptor.cc
  4288. * src/AbstractSingleDiskAdaptor.h
  4289. * src/BtCheckIntegrityEntry.cc
  4290. * src/DiskAdaptor.h
  4291. * src/DiskWriter.h
  4292. * src/MultiDiskAdaptor.cc
  4293. * src/MultiDiskAdaptor.h
  4294. * src/RequestGroup.cc
  4295. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4296. Added --http-auth-challenge option. If it is set to true(by
  4297. default), aria2 sends HTTP authorization header only when it is
  4298. requested by the server. If false is set, then authorization
  4299. header is always sent to the server. This is useful for servers
  4300. that don't respond 401 code when authentication is required.
  4301. There is an exception: if username and password are embedded in
  4302. URI, authorization header is always sent to the server regardless
  4303. of this option.
  4304. * src/AuthConfigFactory.cc
  4305. * src/HttpSkipResponseCommand.cc
  4306. * src/OptionHandlerFactory.cc
  4307. * src/prefs.cc
  4308. * src/prefs.h
  4309. * src/usage_text.h
  4310. * test/AuthConfigFactoryTest.cc
  4311. * test/HttpRequestTest.cc
  4312. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4313. * Release 1.2.0
  4314. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4315. Updated Spanish, Ukrainian, Russian and Japanese translations.
  4316. Thanks to all translators.
  4317. * po/es.po
  4318. * po/ja.po
  4319. * po/ru.po
  4320. * po/uk.po
  4321. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4322. Call deleteSocketForReadCheck() before socket is closed.
  4323. * src/HttpListenCommand.cc
  4324. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4325. Defined virtual destructor for BObject.
  4326. * src/bencode.h
  4327. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4328. Rewritten BDE to make it efficient.
  4329. * src/bencode.cc
  4330. * src/bencode.h
  4331. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4332. Removed function throw list.
  4333. * src/bencode.cc
  4334. * src/bencode.h
  4335. * test/BencodeTest.cc
  4336. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4337. Enclosed all URLs in double quotes in command-line examples.
  4338. * doc/aria2c.1.txt
  4339. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4340. Updated reference/see also section.
  4341. * README
  4342. * doc/aria2c.1.txt
  4343. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4344. Reorganized man page based on man man-pages.
  4345. * doc/aria2c.1.txt
  4346. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4347. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  4348. because same documents are available in man page. Added
  4349. References section.
  4350. * README
  4351. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4352. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  4353. PERFORMANCE PROFILE section.
  4354. * doc/aria2c.1.txt
  4355. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4356. Rewritten the section for configuration file.
  4357. * README
  4358. * doc/aria2c.1.txt
  4359. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4360. Fixed the segmentation fault during execution of choking algorithm
  4361. in leecher state because of broken compare operator
  4362. implementation.
  4363. * src/BtLeecherStateChoke.cc
  4364. * src/BtLeecherStateChoke.h
  4365. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4366. Open file in binary mode.
  4367. * src/CookieStorage.cc
  4368. * src/DHTSetup.cc
  4369. * src/DHTUtil.cc
  4370. * src/Netrc.cc
  4371. * src/NsCookieParser.cc
  4372. * src/ProtocolDetector.cc
  4373. * src/RequestGroupMan.cc
  4374. * src/Signature.cc
  4375. * src/bencode.cc
  4376. * src/download_helper.cc
  4377. * src/option_processing.cc
  4378. * test/CookieParserTest.cc
  4379. * test/DefaultBtProgressInfoFileTest.cc
  4380. * test/FileTest.cc
  4381. * test/GZipDecoderTest.cc
  4382. * test/RequestGroupManTest.cc
  4383. * test/SignatureTest.cc
  4384. * test/SingleFileAllocationIteratorTest.cc
  4385. * test/UriListParserTest.cc
  4386. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4387. Removed operator[] because it is ambiguous with built-in []
  4388. operator.
  4389. * src/array_fun.h
  4390. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4391. Fixed compile error
  4392. * src/OptionParser.cc
  4393. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4394. Added missing call to arrayWrapperConst
  4395. * test/array_funTest.cc
  4396. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4397. Use array_wrapper instead of array_ptr.
  4398. * src/DHTRoutingTableDeserializer.cc
  4399. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4400. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  4401. * src/array_fun.h
  4402. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4403. Added array_wrapper template.
  4404. * src/array_fun.h
  4405. * test/array_funTest.cc
  4406. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4407. Use operator T* of array_ptr.
  4408. * src/OptionParser.cc
  4409. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4410. Use localhost instead of 127.0.0.1
  4411. * test/FtpConnectionTest.cc
  4412. * test/MSEHandshakeTest.cc
  4413. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4414. Added operator T*
  4415. * src/array_fun.h
  4416. * test/array_funTest.cc
  4417. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4418. Use dynamically allocated char array to detect memory access
  4419. violation.
  4420. * src/DHTRoutingTableDeserializer.cc
  4421. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4422. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  4423. defined.
  4424. * src/PeerMessageUtil.cc
  4425. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4426. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  4427. * configure.ac
  4428. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4429. Added a check to see struct sockaddr_in has sin_len member.
  4430. * configure.ac
  4431. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4432. Fixed buffer overrun.
  4433. * src/DHTRoutingTableDeserializer.cc
  4434. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4435. Added LL for long long int constant.
  4436. * test/FtpConnectionTest.cc
  4437. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4438. Casted to unsigned int to suppress compiler warning on netbsd.
  4439. * src/BtRuntime.h
  4440. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4441. Assign the value of tv.tv_sec to time_t timesec instead of giving
  4442. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  4443. type time_t.
  4444. * src/SimpleLogger.cc
  4445. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4446. Added test for FtpConnection::receiveSizeResponse().
  4447. * test/FtpConnectionTest.cc
  4448. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4449. Fix epoll error on the old kernel 2.6.8 or ealier.
  4450. * src/EpollEventPoll.cc
  4451. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4452. Use Util::parseLLInt instead of sscanf for portability. The
  4453. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  4454. * src/FtpConnection.cc
  4455. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4456. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  4457. block. It should not filter anything.
  4458. * src/BitfieldMan.cc
  4459. * src/ConsoleStatCalc.cc
  4460. * test/BitfieldManTest.cc
  4461. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4462. Fixed the bug that the boolean options that don't take arguments
  4463. don't work.
  4464. * src/OptionHandlerImpl.h
  4465. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4466. Fixed broken selected file BitTorrent download.
  4467. * src/MultiDiskAdaptor.cc
  4468. * test/MultiDiskAdaptorTest.cc
  4469. * test/MultiFileAllocationIteratorTest.cc
  4470. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4471. Fixed #define guard for EpollEventPoll
  4472. * src/EpollEventPoll.h
  4473. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4474. Wait 2 seconds. 1 second is sometimes not enough.
  4475. * test/TimeSeedCriteriaTest.cc
  4476. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4477. Use localhost instead of 127.0.0.1.
  4478. * test/DHTConnectionImplTest.cc
  4479. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4480. Suppressed compiler warning.
  4481. * src/AdaptiveURISelector.cc
  4482. * src/DefaultPieceStorage.cc
  4483. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4484. Defined virtual destructor.
  4485. * src/MetalinkParserState.h
  4486. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4487. Give NULL for second argument of getaddrinfo instead of "0".
  4488. * src/NameResolver.cc
  4489. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4490. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  4491. included strptime doesn't parse data for this format.
  4492. * src/FtpConnection.cc
  4493. * test/FtpConnectionTest.cc
  4494. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4495. Removed tests giving -1 for unsigned argument.
  4496. * test/SingleFileDownloadContextTest.cc
  4497. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4498. Don't use sha256 in tests because it might not be supported by the
  4499. SSL library.
  4500. * test/MetalinkProcessorTest.cc
  4501. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4502. Removed tests giving -1 for unsigned argument.
  4503. * test/AlphaNumberDecoratorTest
  4504. * test/BitfieldManTest.cc
  4505. * test/DefaultBtContextTest.cc
  4506. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4507. Fixed compile error without libcares when epoll is available.
  4508. * src/EpollEventPoll.cc
  4509. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4510. Included fstream instead of iostream.
  4511. * test/SignatureTest.cc
  4512. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4513. Removed #include <algorithm>
  4514. * test/RequestGroupTest.cc
  4515. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4516. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  4517. using RequestGroup::extractURIResult().
  4518. * src/AdaptiveURISelector.cc
  4519. * src/RequestGroup.cc
  4520. * src/RequestGroup.h
  4521. * test/RequestGroupTest.cc
  4522. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4523. Added tests for array_ptr.
  4524. * test/array_funTest.cc
  4525. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4526. Don't send ip parameter to a tracker if ip parameter is empty
  4527. string.
  4528. * src/DefaultBtAnnounce.cc
  4529. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4530. Adjusted line feed.
  4531. * src/version_usage.cc
  4532. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4533. Print tags, possible values when OptionHandlerException is caught.
  4534. * src/option_processing.cc
  4535. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4536. Changed the message for FatalException.
  4537. * src/OptionParser.cc
  4538. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4539. Documented --bt-external-ip option in man page. Updated man pages
  4540. for --proxy-method option.
  4541. * doc/aria2c.1.txt
  4542. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4543. Use GET method for FTP via HTTP proxy.
  4544. * src/FtpInitiateConnectionCommand.cc
  4545. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4546. Changed the default value of --proxy-method option from 'tunnel'
  4547. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  4548. option.
  4549. * src/AbstractCommand.cc
  4550. * src/AbstractCommand.h
  4551. * src/FtpInitiateConnectionCommand.cc
  4552. * src/HttpDownloadCommand.cc
  4553. * src/HttpInitiateConnectionCommand.cc
  4554. * src/HttpInitiateConnectionCommand.h
  4555. * src/OptionHandlerFactory.cc
  4556. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4557. Initialized _logger
  4558. * src/SelectEventPoll.cc
  4559. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4560. Defined a copy constructor for the same type.
  4561. * src/SharedHandle.h
  4562. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4563. Added OptionParser::parseArg() which internally uses getopt_long
  4564. to parse command-line options. All command-line options are now
  4565. configured by OptionHandler. No manual editing of struct option*
  4566. is required any more.
  4567. * src/NameMatchOptionHandler.h
  4568. * src/OptionHandler.h
  4569. * src/OptionHandlerFactory.cc
  4570. * src/OptionHandlerImpl.h
  4571. * src/OptionParser.cc
  4572. * src/OptionParser.h
  4573. * src/array_fun.h
  4574. * src/main.cc
  4575. * src/option_processing.cc
  4576. * test/OptionHandlerTest.cc
  4577. * test/OptionParserTest.cc
  4578. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4579. Fixed configure error with --disable-epoll
  4580. * configure.ac
  4581. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4582. Fixed compile error when HAVE_EPOLL is not defined.
  4583. Fixed linker error on bigendian systems.
  4584. * src/SocketCore.cc
  4585. * src/SocketCore.h
  4586. * test/DefaultBtProgressInfoFileTest.cc
  4587. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4588. Added --bt-external-ip option. You can specify the external IP
  4589. address to report to a BitTorrent tracker. Although this function
  4590. is named 'external', it can accept any kind of IP addresses.
  4591. * src/DefaultBtAnnounce.cc
  4592. * src/OptionHandlerFactory.cc
  4593. * src/option_processing.cc
  4594. * src/prefs.cc
  4595. * src/prefs.h
  4596. * src/usage_text.h
  4597. * test/DefaultBtAnnounceTest.cc
  4598. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4599. Extracted the algorithm to find the longest incremental sequence
  4600. as max_sequence template.
  4601. * src/LongestSequencePieceSelector.cc
  4602. * src/a2algo.h
  4603. * test/Makefile.am
  4604. * test/a2algoTest.cc
  4605. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4606. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  4607. * src/usage_text.h
  4608. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4609. Updated doc for --uri-selector, --http-server-listen-port and
  4610. --enable-http-server option. Documented --event-poll option.
  4611. * doc/aria2c.1.txt
  4612. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4613. Updated doc for --enable-http-server.
  4614. * src/usage_text.h
  4615. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4616. Documented --http-server-listen-port and --enable-http-server in
  4617. man page.
  4618. * doc/aria2c.1.txt
  4619. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4620. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  4621. translations. Thanks to all translators.
  4622. * po/es.po
  4623. * po/id.po
  4624. * po/it.po
  4625. * po/ru.po
  4626. * po/uk.po
  4627. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4628. Bump up version number to 1.2.0
  4629. * configure.ac
  4630. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4631. BtContext::getAnnounceTiers() now returns const reference.
  4632. * src/BtContext.h
  4633. * src/DefaultBtContext.cc
  4634. * src/DefaultBtContext.h
  4635. * test/MockBtContext.h
  4636. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4637. Change the number of retries for tracker request based on the
  4638. number of available tracker in a torrent file.
  4639. * src/TrackerWatcherCommand.cc
  4640. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4641. Added _maxTries property to RequestGroup and assign the option
  4642. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  4643. RequestGroup::getMaxTries() instead of
  4644. Option::getAsInt(PREF_MAX_TRIES).
  4645. * src/AbstractCommand.cc
  4646. * src/RequestGroup.cc
  4647. * src/RequestGroup.h
  4648. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4649. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  4650. Mandriva. I modified the patch: make RequestGroup have the
  4651. timeout value and AdaptiveURISelector directly modifies that
  4652. value.
  4653. * src/AbstractCommand.cc
  4654. * src/AdaptiveURISelector.cc
  4655. * src/AdaptiveURISelector.h
  4656. * src/FtpNegotiationCommand.cc
  4657. * src/RequestGroup.cc
  4658. * src/RequestGroup.h
  4659. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4660. Fixed compiler warning
  4661. * test/IteratableChecksumValidatorTest.cc
  4662. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4663. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  4664. integrated downloads. This PieceSelector subclass finds the
  4665. longest continuous sequence in the available missing pieces and
  4666. selects the last index of such sequence. This makes HTTP/FTP
  4667. connections less interrupted by the pieces obtained by BitTorrent
  4668. peers.
  4669. * src/DefaultPieceStorage.cc
  4670. * src/DefaultPieceStorage.h
  4671. * src/LongestSequencePieceSelector.cc
  4672. * src/LongestSequencePieceSelector.h
  4673. * src/Makefile.am
  4674. * src/PieceSelector.h
  4675. * src/RarestPieceSelector.h
  4676. * src/RequestGroup.cc
  4677. * test/BtDependencyTest.cc
  4678. * test/DefaultPieceStorageTest.cc
  4679. * test/IteratableChecksumValidatorTest.cc
  4680. * test/LongestSequencePieceSelectorTest.cc
  4681. * test/Makefile.am
  4682. * test/SegmentManTest.cc
  4683. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4684. Fixed the bug that the average speed is wrong in
  4685. http/ftp/BitTorrent integrated download. Only the download bytes
  4686. in BitTorrent were considered.
  4687. * src/RequestGroup.cc
  4688. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4689. Choose port for BitTorrent/DHT randomly from the specified range.
  4690. * src/DHTConnectionImpl.cc
  4691. * src/PeerListenCommand.cc
  4692. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4693. Send HTTP Authorization header only if it is requested by the
  4694. server(response 401). There are some exceptions. The authorization
  4695. header for proxy is always sent if it is available without request
  4696. by the server. If username/password is specified in the URI, it
  4697. is immediately sent to the server without request by the server.
  4698. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  4699. SharedHandle<AuthConfig>().
  4700. NetrcAuthResolver::resolveAuthConfig() returns
  4701. SharedHandle<AuthConfig>() if no AuthConfig is available.
  4702. * src/AbstractAuthResolver.cc
  4703. * src/AbstractProxyRequestCommand.cc
  4704. * src/AuthConfigFactory.cc
  4705. * src/AuthConfigFactory.h
  4706. * src/HttpConnection.cc
  4707. * src/HttpRequest.cc
  4708. * src/HttpRequest.h
  4709. * src/HttpResponse.cc
  4710. * src/HttpResponseCommand.cc
  4711. * src/HttpSkipResponseCommand.cc
  4712. * test/AuthConfigFactoryTest.cc
  4713. * test/HttpRequestTest.cc
  4714. * test/HttpResponseTest.cc
  4715. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4716. Remove leading "--" from help keyword and a substring after "="
  4717. from help keyword, so that one can query options by '-h--max-' or
  4718. '-hmax-peers=10'.
  4719. * src/option_processing.cc
  4720. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4721. Rewritten PStringVisitor and its implementation.
  4722. * src/PStringBuildVisitor.cc
  4723. * src/PStringBuildVisitor.h
  4724. * src/PStringDatum.h
  4725. * src/PStringNumLoop.h
  4726. * src/PStringSegment.cc
  4727. * src/PStringSegment.h
  4728. * src/PStringSelect.h
  4729. * src/PStringVisitor.h
  4730. * src/download_helper.cc
  4731. * test/PStringBuildVisitorTest.cc
  4732. * test/ParameterizedStringParserTest.cc
  4733. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4734. Persist connection between the built-in HTTP server and a client
  4735. if a client supports keep-alive. Fixed the bug that aria2 exits
  4736. when the HTTP server receives EOF from a client.
  4737. * src/HttpServer.cc
  4738. * src/HttpServer.h
  4739. * src/HttpServerCommand.cc
  4740. * src/HttpServerCommand.h
  4741. * src/HttpServerResponseCommand.cc
  4742. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4743. Added experimental built-in HTTP server. Currently, when a client
  4744. accesses to the server, it responds with the current download
  4745. progress. By default, it is disabled. To enable the server, give
  4746. --enable-http-server option. To change the default port number
  4747. for the server to listen to, use --http-server-listen-port option.
  4748. The response HTML is very simple and refreshes it self each 1
  4749. second. Because of this refresh, you see flicker in normal web
  4750. browser such as Firefox. I recommend to use console-based browser
  4751. such as elinks, w3m. To connect to the server, run 'elinks
  4752. http://localhost:6800/' while running aria2. Please replace port
  4753. number '6800'(which is default) with your preference.
  4754. * src/DownloadEngineFactory.cc
  4755. * src/HttpHeader.cc
  4756. * src/HttpHeader.h
  4757. * src/HttpHeaderProcessor.cc
  4758. * src/HttpHeaderProcessor.h
  4759. * src/HttpListenCommand.cc
  4760. * src/HttpListenCommand.h
  4761. * src/HttpServer.cc
  4762. * src/HttpServer.h
  4763. * src/HttpServerCommand.cc
  4764. * src/HttpServerCommand.h
  4765. * src/HttpServerResponseCommand.cc
  4766. * src/HttpServerResponseCommand.h
  4767. * src/Makefile.am
  4768. * src/OptionHandlerFactory.cc
  4769. * src/Util.cc
  4770. * src/Util.h
  4771. * src/help_tags.h
  4772. * src/option_processing.cc
  4773. * src/prefs.cc
  4774. * src/prefs.h
  4775. * src/usage_text.h
  4776. * test/HttpHeaderProcessorTest.cc
  4777. * test/UtilTest.cc
  4778. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4779. Removed.
  4780. * src/CheckIntegrityMan.cc
  4781. * src/FileAllocationMan.cc
  4782. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4783. Made (piece) hash check sequential for each RequestGroup because
  4784. simultaneous hash check is slower than sequential execution.
  4785. * src/CheckIntegrityCommand.cc
  4786. * src/CheckIntegrityDispatcherCommand.cc
  4787. * src/CheckIntegrityDispatcherCommand.h
  4788. * src/CheckIntegrityMan.h
  4789. * src/ConsoleStatCalc.cc
  4790. * src/DownloadCommand.cc
  4791. * src/DownloadEngine.cc
  4792. * src/DownloadEngine.h
  4793. * src/DownloadEngineFactory.cc
  4794. * src/Makefile.am
  4795. * src/Makefile.in
  4796. * src/RequestGroup.cc
  4797. * src/StatCalc.h
  4798. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4799. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  4800. SequentialDispatcherCommand.
  4801. * src/FileAllocationDispatcherCommand.cc
  4802. * src/SequentialDispatcherCommand.h
  4803. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4804. Rewritten FileAllocationDispatcherCommand using brand new
  4805. SequentialDispatcherCommand.
  4806. * src/DownloadEngineFactory.cc
  4807. * src/FileAllocationCommand.cc
  4808. * src/FileAllocationDispatcherCommand.cc
  4809. * src/FileAllocationDispatcherCommand.h
  4810. * src/Makefile.am
  4811. * src/SequentialDispatcherCommand.h
  4812. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4813. Replaced FileAllocationMan with
  4814. SequentialPicker<FileAllocationEntry>.
  4815. * src/BtCheckIntegrityEntry.cc
  4816. * src/ConsoleStatCalc.cc
  4817. * src/DownloadEngine.cc
  4818. * src/DownloadEngine.h
  4819. * src/DownloadEngineFactory.cc
  4820. * src/FileAllocationCommand.cc
  4821. * src/FileAllocationDispatcherCommand.cc
  4822. * src/FileAllocationMan.h
  4823. * src/Makefile.am
  4824. * src/SequentialPicker.h
  4825. * src/StatCalc.h
  4826. * src/StreamCheckIntegrityEntry.cc
  4827. * test/Makefile.am
  4828. * test/SequentialPickerTest.cc
  4829. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4830. Added doc for adaptive URI selector.
  4831. * doc/aria2c.1.txt
  4832. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4833. Added doc for adaptive URI selector.
  4834. * src/usage_text.h
  4835. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4836. Added doc for --bt-max-peers option.
  4837. * doc/aria2c.1.txt
  4838. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4839. Added doc for --bt-hash-check-seed option.
  4840. * doc/aria2c.1.txt
  4841. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4842. Documented exit codes.
  4843. * doc/aria2c.1.txt
  4844. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4845. Added --bt-max-peers option to specify the maximum number of peers
  4846. per torrent. 0 means unlimited number of peers.
  4847. * src/ActivePeerConnectionCommand.cc
  4848. * src/BtRuntime.h
  4849. * src/DefaultPeerStorage.cc
  4850. * src/DefaultPeerStorage.h
  4851. * src/OptionHandlerFactory.cc
  4852. * src/RequestGroup.cc
  4853. * src/option_processing.cc
  4854. * src/prefs.cc
  4855. * src/prefs.h
  4856. * src/usage_text.h
  4857. * test/DefaultPeerStorageTest.cc
  4858. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4859. Added --bt-hash-check-seed option. If true is given to this
  4860. option, after hash check using --check-integrity option and file
  4861. is complete, continue to seed file. If you want to check file and
  4862. download it only when it is damaged or incomplete, set this option
  4863. to false. This option has effect only on BitTorrent download.
  4864. The default value is true(This is the same behavior with the
  4865. previous release).
  4866. * src/BtCheckIntegrityEntry.cc
  4867. * src/OptionHandlerFactory.cc
  4868. * src/option_processing.cc
  4869. * src/prefs.cc
  4870. * src/prefs.h
  4871. * src/usage_text.h
  4872. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4873. Updated copyright year.
  4874. * src/version_usage.cc
  4875. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4876. Rewritten the usage text for --bt-request-peer-speed-limit option.
  4877. * doc/aria2c.1.txt
  4878. * src/usage_text.h
  4879. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4880. Made the max value of split option unlimited.
  4881. * doc/aria2c.1.txt
  4882. * src/OptionHandlerFactory.cc
  4883. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4884. Fixed compile warning/error.
  4885. * src/DownloadResult.h
  4886. * src/HttpDownloadCommand.cc
  4887. * src/ServerStat.cc
  4888. * test/RequestGroupTest.cc
  4889. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4890. Added --event-poll option to select the method for polling events.
  4891. The available methods are "select" and "epoll". "epoll" is
  4892. available on Linux only. The earlier release has the compile
  4893. option to choose from these methods.
  4894. * configure.ac
  4895. * src/RequestGroupMan.cc
  4896. * src/OptionHandlerFactory.cc
  4897. * src/EpollEventPoll.h
  4898. * src/StreamFileAllocationEntry.cc
  4899. * src/a2io.h
  4900. * src/SelectEventPoll.h
  4901. * src/option_processing.cc
  4902. * src/prefs.h
  4903. * src/EpollEventPoll.cc
  4904. * src/EventPoll.h
  4905. * src/SocketCore.h
  4906. * src/Makefile.am
  4907. * src/main.cc
  4908. * src/DownloadEngine.h
  4909. * src/SelectEventPoll.cc
  4910. * src/DownloadEngine.cc
  4911. * src/SocketCore.cc
  4912. * src/DownloadEngineFactory.cc
  4913. * src/Makefile.in
  4914. * src/prefs.cc
  4915. * src/usage_text.h
  4916. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4917. Included RecoverableException.h from main.cc
  4918. * src/main.cc
  4919. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4920. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  4921. now returns last error encountered in the HTTP/FTP downloads as a
  4922. exit status value. If all downloads finished successfully, aria2
  4923. returns 0. The error code is defined in src/DownloadResult.h.
  4924. The error occurred in the download currently in progress is not
  4925. reported as a last error. If no error has encountered but there
  4926. are in progress or waiting downloads, aria2 returns 7.
  4927. * src/AbstractCommand.cc
  4928. * src/DlAbortEx.h
  4929. * src/DlRetryEx.h
  4930. * src/DownloadCommand.cc
  4931. * src/DownloadFailureException.h
  4932. * src/DownloadResult.h
  4933. * src/FtpNegotiationCommand.cc
  4934. * src/HttpSkipResponseCommand.cc
  4935. * src/Makefile.am
  4936. * src/MultiUrlRequestInfo.cc
  4937. * src/MultiUrlRequestInfo.h
  4938. * src/RecoverableException.h
  4939. * src/RequestGroup.cc
  4940. * src/RequestGroup.h
  4941. * src/RequestGroupMan.cc
  4942. * src/RequestGroupMan.h
  4943. * src/URIResult.cc
  4944. * src/URIResult.h
  4945. * src/main.cc
  4946. * src/option_processing.cc
  4947. * test/RequestGroupTest.cc
  4948. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4949. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  4950. patch adds AdaptiveURISelector, which selects one of the bests
  4951. mirrors for first and reserved connections. For supplementary
  4952. ones, it returns mirrors which has not been tested yet, and if
  4953. each of them already tested, returns mirrors which has to be
  4954. tested again. Otherwise, it doesn't return anymore mirrors.
  4955. * src/AdaptiveURISelector.cc
  4956. * src/AdaptiveURISelector.h
  4957. * src/FtpNegotiationCommand.cc
  4958. * src/HttpResponseCommand.cc
  4959. * src/Makefile.am
  4960. * src/Makefile.in
  4961. * src/OptionHandlerFactory.cc
  4962. * src/RequestGroup.cc
  4963. * src/RequestGroup.h
  4964. * src/RequestGroupMan.cc
  4965. * src/ServerStat.cc
  4966. * src/ServerStat.h
  4967. * src/ServerStatMan.cc
  4968. * src/SpeedCalc.cc
  4969. * src/URISelector.h
  4970. * src/prefs.cc
  4971. * src/prefs.h
  4972. * test/RequestGroupManTest.cc
  4973. * test/ServerStatManTest.cc
  4974. * test/ServerStatTest.cc
  4975. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4976. Fixed unit test error.
  4977. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  4978. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4979. * Release 1.1.2
  4980. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4981. Updated Russian translation. Thanks to the translators.
  4982. * po/ru.po
  4983. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4984. Added the description of --use-head option to man page.
  4985. * doc/aria2c.1.txt
  4986. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4987. Bump up version number to 1.1.2
  4988. * configure.ac
  4989. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4990. Added --use-head option to toggle whether HEAD method should be
  4991. used in the first HTTP request. By default aria2 uses HEAD method
  4992. as the first request. When the server doesn't recognize HEAD, then
  4993. give aria2 --use-head=false to force aria2 to use GET method
  4994. instead.
  4995. * src/OptionHandlerFactory.cc
  4996. * src/RequestGroupMan.cc
  4997. * src/option_processing.cc
  4998. * src/prefs.cc
  4999. * src/prefs.h
  5000. * src/usage_text.h
  5001. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5002. Fixed the bug that BitTorrent download doesn't finish when REJECT
  5003. message is received before CHOKE message. The old implementation
  5004. doen't clear the use-bit of the piece when recieved REJECT
  5005. message.
  5006. * src/DefaultBtMessageDispatcher.cc
  5007. * test/DefaultBtMessageDispatcherTest.cc
  5008. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5009. * Release 1.1.1
  5010. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5011. Bump up version number to 1.1.1.
  5012. * configure.ac
  5013. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5014. Fixed the bug that --summary-interval=0 doesn't work. The summary
  5015. is printed repeatedly.
  5016. * src/ConsoleStatCalc.cc
  5017. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5018. * Release 1.1.0
  5019. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5020. Added ifdef clause for conditional compilation.
  5021. * src/main.cc
  5022. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5023. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  5024. translations. Thanks to all translators.
  5025. * po/ja.po
  5026. * po/ru.po
  5027. * po/uk.po
  5028. * po/zh_CN.po
  5029. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5030. Added the preceding ">>> " before the message "Printing the
  5031. contents of file..." to make the output more readable.
  5032. * src/main.cc
  5033. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5034. Added try-catch block in the loop in showFiles() to continue the
  5035. operation even if the exception occurred in one file.
  5036. * src/main.cc (showFiles)
  5037. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5038. Made messages in showFiles() translatable.
  5039. * po/aria2.pot
  5040. * src/main.cc
  5041. * src/message.h
  5042. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5043. Print the contents of Torrent/Metalink files are printed without
  5044. -T/-M options.
  5045. * src/main.cc
  5046. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5047. Escaped '--' with '\--'
  5048. * README
  5049. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5050. Updated "How to build" section in README. Mentioned about
  5051. --with-ca-bundle compile option.
  5052. * README
  5053. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5054. Bump up version number to 1.1.0.
  5055. * configure.ac
  5056. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5057. Added a note for --dht-listen-port option.
  5058. * doc/aria2c.1.txt
  5059. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5060. Update doc for --realtime-chunk-checksum option.
  5061. * doc/aria2c.1.txt
  5062. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5063. Update doc for --realtime-chunk-checksum option.
  5064. * src/usage_text.h
  5065. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5066. Updated French, Japanese, Russian and Ukrainian translations.
  5067. Thanks to all translators.
  5068. * po/fr.po
  5069. * po/ja.po
  5070. * po/ru.po
  5071. * po/uk.po
  5072. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5073. Renamed aria2c.pot to aria2.pot
  5074. * po/aria2.pot
  5075. * po/aria2c.pot: Removed.
  5076. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5077. Removed MetaEntry.h
  5078. * src/Makefile.am
  5079. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5080. Rename file by appending digits if a local file exists and its
  5081. file size is larger than that of remote file with --continue
  5082. option. The old implementation just throws exception in such case.
  5083. * src/RequestGroup.cc
  5084. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5085. Fixed the bug that download progress summary is not printed in the
  5086. interval specified by the option.
  5087. * src/ConsoleStatCalc.cc
  5088. * src/ConsoleStatCalc.h
  5089. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5090. Fixed compiler warning
  5091. * src/Cookie.cc
  5092. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5093. Fixed the cookie implementation based on RFC2965.
  5094. Now if a value in domain field is not started with dot, then
  5095. prepend dot. That means a cookie with domain=sf.net is sent to
  5096. wiki.sf.net.
  5097. * src/Cookie.cc
  5098. * test/CookieParserTest.cc
  5099. * test/CookieStorageTest.cc
  5100. * test/CookieTest.cc
  5101. * test/NsCookieParserTest.cc
  5102. * test/Sqlite3MozCookieParserTest.cc
  5103. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5104. Fixed the bug that causes corrupted downloads if HTTP pipelining
  5105. is enabled and the server doesn't support keep-alive.
  5106. * src/AbstractCommand.cc
  5107. * src/DownloadCommand.cc
  5108. * src/HttpDownloadCommand.cc
  5109. * src/HttpDownloadCommand.h
  5110. * src/HttpResponseCommand.cc
  5111. * src/Request.cc
  5112. * src/Request.h
  5113. * test/RequestTest.cc
  5114. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5115. Removed Dictionary/List/Data and its related classes.
  5116. * src/BencodeVisitor.cc: Removed.
  5117. * src/BencodeVisitor.h: Removed.
  5118. * src/Data.cc: Removed.
  5119. * src/Data.h: Removed.
  5120. * src/Dictionary.cc: Removed.
  5121. * src/Dictionary.h: Removed.
  5122. * src/List.cc: Removed.
  5123. * src/List.h: Removed.
  5124. * src/Makefile.am
  5125. * src/MetaEntry.h: Removed.
  5126. * src/MetaEntryVisitor.h: Removed.
  5127. * src/MetaFileUtil.cc: Removed.
  5128. * src/MetaFileUtil.h: Removed.
  5129. * test/BencodeVisitorTest.cc: Removed.
  5130. * test/DataTest.cc: Removed.
  5131. * test/DictionaryTest.cc: Removed.
  5132. * test/ListTest.cc: Removed.
  5133. * test/Makefile.am
  5134. * test/MetaFileUtilTest.cc: Removed.
  5135. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5136. Removed include of MetaEntry.h
  5137. * test/DHTMessageTrackerEntryTest.cc
  5138. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5139. Use BDE instead of Dictionary/List/Data.
  5140. * src/AnnounceList.cc
  5141. * src/AnnounceList.h
  5142. * test/AnnounceListTest.cc
  5143. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5144. Use BDE instead of Dictionary/List/Data.
  5145. * src/DHTAbstractMessage.cc
  5146. * src/DHTAbstractMessage.h
  5147. * src/DHTAnnouncePeerMessage.cc
  5148. * src/DHTAnnouncePeerMessage.h
  5149. * src/DHTAnnouncePeerReplyMessage.cc
  5150. * src/DHTAnnouncePeerReplyMessage.h
  5151. * src/DHTFindNodeMessage.cc
  5152. * src/DHTFindNodeMessage.h
  5153. * src/DHTFindNodeReplyMessage.cc
  5154. * src/DHTFindNodeReplyMessage.h
  5155. * src/DHTGetPeersMessage.cc
  5156. * src/DHTGetPeersMessage.h
  5157. * src/DHTGetPeersReplyMessage.cc
  5158. * src/DHTGetPeersReplyMessage.h
  5159. * src/DHTMessageFactory.h
  5160. * src/DHTMessageFactoryImpl.cc
  5161. * src/DHTMessageFactoryImpl.h
  5162. * src/DHTMessageReceiver.cc
  5163. * src/DHTMessageTracker.cc
  5164. * src/DHTMessageTracker.h
  5165. * src/DHTPingMessage.cc
  5166. * src/DHTPingMessage.h
  5167. * src/DHTPingReplyMessage.cc
  5168. * src/DHTPingReplyMessage.h
  5169. * src/DHTQueryMessage.cc
  5170. * src/DHTQueryMessage.h
  5171. * src/DHTResponseMessage.cc
  5172. * src/DHTResponseMessage.h
  5173. * test/DHTAnnouncePeerMessageTest.cc
  5174. * test/DHTAnnouncePeerReplyMessageTest.cc
  5175. * test/DHTFindNodeMessageTest.cc
  5176. * test/DHTFindNodeReplyMessageTest.cc
  5177. * test/DHTGetPeersMessageTest.cc
  5178. * test/DHTGetPeersReplyMessageTest.cc
  5179. * test/DHTMessageFactoryImplTest.cc
  5180. * test/DHTMessageTrackerTest.cc
  5181. * test/DHTPingMessageTest.cc
  5182. * test/DHTPingReplyMessageTest.cc
  5183. * test/MockDHTMessageFactory.h
  5184. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5185. Added tests the case where length < 0 is specified.
  5186. * test/BencodeTest.cc
  5187. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5188. Fixed memory leak in decoderawstring()
  5189. * src/bencode.cc
  5190. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5191. Added missing #ifdef guard. Added uc() function for String and
  5192. removeKey() for Dict.
  5193. * src/bencode.cc
  5194. * src/bencode.h
  5195. * test/BencodeTest.cc
  5196. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5197. Use BDE instead of Dictionary/List/Data.
  5198. * src/HandshakeExtensionMessage.cc
  5199. * src/HandshakeExtensionMessage.h
  5200. * test/HandshakeExtensionMessageTest.cc
  5201. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5202. Added --max-overall-upload-limit option. This option limits the
  5203. overall upload speed. Stated in help message that the existing
  5204. --max-upload-limit option limits the upload speed per each
  5205. torrent. Man page is also updated.
  5206. * doc/aria2c.1.txt
  5207. * src/DefaultBtMessageDispatcher.cc
  5208. * src/DefaultBtMessageDispatcher.h
  5209. * src/OptionHandlerFactory.cc
  5210. * src/PeerInteractionCommand.cc
  5211. * src/option_processing.cc
  5212. * src/prefs.cc
  5213. * src/prefs.h
  5214. * src/usage_text.h
  5215. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5216. Use BDE instead of Dictionary/List/Data classes.
  5217. * src/CompactPeerListProcessor.cc
  5218. * src/CompactPeerListProcessor.h
  5219. * src/DefaultBtAnnounce.cc
  5220. * src/DefaultBtContext.cc
  5221. * src/DefaultBtContext.h
  5222. * src/DefaultPeerListProcessor.cc
  5223. * src/DefaultPeerListProcessor.h
  5224. * src/DelegatingPeerListProcessor.cc
  5225. * src/DelegatingPeerListProcessor.h
  5226. * src/PeerListProcessor.h
  5227. * src/UTPexExtensionMessage.cc
  5228. * src/Util.h
  5229. * src/message.h
  5230. * test/DefaultBtContextTest.cc
  5231. * test/DefaultPeerListProcessorTest.cc
  5232. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5233. Added bencode helper functions and BDE class.
  5234. They will replace MetaFileUtil and Dictionary/List/Data classes.
  5235. * src/Makefile.am
  5236. * src/bencode.cc
  5237. * src/bencode.h
  5238. * test/BencodeTest.cc
  5239. * test/Makefile.am
  5240. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5241. Fixed the bug that bad URI is sent to the tracker when the announe
  5242. URI in torrent file includes query.
  5243. * src/DefaultBtAnnounce.cc
  5244. * test/DefaultBtAnnounceTest.cc
  5245. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5246. Added Option::blank().
  5247. Use !Option::blank(name) instead of Option::defined(name) for
  5248. the options that take filename.
  5249. * src/MultiUrlRequestInfo.cc
  5250. * src/Option.cc
  5251. * src/Option.h
  5252. * src/main.cc
  5253. * src/option_processing.cc
  5254. * test/OptionTest.cc
  5255. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5256. Documented the default value of --check-certificate option in man
  5257. page.
  5258. * doc/aria2c.1.txt
  5259. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5260. Enabled --check-certificate by default. Added compile
  5261. time(configure) option --with-ca-bundle to specify CA bundle.
  5262. Warn if --check-certificate=true and --ca-certificate is not
  5263. specified or loading CA certificate is failed.
  5264. * configure.ac
  5265. * src/MultiUrlRequestInfo.cc
  5266. * src/OptionHandlerFactory.cc
  5267. * src/message.h
  5268. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5269. Mentioned https tag in help option.
  5270. * doc/aria2c.1.txt
  5271. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5272. Added `https' tag to help option category. Added https tag to
  5273. --ca-certificate, --certificate, --check-certificate and
  5274. --private-key option.
  5275. * src/OptionHandlerFactory.cc
  5276. * src/help_tags.h
  5277. * src/option_processing.cc
  5278. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5279. Changed the package name from `aria2c' to `aria2' in order to fix
  5280. the packaging issue in Debian and Fedora. The name of the
  5281. executable is not changed.
  5282. * configure.ac
  5283. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5284. Fixed typos
  5285. * src/usage_text.h
  5286. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5287. Fixed typos and updated doc.
  5288. * README
  5289. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5290. Fixed typos
  5291. * doc/aria2c.1.txt
  5292. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5293. Fixed typos
  5294. * src/usage_text.h
  5295. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5296. Print a message when no files to download.
  5297. * src/download_helper.cc
  5298. * src/main.cc
  5299. * src/message.h
  5300. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5301. RFC3986 complied Percent-Encoding(urlencode).
  5302. Use uppercase hexadecimal digits for encoded text instead of lowercase
  5303. ones.
  5304. * src/Request.cc
  5305. * src/Util.cc
  5306. * src/Util.h
  5307. * test/BtHandshakeMessageTest.cc
  5308. * test/DefaultBtAnnounceTest.cc
  5309. * test/DefaultBtContextTest.cc
  5310. * test/RequestTest.cc
  5311. * test/UtilTest.cc
  5312. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5313. Fixed the bug that prevents aria2 from downloading 0-length files
  5314. via HTTP/FTP.
  5315. * src/DefaultBtContext.cc
  5316. * src/DefaultBtContext.h
  5317. * src/DownloadContext.h
  5318. * src/FtpNegotiationCommand.cc
  5319. * src/HttpResponseCommand.cc
  5320. * src/HttpResponseCommand.h
  5321. * src/RequestGroup.cc
  5322. * src/SingleFileDownloadContext.cc
  5323. * src/SingleFileDownloadContext.h
  5324. * test/BtPostDownloadHandlerTest.cc
  5325. * test/MetalinkPostDownloadHandlerTest.cc
  5326. * test/MockBtContext.h
  5327. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5328. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  5329. * src/option_processing.cc
  5330. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5331. Applied aria2-1.0.1-mingw.patch.
  5332. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  5333. mingw.
  5334. Collected 4th and 5th argument types for getsockopt and setsockopt.
  5335. * src/SocketCore.cc
  5336. * src/a2netcompat.h
  5337. * test/SocketCoreTest.cc
  5338. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5339. * Release 1.0.1
  5340. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5341. Updated Ukrainian and Norwegian Nynorsk translations.
  5342. Thanks to all translators.
  5343. * po/nn.po
  5344. * po/uk.po
  5345. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5346. Don't show download result when -S option is used.
  5347. * src/main.cc
  5348. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5349. Bump up version number to 1.0.1
  5350. * configure.ac
  5351. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5352. Closed files after the test cases in MultiDiskWriterTest::
  5353. testResetDiskWriterEntries(). This will fix the unit test error
  5354. in mingw32 build.
  5355. * test/MultiDiskWriterTest.cc
  5356. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5357. Use HEAD method to get file size from HTTP server for segmented
  5358. downloading.
  5359. The request to the BitTorrent Tracker always uses GET method because
  5360. the response of the tracker is small and it doesn't need segmented
  5361. download.
  5362. * src/FtpNegotiationCommand.cc
  5363. * src/HttpRequest.cc
  5364. * src/HttpResponseCommand.cc
  5365. * src/HttpSkipResponseCommand.cc
  5366. * src/RequestGroup.cc
  5367. * src/RequestGroup.h
  5368. * src/TrackerWatcherCommand.cc
  5369. * test/HttpRequestTest.cc
  5370. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5371. Fixed the bug that causes floating exception when -T option is used and
  5372. no URIs are given.
  5373. * src/download_helper.cc
  5374. * test/DownloadHelperTest.cc
  5375. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  5376. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  5377. errors in MinGW:
  5378. Closed file after saving server stats (RequestGroupMan.cc)
  5379. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  5380. Ignored case & handled 2-digit years (strptime.c)
  5381. Added missing suseconds_t definition (a2time.h)
  5382. Fixed socket CLOSE() define (SocketCore.cc)
  5383. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  5384. Changed utime() test values from x000 to x00000 as MinGW failed on
  5385. values less than timezone offset from Unix epoch
  5386. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  5387. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  5388. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  5389. handle negative dates (CookieParserTest.cc)
  5390. * src/a2time.h
  5391. * src/FtpConnection.cc
  5392. * src/RequestGroupMan.cc
  5393. * src/SocketCore.cc
  5394. * src/strptime.c
  5395. * test/CookieParserTest.cc
  5396. * test/CopyDiskAdaptorTest.cc
  5397. * test/FileTest.cc
  5398. * test/FtpConnectionTest.cc
  5399. * test/MultiDiskAdaptorTest.cc
  5400. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5401. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  5402. * doc/aria2c.1.txt
  5403. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5404. * Release 1.0.0
  5405. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5406. Added '~' to reserved characters.
  5407. * src/Util.cc
  5408. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5409. Do not urlencode Request::url in setUrl() because we want unmodified
  5410. URL using Request::getUrl()
  5411. * src/Request.cc
  5412. * src/Request.h
  5413. * test/RequestTest.cc
  5414. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5415. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  5416. Thanks to all translators.
  5417. * po/bg.po
  5418. * po/fr.po
  5419. * po/ja.po
  5420. * po/ru.po
  5421. * po/uk.po
  5422. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5423. Bump up version number to 1.0.0
  5424. * configure.ac
  5425. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5426. Added nosqlite3 build to build_test.sh.
  5427. Renamed noxml as expat.
  5428. * build_test.sh
  5429. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5430. Updated INPUT FILE section.
  5431. * doc/aria2c.1.txt
  5432. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5433. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  5434. on big endian systems because test .aria2 files are made for little
  5435. endian systems.
  5436. * test/DefaultBtProgressInfoFileTest.cc
  5437. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5438. Dropped ares support.
  5439. * README
  5440. * configure.ac
  5441. * m4/libares.m4: Removed.
  5442. * src/AsyncNameResolver.cc
  5443. * src/Makefile.am
  5444. * test/Makefile.am
  5445. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5446. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  5447. Removed const qualifier from DiskWriter::size().
  5448. * src/AbstractDiskWriter.cc
  5449. * src/AbstractDiskWriter.h
  5450. * src/ByteArrayDiskWriter.cc
  5451. * src/ByteArrayDiskWriter.h
  5452. * src/DiskWriter.h
  5453. * test/ByteArrayDiskWriterTest.cc
  5454. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5455. Fixed the bug that causes segmentation fault/bus error during executing
  5456. choking algorithm while seeding. This is caused by improper
  5457. implementation of compare function which returns inconsistent results
  5458. depending on the timing of last unchoke.
  5459. * src/BtSeederStateChoke.cc
  5460. * src/BtSeederStateChoke.h
  5461. * src/DefaultPeerStorage.cc
  5462. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5463. Removed TODO
  5464. * TODO
  5465. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5466. Added a section that explains how to pass argument to options that
  5467. takes optional arguments with its short form.
  5468. * doc/aria2c.1.txt
  5469. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5470. Added -u for the short form of --max-upload-limit option.
  5471. * doc/aria2c.1.txt
  5472. * src/option_processing.cc
  5473. * src/usage_text.h
  5474. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5475. Added -V for the short form of --check-integrity option.
  5476. Now the argument of --check-integrity option is optional:
  5477. if it is omitted, it is evaluated as true.
  5478. * doc/aria2c.1.txt
  5479. * src/option_processing.cc
  5480. * src/usage_text.h
  5481. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5482. Made the default value of --ftp-pasv option set to true and it can take
  5483. true/false values.
  5484. * src/OptionHandlerFactory.cc
  5485. * src/option_processing.cc
  5486. * src/usage_text.h
  5487. * doc/aria2c.1.txt
  5488. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5489. Given custom random number generator to std::random_shuffle.
  5490. * src/AnnounceList.cc
  5491. * src/BtLeecherStateChoke.cc
  5492. * src/BtSeederStateChoke.cc
  5493. * src/DefaultBtRequestFactory.cc
  5494. * src/MetalinkEntry.cc
  5495. * src/RarestPieceSelector.cc
  5496. * src/SimpleRandomizer.cc
  5497. * src/SimpleRandomizer.h
  5498. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5499. Now the default value of --enable-direct-io is true.
  5500. * src/OptionHandlerFactory.cc
  5501. * doc/aria2c.1.txt
  5502. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5503. Erase peer before executing onReturningPeer and onErasingPeer
  5504. because choking algorithm called from onReturningPeer doesn't
  5505. like erasing peer in the active peer list.
  5506. * src/DefaultPeerStorage.cc
  5507. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5508. Instead of creating special filename in createDownloadResult() if
  5509. inMemoryDownload() is true, now it is done in getFilePath().
  5510. * src/RequestGroup.cc
  5511. * test/RequestGroupTest.cc
  5512. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5513. Print "[MEMORY]" and filename if a file is not saved in disk and just
  5514. processed in memory. This is the fix for previous comment out.
  5515. * src/MemoryBufferPreDownloadHandler.cc
  5516. * src/RequestGroup.cc
  5517. * src/RequestGroup.h
  5518. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5519. Commented out the code which sets virtual directory path "[MEMORY]"
  5520. propagate directory to store to following RequestGroup.
  5521. * src/MemoryBufferPreDownloadHandler.cc
  5522. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5523. Bump up version number to 1.0.0b
  5524. * configure.ac
  5525. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5526. Added input_uris.txt to EXTRA_DIST
  5527. * test/Makefile.am
  5528. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5529. Removed PeerObject.h from Makefile.am
  5530. * src/Makefile.am
  5531. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5532. Avoid slow seeding
  5533. * src/PeerInteractionCommand.cc
  5534. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5535. Updated usage for -i option.
  5536. * src/usage_text.h (TEXT_INPUT_FILE)
  5537. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5538. Added INPUT FILE section to man page.
  5539. Escaped fake URLs.
  5540. * doc/aria2c.1.txt
  5541. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5542. Fixed wrong note position for -o option.
  5543. * doc/aria2c.1.txt
  5544. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5545. Fixed compile error without SSL/XML library.
  5546. * src/DefaultBtProgressInfoFile.cc
  5547. * src/DefaultBtProgressInfoFile.h
  5548. * src/FileMetalinkParserState.cc
  5549. * src/RequestGroup.h
  5550. * src/SocketCore.cc
  5551. * src/SocketCore.h
  5552. * src/VerificationMetalinkParserState.cc
  5553. * src/download_helper.h
  5554. * src/main.cc
  5555. * test/DefaultBtProgressInfoFileTest.cc
  5556. * test/DownloadHelperTest.cc
  5557. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5558. Rewritten URI handling functions. They are now provided as a testable
  5559. functions.
  5560. * src/Makefile.am
  5561. * src/RequestGroup.cc
  5562. * src/RequestGroup.h
  5563. * src/download_helper.cc
  5564. * src/download_helper.h
  5565. * src/main.cc
  5566. * test/DownloadHelperTest.cc
  5567. * test/Makefile.am
  5568. * test/input_uris.txt
  5569. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5570. Quickly terminate commands when ctrl-c is pressed.
  5571. * src/DownloadEngine.cc
  5572. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5573. Quickly terminate idle commands when download finished.
  5574. * src/AbstractCommand.cc
  5575. * src/DownloadCommand.cc
  5576. * src/DownloadEngine.cc
  5577. * src/DownloadEngine.h
  5578. * src/SleepCommand.cc
  5579. * src/SleepCommand.h
  5580. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5581. Added the ability to specify output filename and directory in input
  5582. file.
  5583. Additional parameters are added in the following line of URIs
  5584. with proceeding white space(s), 1 parameter in 1 line.
  5585. The parameter names are the same with the command-line option name
  5586. without proceeding "--". Not all the options are available here:
  5587. at the moment, 'dir' and 'out' options are avialable.
  5588. Please note that out option has no effect against Metalink or BitTorrent
  5589. downloads.
  5590. Example input file:
  5591. http://host/foo-1.1.tar.bz2
  5592. out=foo.tar.bz2
  5593. dir=/tmp/downloads
  5594. http://host/thundermonkey-2.0.tar.bz2
  5595. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  5596. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  5597. thundermonkey-2.0.tar.bz2 is saved as
  5598. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  5599. * src/BtPostDownloadHandler.cc
  5600. * src/Metalink2RequestGroup.cc
  5601. * src/Metalink2RequestGroup.h
  5602. * src/MetalinkPostDownloadHandler.cc
  5603. * src/UriListParser.cc
  5604. * src/UriListParser.h
  5605. * src/main.cc
  5606. * test/Metalink2RequestGroupTest.cc
  5607. * test/UriListParserTest.cc
  5608. * test/filelist1.txt
  5609. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5610. Fixed error when SSL library is not found.
  5611. * configure.ac
  5612. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5613. Cross referenced among -s, -C and -j options.
  5614. Updated usage of -C and -s options.
  5615. * src/usage_text.h
  5616. * doc/aria2c.1.txt
  5617. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5618. Fixed bad cast in 32bit platforms.
  5619. * test/DefaultPieceStorageTest.cc
  5620. (DefaultPieceStorageTest::testGetCompletedLength)
  5621. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5622. Fixed unit test fails on 32bit platforms.
  5623. * test/CookieParserTest.cc
  5624. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5625. Show an average download speed in Download results.
  5626. * src/BtFileAllocationEntry.cc
  5627. * src/DefaultPieceStorage.cc
  5628. * src/DownloadContext.cc
  5629. * src/DownloadContext.h
  5630. * src/DownloadResult.h
  5631. * src/RequestGroup.cc
  5632. * src/RequestGroupMan.cc
  5633. * src/StreamFileAllocationEntry.cc
  5634. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5635. Fixed the bug that metalink file is not processed if Content-Type
  5636. field has a paramter.
  5637. * src/HttpResponse.cc
  5638. * src/HttpResponse.h
  5639. * test/HttpResponseTest.cc
  5640. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5641. Removed unused code.
  5642. * src/DefaultBtAnnounce.cc
  5643. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5644. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  5645. the value larger than DefaultPieceStorage::getTotalLength() when
  5646. in flight pieces are involved.
  5647. * src/DefaultPieceStorage.cc
  5648. * test/DefaultPieceStorageTest.cc
  5649. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5650. Bump up version number to 1.0.0a.
  5651. * configure.ac
  5652. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5653. Updated configure.ac
  5654. * configure.ac
  5655. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5656. Added usege for proxy.
  5657. * doc/aria2c.1.txt
  5658. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5659. Added usage for --ca-certificate, --certificate, --private-key and
  5660. --check-certificate options.
  5661. * doc/aria2c.1.txt
  5662. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5663. Updated man page
  5664. * doc/aria2c.1.txt
  5665. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5666. Added --no-proxy option. It receives comman separated hostname or
  5667. domains to which proxy should not be used.
  5668. aria2 honors the environment variable no_proxy to override no-proxy
  5669. value in configuration file. The user can override the environment
  5670. variable no_proxy with --no-proxy command-line option.
  5671. * src/AbstractCommand.cc
  5672. * src/OptionHandlerFactory.cc
  5673. * src/option_processing.cc
  5674. * src/prefs.cc
  5675. * src/prefs.h
  5676. * src/usage_text.h
  5677. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5678. Added the ability to verify peer in SSL/TLS using given CA certificates.
  5679. The CA certificates are specified in --ca-certificate option.
  5680. By default, the verification is disabled. Use --check-certificate
  5681. option to enable it.
  5682. * src/HttpRequestCommand.cc
  5683. * src/LibgnutlsTLSContext.cc
  5684. * src/LibgnutlsTLSContext.h
  5685. * src/LibsslTLSContext.cc
  5686. * src/LibsslTLSContext.h
  5687. * src/MultiUrlRequestInfo.cc
  5688. * src/OptionHandlerFactory.cc
  5689. * src/SocketCore.cc
  5690. * src/SocketCore.h
  5691. * src/a2functional.h
  5692. * src/message.h
  5693. * src/option_processing.cc
  5694. * src/prefs.cc
  5695. * src/prefs.h
  5696. * src/usage_text.h
  5697. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5698. Added client certificate authentication for SSL/TLS.
  5699. Currently a private key must be decrypted for use with aria2.
  5700. If a user accidentally gives encrypted file to aria2 then following
  5701. thing happens:
  5702. If encrypted private key is given to aria2, it behaves differently
  5703. depending on the ssl library it uses. If aria2 built with openssl then
  5704. openssl prompts the user for password. If aria2 build with gnutls then
  5705. aria2 exists with error at start up.
  5706. * src/DownloadEngineFactory.cc
  5707. * src/MultiUrlRequestInfo.cc
  5708. * src/OptionHandlerFactory.cc
  5709. * src/option_processing.cc
  5710. * src/prefs.cc
  5711. * src/prefs.h
  5712. * src/usage_text.h
  5713. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5714. Introduced TLSContext that holds TLS related data that can be shared
  5715. with multiple SSL connections.
  5716. * src/DownloadEngineFactory.cc
  5717. * src/LibgnutlsTLSContext.cc
  5718. * src/LibgnutlsTLSContext.h
  5719. * src/LibsslTLSContext.cc
  5720. * src/LibsslTLSContext.h
  5721. * src/Makefile.am
  5722. * src/SocketCore.cc
  5723. * src/SocketCore.h
  5724. * src/TLSContext.h
  5725. * src/message.h
  5726. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5727. Fixed the bug that the DiskWriter of the first FileEntry whose
  5728. `needsFileAllocation' property is false is not created
  5729. even if it shares a piece with next FileEntry which `requested' property
  5730. is true.
  5731. Fixed the bug that zero-length file is not created if pre file
  5732. allocation is not done.
  5733. * src/MultiDiskAdaptor.cc
  5734. * src/MultiDiskAdaptor.h
  5735. * test/MultiDiskAdaptorTest.cc
  5736. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5737. Added the ability to pool proxy connection.
  5738. The conneciton in FTP with proxy-method=GET is not pooled.
  5739. Proxy-Connection header will not be sent when sending CONNECT method.
  5740. * src/DownloadEngine.cc
  5741. * src/DownloadEngine.h
  5742. * src/FtpFinishDownloadCommand.cc
  5743. * src/FtpInitiateConnectionCommand.cc
  5744. * src/FtpNegotiationCommand.cc
  5745. * src/HttpDownloadCommand.cc
  5746. * src/HttpInitiateConnectionCommand.cc
  5747. * src/HttpRequest.cc
  5748. * src/HttpRequest.h
  5749. * src/HttpResponse.cc
  5750. * src/HttpSkipResponseCommand.cc
  5751. * test/HttpRequestTest.cc
  5752. * test/HttpResponseTest.cc
  5753. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5754. Handle date before epoch.
  5755. To create *bad* Time object, call Time::null().
  5756. * src/CookieParser.cc
  5757. * src/FtpConnection.cc
  5758. * src/FtpConnection.h
  5759. * src/FtpNegotiationCommand.cc
  5760. * src/RequestGroup.cc
  5761. * src/TimeA2.cc
  5762. * src/TimeA2.h
  5763. * test/CookieParserTest.cc
  5764. * test/FtpConnectionTest.cc
  5765. * test/TimeTest.cc
  5766. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5767. Added support for following envrionment variables: http_proxy,
  5768. https_proxy, ftp_proxy and all_proxy.
  5769. Each variable is equivalent to the aria2 option whose name is the
  5770. variable name with '_' replaced with '-'.
  5771. They overrides options specified in aria2.conf file.
  5772. The envrionment variables can be overrode using command-line option.
  5773. * src/option_processing.cc
  5774. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5775. Renamed --http-proxy-method as --proxy-method.
  5776. * src/AbstractCommand.cc
  5777. * src/FtpInitiateConnectionCommand.cc
  5778. * src/HttpInitiateConnectionCommand.cc
  5779. * src/OptionHandlerFactory.cc
  5780. * src/option_processing.cc
  5781. * src/prefs.cc
  5782. * src/prefs.h
  5783. * src/usage_text.h
  5784. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5785. Deprecated --http-proxy-user and --http-proxy-passwd options.
  5786. Added --https-proxy, --ftp-proxy and --all-proxy options.
  5787. Above 3 options and --http-proxy option can handle proxy in URL format
  5788. like: http://user:passwd@host:port.
  5789. If a proxy requires user/password, they must be specified in a URL.
  5790. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  5791. instead.
  5792. * src/AbstractCommand.cc
  5793. * src/AbstractCommand.h
  5794. * src/AbstractProxyRequestCommand.cc
  5795. * src/AbstractProxyRequestCommand.h
  5796. * src/AuthConfigFactory.cc
  5797. * src/AuthConfigFactory.h
  5798. * src/FtpFinishDownloadCommand.cc
  5799. * src/FtpInitiateConnectionCommand.cc
  5800. * src/FtpInitiateConnectionCommand.h
  5801. * src/FtpNegotiationCommand.cc
  5802. * src/FtpTunnelRequestCommand.cc
  5803. * src/FtpTunnelRequestCommand.h
  5804. * src/HttpDownloadCommand.cc
  5805. * src/HttpInitiateConnectionCommand.cc
  5806. * src/HttpInitiateConnectionCommand.h
  5807. * src/HttpProxyRequestCommand.cc
  5808. * src/HttpProxyRequestCommand.h
  5809. * src/HttpRequest.cc
  5810. * src/HttpRequest.h
  5811. * src/HttpRequestCommand.cc
  5812. * src/HttpRequestCommand.h
  5813. * src/HttpSkipResponseCommand.cc
  5814. * src/InitiateConnectionCommand.cc
  5815. * src/InitiateConnectionCommand.h
  5816. * src/OptionHandlerFactory.cc
  5817. * src/OptionHandlerImpl.h
  5818. * src/Request.cc
  5819. * src/option_processing.cc
  5820. * src/prefs.cc
  5821. * src/prefs.h
  5822. * src/usage_text.h
  5823. * test/AuthConfigFactoryTest.cc
  5824. * test/HttpRequestTest.cc
  5825. * test/OptionHandlerTest.cc
  5826. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5827. Execute choking algorithm when unchoked and interested peer is
  5828. disconected.
  5829. * src/DefaultPeerStorage.cc
  5830. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5831. Added testcase for BtNotInterestedMessage from unchoked peer.
  5832. * test/BtNotInterestedMessageTest.cc
  5833. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5834. Execute choking algorithm when BtInterestedMessage arrives from
  5835. unchoked peer.
  5836. * src/BtInterestedMessage.cc
  5837. * src/BtInterestedMessage.h
  5838. * src/DefaultBtMessageFactory.cc
  5839. * test/BtInterestedMessageTest.cc
  5840. * test/MockPeerStorage.h
  5841. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5842. AuthConfigFactory is now part of DownloadEngine.
  5843. * src/AbstractProxyRequestCommand.cc
  5844. * src/AuthConfigFactory.h
  5845. * src/DownloadEngine.cc
  5846. * src/DownloadEngine.h
  5847. * src/FtpConnection.cc
  5848. * src/FtpConnection.h
  5849. * src/FtpNegotiationCommand.cc
  5850. * src/HttpConnection.cc
  5851. * src/HttpRequest.cc
  5852. * src/HttpRequest.h
  5853. * src/HttpRequestCommand.cc
  5854. * src/HttpResponse.cc
  5855. * src/HttpResponseCommand.cc
  5856. * src/HttpSkipResponseCommand.cc
  5857. * src/MultiUrlRequestInfo.cc
  5858. * src/main.cc
  5859. * test/FtpConnectionTest.cc
  5860. * test/HttpRequestTest.cc
  5861. * test/HttpResponseTest.cc
  5862. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5863. Corrected catched exception type.
  5864. * src/ServerStatMan.cc
  5865. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5866. DNSCache is now part of DownloadEngine.
  5867. * src/DNSCache.h
  5868. * src/DownloadEngine.cc
  5869. * src/DownloadEngine.h
  5870. * src/InitiateConnectionCommand.cc
  5871. * src/MultiUrlRequestInfo.cc
  5872. * test/Makefile.am
  5873. * test/Makefile.in
  5874. * test/SimpleDNSCacheTest.cc
  5875. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5876. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  5877. DownloadEngine.
  5878. * src/ActivePeerConnectionCommand.cc
  5879. * src/BtSetup.cc
  5880. * src/CUIDCounter.h
  5881. * src/DHTSetup.cc
  5882. * src/DownloadCommand.cc
  5883. * src/DownloadEngine.cc
  5884. * src/DownloadEngine.h
  5885. * src/DownloadEngineFactory.cc
  5886. * src/FileAllocationDispatcherCommand.cc
  5887. * src/InitiatorMSEHandshakeCommand.cc
  5888. * src/PeerInitiateConnectionCommand.cc
  5889. * src/PeerInteractionCommand.cc
  5890. * src/PeerListenCommand.cc
  5891. * src/RequestGroup.cc
  5892. * src/StreamFileAllocationEntry.cc
  5893. * src/TrackerWatcherCommand.cc
  5894. * src/main.cc
  5895. * test/RequestGroupManTest.cc
  5896. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5897. Implemented commented code in BtSeederStateChoke
  5898. * src/BtSeederStateChoke.cc
  5899. * src/Peer.cc
  5900. * src/Peer.h
  5901. * src/PeerInteractionCommand.cc
  5902. * src/PeerSessionResource.cc
  5903. * src/PeerSessionResource.h
  5904. * test/MockBtMessageDispatcher.h
  5905. * test/PeerSessionResourceTest.cc
  5906. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5907. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  5908. its object.
  5909. * src/AbstractBtMessage.cc
  5910. * src/ActivePeerConnectionCommand.cc
  5911. * src/ActivePeerConnectionCommand.h
  5912. * src/BtContextAwareCommand.cc
  5913. * src/BtContextAwareCommand.h
  5914. * src/BtExtendedMessage.cc
  5915. * src/BtExtendedMessage.h
  5916. * src/BtInterestedMessage.cc
  5917. * src/BtInterestedMessage.h
  5918. * src/BtNotInterestedMessage.cc
  5919. * src/BtNotInterestedMessage.h
  5920. * src/BtRegistry.cc
  5921. * src/BtRegistry.h
  5922. * src/BtSeederStateChoke.cc
  5923. * src/BtSetup.cc
  5924. * src/DHTGetPeersCommand.cc
  5925. * src/DHTGetPeersCommand.h
  5926. * src/DHTPeerAnnounceEntry.cc
  5927. * src/DHTPeerAnnounceEntry.h
  5928. * src/DHTPeerAnnounceStorage.cc
  5929. * src/DHTPeerAnnounceStorage.h
  5930. * src/DHTPeerLookupTask.cc
  5931. * src/DHTPeerLookupTask.h
  5932. * src/DHTSetup.cc
  5933. * src/DHTSetup.h
  5934. * src/DHTTaskFactory.h
  5935. * src/DHTTaskFactoryImpl.cc
  5936. * src/DHTTaskFactoryImpl.h
  5937. * src/DefaultBtAnnounce.cc
  5938. * src/DefaultBtInteractive.cc
  5939. * src/DefaultBtInteractive.h
  5940. * src/DefaultBtMessageDispatcher.cc
  5941. * src/DefaultBtMessageDispatcher.h
  5942. * src/DefaultBtMessageFactory.cc
  5943. * src/DefaultBtMessageFactory.h
  5944. * src/DefaultBtMessageReceiver.cc
  5945. * src/DefaultBtProgressInfoFile.cc
  5946. * src/DefaultBtProgressInfoFile.h
  5947. * src/DefaultBtRequestFactory.cc
  5948. * src/DefaultBtRequestFactory.h
  5949. * src/DefaultExtensionMessageFactory.cc
  5950. * src/DefaultExtensionMessageFactory.h
  5951. * src/DefaultPeerStorage.cc
  5952. * src/DefaultPeerStorage.h
  5953. * src/DownloadEngine.cc
  5954. * src/DownloadEngine.h
  5955. * src/InitiatorMSEHandshakeCommand.cc
  5956. * src/InitiatorMSEHandshakeCommand.h
  5957. * src/MSEHandshake.cc
  5958. * src/MSEHandshake.h
  5959. * src/Makefile.am
  5960. * src/Makefile.in
  5961. * src/PeerChokeCommand.cc
  5962. * src/PeerChokeCommand.h
  5963. * src/PeerInitiateConnectionCommand.cc
  5964. * src/PeerInitiateConnectionCommand.h
  5965. * src/PeerInteractionCommand.cc
  5966. * src/PeerInteractionCommand.h
  5967. * src/PeerObject.h
  5968. * src/PeerReceiveHandshakeCommand.cc
  5969. * src/PeerReceiveHandshakeCommand.h
  5970. * src/ReceiverMSEHandshakeCommand.cc
  5971. * src/RequestGroup.cc
  5972. * src/RequestGroup.h
  5973. * src/RequestGroupMan.cc
  5974. * src/RequestGroupMan.h
  5975. * src/SeedCheckCommand.cc
  5976. * src/SeedCheckCommand.h
  5977. * src/ShareRatioSeedCriteria.h
  5978. * src/SimpleBtMessage.cc
  5979. * src/TrackerWatcherCommand.cc
  5980. * src/TrackerWatcherCommand.h
  5981. * src/UTPexExtensionMessage.cc
  5982. * src/UTPexExtensionMessage.h
  5983. * test/BtCancelMessageTest.cc
  5984. * test/BtChokeMessageTest.cc
  5985. * test/BtExtendedMessageTest.cc
  5986. * test/BtInterestedMessageTest.cc
  5987. * test/BtNotInterestedMessageTest.cc
  5988. * test/BtPieceMessageTest.cc
  5989. * test/BtPortMessageTest.cc
  5990. * test/BtRegistryTest.cc
  5991. * test/BtRejectMessageTest.cc
  5992. * test/BtRequestMessageTest.cc
  5993. * test/DHTPeerAnnounceEntryTest.cc
  5994. * test/DHTPeerAnnounceStorageTest.cc
  5995. * test/DefaultBtMessageDispatcherTest.cc
  5996. * test/DefaultBtMessageFactoryTest.cc
  5997. * test/DefaultBtProgressInfoFileTest.cc
  5998. * test/DefaultBtRequestFactoryTest.cc
  5999. * test/DefaultExtensionMessageFactoryTest.cc
  6000. * test/MSEHandshakeTest.cc
  6001. * test/MockDHTTaskFactory.h
  6002. * test/ShareRatioSeedCriteriaTest.cc
  6003. * test/UTPexExtensionMessageTest.cc
  6004. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6005. Fixed compiler warning.
  6006. * test/UtilTest.cc
  6007. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6008. Treat Cookie object as session cookie if expiry = 0 is given.
  6009. With this change, you can specify session scoped cookies in an external
  6010. file setting expiry value to 0.
  6011. * src/Cookie.cc
  6012. * src/Cookie.h
  6013. * test/CookieParserTest.cc
  6014. * test/CookieStorageTest.cc
  6015. * test/CookieTest.cc
  6016. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6017. Changed signature of DHTMessageFactory::createResponseMessage().
  6018. Removed unused validateIDMatch.
  6019. * src/DHTMessageFactory.h
  6020. * src/DHTMessageFactoryImpl.cc
  6021. * src/DHTMessageFactoryImpl.h
  6022. * src/DHTMessageTracker.cc
  6023. * test/DHTMessageFactoryImplTest.cc
  6024. * test/MockDHTMessageFactory.h
  6025. Dropped DHT message coming from same ID of localhost.
  6026. * src/DHTMessageReceiver.cc
  6027. Rejected adding node whose ID is the same as localhost's.
  6028. * src/DHTRoutingTable.cc
  6029. * test/BtPortMessageTest.cc
  6030. * test/DHTRoutingTableTest.cc
  6031. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6032. Pool connection when redirection occurs with Content-Length = 0.
  6033. * src/HttpSkipResponseCommand.cc
  6034. * src/HttpSkipResponseCommand.h
  6035. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6036. Fixed the bug that causes time out when redirection occurs with
  6037. content-length 0.
  6038. * src/HttpResponseCommand.cc
  6039. * src/HttpSkipResponseCommand.cc
  6040. * src/HttpSkipResponseCommand.h
  6041. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6042. Now each status legends is shown only when it appears in Download
  6043. Result. If Download Result has no item, then status legend will not
  6044. be printed.
  6045. * src/RequestGroupMan.cc
  6046. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6047. Removed duplicate creation of OptionHandlers.
  6048. * src/option_processing.cc
  6049. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6050. Fixed the bug that causes segmentation fault when accessing files which
  6051. don't exist or are not included in --select-file option while
  6052. validating chunk checksum.
  6053. * src/MultiDiskAdaptor.cc
  6054. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6055. Fixed compiler warning.
  6056. * test/UtilTest.cc
  6057. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6058. Included cstdlib. This fixed the compile error with g++-4.3.2.
  6059. * src/IteratableChecksumValidator.cc
  6060. * src/IteratableChunkChecksumValidator.cc
  6061. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6062. * Release 0.16.2
  6063. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6064. Added Serbian translation. Updated Ukrainian translation.
  6065. Thanks to all translators.
  6066. * po/sr.po
  6067. * po/uk.po
  6068. * po/LINGUAS
  6069. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6070. Bump up version number to 0.16.2
  6071. * configure.ac
  6072. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6073. Added length equality test to operator== to drop a piece message
  6074. whose length does not match to the requested one.
  6075. * src/RequestSlot.cc
  6076. * test/DefaultBtMessageDispatcherTest.cc
  6077. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6078. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  6079. recieved.
  6080. In this fix, if a request larger than 16KiB length is received, aria2
  6081. disconnects the peer.
  6082. * src/BtConstants.h
  6083. * src/PeerMessageUtil.cc
  6084. * src/PeerMessageUtil.h
  6085. * test/BtRequestMessageTest.cc
  6086. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6087. * Release 0.16.1
  6088. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6089. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  6090. * doc/aria2c.1.txt
  6091. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6092. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  6093. Updated French, Simplified Chinese and Japanese translations.
  6094. Thanks to all translators.
  6095. en@quot and en@boldquot are also added.
  6096. * po/LINGUAS
  6097. * po/fr.po
  6098. * po/ja.po
  6099. * po/uk.po
  6100. * po/vi.po
  6101. * po/zh_CN.po
  6102. * po/zh_TW.po
  6103. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6104. Bump up version number to 0.16.1.
  6105. * configure.ac
  6106. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6107. Updated README.
  6108. * README
  6109. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6110. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  6111. not to replace '--' with em dash character.
  6112. * doc/aria2c.1.txt
  6113. * doc/makeman
  6114. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6115. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  6116. every SEC seconds.
  6117. * src/DownloadEngineFactory.cc
  6118. * src/OptionHandlerFactory.cc
  6119. * src/option_processing.cc
  6120. * src/usage_text.h
  6121. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6122. Fixed compile warning on linux-amd64
  6123. * src/FtpConnection.cc
  6124. * src/IteratableChunkChecksumValidator.cc
  6125. * src/MultiDiskAdaptor.cc
  6126. Fixed the bug that unit test fails on linux-amd64
  6127. * test/UtilTest.cc
  6128. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6129. Added --dht-file-path option to change the path to dht.dat, which is a
  6130. serialized DHT routing table.
  6131. * src/OptionHandlerFactory.cc
  6132. * src/option_processing.cc
  6133. * src/usage_text.h
  6134. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6135. Fixed possible underflow.
  6136. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  6137. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6138. Fixed the bug that last character in URI is not encoded.
  6139. * src/Request.cc
  6140. * test/RequestTest.cc
  6141. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6142. Fixed the bug that referer header field contains fragment.
  6143. Now Request class removes fragment part of URI and encodes it
  6144. in Request::setUri() and setReferer().
  6145. * src/Request.h
  6146. * src/Request.cc
  6147. * test/RequestTest.cc
  6148. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6149. Added missing m4 macros.
  6150. * m4/cppunit.m4
  6151. * m4/libgcrypt.m4
  6152. * m4/libgnutls-extra.m4
  6153. * m4/libgnutls.m4
  6154. * m4/libxml2.m4
  6155. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6156. Fixed compile error with gcc-4.4(snapshot)
  6157. * src/File.cc
  6158. * src/FtpConnection.cc
  6159. * src/OptionHandlerImpl.h
  6160. * src/Util.cc
  6161. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6162. Removed assert()
  6163. * src/SocketBuffer.cc (SocketBuffer::send)
  6164. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6165. Changed the type of _numNewConnection to unsigned int.
  6166. * src/ActivePeerConnectionCommand.cc
  6167. * src/ActivePeerConnectionCommand.h
  6168. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6169. * Release 0.16.0
  6170. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6171. Updated doc
  6172. * README
  6173. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6174. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  6175. translations. Thanks to all translators.
  6176. * po/bg.po
  6177. * po/de.po
  6178. * po/fr.po
  6179. * po/ja.po
  6180. * po/zh_CN.po
  6181. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6182. Bump up version number to 0.16.0.
  6183. * configure.ac
  6184. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6185. Casted entry->maxConnections to int32_t for std::min<T> with T =
  6186. int32_t.
  6187. Changed the type of count to int32_t.
  6188. * src/Metalink2RequestGroup.cc
  6189. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6190. Added test for Time::elapsed(time_t).
  6191. * test/TimeTest.cc
  6192. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6193. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  6194. Util::difftv() should be used instead.
  6195. * src/TimeA2.cc
  6196. * src/TimeA2.h
  6197. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6198. Made socket for dht connections non-blocking
  6199. * src/DHTAbstractMessage.cc
  6200. * src/DHTAbstractMessage.h
  6201. * src/DHTConnection.h
  6202. * src/DHTConnectionImpl.cc
  6203. * src/DHTConnectionImpl.h
  6204. * src/DHTMessage.h
  6205. * src/DHTMessageDispatcherImpl.cc
  6206. * src/DHTMessageDispatcherImpl.h
  6207. * src/DHTUnknownMessage.cc
  6208. * src/DHTUnknownMessage.h
  6209. * src/SocketCore.cc
  6210. * src/SocketCore.h
  6211. * test/MockDHTMessage.h
  6212. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6213. Changed the type of offset to int.
  6214. * src/ParameterizedStringParser.cc
  6215. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6216. Made getAsInt() return int32_t
  6217. * src/Option.h
  6218. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6219. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  6220. build.
  6221. * configure.ac
  6222. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6223. Use sqlite3_open if sqlite3_open_v2 is not available.
  6224. * src/Sqlite3MozCookieParser.cc
  6225. * src/Sqlite3MozCookieParser.h
  6226. * m4/sqlite3.m4
  6227. * test/Sqlite3MozCookieParserTest.cc
  6228. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6229. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  6230. * src/BtPieceMessage.cc
  6231. * src/DHTPeerAnnounceStorage.cc
  6232. * src/DefaultPieceStorage.cc
  6233. * src/DownloadCommand.cc
  6234. * src/DownloadEngine.cc
  6235. * src/FtpConnection.cc
  6236. * src/PeerConnection.cc
  6237. * src/PeerMessageUtil.cc
  6238. * src/RequestGroup.cc
  6239. * src/RequestGroupMan.cc
  6240. * src/SimpleBtMessage.cc
  6241. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6242. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  6243. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  6244. * src/AbstractDiskWriter.cc
  6245. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6246. Don't set Request::supportsPersistentConnection() in HttpConnection
  6247. since this code is also used in AbstractProxyResponseCommand.
  6248. Moved those code to HttpResponse.
  6249. * src/HttpResponse.cc
  6250. * src/HttpResponse.h
  6251. * src/HttpConnection.cc
  6252. * src/HttpConnection.h
  6253. * src/HttpResponseCommand.cc
  6254. * test/HttpResponseTest.cc
  6255. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6256. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  6257. The configuration is minimum: no torrent, no metalink, so there may be
  6258. other compile error on their code.
  6259. * src/a2netcompat.h
  6260. * src/File.cc
  6261. * src/File.h
  6262. * src/SocketCore.cc
  6263. * src/SocketCore.h
  6264. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6265. Made a socket of incoming peer non-blocking.
  6266. * src/PeerListenCommand.cc
  6267. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6268. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  6269. whole message data is not sent in one send() call.
  6270. * src/BtPieceMessage.cc
  6271. * src/BtPieceMessage.h
  6272. * src/PeerConnection.cc
  6273. * src/PeerConnection.h
  6274. * src/SimpleBtMessage.cc
  6275. * src/SimpleBtMessage.h
  6276. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6277. Fixed the bug that aria2 downloads faster than max-download-limit when
  6278. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  6279. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  6280. , instead of sum of them.
  6281. * src/ActivePeerConnectionCommand.cc
  6282. * src/DefaultBtInteractive.cc
  6283. * src/DownloadCommand.cc
  6284. * src/PeerInteractionCommand.cc
  6285. * src/PeerReceiveHandshakeCommand.cc
  6286. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6287. Fixed the bug that HTTPS download fails.
  6288. * src/AbstractCommand.cc
  6289. * src/AbstractCommand.h
  6290. * src/DownloadCommand.cc
  6291. * src/FtpConnection.cc
  6292. * src/HttpConnection.cc
  6293. * src/HttpRequestCommand.cc
  6294. * src/HttpResponseCommand.cc
  6295. * src/HttpSkipResponseCommand.cc
  6296. * src/MSEHandshake.cc
  6297. * src/PeerConnection.cc
  6298. * src/SocketCore.cc
  6299. * src/SocketCore.h
  6300. Fixed the bug that aria2 doesn't download whole content body and cannot
  6301. reuse connection if chunked transfer encoding and gzip content encoding
  6302. are set.
  6303. * src/DownloadCommand.cc
  6304. * src/HttpSkipResponseCommand.cc
  6305. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6306. Updated man page.
  6307. * doc/aria2c.1.txt
  6308. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6309. When error occurred while aria2 was parsing an .aria2.conf file, print
  6310. the usage of the option that caused error.
  6311. * src/option_processing.cc
  6312. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6313. Fixed compile error on OptionHandlerException
  6314. * src/Makefile.am
  6315. * src/OptionHandlerException.cc
  6316. * src/OptionHandlerException.h
  6317. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6318. Moved message of the error to OptionHandlerException.h
  6319. * src/NameMatchOptionHandler.h
  6320. * src/OptionHandlerException.h
  6321. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6322. When error occurs while aria2 is parsing an command-line option, print
  6323. the usage of the option.
  6324. * src/Makefile.am
  6325. * src/NameMatchOptionHandler.h
  6326. * src/OptionHandlerException.h
  6327. * src/option_processing.cc
  6328. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6329. Reverted previous change.
  6330. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  6331. username is not in URI.
  6332. * src/HttpRequest.cc
  6333. * src/Request.cc
  6334. * test/HttpRequestTest.cc
  6335. * test/RequestTest.cc
  6336. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6337. Now colon is required for username and password in FTP URL, like:
  6338. ftp://username:password@host.
  6339. If colon is not there, aria2 don't parse it as a username. For example,
  6340. aria2 don't retrieve username from ftp://username@host.
  6341. This fix was made in order to login FTP server via non-transparent ftp
  6342. proxy.
  6343. * src/Request.cc
  6344. * test/RequestTest.cc
  6345. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6346. Use netrc for HTTP.
  6347. Now FTP user/password is sent in Authorization header when
  6348. --ftp-via-http-proxy=get is given.
  6349. * src/AuthConfigFactory.cc
  6350. * src/HttpRequest.cc
  6351. * src/HttpRequest.h
  6352. * src/NetrcAuthResolver.cc
  6353. * src/NetrcAuthResolver.h
  6354. * src/OptionHandlerFactory.cc
  6355. * src/option_processing.cc
  6356. * src/prefs.cc
  6357. * src/prefs.h
  6358. * test/AuthConfigFactoryTest.cc
  6359. * test/HttpRequestTest.cc
  6360. * test/NetrcAuthResolverTest.cc
  6361. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6362. Issue PWD command first and get working directory and use it as a prefix
  6363. for CWD command.
  6364. * src/DownloadEngine.cc
  6365. * src/DownloadEngine.h
  6366. * src/FtpConnection.cc
  6367. * src/FtpConnection.h
  6368. * src/FtpFinishDownloadCommand.cc
  6369. * src/FtpInitiateConnectionCommand.cc
  6370. * src/FtpNegotiationCommand.cc
  6371. * src/FtpNegotiationCommand.h
  6372. * test/FtpConnectionTest.cc
  6373. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6374. Removed default user/pass for FTP user/pass, since it should not have
  6375. precedence over netrc configuration by default.
  6376. * src/OptionHandlerFactory.cc
  6377. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6378. Added debug log for socket event.
  6379. * src/AbstractCommand.cc
  6380. * src/PeerAbstractCommand.cc
  6381. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6382. Log microseconds.
  6383. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  6384. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6385. Replaced HelpItem.cc with OptionHandler.cc.
  6386. * po/POTFILES.in
  6387. Updated po files with 'make update-po'
  6388. * po/aria2c.pot
  6389. * po/*.po
  6390. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6391. Removed possible values from the text.
  6392. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  6393. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6394. Removed unused preferences:
  6395. PREF_NO_PREALLOCATION
  6396. PREF_STDOUT_LOG
  6397. PREF_TRACKER_MAX_TRIES
  6398. PREF_DIRECT_DOWNLOAD_TIMEOUT
  6399. PREF_MIN_SEGMENT_SIZE
  6400. * src/option_processing.cc
  6401. * src/prefs.cc
  6402. * src/prefs.h
  6403. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6404. Integrated HelpItem into OptionParser to ease the workload for adding
  6405. new options. Removed default value from usage text.
  6406. * src/HelpItem.cc: Removed.
  6407. * src/HelpItem.h: Removed.
  6408. * src/HelpItemFactory.cc: Removed.
  6409. * src/HelpItemFactory.h: Removed.
  6410. * src/Makefile.am
  6411. * src/Makefile.in
  6412. * src/NameMatchOptionHandler.h
  6413. * src/OptionHandler.cc
  6414. * src/OptionHandler.h
  6415. * src/OptionHandlerFactory.cc
  6416. * src/OptionHandlerImpl.h
  6417. * src/OptionParser.cc
  6418. * src/OptionParser.h
  6419. * src/TagContainer.cc: Removed.
  6420. * src/TagContainer.h: Removed.
  6421. * src/TaggedItem.cc: Removed.
  6422. * src/TaggedItem.h: Removed.
  6423. * src/main.cc
  6424. * src/option_processing.cc
  6425. * src/usage_text.h
  6426. * src/version_usage.cc
  6427. * test/HelpItemTest.cc: Removed.
  6428. * test/Makefile.am
  6429. * test/Makefile.in
  6430. * test/OptionHandlerTest.cc
  6431. * test/OptionParserTest.cc
  6432. * test/TagContainerTest.cc: Removed.
  6433. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6434. Moved `TransferStat stat = ...' to inside the `if' clause.
  6435. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  6436. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6437. Fixed the bug that a block in a piece is requested when same block is
  6438. already requested to the same peer in end game mode.
  6439. * src/BtRequestFactory.h
  6440. * src/DefaultBtInteractive.cc
  6441. * src/DefaultBtRequestFactory.cc
  6442. * src/DefaultBtRequestFactory.h
  6443. * src/DefaultPieceStorage.cc
  6444. * src/DefaultPieceStorage.h
  6445. * src/PieceStorage.h
  6446. * src/UnknownLengthPieceStorage.cc
  6447. * src/UnknownLengthPieceStorage.h
  6448. * test/DefaultBtRequestFactoryTest.cc
  6449. * test/DefaultPieceStorageTest.cc
  6450. * test/MockBtRequestFactory.h
  6451. * test/MockPieceStorage.h
  6452. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6453. Removed _uploadLength and _downloadLength from PeerSessionResource
  6454. and use PeerStat::_sessionUploadLength and
  6455. PeerStat::_sessionDownloadLength.
  6456. * src/PeerSessionResource.cc
  6457. * src/PeerSessionResource.h
  6458. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6459. Fixed the bug that prefixLength of split bucket which doesn't include
  6460. local node ID is incremented.
  6461. * src/DHTBucket.cc
  6462. * src/DHTBucket.h
  6463. * test/DHTBucketTest.cc
  6464. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6465. Added cookies.sqlite to EXTRA_DIST
  6466. * test/Makefile.am
  6467. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6468. Added Turkish translation. Updated French, German, Russian and
  6469. Simplified Chinese translations. Thanks to all translators.
  6470. * po/LINGUAS
  6471. * po/de.po
  6472. * po/fr.po
  6473. * po/ru.po
  6474. * po/tr.po
  6475. * po/zh_CN.po
  6476. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6477. Added deliminating text to the beginning of the log so that one can find
  6478. where the log starts easily.
  6479. * src/main.cc
  6480. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6481. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  6482. to fix compile error when async DNS is not enabled by configuration.
  6483. * src/AbstractCommand.cc
  6484. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6485. If establishing conneciton to a server is failed, then mark error on
  6486. its ServerStat.
  6487. Added the cause of error to log when error event occurred.
  6488. Moved message string to message.h for translation.
  6489. * src/AbstractCommand.cc
  6490. * src/AbstractCommand.h
  6491. * src/FtpNegotiationCommand.cc
  6492. * src/HttpRequestCommand.cc
  6493. * src/PeerAbstractCommand.cc
  6494. * src/message.h
  6495. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6496. Added the function to get error message from socket.
  6497. * src/SocketCore.cc
  6498. * src/SocketCore.h
  6499. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6500. Added convenient method RequestGroupMan::getOrCreateServerStat()
  6501. * src/RequestGroupMan.cc
  6502. * src/RequestGroupMan.h
  6503. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6504. If error event is received in epoll, then abort download immediately.
  6505. * src/AbstractCommand.cc
  6506. * src/Command.cc
  6507. * src/Command.h
  6508. * src/DownloadEngine.cc
  6509. * src/PeerAbstractCommand.cc
  6510. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6511. Added usage message for --uri-selector, --server-stat-of,
  6512. --server-stat-in, --server-stat-timeout options.
  6513. * src/HelpItemFactory.cc
  6514. * src/usage_text.h
  6515. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6516. Added upper limit of FTP response buffer. The current implementation
  6517. uses 4096bytes as a limit.
  6518. * src/FtpConnection.cc
  6519. * src/FtpConnection.h
  6520. * test/FtpConnectionTest.cc
  6521. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6522. Use non-blocking socket for TCP communication to avoid possible
  6523. blocking due to buffer full.
  6524. * src/AbstractProxyRequestCommand.cc
  6525. * src/FtpConnection.cc
  6526. * src/FtpConnection.h
  6527. * src/FtpNegotiationCommand.cc
  6528. * src/FtpNegotiationCommand.h
  6529. * src/HttpConnection.cc
  6530. * src/HttpConnection.h
  6531. * src/HttpRequestCommand.cc
  6532. * src/InitiatorMSEHandshakeCommand.cc
  6533. * src/InitiatorMSEHandshakeCommand.h
  6534. * src/MSEHandshake.cc
  6535. * src/MSEHandshake.h
  6536. * src/Makefile.am
  6537. * src/PeerConnection.cc
  6538. * src/PeerConnection.h
  6539. * src/PeerInteractionCommand.cc
  6540. * src/PeerListenCommand.cc
  6541. * src/ReceiverMSEHandshakeCommand.cc
  6542. * src/ReceiverMSEHandshakeCommand.h
  6543. * src/SocketBuffer.cc
  6544. * src/SocketBuffer.h
  6545. * src/SocketCore.cc
  6546. * src/SocketCore.h
  6547. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6548. Call setStatusRealtime() in constructor.
  6549. * src/RealtimeCommand.cc
  6550. * src/RealtimeCommand.h
  6551. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6552. Call Download::setNoWait(true) to execute newly created command without
  6553. a pause.
  6554. * src/AbstractCommand.cc
  6555. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6556. Added --max-file-not-found=NUM option. If aria2 receives `file not
  6557. found' error from HTTP/FTP server NUM times without getting single
  6558. bytes of data, then force the download to fail.
  6559. Basically aria2 tris all URIs available. So if long list of URIs are
  6560. specified in Metalink, then aria2 will take a long time to fail
  6561. eventually if all URIs are outdated. This option eases this situation
  6562. to limit the number of servers to try.
  6563. * src/FtpNegotiationCommand.cc
  6564. * src/HelpItemFactory.cc
  6565. * src/HttpResponseCommand.cc
  6566. * src/OptionHandlerFactory.cc
  6567. * src/PeerStat.h
  6568. * src/RequestGroup.cc
  6569. * src/RequestGroup.h
  6570. * src/SegmentMan.cc
  6571. * src/SegmentMan.h
  6572. * src/option_processing.cc
  6573. * src/prefs.cc
  6574. * src/prefs.h
  6575. * src/usage_text.h
  6576. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6577. Fixed the bug that bulkReceiveResponse() reads all received data as a
  6578. response even if more than one response is in it.
  6579. * src/FtpConnection.cc
  6580. * src/FtpConnection.h
  6581. * test/FtpConnectionTest.cc
  6582. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6583. Merged from stable-0.15
  6584. * m4/libcares.m4
  6585. Use pkg-config
  6586. * m4/sqlite3.m4
  6587. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6588. Removed unnecessary if statement.
  6589. * src/DefaultPieceStorage.cc (initPieceStorage)
  6590. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6591. Added --connect-timeout option to specify connect timeout in seconds.
  6592. This option is in effect for HTTP/FTP/proxy server. The timeout for
  6593. connecting to BitTorrent peer is not controlled by this option.
  6594. * src/AbstractProxyRequestCommand.cc
  6595. * src/FtpNegotiationCommand.cc
  6596. * src/HelpItemFactory.cc
  6597. * src/HttpRequestCommand.cc
  6598. * src/OptionHandlerFactory.cc
  6599. * src/option_processing.cc
  6600. * src/prefs.cc
  6601. * src/prefs.h
  6602. * src/usage_text.h
  6603. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6604. Added help message for -R option.
  6605. * src/HelpItemFactory.cc
  6606. * src/usage_text.h
  6607. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6608. Added the message that the time is in local time zone.
  6609. * src/RequestGroup.cc
  6610. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6611. Implemented the ability to get timestamp from remote FTP server using
  6612. MDTM command described in RFC3659.
  6613. * src/FtpConnection.cc
  6614. * src/FtpConnection.h
  6615. * src/FtpNegotiationCommand.cc
  6616. * src/FtpNegotiationCommand.h
  6617. * test/FtpConnectionTest.cc
  6618. * test/Makefile.am
  6619. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6620. Implemented the ability to get timestamp from remote HTTP server and
  6621. apply it to local file. To enable this feature, --remote-time option
  6622. is added. No usage text has been written yet.
  6623. If several servers returns difference timestamp, then aria2 uses latest
  6624. one.
  6625. * src/CopyDiskAdaptor.cc
  6626. * src/CopyDiskAdaptor.h
  6627. * src/DirectDiskAdaptor.cc
  6628. * src/DirectDiskAdaptor.h
  6629. * src/DiskAdaptor.h
  6630. * src/File.cc
  6631. * src/File.h
  6632. * src/HttpHeader.cc
  6633. * src/HttpHeader.h
  6634. * src/HttpResponse.cc
  6635. * src/HttpResponse.h
  6636. * src/HttpResponseCommand.cc
  6637. * src/HttpResponseCommand.h
  6638. * src/MultiDiskAdaptor.cc
  6639. * src/MultiDiskAdaptor.h
  6640. * src/OptionHandlerFactory.cc
  6641. * src/RequestGroup.cc
  6642. * src/RequestGroup.h
  6643. * src/RequestGroupMan.cc
  6644. * src/option_processing.cc
  6645. * src/prefs.cc
  6646. * src/prefs.h
  6647. * test/CopyDiskAdaptorTest.cc
  6648. * test/FileTest.cc
  6649. * test/Makefile.am
  6650. * test/Makefile.in
  6651. * test/MultiDiskAdaptorTest.cc
  6652. * test/TestUtil.cc
  6653. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6654. Fixed the bug that DiskWriterEntry is not created when its
  6655. FileEntry.isRequested() is false and it doesn't share a piece with
  6656. other FileEntries that are requested. This bug causes segmentation fault
  6657. in the end.
  6658. * src/MultiDiskAdaptor.cc
  6659. * src/MultiDiskAdaptor.h
  6660. * src/MultiFileAllocationIterator.cc
  6661. * test/MultiDiskAdaptorTest.cc
  6662. * test/MultiFileAllocationIteratorTest.cc
  6663. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6664. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  6665. called if the number of file entries are greater than max open files.
  6666. * src/AbstractSingleDiskAdaptor.cc
  6667. * src/AbstractSingleDiskAdaptor.h
  6668. * src/DiskAdaptor.h
  6669. * src/MultiDiskAdaptor.cc
  6670. * src/MultiDiskAdaptor.h
  6671. * test/MultiDiskAdaptorTest.cc
  6672. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6673. Added a constuctor that receives struct timeval.
  6674. Added operator<.
  6675. * src/TimeA2.cc
  6676. * src/TimeA2.h
  6677. * test/TimeTest.cc
  6678. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6679. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  6680. * src/CookieParser.cc
  6681. * test/CookieParserTest.cc
  6682. * test/HttpResponseTest.cc
  6683. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6684. Implmented the functions to parse date.
  6685. * src/TimeA2.cc
  6686. * src/TimeA2.h
  6687. * test/TimeTest.cc
  6688. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6689. Added "Firefox3 Cookie" feature to FeatureConfig
  6690. * src/FeatureConfig.cc
  6691. * src/FeatureConfig.h
  6692. * test/FeatureConfigTest.cc
  6693. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6694. Bump up version number to 0.16.0b
  6695. * configure.ac
  6696. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6697. Use pkg-config if is is available.
  6698. * m4/openssl.m4
  6699. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6700. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  6701. * src/BtAnnounce.h
  6702. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6703. If an error occurred with a URI, remove identical URI from remaining
  6704. URI list because it is likely that same error occurred in the end and it
  6705. is waste of time.
  6706. * src/AbstractCommand.cc
  6707. * src/RequestGroup.cc
  6708. * src/RequestGroup.h
  6709. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6710. Removed wrong comment.
  6711. * src/DefaultPeerStorage.cc
  6712. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6713. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  6714. Added return value of getpid() to argument of srand() to achieve more
  6715. randomized value.
  6716. * src/SimpleRandomizer.cc
  6717. * src/SimpleRandomizer.h
  6718. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6719. Contact tracker frequently when the number of connections are 0 and
  6720. download is not finished yet.
  6721. * src/ActivePeerConnectionCommand.cc
  6722. * src/BtAnnounce.h
  6723. * src/DefaultBtAnnounce.cc
  6724. * src/DefaultBtAnnounce.h
  6725. * test/MockBtAnnounce.h
  6726. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6727. Moved threshold values to UTPexExtensionMessage.
  6728. * src/DefaultBtInteractive.cc
  6729. * src/Peer.cc
  6730. * src/Peer.h
  6731. * src/UTPexExtensionMessage.cc
  6732. * src/UTPexExtensionMessage.h
  6733. * test/UTPexExtensionMessageTest.cc
  6734. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6735. Added _incoming member to Peer class and made it true if the peer
  6736. initiated connection. Don't add those peer to UTPex message.
  6737. If extended handshake is received, assign _incoming to false.
  6738. * src/DefaultBtInteractive.cc
  6739. * src/HandshakeExtensionMessage.cc
  6740. * src/Peer.cc
  6741. * src/Peer.h
  6742. * src/PeerListenCommand.cc
  6743. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6744. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  6745. Encoding Decoder. Removed size threshold for turning off on the fly
  6746. inflation because resulting file may or may not be inflated depending
  6747. on the file size and I think it is not expected by users.
  6748. This change fixes segmentation fault when Metalink file contains gzipped
  6749. file and its filesize is provided.
  6750. * src/HttpResponseCommand.cc
  6751. * src/HttpResponseCommand.h
  6752. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6753. Made Cookie immutable.
  6754. * src/Cookie.cc
  6755. * src/Cookie.h
  6756. * src/CookieParser.cc
  6757. * src/CookieParser.h
  6758. * src/CookieStorage.cc
  6759. * test/CookieParserTest.cc
  6760. * test/CookieStorageTest.cc
  6761. * test/NsCookieParserTest.cc
  6762. * test/Sqlite3MozCookieParserTest.cc
  6763. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6764. Removed CookieBox, CookieBoxFactory.
  6765. * src/CookieBox.cc
  6766. * src/CookieBox.h
  6767. * src/CookieBoxFactory.cc
  6768. * src/CookieBoxFactory.h
  6769. * src/Makefile.am
  6770. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6771. Use CookieStorage class instead of CookieBox class.
  6772. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  6773. * src/AbstractProxyRequestCommand.cc
  6774. * src/CookieStorage.cc
  6775. * src/DownloadEngine.cc
  6776. * src/DownloadEngine.h
  6777. * src/HttpConnection.cc
  6778. * src/HttpConnection.h
  6779. * src/HttpRequest.cc
  6780. * src/HttpRequest.h
  6781. * src/HttpRequestCommand.cc
  6782. * src/HttpResponse.cc
  6783. * src/HttpResponseCommand.cc
  6784. * src/HttpSkipResponseCommand.cc
  6785. * src/Makefile.am
  6786. * src/MultiUrlRequestInfo.cc
  6787. * src/Request.cc
  6788. * src/Request.h
  6789. * src/main.cc
  6790. * test/AllTest.cc
  6791. * test/CookieStorageTest.cc
  6792. * test/CookieTest.cc
  6793. * test/HttpRequestTest.cc
  6794. * test/HttpResponseTest.cc
  6795. * test/Makefile.am
  6796. * test/NsCookieParserTest.cc
  6797. * test/Sqlite3MozCookieParserTest.cc
  6798. * test/nscookietest.txt
  6799. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6800. Updated
  6801. * test/Cookies.sqlite
  6802. * test/nscookietest.txt
  6803. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6804. Added tests for CookieStorage::load()
  6805. * test/CookieStorageTest.cc
  6806. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6807. Added CookieStorage class which is based on RFC2109 and manages cookies
  6808. more strictly than CookieBox and CookieBoxFactory class.
  6809. * src/CookieStorage.cc
  6810. * src/CookieStorage.h
  6811. * src/Cookie.cc
  6812. * src/Cookie.h
  6813. * test/CookieStorageTest.cc
  6814. * test/CookieTest.cc
  6815. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6816. Fixed the bug that commands are created more than the number of pieces.
  6817. * src/RequestGroup.cc
  6818. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6819. Fixed infinite loop bug in FTP when SIZE command failed.
  6820. * src/FtpNegotiationCommand.cc
  6821. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6822. Removed DirectDiskAdaptorTest.h
  6823. * test/Makefile.am
  6824. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6825. Fixed chunk checksum validation cannot detect trailing garbage data.
  6826. BUG#2074141
  6827. * src/AbstractSingleDiskAdaptor.cc
  6828. * src/AbstractSingleDiskAdaptor.h
  6829. * src/CheckIntegrityEntry.cc
  6830. * src/CheckIntegrityEntry.h
  6831. * src/DiskAdaptor.h
  6832. * src/MultiDiskAdaptor.cc
  6833. * src/MultiDiskAdaptor.h
  6834. * src/RequestGroup.cc
  6835. * test/DirectDiskAdaptorTest.cc
  6836. * test/MultiDiskAdaptorTest.cc
  6837. * test/TestUtil.cc
  6838. * test/TestUtil.h
  6839. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6840. Bump up version number of dht.dat file to 3. In version 3 format, time
  6841. is stored in 64bit, network byte order.
  6842. New build can load old format(version 2) but it saves the file in new
  6843. format. It means once you used new build, your dht.dat becomes
  6844. incompatible with older build.
  6845. * src/DHTRoutingTableDeserializer.cc
  6846. * src/DHTRoutingTableSerializer.cc
  6847. * test/DHTRoutingTableSerializerTest.cc
  6848. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6849. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  6850. * test/Makefile.am
  6851. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6852. Bump up version number of .aria2 control file to 0001.
  6853. New aria2 can still load version 0000 file but it saves the file in
  6854. version 0001 format. It means that new aria2 can resume download
  6855. started by old aria2 but the opposite is not true.
  6856. * src/DefaultBtProgressInfoFile.cc
  6857. * src/DefaultBtProgressInfoFile.h
  6858. * test/DefaultBtProgressInfoFileTest.cc
  6859. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6860. Added ntoh64 and hton64 as inline functions.
  6861. * src/Util.cc
  6862. * test/UtilTest.cc
  6863. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6864. Added sqlite3 depenency and Firefox3 cookie support.
  6865. * README
  6866. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6867. State that firefox3 cookie is supported explicitly in the usage.
  6868. * src/usage_text.h
  6869. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6870. Externalized message.
  6871. * src/RequestGroupMan.cc
  6872. * src/message.h
  6873. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6874. Save temporary file first and rename to the destination on success.
  6875. Added test cases.
  6876. * src/RequestGroupMan.cc
  6877. * test/RequestGroupManTest.cc
  6878. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6879. Fixed the bug that the number of connected peer is exceeding the limit
  6880. (55 by default) in seeding mode.
  6881. Multiplied 0.8 to _maxUploadSpeedLimit.
  6882. * src/ActivePeerConnectionCommand.cc
  6883. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6884. Clear table item.
  6885. * src/Dictionary.cc
  6886. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6887. Fixed error handling of lseek.
  6888. * src/AbstractDiskWriter.cc
  6889. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6890. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  6891. style cookie file.
  6892. * src/usage_text.h
  6893. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6894. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  6895. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  6896. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  6897. * src/Util.cc
  6898. * src/Util.h
  6899. * src/CookieParser.cc
  6900. * test/UtilTest.cc
  6901. * test/CookieParserTest.cc
  6902. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6903. Separate the implementation to load old mozilla format of cookie to
  6904. NsCookieParser class.
  6905. * src/CookieBoxFactory.cc
  6906. * src/CookieBoxFactory.h
  6907. * src/NsCookieParser.cc
  6908. * src/NsCookieParser.h
  6909. * test/NsCookieParserTest.cc
  6910. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6911. Made parse() const
  6912. * src/Sqlite3MozCookieParser.cc
  6913. * src/Sqlite3MozCookieParser.h
  6914. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6915. Added firefox3 cookie support based on the patch submitted by
  6916. tizianomueller.
  6917. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  6918. this functionality.
  6919. * configure.ac
  6920. * m4/sqlite3.m4
  6921. * src/CookieBoxFactory.cc
  6922. * src/CookieBoxFactory.h
  6923. * src/Makefile.am
  6924. * src/Makefile.in
  6925. * src/Sqlite3MozCookieParser.cc
  6926. * src/Sqlite3MozCookieParser.h
  6927. * src/main.cc
  6928. * test/CookieBoxFactoryTest.cc
  6929. * test/Makefile.am
  6930. * test/Makefile.in
  6931. * test/Sqlite3MozCookieParserTest.cc
  6932. * test/badcookies.sqlite
  6933. * test/cookies.sqlite
  6934. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6935. Added Danish and Greek translations.
  6936. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  6937. Great thanks to all translators.
  6938. * po/LINGUAS
  6939. * po/el.po
  6940. * po/da.po
  6941. * po/es.po
  6942. * po/ca.po
  6943. * po/nn.po
  6944. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6945. Fixed man page: --follow-bittorrent should be --follow-torrent
  6946. * doc/aria2c.1.txt
  6947. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6948. Fixed: numCommand is less than the value specified in -C option.
  6949. * src/RequestGroup.cc
  6950. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6951. Fixed occasional assertion failure in PieceSegment.
  6952. Calling PieceStorage::getMissingPiece(size_t) was missing after
  6953. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  6954. creation of duplicate segments and one of the segment was finished then
  6955. assertion failure was caused.
  6956. * src/SegmentMan.cc
  6957. * test/SegmentManTest.cc
  6958. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6959. Added options to load/save the server's performance/status to a file
  6960. and the timeout to drop their data.
  6961. --server-stat-of=FILE specifies the file to which performance data
  6962. is saved.
  6963. --server-stat-if=FILE specifies the file to read previously saved
  6964. by --server-stat-of option. Might be used with --uri-selector=feedback.
  6965. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  6966. TIMEOUT is specified in seconds and the default value is 24hours.
  6967. * src/MultiUrlRequestInfo.cc
  6968. * src/OptionHandlerFactory.cc
  6969. * src/RequestGroupMan.cc
  6970. * src/RequestGroupMan.h
  6971. * src/ServerStatMan.cc
  6972. * src/ServerStatMan.h
  6973. * src/option_processing.cc
  6974. * src/prefs.cc
  6975. * src/prefs.h
  6976. * test/ServerStatManTest.cc
  6977. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6978. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  6979. * src/ServerStatMan.cc
  6980. * src/ServerStatMan.h
  6981. * test/ServerStatManTest.cc
  6982. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6983. Implemented ServerStatMan::load(...) function and its test case.
  6984. * src/ServerStat.cc
  6985. * src/ServerStat.h
  6986. * src/ServerStatMan.cc
  6987. * test/ServerStatManTest.cc
  6988. * test/ServerStatTest.cc
  6989. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6990. Use time_t instead of int32_t. Use int64_t where milli second is
  6991. expected.
  6992. * src/TimeA2.cc
  6993. * src/TimeA2.h
  6994. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6995. Implemented ServerStatMan::save(...) function and its test case.
  6996. * src/ServerStat.cc
  6997. * src/ServerStat.h
  6998. * src/ServerStatMan.cc
  6999. * src/ServerStatMan.h
  7000. * test/ServerStatManTest.cc
  7001. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7002. Now aria2 uses name attribute in Metalink as local filename in
  7003. BitTorrent downloads. BUG#2033999
  7004. * src/BtContext.h
  7005. * src/BtDependency.cc
  7006. * src/DefaultBtContext.cc
  7007. * src/DefaultBtContext.h
  7008. * src/SingleFileDownloadContext.cc
  7009. * src/SingleFileDownloadContext.h
  7010. * test/BtDependencyTest.cc
  7011. * test/DefaultBtContextTest.cc
  7012. * test/MockBtContext.h
  7013. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7014. Added AC_C_BIGENDIAN
  7015. * src/configure.ac
  7016. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7017. Limited numCommand less than or equal to the number of piece.
  7018. * src/RequestGroup.cc
  7019. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7020. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  7021. directive.
  7022. * test/DefaultPieceStorageTest.cc
  7023. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7024. Fixed memory leak in test code
  7025. * test/AnnounceListTest.cc
  7026. * test/DefaultPeerListProcessorTest.cc
  7027. * test/DefaultPeerStorageTest.cc
  7028. * test/MetaFileUtilTest.cc
  7029. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7030. Fixed wrong argument passing to BitfieldMan::isBitSet()
  7031. * src/DefaultPieceStorage.cc
  7032. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7033. Initialized _directIOAllowed
  7034. * src/MultiDiskAdaptor.cc
  7035. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7036. Fixed memory leak
  7037. * src/GZipDecoder.cc
  7038. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7039. Fixed memory leak
  7040. * src/MetalinkParserStateMachine.cc
  7041. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7042. Fixed memory leak
  7043. * src/Dictionary.cc
  7044. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7045. Fixed memory leak
  7046. * src/IteratableChunkChecksumValidator.h
  7047. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7048. Fixed unmatched malloc/free.
  7049. * src/IteratableChunkChecksumValidator.cc
  7050. * src/IteratableChecksumValidator.cc
  7051. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7052. Removed max chunk size check. This change fixes BUG#2040169
  7053. * src/ChunkedDecoder.cc
  7054. * src/ChunkedDecoder.h
  7055. * test/ChunkedDecoderTest.cc
  7056. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7057. Implemented download speed based URI selection algorithm.
  7058. Introduced new option --uri-selector.
  7059. If --uri-selector=feedback is given, aria2 uses download speed observed
  7060. in the previous downloads and chooses fastest server in the URI list.
  7061. Currently at most 10 URIs are considered to introduce randomeness for
  7062. finding better servers. The speed is average download speed in the
  7063. downloads.
  7064. On the other hand, if --uri-selector=inorder is given, which is default,
  7065. URI is tried in order in URI list.
  7066. The usage text for the new option has not been written yet.
  7067. * src/AbstractCommand.cc
  7068. * src/DownloadCommand.cc
  7069. * src/DownloadEngine.cc
  7070. * src/DownloadEngineFactory.cc
  7071. * src/InOrderURISelector.cc
  7072. * src/InOrderURISelector.h
  7073. * src/OptionHandlerFactory.cc
  7074. * src/PeerStat.h
  7075. * src/RequestGroup.cc
  7076. * src/RequestGroup.h
  7077. * src/RequestGroupMan.cc
  7078. * src/RequestGroupMan.h
  7079. * src/SegmentMan.cc
  7080. * src/SegmentMan.h
  7081. * src/ServerStat.cc
  7082. * src/ServerStat.h
  7083. * src/ServerStatMan.cc
  7084. * src/ServerStatMan.h
  7085. * src/ServerStatURISelector.cc
  7086. * src/ServerStatURISelector.h
  7087. * src/URISelector.h
  7088. * src/option_processing.cc
  7089. * src/prefs.cc
  7090. * src/prefs.h
  7091. * test/InOrderURISelectorTest.cc
  7092. * test/RequestGroupManTest.cc
  7093. * test/ServerStatManTest.cc
  7094. * test/ServerStatURISelectorTest.cc
  7095. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7096. * Release 0.15.1+2
  7097. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7098. Bump up version number to 0.15.1+2
  7099. * configure.ac
  7100. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7101. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  7102. * m4/aria2_arg.m4
  7103. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7104. * Release 0.15.1+1
  7105. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7106. Bump up version number to 0.15.1+1
  7107. * configure.ac
  7108. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7109. Fixed the bug that causes segmentaion fault when resuming download
  7110. using metalink without size tag. Reproducible only using HTTP URI.
  7111. * src/HttpResponseCommand.cc
  7112. * src/FtpNegotiationCommand.cc
  7113. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7114. * Release 0.15.1
  7115. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7116. Updated Bulgarian and French translations, thanks to all translators.
  7117. * po/bg.po
  7118. * po/fr.po
  7119. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7120. Bump up version number to 0.15.1
  7121. * configure.ac
  7122. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7123. Avoid repeated call of gettimeofday() when calculating speed.
  7124. * src/SpeedCalc.cc
  7125. * src/SpeedCalc.h
  7126. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7127. Removed writable check when socket's send buffer is full in BitTorrent
  7128. downloads to lower CPU usage.
  7129. * src/PeerInteractionCommand.cc
  7130. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7131. Fixed broken gzip inflation.
  7132. Turn off segmented downloading if gzip content is smaller than or equal
  7133. to 1MiB and inflate the data on the fly, because HTTP response header
  7134. doesn't contain the length of inflated file we can't determin where
  7135. the chunk of data should be written.
  7136. On the other hand, if gzip content is larger than 1MB, then turn off
  7137. on the fly inflation, because some servers returns "content-type: gzip"
  7138. for *.tgz, *.gz files.
  7139. * src/DownloadCommand.cc
  7140. * src/HttpResponseCommand.cc
  7141. * src/HttpResponseCommand.h
  7142. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7143. Applied tizianomueller's patch to fix compile error.
  7144. * test/BitfieldManTest.cc
  7145. * test/BtRequestMessageTest.cc
  7146. * test/DefaultBtContextTest.cc
  7147. * test/DefaultDiskWriterTest.cc
  7148. * test/DefaultPieceStorageTest.cc
  7149. * test/HttpHeaderProcessorTest.cc
  7150. * test/HttpResponseTest.cc
  7151. * test/Metalink2RequestGroupTest.cc
  7152. * test/MetalinkParserControllerTest.cc
  7153. * test/MetalinkProcessorTest.cc
  7154. * test/PeerSessionResourceTest.cc
  7155. * test/UtilTest.cc
  7156. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7157. * Release 0.15.0
  7158. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7159. Reordered src files in POTFILES.in so that usage text appears first.
  7160. * po/POTFILES.in
  7161. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7162. Bump up version number to 0.15.0
  7163. * configure.ac
  7164. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7165. Added Bulgarian translation.
  7166. Updated Catalan, Spanish, French and Japanese translations.
  7167. Thanks to all translators.
  7168. * po/LINGUAS
  7169. * po/bg.po
  7170. * po/ca.po
  7171. * po/es.po
  7172. * po/fr.po
  7173. * po/ja.po
  7174. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7175. Updated feature list. Added libz for dependency section.
  7176. Added a description about unit testing using CppUnit.
  7177. * README
  7178. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7179. Added a test for libz. Quoted where it is necessary.
  7180. * build_test.sh
  7181. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7182. Added GZip to `Enabled Features' list.
  7183. * src/FeatureConfig.cc
  7184. * src/FeatureConfig.h
  7185. * test/FeatureConfigTest.cc
  7186. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7187. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  7188. the transfer has not yet started.
  7189. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  7190. * src/SegmentMan.cc
  7191. * src/SegmentMan.h
  7192. * test/SegmentManTest.cc
  7193. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7194. Cache last calculated average download/upload speed.
  7195. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  7196. cached value.
  7197. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  7198. * src/PeerStat.h
  7199. * src/SpeedCalc.cc
  7200. * src/SpeedCalc.h
  7201. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7202. Call parseUrl directly.
  7203. * src/Request.cc (resetUrl)
  7204. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7205. Supported absolute/relative path in Location header field.
  7206. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  7207. * src/HttpHeader.cc
  7208. * src/HttpHeader.h
  7209. * src/HttpResponse.cc
  7210. * src/HttpSkipResponseCommand.cc
  7211. * src/Request.cc
  7212. * test/HttpHeaderTest.cc
  7213. * test/HttpResponseTest.cc
  7214. * test/RequestTest.cc
  7215. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7216. Changed help text for --load-cookie option.
  7217. * doc/aria2c.1.txt
  7218. * src/usage_text.h
  7219. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7220. Regenerated test/Makefile.in to remove stale ChangeLog.
  7221. * test/Makefile.in
  7222. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7223. Updated po files.
  7224. * po/aria2c.pot
  7225. * po/*.po
  7226. * po/*.gmo
  7227. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7228. Bump up version number to 0.15.0b
  7229. * configure.ac
  7230. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7231. Externalize messages.
  7232. * src/RequestGroupMan.cc
  7233. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  7234. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7235. Use File::exists() instead of File::isFile() to allow non-regular file
  7236. such as block special files.
  7237. * src/AbstractDiskWriter.cc
  7238. * src/MultiDiskWriter.cc
  7239. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7240. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  7241. * src/gai_strerror.h
  7242. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7243. Fixed compile error. Thanks gknauf for the patch.
  7244. * src/asctime_r.c
  7245. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7246. Included asctime_r.h from a2time.h.
  7247. * src/a2time.h
  7248. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7249. Added a message "aria2 doesn't verify signature" to log message when
  7250. signature file is saved.
  7251. * src/RequestGroupMan.cc
  7252. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7253. Added the ability to save signature when download is completed if
  7254. signature is available. The filename of signature file is the path to
  7255. download file followed by ".sig". If it already exists, then signature
  7256. will not be saved.
  7257. * src/RequestGroupMan.cc
  7258. * src/Signature.cc
  7259. * test/SignatureTest.cc
  7260. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7261. Updated the descriptions for --bt-seed-unverified.
  7262. * doc/aria2c.1
  7263. * doc/aria2c.1.html
  7264. * doc/aria2c.1.txt
  7265. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7266. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  7267. that this is not going to verify files using piece hashes.
  7268. * src/HelpItemFactory.cc
  7269. * src/OptionHandlerFactory.cc
  7270. * src/RequestGroup.cc
  7271. * src/option_processing.cc
  7272. * src/prefs.cc
  7273. * src/prefs.h
  7274. * src/usage_text.h
  7275. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7276. Added the ability to retrieve signature from Metalink file.
  7277. A retrieved signature is stored in Signature class and it is held by
  7278. DownloadContext class. Note that aria2 doesn't verify signature.
  7279. * src/DownloadContext.cc
  7280. * src/DownloadContext.h
  7281. * src/Makefile.am
  7282. * src/Makefile.in
  7283. * src/Metalink2RequestGroup.cc
  7284. * src/MetalinkEntry.cc
  7285. * src/MetalinkEntry.h
  7286. * src/MetalinkParserController.cc
  7287. * src/MetalinkParserController.h
  7288. * src/MetalinkParserStateMachine.cc
  7289. * src/MetalinkParserStateMachine.h
  7290. * src/Signature.cc
  7291. * src/Signature.h
  7292. * src/SignatureMetalinkParserState.cc
  7293. * src/SignatureMetalinkParserState.h
  7294. * src/VerificationMetalinkParserState.cc
  7295. * src/VerificationMetalinkParserState.h
  7296. * test/Metalink2RequestGroupTest.cc
  7297. * test/MetalinkParserControllerTest.cc
  7298. * test/MetalinkProcessorTest.cc
  7299. * test/test.xml
  7300. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7301. Close DiskAdaptor after renaming file.
  7302. * src/RequestGroup.cc
  7303. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7304. Corrected indentation
  7305. * src/DefaultBtProgressInfoFile.cc
  7306. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7307. Moved the calls of std::ios::exceptions() inside of try-catch block
  7308. because if an error occurred in constructor of std::fstream, then
  7309. exception is thrown immediately when std::ios::exceptions() is called
  7310. which results unhandled exception and aria2c aborts.
  7311. * src/DefaultBtProgressInfoFile.cc
  7312. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7313. Added the test for the previous change in DefaultBtContext.cc
  7314. * test/DefaultBtContextTest.cc
  7315. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7316. Fixed the bug that causes infinite loop when the number of pieces are
  7317. fewer than allowed fast set size which is 10 by default.
  7318. * src/DefaultBtContext.cc
  7319. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7320. Updated the descriptions for -j, -s. Added --bt-seed.
  7321. * doc/aria2c.1
  7322. * doc/aria2c.1.html
  7323. * doc/aria2c.1.txt
  7324. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7325. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  7326. aria2 seeds previously downloaded files without validating piece hashs.
  7327. * src/HelpItemFactory.cc
  7328. * src/OptionHandlerFactory.cc
  7329. * src/RequestGroup.cc
  7330. * src/option_processing.cc
  7331. * src/prefs.cc
  7332. * src/prefs.h
  7333. * src/usage_text.h
  7334. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7335. Updated DESCRIPTION of man page.
  7336. * doc/aria2c.1
  7337. * doc/aria2c.1.html
  7338. * doc/aria2c.1.txt
  7339. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7340. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  7341. Don't define `struct addrinfo' when __sun is defined.
  7342. * src/getaddrinfo.h
  7343. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7344. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  7345. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  7346. second argument is of type `struct _stati64'. Otherwise it is defined as
  7347. `struct stat'.
  7348. * src/AbstractDiskWriter.cc
  7349. * src/File.cc
  7350. * src/File.h
  7351. * src/a2io.h
  7352. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7353. Fixed the compile error in hurd-i386
  7354. See the original bug report:
  7355. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  7356. * src/a2io.h
  7357. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7358. Code cleanup.
  7359. * src/PeerAbstractCommand.cc
  7360. * src/PeerAbstractCommand.h
  7361. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7362. Removed TransferEncoding.
  7363. * src/DownloadCommand.cc
  7364. * src/DownloadCommand.h
  7365. * src/HttpResponseCommand.cc
  7366. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7367. Updated po files.
  7368. * po/aria2c.pot
  7369. * po/*.po
  7370. * po/*.gmo
  7371. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7372. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  7373. * src/A2STR.cc
  7374. * src/A2STR.h
  7375. * src/ChunkedDecoder.cc
  7376. * src/ChunkedDecoder.h
  7377. * src/ChunkedEncoding.cc: Removed
  7378. * src/ChunkedEncoding.h: Removed
  7379. * src/DownloadCommand.cc
  7380. * src/DownloadCommand.h
  7381. * src/HttpDownloadCommand.cc
  7382. * src/HttpResponse.cc
  7383. * src/HttpResponse.h
  7384. * src/HttpResponseCommand.cc
  7385. * src/HttpSkipResponseCommand.cc
  7386. * src/HttpSkipResponseCommand.h
  7387. * src/Makefile.am
  7388. * src/TransferEncoding.h: Removed
  7389. * test/ChunkedDecoderTest.cc
  7390. * test/ChunkedEncodingTest.cc: Removed
  7391. * test/HttpResponseTest.cc
  7392. * test/Makefile.am
  7393. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7394. Use append instead of insert.
  7395. * src/GZipDecoder.cc
  7396. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7397. Updated doc
  7398. * src/Decoder.h
  7399. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7400. Updated usage text for -s option.
  7401. * src/usage_text.h
  7402. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7403. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  7404. * src/Request.cc
  7405. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7406. Cleaned up configure.ac.
  7407. * configure.ac
  7408. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7409. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  7410. AC_ARG_ENABLE.
  7411. * configure.ac
  7412. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7413. Added gzip, deflate decoding support in HTTP using libz. If compiled
  7414. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  7415. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  7416. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  7417. fly and writes decoded data to a local disk.
  7418. * README
  7419. * README.html
  7420. * configure.ac
  7421. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  7422. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  7423. * m4/libz.m4
  7424. * src/Decoder.h
  7425. * src/DownloadCommand.cc
  7426. * src/DownloadCommand.h
  7427. * src/Exception.h
  7428. * src/GZipDecoder.cc
  7429. * src/GZipDecoder.h
  7430. * src/HttpHeader.cc
  7431. * src/HttpHeader.h
  7432. * src/HttpRequest.cc
  7433. * src/HttpRequest.h
  7434. * src/HttpResponse.cc
  7435. * src/HttpResponse.h
  7436. * src/HttpResponseCommand.cc
  7437. * src/Makefile.am
  7438. * test/GZipDecoderTest.cc
  7439. * test/HttpRequestTest.cc
  7440. * test/HttpResponseTest.cc
  7441. * test/Makefile.am
  7442. * test/Makefile.in
  7443. * test/gzip_decode_test.gz
  7444. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7445. Clarified usage of -j option.
  7446. * src/usage_text.h
  7447. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7448. Disabled getting size from the response of RETR.
  7449. If SIZE command failed, then disable resuming and segmented downloading.
  7450. * src/FtpConnection.cc
  7451. * src/FtpConnection.h
  7452. * src/FtpNegotiationCommand.cc
  7453. * src/FtpNegotiationCommand.h
  7454. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7455. Use digits to find first byte of file size, which makes the intention
  7456. of the code clearer.
  7457. * src/FtpConnection.cc
  7458. Don't call validateTotalLength() when size is 0.
  7459. * src/FtpNegotiationCommand.cc
  7460. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7461. Updated po files.
  7462. * po/aria2c.pot
  7463. * po/*.gmo
  7464. * po/*.po
  7465. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7466. Clarified usage text for --split option.
  7467. * src/usage_text.h
  7468. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7469. Bump up version number to 0.15.0dev. "dev" means "development"
  7470. version, which means I started the development of the next release!
  7471. * src/configure.ac
  7472. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7473. If FTP server returns negative response with REST raw command and
  7474. requested range is not 0, throw exception. If requested range is 0,
  7475. continue download a file from 0 byte.
  7476. * src/FtpNegotiationCommand.cc
  7477. * src/FtpNegotiationCommand.h
  7478. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7479. Supported FTP server which don't recognize SIZE raw command.
  7480. If SIZE raw command is failed, aria2 will try to get file size
  7481. from the response of RETR raw command. If both attempts are failed,
  7482. then resuming and segmented downloading are disabled.
  7483. * src/FtpConnection.cc
  7484. * src/FtpConnection.h
  7485. * src/FtpNegotiationCommand.cc
  7486. * src/FtpNegotiationCommand.h
  7487. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7488. * Release 0.14.0+1
  7489. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7490. Bump up version number to 0.14.0+1
  7491. * src/configure.ac
  7492. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7493. Fixed the code that refers static member variable from non-static
  7494. context.
  7495. * src/DefaultPeerStorage.cc
  7496. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7497. * Release 0.14.0
  7498. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7499. Added build test script
  7500. * build_test.sh
  7501. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7502. Updated ja.po
  7503. * src/ja.po
  7504. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7505. Bump up version number to 0.14.0
  7506. * src/configure.ac
  7507. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7508. Updated ja.po and fr.po. Great thanks for french translators and
  7509. Sebastien WILLEMIJNS.
  7510. * po/fr.po
  7511. * po/ja.po
  7512. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7513. Added configure option to enable/disable epoll support.
  7514. * configure.ac
  7515. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7516. Updated man page.
  7517. * doc/aria2c.1.txt
  7518. * doc/aria2c.1
  7519. * doc/aria2c.1.html
  7520. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7521. Added missing default value '5' to the usage of --split option.
  7522. * src/HelpItemFactory.cc
  7523. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7524. Filled up pieces based on the number of missing blocks, rather than
  7525. simplay the number of piece * block length.
  7526. * src/BtRequestFactory.h
  7527. * src/DefaultBtInteractive.cc
  7528. * src/DefaultBtInteractive.h
  7529. * src/DefaultBtRequestFactory.cc
  7530. * src/DefaultBtRequestFactory.h
  7531. * src/Piece.cc
  7532. * src/Piece.h
  7533. * test/BitfieldManTest.cc
  7534. * test/DefaultBtRequestFactoryTest.cc
  7535. * test/MockBtRequestFactory.h
  7536. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7537. Made _epEvents a member variable.
  7538. * src/DownloadEngine.cc
  7539. * src/DownloadEngine.h
  7540. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7541. Cancel download if http redirect is bounded more than 20 times.
  7542. * src/AbstractCommand.cc
  7543. * src/HttpSkipResponseCommand.cc
  7544. * src/Request.cc
  7545. * src/Request.h
  7546. * test/RequestTest.cc
  7547. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7548. Fixed unhandled exception(removed keyword `new').
  7549. * src/SocketCore.cc (initEPOLL)
  7550. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7551. Removed visit(const MetaEntry*)
  7552. * src/MetaEntryVisitor.h:
  7553. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  7554. and made them virtual.
  7555. * src/BencodeVisitor.h
  7556. * src/BencodeVisitor.cc
  7557. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7558. Updated po files.
  7559. * po/aria2c.pot
  7560. * po/*.po
  7561. * po/*.gmo
  7562. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7563. Moved the call setWriteCheckSocket inside the previous clause to reduce
  7564. the number of socket to watch out.
  7565. * src/PeerInteractionCommand.cc
  7566. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7567. When there is not enough space in disk when writing a chunk of data,
  7568. aria2 now prints the message to the console to warn user and aborts
  7569. its download. Not all downloads are canceled because some downloads
  7570. may use another disk or partition. BUG#1640332
  7571. * src/AbstractDiskWriter.cc
  7572. * src/PeerAbstractCommand.cc
  7573. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  7574. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  7575. setHaltRequested(true) to cancel download.
  7576. * src/PeerInteractionCommand.h
  7577. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7578. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  7579. socket from int to sock_t as sockets are unsigned in Windows.
  7580. For AsyncNameResolver, DownloadEngine, I did additional modification
  7581. for the portion of the code changed according to epoll support.
  7582. I defined sock_t in a2netcompat.h to use sock_t without including
  7583. SocketCore.h.
  7584. * src/AsyncNameResolver.cc
  7585. * src/AsyncNameResolver.h
  7586. * src/DownloadEngine.cc
  7587. * src/DownloadEngine.h
  7588. * src/SocketCore.cc
  7589. * src/SocketCore.h
  7590. * src/a2netcompat.h
  7591. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7592. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  7593. changes in the patch were applied.
  7594. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  7595. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  7596. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  7597. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7598. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  7599. a2io.h and common.h were modified.
  7600. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  7601. MinGW.
  7602. * src/common.h: Changed off_t to 64 bit in MinGW.
  7603. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7604. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7605. only a2netcompat.h is modified.
  7606. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  7607. directives.
  7608. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7609. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7610. only gai_strerror.h is modified.
  7611. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  7612. winsock errors in MinGW.
  7613. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7614. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  7615. follow sources are applied.
  7616. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  7617. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  7618. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  7619. I included locale.h from Platform.cc.
  7620. * src/main.cc: Moved common setup/teardown code to Platform class.
  7621. * test/AllTest.cc: Use Platform class.
  7622. Set locale to C in AllTest.cc to prevent the messages to be localized.
  7623. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7624. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  7625. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  7626. * test/HttpRequestTest.cc: Casted to off_t where it should.
  7627. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7628. Applied Ross's aria2-0.13.2+1-mingw.patch and
  7629. aria2-0.13.2+1-mingw-2.patch.
  7630. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  7631. systems which don't have termious.h. I moved the directive inside of
  7632. if(isTTY) { ... clause so that line is wiped out without termious.h.
  7633. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  7634. anyway.
  7635. * src/asctime_r.h
  7636. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  7637. I added 2nd argument to the prototype declaration.
  7638. * src/StringFormat.cc: Get rid of vasprintf.
  7639. * src/getaddrinfo.h: Fixed constants.
  7640. * configure.ac: Added the check for asctime_r function.
  7641. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  7642. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7643. Added writable test for Socket when the sending message is in progress.
  7644. Usually the sending message is piece message. Without wriable check,
  7645. upload latency is dropped to more than 1sec.
  7646. * src/PeerInteractionCommand.cc
  7647. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7648. Create only requested files and files which shares a piece with
  7649. requested file in multi-torrent downloads. Directory structures are
  7650. also created in the same rule.
  7651. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  7652. DiskWriterEntry as in the previous implementation.
  7653. * src/MultiDiskWriter.cc
  7654. * src/MultiFileAllocationIterator.cc
  7655. * src/MultiFileAllocationIterator.h
  7656. * test/MultiFileAllocationIteratorTest.cc
  7657. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7658. Commented out -lprofiler
  7659. * src/Makefile.am
  7660. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7661. Bump up version number to 0.14.0b.
  7662. * src/configure.ac
  7663. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7664. Actively establish connection to peers in seeding, when peer cache
  7665. is not full and max upload speed limit is not reached.
  7666. * src/ActivePeerConnectionCommand.cc
  7667. * src/ActivePeerConnectionCommand.h
  7668. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7669. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  7670. to make room more fleshy, recently found peers.
  7671. Peer::_badConditionStartTime is not used anymore. Consider to remove
  7672. it.
  7673. * src/DefaultPeerStorage.cc
  7674. * test/DefaultPeerStorageTest.cc
  7675. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7676. Returns cached data only when the previous receiveHandshake() is called
  7677. with peek = true.
  7678. * src/PeerConnection.cc (receiveHandshake)
  7679. * src/PeerConnection.h (receiveHandshake)
  7680. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7681. Changed default value of -s option from 1 to 5.
  7682. Also max value of -s option is changed from 5 to 16.
  7683. * src/HelpItemFactory.cc
  7684. * src/OptionHandlerFactory.cc
  7685. * src/option_processing.cc
  7686. * src/usage_text.h
  7687. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7688. Changed -s options behavior. Now it means the number of connections
  7689. made simultaneously in each http/ftp download.
  7690. If 1 URL is specified, the behavior is the same with old implementation.
  7691. If -s N is given and more than N URLs are specified, first N URLs are
  7692. used and remaining URLs are used for backup. If less than N URLs are
  7693. specified, some of URLs are used more than once so that totally N
  7694. connections are made simultaneously.
  7695. * src/main.cc
  7696. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7697. Included missing iosfwd or ostream header.
  7698. * src/RequestGroupMan.cc
  7699. * src/TaggedItem.cc
  7700. * src/TaggedItem.h
  7701. * src/Util.cc
  7702. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7703. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  7704. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  7705. * src/HttpConnection.cc: Included missing sstream.
  7706. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7707. Added --bt-max-open-files option.
  7708. * src/DefaultPieceStorage.cc
  7709. * src/HelpItemFactory.cc
  7710. * src/MultiDiskAdaptor.cc
  7711. * src/MultiDiskAdaptor.h
  7712. * src/OptionHandlerFactory.cc
  7713. * src/option_processing.cc
  7714. * src/prefs.cc
  7715. * src/prefs.h
  7716. * src/usage_text.h
  7717. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7718. Fixed the bug that aria2 aborts when a path to a directory is given
  7719. in command-line.
  7720. * src/ProtocolDetector.cc
  7721. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7722. Limited the number files opened in each BitTorrent download. The default
  7723. value is 100. The option to change this value will be added.
  7724. * src/MultiDiskAdaptor.cc
  7725. * src/MultiDiskAdaptor.h
  7726. * src/MultiFileAllocationIterator.cc
  7727. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7728. Fixed the bug that HTTP downloads don't start with old libraries.
  7729. * src/HttpHeaderProcessor.cc
  7730. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7731. Use empty() instead of size() > 0.
  7732. * src/HttpConnection.cc
  7733. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7734. Drop connection if the incoming peer ID is the same with localhost's
  7735. one. The previous implementation drops connection when incoming peer's
  7736. IP address is the same with localhost's one.
  7737. * src/PeerListenCommand.cc
  7738. * src/DefaultBtInteractive.cc
  7739. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7740. Returns cached data without checking whether socket is readable
  7741. if the cache is available.
  7742. * src/PeerConnection.cc (receiveHandshake)
  7743. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7744. Included stdint.h
  7745. * src/common.h
  7746. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7747. Removed duplicate HAVE_GETTIMEOFDAY
  7748. * src/Makefile.am
  7749. * src/Makefile.in
  7750. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7751. Use interval as a minInterval when minInterval is not supplied.
  7752. * src/DefaultBtAnnounce.cc
  7753. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7754. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  7755. attempt is failed, then 2nd attempt get kicked out more quickly.
  7756. And it is now static const member of DefaultBtAnnounce.
  7757. * src/DefaultBtAnnounce.h
  7758. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7759. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  7760. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  7761. * src/ActivePeerConnectionCommand.cc
  7762. * src/BtConstants.h
  7763. * src/BtRuntime.h
  7764. * src/DHTGetPeersCommand.cc
  7765. * src/DefaultBtAnnounce.cc
  7766. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  7767. BtRuntime::MAX_PEERS.
  7768. * src/DefaultPeerStorage.h
  7769. * src/InitiatorMSEHandshakeCommand.cc
  7770. * src/PeerInitiateConnectionCommand.cc
  7771. * src/PeerInteractionCommand.cc
  7772. * src/PeerReceiveHandshakeCommand.cc
  7773. * src/TrackerWatcherCommand.cc
  7774. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7775. Always Connect to _numNewConnection
  7776. * src/ActivePeerConnectionCommand.cc
  7777. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7778. Made `begin' unsigned int.
  7779. * src/GrowSegment.h
  7780. * src/Piece.cc
  7781. * src/Piece.h
  7782. * src/PiecedSegment.cc
  7783. * src/PiecedSegment.h
  7784. * src/Segment.h
  7785. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7786. Calculate piece hash when data is arrived if the data is arrived in
  7787. order. This removes additional read operation for hash calculation.
  7788. If the data is arrived in out of order, the hash is calucated when the
  7789. piece is completed. This is the same behavior as the old implementation.
  7790. * src/BtPieceMessage.cc
  7791. * src/DefaultBtProgressInfoFile.cc
  7792. * src/DefaultPieceStorage.cc
  7793. * src/DownloadCommand.cc
  7794. * src/DownloadCommand.h
  7795. * src/DownloadEngine.cc
  7796. * src/GrowSegment.cc
  7797. * src/GrowSegment.h
  7798. * src/Piece.cc
  7799. * src/Piece.h
  7800. * src/PiecedSegment.cc
  7801. * src/PiecedSegment.h
  7802. * src/Segment.h
  7803. * test/PieceTest.cc
  7804. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7805. Try to keep the ordering of outgoing piece message.
  7806. * src/DefaultBtMessageDispatcher.cc
  7807. (DefaultBtMessageDispatcher::sendMessages)
  7808. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7809. Fixed busy loop when error/hup epoll events occur.
  7810. * src/AbstractCommand.cc
  7811. * src/PeerAbstractCommand.cc
  7812. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7813. Added --bt-request-peer-speed-limit option, which was a constant
  7814. SLOW_SPEED_THRESHOLD.
  7815. * src/ActivePeerConnectionCommand.cc
  7816. * src/ActivePeerConnectionCommand.h
  7817. * src/BtConstants.h
  7818. * src/HelpItemFactory.cc
  7819. * src/OptionHandlerFactory.cc
  7820. * src/PeerReceiveHandshakeCommand.cc
  7821. * src/option_processing.cc
  7822. * src/prefs.cc
  7823. * src/prefs.h
  7824. * src/usage_text.h
  7825. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7826. Removed repeated call of getTopDirPath(). Instead, call it once and
  7827. cache the result.
  7828. * src/MultiDiskAdaptor.cc
  7829. * src/MultiDiskAdaptor.h
  7830. (mkdir, openFile, initAndOpenFile, openExistingFile)
  7831. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7832. Fixed compile error on debian etch.
  7833. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  7834. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  7835. it is undefined.
  7836. * src/Util.cc (ULLONG_MAX)
  7837. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7838. Added epoll support. Use epoll if it is available. If not, use select.
  7839. When async dns is enabled in compile time, epoll support is enabled
  7840. only when aria2 is built with c-ares. This condition statement is
  7841. defined in a2io.h.
  7842. Currently aria2 supports both c-ares and ares, but ares is maintained
  7843. for quite a while and debian already has c-ares package, ares support
  7844. will be dropped in the future version.
  7845. * configure.ac
  7846. * src/AbstractCommand.cc
  7847. * src/AsyncNameResolver.cc
  7848. * src/AsyncNameResolver.h
  7849. * src/Command.cc
  7850. * src/Command.h
  7851. * src/DownloadEngine.cc
  7852. * src/DownloadEngine.h
  7853. * src/PeerAbstractCommand.cc
  7854. * src/SocketCore.cc
  7855. * src/SocketCore.h
  7856. * src/a2io.h
  7857. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7858. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  7859. directive.
  7860. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7861. Do not do write operation to /dev/null file.
  7862. * src/LogFactory.cc
  7863. * src/SimpleLogger.cc
  7864. Replaced vasprintf with vsnprintf
  7865. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7866. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7867. * src/BtRequestMessage.cc
  7868. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  7869. for segmentation fault caused by previous commit.
  7870. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7871. Reduced the usage of gettimeofday().
  7872. * src/DefaultBtMessageDispatcher.cc
  7873. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  7874. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7875. * src/RequestSlot.cc
  7876. * src/RequestSlot.h
  7877. (RequestSlot::isTimeout)
  7878. Made RequestSlot have a reference to Piece object to avoid find
  7879. Piece repeatedly.
  7880. * src/DefaultBtMessageDispatcher.cc
  7881. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7882. * src/RequestSlot.cc
  7883. * src/RequestSlot.h
  7884. (RequestSlot::getPiece)
  7885. * test/DefaultBtMessageDispatcherTest.cc
  7886. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7887. * src/TimeA2.cc
  7888. * src/TimeA2.h
  7889. (Time::difference): New function.
  7890. (Time::elapsed): Done optimization.
  7891. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7892. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  7893. directive.
  7894. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7895. * src/option_processing.cc: Added missing `defined' keyword to #if
  7896. directive.
  7897. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7898. Bump up version number to 0.13.2+1
  7899. * src/configure.ac
  7900. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7901. Refactored broken outstanding piece handling.
  7902. * src/DefaultPieceStorage.cc
  7903. * src/DefaultPieceStorage.h
  7904. * src/Piece.cc
  7905. * src/Piece.h
  7906. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7907. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  7908. name collision of static variable and predefined macro.
  7909. * src/BtContext.cc
  7910. * src/BtContext.h
  7911. * src/CookieBoxFactory.cc
  7912. * src/CookieBoxFactory.h
  7913. * src/CookieParser.cc
  7914. * src/CookieParser.h
  7915. * src/DefaultBtContext.cc
  7916. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7917. * src/RequestGroup.cc
  7918. (RequestGroup::createInitialCommand): Use empty() instead of size().
  7919. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7920. * Release 0.13.2
  7921. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7922. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  7923. * po/fr.po
  7924. * po/ja.po
  7925. * po/aria2c.pot
  7926. * po/*.po
  7927. * po/*.gmo
  7928. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7929. Bump up version number to 0.13.2
  7930. * src/configure.ac
  7931. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7932. Refactord.
  7933. * src/RequestGroupMan.cc
  7934. (removeStoppedGroup)
  7935. (fillRequestGroupFromReserver)
  7936. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7937. Fixed compile error on Ubuntu.
  7938. * src/BtPieceMessage.cc
  7939. * src/MessageDigestHelper.cc
  7940. * src/Util.cc
  7941. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7942. Fixed compile error when configured with --disable-bittorrent
  7943. * test/DownloadHandlerFactoryTest.cc
  7944. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7945. Done make update-po
  7946. * po/aria2c.pot
  7947. * po/*.po
  7948. * po/*.gmo
  7949. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7950. Bump up version number to 0.13.2rc.
  7951. * src/configure.ac
  7952. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7953. Made option name bold. Updated SYNOPSIS to make it more readable.
  7954. * doc/aria2c.1.txt
  7955. * doc/aria2c.1
  7956. * doc/aria2c.1.html
  7957. * src/version_usage.cc
  7958. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7959. Refactored. Use std::string instead of size and char*.
  7960. * Data.cc
  7961. * Data.h
  7962. * test/Data.cc
  7963. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7964. Added trimSelf(). Rewritten trim() to use trimSelf().
  7965. * Util.cc
  7966. * Util.h
  7967. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7968. * src/ChunkChecksum.h (getChecksum): Return const reference.
  7969. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7970. Fixed compile error when configured with --disable-metalink.
  7971. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  7972. * test/FeatureConfigTest.cc
  7973. * test/DownloadHandlerFactoryTest.cc
  7974. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7975. Fixed compile error when configured with --without-gnutls
  7976. --without-openssl
  7977. * src/main.cc
  7978. * test/DefaultBtProgressInfoFileTest.cc
  7979. * test/SegmentManTest.cc
  7980. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7981. Fixed compile error with OpenSSL.
  7982. * src/IteratableChunkChecksumValidator.cc
  7983. * src/LibsslDHKeyExchange.h
  7984. * src/MessageDigestHelper.cc
  7985. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7986. Revert the default value of --max-concurrent-downloads to 5.
  7987. Revert the default value of --metalink-servers to 5.
  7988. Man pages was also updated.
  7989. * src/option_processing.cc
  7990. * doc/aria2c.1.txt
  7991. * doc/aria2c.1.html
  7992. * doc/aria2c.1
  7993. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7994. Returns const reference:
  7995. DownloadContext::getPieceHash, DownloadContext::getName,
  7996. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  7997. BtContext::getInfoHashAsString,
  7998. * src/BtContext.h
  7999. * src/DefaultBtContext.cc
  8000. * src/DefaultBtContext.h
  8001. * src/DownloadContext.h
  8002. * src/SingleFileDownloadContext.h
  8003. * test/MockBtContext.h
  8004. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8005. * src/RequestGroup.h (getDir): Removed.
  8006. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8007. Returns const reference. The internal urlencode function was optimized
  8008. a little bit.
  8009. * src/Request.cc
  8010. * src/Request.h
  8011. * src/HttpRequest.cc
  8012. * src/HttpRequest.h
  8013. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8014. Defined option name and possible values as std::string to reduce
  8015. temporary string object creation in runtime.
  8016. * src/HelpItemFactory.cc
  8017. * src/LogFactory.cc
  8018. * src/Option.cc
  8019. * src/OptionHandlerFactory.cc
  8020. * src/option_processing.cc
  8021. * src/prefs.cc
  8022. * src/prefs.h
  8023. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8024. Return const reference.
  8025. * src/DownloadHandlerConstants.cc
  8026. * src/DownloadHandlerConstants.h
  8027. (getMetalinkExtensions)
  8028. (getMetalinkContentTypes)
  8029. (getBtExtensions)
  8030. (getBtContentTypes)
  8031. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8032. * src/HttpHeader.cc (get): Rewritten.
  8033. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8034. Make HttpHeader::getFirst(...) return const reference.
  8035. * src/HttpHeader.cc
  8036. * src/HttpHeader.h
  8037. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8038. Use Option::getAsBool(...) instead of Option::get(...) and compare
  8039. it with V_TRUE.
  8040. * src/DefaultPieceStorage.cc
  8041. * src/DownloadCommand.cc
  8042. * src/FtpNegotiationCommand.cc
  8043. * src/HttpRequest.cc
  8044. * src/InitiateConnectionCommand.cc
  8045. * src/RequestGroup.cc
  8046. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8047. Made Option::get(...) return const reference of std::string.
  8048. * src/Option.cc
  8049. * src/Option.h
  8050. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8051. Replaced std:copy with insert.
  8052. * src/DefaultBtMessageDispatcher.cc
  8053. * src/DefaultPieceStorage.cc
  8054. * src/DownloadEngineFactory.cc
  8055. * src/RequestGroup.cc
  8056. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8057. Included SocketCore.h to fix compiler warning.
  8058. * src/InitiateConnectionCommand.cc
  8059. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8060. Put piece selection strategy algorithm to RarestPieceSelector class,
  8061. Added a switch to choose whether randomized selection so that unit
  8062. tests emit same results in, possibly, win32.
  8063. * src/DefaultPieceStorage.cc
  8064. * src/DefaultPieceStorage.h
  8065. * src/RarestPieceSelector.cc
  8066. * src/RarestPieceSelector.h
  8067. * test/DefaultPieceStorageTest.cc
  8068. * test/RarestPieceSelectorTest.cc
  8069. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8070. Don't pool connection if HTTP proxy is enabled.
  8071. * src/FtpFinishDownloadCommand.cc
  8072. * src/FtpNegotiationCommand.cc
  8073. * src/HttpSkipResponseCommand.cc
  8074. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8075. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  8076. * src/AbstractCommand.cc
  8077. * src/AbstractCommand.h
  8078. * src/ActivePeerConnectionCommand.cc
  8079. * src/FtpInitiateConnectionCommand.cc
  8080. * src/HttpInitiateConnectionCommand.cc
  8081. * src/InitiateConnectionCommandFactory.cc
  8082. * src/PeerAbstractCommand.cc
  8083. * src/PeerAbstractCommand.h
  8084. * src/PeerInitiateConnectionCommand.cc
  8085. * src/TrackerWatcherCommand.cc
  8086. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8087. Sort RequestSlot in ascending order and manipulate them using
  8088. lower_bound.
  8089. * src/DefaultBtMessageDispatcher.cc
  8090. * src/DefaultBtMessageDispatcher.h
  8091. (getMessageQueue): Added const qualifier.
  8092. (getRequestSlots): Added const qualifier.
  8093. (sendMessages): Use empty() instead of size().
  8094. (doCancelSendingPieceAction): Use HandleEvent object.
  8095. (doAbortOutstandingRequestAction): Rewritten.
  8096. (doChokedAction): Rewritten.
  8097. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  8098. (isOutstandingRequest): Rewritten.
  8099. (getOutstandingRequest): Rewritten.
  8100. (removeOutstandingRequest): Rewritten.
  8101. (addOutstandingRequest): Rewritten.
  8102. * src/RequestSlot.cc
  8103. * src/RequestSlot.h
  8104. (operator=): Rewritten.
  8105. (operator!=): New function.
  8106. (operator<): New function.
  8107. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8108. * src/DefaultBtRequestFactory.cc
  8109. (doChokedAction): Rewritten.
  8110. (removeCompletedPiece): Rewritten.
  8111. (removeTargetPiece): Rewritten.
  8112. (createRequestMessages): Added the debug log.
  8113. (createRequestMessagesOnEndGame: Added the debug log.
  8114. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8115. Added the debug log message.
  8116. * src/BtPieceMessage.cc (doReceivedAction)
  8117. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8118. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  8119. used lower_bound to process them rather than linear search.
  8120. * src/DHTPeerAnnounceStorage.cc
  8121. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8122. Call subtractPieceStats from ~PeerInteractionCommand only when the
  8123. peer has at least one completed piece.
  8124. * src/Peer.cc
  8125. * src/Peer.h
  8126. * src/PeerInteractionCommand.cc
  8127. * src/PeerSessionResource.cc
  8128. * src/PeerSessionResource.h
  8129. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8130. Removed unnecessary sorting
  8131. * src/DefaultPieceStorage (DefaultPieceStorage)
  8132. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8133. Rewritten the portion of the code that mangaes allowed fast indexes.
  8134. * src/PeerSessionResource.cc
  8135. * src/PeerSessionResource.h
  8136. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8137. Removed the invalid string including '\r' from ru.po and
  8138. did make update-po.
  8139. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8140. Added --log-level and --summary-interval to man page.
  8141. * doc/aria2c.1.txt
  8142. * doc/aria2c.1.html
  8143. * doc/aria2c.1
  8144. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8145. Added --log-level option to specify log level. Log messages under
  8146. the specified level are not output. Default value is `debug'.
  8147. * src/HelpItemFactory.cc
  8148. * src/LogFactory.cc
  8149. * src/LogFactory.h
  8150. * src/Logger.h
  8151. * src/OptionHandlerFactory.cc
  8152. * src/SimpleLogger.cc
  8153. * src/SimpleLogger.h
  8154. * src/main.cc
  8155. * src/option_processing.cc
  8156. * src/prefs.h
  8157. * src/usage_text.h
  8158. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8159. Print download progress summary of all parallel downloads in specified
  8160. interval, default 60 secs. While aria2 could download several files
  8161. in parallel (see -j option), it displayed just first download progress,
  8162. and the other downloads are hidden from the users. This new feature
  8163. prints all downloads currently in-progress to the console so that you
  8164. can check the status of all downloads. The interval can be adjusted
  8165. by --summary-interval option.
  8166. The progress readout is now cut so that all fits in the one line of
  8167. console.
  8168. * src/ConsoleStatCalc.cc
  8169. * src/ConsoleStatCalc.h
  8170. * src/HelpItemFactory.cc
  8171. * src/OptionHandlerFactory.cc
  8172. * src/RequestGroupMan.cc
  8173. * src/RequestGroupMan.h
  8174. * src/main.cc
  8175. * src/option_processing.cc
  8176. * src/prefs.h
  8177. * src/usage_text.h
  8178. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8179. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  8180. * src/DownloadEngine.cc (DownloadEngine)
  8181. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8182. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  8183. defined.
  8184. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  8185. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8186. Use erase+lower_bound+insert instead of sort.
  8187. * src/DefaultPieceStorage.cc (addPieceStats)
  8188. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8189. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  8190. * src/A2STR.cc
  8191. * src/A2STR.h
  8192. * src/OptionParser.cc (parse)
  8193. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8194. Defined fake filename `[tracker.announce]' as static const std::string.
  8195. * src/TrackerWatcherCommand.cc (createRequestGroup)
  8196. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8197. Defined default filename `index.html' as static const std::string
  8198. * src/SingleFileDownloadContext.cc
  8199. * src/SingleFileDownloadContext.h
  8200. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8201. Defined "[MEMORY]" as static const std::string.
  8202. * src/MemoryBufferPreDownloadHandler.cc (execute)
  8203. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8204. Defined control file's version number as static const std::string.
  8205. * src/DefaultBtProgressInfoFile.cc
  8206. * src/DefaultBtProgressInfoFile.h
  8207. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8208. Use Request::METHOD_GET
  8209. * src/RequestGroup.cc (createNextCommandWithAdj)
  8210. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8211. Defined "OK", "ERR", "INPR" as static const std::string
  8212. * src/RequestGroupMan.cc (showDownloadResults)
  8213. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8214. Defined default client used in extended handshake as static const
  8215. std::string
  8216. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  8217. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8218. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  8219. * src/HttpConnection.cc (eraseConfidentialInfo)
  8220. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8221. Defined default ftp user and password as static const std::string
  8222. * src/AuthConfigFactory.cc
  8223. * src/AuthConfigFactory.h
  8224. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8225. Defined strings used in netrc as static const std::string
  8226. * src/Netrc.cc
  8227. * src/Netrc.h
  8228. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8229. Defined HTTP status as static const std::string
  8230. * src/AbstractProxyResponseCommand.cc
  8231. * src/HttpHeader.cc
  8232. * src/HttpHeader.h
  8233. * src/HttpResponse.cc
  8234. * src/HttpResponseCommand.cc
  8235. * src/HttpSkipResponseCommand.cc
  8236. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8237. Defined "\r\n", "A", "I" as static const std::string
  8238. * src/A2STR.cc
  8239. * src/A2STR.h
  8240. * src/FtpConnection.cc
  8241. * src/FtpConnection.h
  8242. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8243. Added COLON_C(".") and used it in Request::parseUrl()
  8244. * src/A2STR.cc
  8245. * src/A2STR.h
  8246. * src/Request.cc (parseUrl)
  8247. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8248. Changed the type of padName from `const std::string&' to `const char*'.
  8249. * src/MSEHandshake.cc (verifyPadLength)
  8250. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8251. Defined "sha1" as static const std::string.
  8252. * src/MetalinkParserController.cc
  8253. * src/MetalinkParserController.h
  8254. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8255. Defined message digest algorithm name as static const std::string
  8256. * src/DHTTokenTracker.cc
  8257. * src/DHTUtil.cc
  8258. * src/DefaultBtContext.cc
  8259. * src/MSEHandshake.cc
  8260. * src/MessageDigestHelper.cc
  8261. * src/Peer.cc
  8262. * src/messageDigest.cc
  8263. * src/messageDigest.h
  8264. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8265. Made string literals used in SAX parser static const std::string.
  8266. * src/FileMetalinkParserState.cc
  8267. * src/FileMetalinkParserState.h
  8268. * src/FilesMetalinkParserState.cc
  8269. * src/FilesMetalinkParserState.h
  8270. * src/InitialMetalinkParserState.cc
  8271. * src/InitialMetalinkParserState.h
  8272. * src/MetalinkMetalinkParserState.cc
  8273. * src/MetalinkMetalinkParserState.h
  8274. * src/PiecesMetalinkParserState.cc
  8275. * src/PiecesMetalinkParserState.h
  8276. * src/ResourcesMetalinkParserState.cc
  8277. * src/ResourcesMetalinkParserState.h
  8278. * src/VerificationMetalinkParserState.cc
  8279. * src/VerificationMetalinkParserState.h
  8280. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8281. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  8282. * src/A2STR.cc
  8283. * src/A2STR.h
  8284. * src/File.cc
  8285. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8286. Defined static const std::string IP("ip"), PORT("port") and use them
  8287. instead of string literals.
  8288. * src/DefaultPeerListProcessor.cc
  8289. * src/DefaultPeerListProcessor.h
  8290. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8291. Made string literals for torrent file processing static const
  8292. std::string.
  8293. * src/BtContext.cc
  8294. * src/BtContext.h
  8295. * src/DefaultBtContext.cc
  8296. * src/DefaultBtContext.h
  8297. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8298. Made string literal for tracker response static const std::string
  8299. * src/BtAnnounce.cc
  8300. * src/BtAnnounce.h
  8301. * src/DefaultBtAnnounce.cc
  8302. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8303. Use DHTMessage::T instead of "t".
  8304. * src/DHTMessageTracker.cc (messageArrived)
  8305. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8306. Made keyName static const. Made trimmed charset static const
  8307. std::string.
  8308. * src/Util.cc (getContentDispositionFilename)
  8309. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8310. Made USER_AGENT const. Made "/" static const std::string.
  8311. * src/A2STR.cc
  8312. * src/A2STR.h
  8313. * src/HttpRequest.cc
  8314. * src/HttpRequest.h
  8315. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8316. Made string listeral to static const std::string:
  8317. "Content-Range", "Content-Length"
  8318. * src/HttpHeader.cc
  8319. * src/HttpHeader.h
  8320. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8321. Made string listeral to static const std::string.
  8322. * src/HttpConnection.cc
  8323. * src/HttpHeader.cc
  8324. * src/HttpHeader.h
  8325. * src/HttpResponse.cc
  8326. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8327. Made string listeral to static const std::string.
  8328. * src/A2STR.cc
  8329. * src/A2STR.h
  8330. * src/SimpleLogger.cc
  8331. * src/SimpleLogger.h
  8332. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8333. Made string literal to static const std::string.
  8334. Rewritten CookieParser::setField.
  8335. * src/A2STR.cc
  8336. * src/A2STR.h
  8337. * src/CookieBoxFactory.cc
  8338. * src/CookieBoxFactory.h
  8339. * src/CookieParser.cc
  8340. * src/CookieParser.h
  8341. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8342. Made string literal to static const std::string
  8343. * src/DHTAbstractMessage.cc
  8344. * src/DHTAnnouncePeerMessage.cc
  8345. * src/DHTAnnouncePeerMessage.h
  8346. * src/DHTAnnouncePeerReplyMessage.cc
  8347. * src/DHTAnnouncePeerReplyMessage.h
  8348. * src/DHTFindNodeMessage.cc
  8349. * src/DHTFindNodeMessage.h
  8350. * src/DHTFindNodeReplyMessage.cc
  8351. * src/DHTFindNodeReplyMessage.h
  8352. * src/DHTGetPeersMessage.cc
  8353. * src/DHTGetPeersMessage.h
  8354. * src/DHTGetPeersReplyMessage.cc
  8355. * src/DHTGetPeersReplyMessage.h
  8356. * src/DHTMessage.cc
  8357. * src/DHTMessage.h
  8358. * src/DHTMessageFactoryImpl.cc
  8359. * src/DHTMessageReceiver.cc
  8360. * src/DHTPingMessage.cc
  8361. * src/DHTPingMessage.h
  8362. * src/DHTPingReplyMessage.cc
  8363. * src/DHTPingReplyMessage.h
  8364. * src/DHTQueryMessage.cc
  8365. * src/DHTQueryMessage.h
  8366. * src/DHTResponseMessage.cc
  8367. * src/DHTResponseMessage.h
  8368. * src/DHTUnknownMessage.cc
  8369. * src/DHTUnknownMessage.h
  8370. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8371. Made string literal to static const std::string
  8372. * src/BtChokeMessage.cc (toString)
  8373. * src/BtHaveAllMessage.cc (toString)
  8374. * src/BtHaveNoneMessage.cc (toString)
  8375. * src/BtInterestedMessage.cc (toString)
  8376. * src/BtNotInterestedMessage.cc (toString)
  8377. * src/BtUnchokeMessage.cc (toString)
  8378. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8379. Replaced "" with static const variable A2STR::NIL.
  8380. Replaced string comparison against "" with std::string::empty().
  8381. Added PROTO_* to Request class and use them as a protocol string
  8382. constant.
  8383. Made "started", "stopped", "completed" static const variable in
  8384. AnnounceList class.
  8385. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8386. Updated translations. Great thanks to translators.
  8387. * po/ca.po
  8388. * po/de.po
  8389. * po/fr.po
  8390. * po/it.po
  8391. * po/ja.po
  8392. * po/ru.po
  8393. * po/zh_CN.po
  8394. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8395. Updated man page; categorized options and fixed typo.
  8396. * doc/aria2c.1.txt
  8397. * doc/aria2c.1.html
  8398. * doc/aria2c.1
  8399. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8400. Removed const ref
  8401. * src/MetalinkEntry.cc (AddProtocolPreference)
  8402. * src/RequestGroup.cc (FindServerHostByHostname)
  8403. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8404. Rewritten Accept-Features handling.
  8405. * src/HttpRequestCommand.cc (createHttpRequest)
  8406. * src/a2functional.h
  8407. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8408. Changed method signature:
  8409. DHTAbstractNodeLookupTask::toEntries
  8410. * src/DHTAbstractNodeLookupTask.cc
  8411. * src/DHTAbstractNodeLookupTask.h
  8412. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8413. Changed method signature:
  8414. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  8415. * src/BtContext.h
  8416. * src/DefaultBtContext.cc
  8417. * src/DefaultBtContext.h
  8418. * src/DefaultBtInteractive.cc
  8419. * test/DefaultBtContextTest.cc
  8420. * test/MockBtContext.h
  8421. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8422. Changed method signature:
  8423. MultiFileAllocationIterator::makeDiskWriterEntries
  8424. * src/MultiFileAllocationIterator.cc
  8425. * src/MultiFileAllocationIterator.h
  8426. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8427. Changed method sinature:
  8428. MetalinkEntry::toFileEntry,
  8429. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  8430. Metalinker::queryEntry
  8431. * src/Metalink2RequestGroup.cc
  8432. * src/MetalinkEntry.cc
  8433. * src/MetalinkEntry.h
  8434. * src/MetalinkHelper.cc
  8435. * src/MetalinkHelper.h
  8436. * src/Metalinker.cc
  8437. * src/Metalinker.h
  8438. * src/main.cc
  8439. * test/MetalinkHelperTest.cc
  8440. * test/MetalinkerTest.cc
  8441. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8442. Changed method sinature:
  8443. RequestGroup::getURIs
  8444. * src/RequestGroup.cc
  8445. * src/RequestGroup.h
  8446. * test/Metalink2RequestGroupTest.cc
  8447. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8448. Changed method signature:
  8449. PeerListProcessor::extractPeer
  8450. * src/CompactPeerListProcessor.cc
  8451. * src/CompactPeerListProcessor.h
  8452. * src/DefaultBtAnnounce.cc
  8453. * src/DefaultPeerListProcessor.cc
  8454. * src/DefaultPeerListProcessor.h
  8455. * src/DelegatingPeerListProcessor.cc
  8456. * src/DelegatingPeerListProcessor.h
  8457. * src/PeerListProcessor.h
  8458. * src/UTPexExtensionMessage.cc
  8459. * test/DefaultPeerListProcessorTest.cc
  8460. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8461. Changed method signature:
  8462. BtRequestFactory::createRequestMessages,
  8463. BtRequestFactory::createRequestMessagesOnEndGame
  8464. * src/BtRequestFactory.h
  8465. * src/DefaultBtInteractive.cc
  8466. * src/DefaultBtRequestFactory.cc
  8467. * src/DefaultBtRequestFactory.h
  8468. * test/DefaultBtRequestFactoryTest.cc
  8469. * test/MockBtRequestFactory.h
  8470. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8471. Changed method signature:
  8472. PieceStorage::getInFlightPieces
  8473. * src/DefaultBtProgressInfoFile.cc
  8474. * src/DefaultPieceStorage.cc
  8475. * src/DefaultPieceStorage.h
  8476. * src/PieceStorage.h
  8477. * src/UnknownLengthPieceStorage.cc
  8478. * src/UnknownLengthPieceStorage.h
  8479. * test/DefaultBtProgressInfoFileTest.cc
  8480. * test/MockPieceStorage.h
  8481. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8482. Changed method signature:
  8483. PostDownloadHandler::getNextRequestGroups
  8484. Metalink2RequestGroup::generate
  8485. RequestGroup::postDownloadProcessing
  8486. * src/BtPostDownloadHandler.cc
  8487. * src/BtPostDownloadHandler.h
  8488. * src/Metalink2RequestGroup.cc
  8489. * src/Metalink2RequestGroup.h
  8490. * src/MetalinkPostDownloadHandler.cc
  8491. * src/MetalinkPostDownloadHandler.h
  8492. * src/PostDownloadHandler.h
  8493. * src/RequestGroup.cc
  8494. * src/RequestGroup.h
  8495. * src/RequestGroupMan.cc
  8496. * src/main.cc
  8497. * test/BtPostDownloadHandlerTest.cc
  8498. * test/Metalink2RequestGroupTest.cc
  8499. * test/MetalinkPostDownloadHandlerTest.cc
  8500. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8501. Rewritten AccRequestGroup
  8502. * src/main.cc
  8503. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8504. Rewritten.
  8505. * src/TaggedItem.cc (toTagString)
  8506. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8507. Rewritten Accept-Features handling.
  8508. * src/HttpRequestCommand.cc (createHttpRequest)
  8509. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8510. Rewritten accept types handling.
  8511. * HttpRequest.cc (createRequest)
  8512. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8513. Rewritten
  8514. * src/FeatureConfig.cc (featureSummary)
  8515. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8516. Changed method signature:
  8517. PeerStorage::getActivePeers
  8518. * src/DHTPeerAnnounceEntry.cc
  8519. * src/DefaultPeerStorage.cc
  8520. * src/DefaultPeerStorage.h
  8521. * src/PeerStorage.h
  8522. * test/DefaultPeerStorageTest.cc
  8523. * test/MockPeerStorage.h
  8524. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8525. Changed method signature:
  8526. DHTPeerAnnounceStorage::getPeers,
  8527. DHTPeerAnnounceEntry::getPeers
  8528. * src/DHTGetPeersMessage.cc
  8529. * src/DHTPeerAnnounceEntry.cc
  8530. * src/DHTPeerAnnounceEntry.h
  8531. * src/DHTPeerAnnounceStorage.cc
  8532. * src/DHTPeerAnnounceStorage.h
  8533. * test/DHTAnnouncePeerMessageTest.cc
  8534. * test/DHTPeerAnnounceEntryTest.cc
  8535. * test/DHTPeerAnnounceStorageTest.cc
  8536. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8537. Changed method signature:
  8538. NameResolver::resolve
  8539. * src/DHTEntryPointNameResolveCommand.cc
  8540. * src/InitiateConnectionCommand.cc
  8541. * src/NameResolver.cc
  8542. * src/NameResolver.h
  8543. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8544. Changed method signature:
  8545. PieceStorage::getAdvertisedPieceIndexes
  8546. * src/DefaultBtInteractive.cc
  8547. * src/DefaultPieceStorage.cc
  8548. * src/DefaultPieceStorage.h
  8549. * src/PieceStorage.h
  8550. * src/UnknownLengthPieceStorage.h
  8551. * test/MockPieceStorage.h
  8552. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8553. Changed method signature:
  8554. SegmentMan::getInFlightSegment
  8555. * src/AbstractCommand.cc
  8556. * src/SegmentMan.cc
  8557. * src/SegmentMan.h
  8558. * test/SegmentManTest.cc
  8559. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8560. Changed method signature:
  8561. DHTAbstractNodeLookupTask::getNodesFromMessage
  8562. * src/DHTAbstractNodeLookupTask.cc
  8563. * src/DHTAbstractNodeLookupTask.h
  8564. * src/DHTNodeLookupTask.cc
  8565. * src/DHTNodeLookupTask.h
  8566. * src/DHTPeerLookupTask.cc
  8567. * src/DHTPeerLookupTask.h
  8568. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8569. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  8570. * src/AbstractCommand.cc
  8571. * src/BtCheckIntegrityEntry.cc
  8572. * src/BtCheckIntegrityEntry.h
  8573. * src/BtFileAllocationEntry.cc
  8574. * src/BtFileAllocationEntry.h
  8575. * src/BtSetup.cc
  8576. * src/BtSetup.h
  8577. * src/CheckIntegrityCommand.cc
  8578. * src/CheckIntegrityEntry.h
  8579. * src/ChecksumCheckIntegrityEntry.cc
  8580. * src/ChecksumCheckIntegrityEntry.h
  8581. * src/DHTSetup.cc
  8582. * src/DHTSetup.h
  8583. * src/DownloadEngine.cc
  8584. * src/FileAllocationCommand.cc
  8585. * src/FileAllocationEntry.h
  8586. * src/RequestGroup.cc
  8587. * src/RequestGroup.h
  8588. * src/RequestGroupMan.cc
  8589. * src/RequestGroupMan.h
  8590. * src/StreamCheckIntegrityEntry.cc
  8591. * src/StreamCheckIntegrityEntry.h
  8592. * src/StreamFileAllocationEntry.cc
  8593. * src/StreamFileAllocationEntry.h
  8594. * src/TrackerWatcherCommand.cc
  8595. * src/a2functional.h
  8596. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8597. Changed method signature:
  8598. BNode::findClosestKNodes, BNode:: enumerateBucket,
  8599. DHTBucket::getGoodNodes,
  8600. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  8601. * src/BNode.cc
  8602. * src/BNode.h
  8603. * src/DHTAbstractNodeLookupTask.cc
  8604. * src/DHTAutoSaveCommand.cc
  8605. * src/DHTBucket.cc
  8606. * src/DHTBucket.h
  8607. * src/DHTBucketRefreshTask.cc
  8608. * src/DHTFindNodeMessage.cc
  8609. * src/DHTGetPeersMessage.cc
  8610. * src/DHTRoutingTable.cc
  8611. * src/DHTRoutingTable.h
  8612. * test/BNodeTest.cc
  8613. * test/DHTBucketTest.cc
  8614. * test/DHTRoutingTableTest.cc
  8615. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8616. In piece selection functions, Pass std::deque<...> by reference rather
  8617. than returning it.
  8618. * src/BitfieldMan.cc
  8619. * src/BitfieldMan.h
  8620. * src/DefaultBtRequestFactory.cc
  8621. * src/DefaultPieceStorage.cc
  8622. * src/Piece.cc
  8623. * src/Piece.h
  8624. * test/BitfieldManTest.cc
  8625. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8626. Implemented rarest piece first piece selection strategy.
  8627. * src/AbstractBtMessage.cc
  8628. * src/AbstractBtMessage.h
  8629. * src/BitfieldMan.cc
  8630. * src/BitfieldMan.h
  8631. * src/BtBitfieldMessage.cc
  8632. * src/BtHaveAllMessage.cc
  8633. * src/BtHaveMessage.cc
  8634. * src/DefaultPieceStorage.cc
  8635. * src/DefaultPieceStorage.h
  8636. * src/PeerInteractionCommand.cc
  8637. * src/PieceStorage.h
  8638. * src/UnknownLengthPieceStorage.h
  8639. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8640. Rewritten readData and writeData.
  8641. * src/MultiDiskAdaptor.cc
  8642. * src/MultiDiskAdaptor.h
  8643. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8644. Move \n out of the message "Usage: ...".
  8645. * src/version_usage.cc
  8646. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8647. Bump up version number to 0.13.2b.
  8648. * configure.ac
  8649. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8650. Added const qualifier to argument Exception& e.
  8651. * src/Logger.h
  8652. * src/SimpleLogger.cc
  8653. * src/SimpleLogger.h
  8654. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8655. Pool connection when CWD, SIZE command fails.
  8656. * src/FtpNegotiationCommand.cc
  8657. * src/FtpNegotiationCommand.h
  8658. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8659. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  8660. * src/HttpResponseCommand.cc
  8661. * src/HttpSkipResponseCommand.cc
  8662. * src/HttpSkipResponseCommand.h
  8663. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8664. Pool connection when a server returns 4xx, 5xx responses.
  8665. * src/HttpNullDownloadCommand.cc
  8666. * src/HttpNullDownloadCommand.h
  8667. * src/HttpResponse.cc
  8668. * src/HttpResponse.h
  8669. * src/HttpResponseCommand.cc
  8670. * src/HttpResponseCommand.h
  8671. * test/HttpResponseTest.cc
  8672. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8673. Print usage when no URL is specifed or bad command-line option is
  8674. specified.
  8675. * src/HelpItemFactory.cc
  8676. * src/help_tags.h
  8677. * src/option_processing.cc
  8678. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8679. Removed duplicate log message.
  8680. * src/AbstractCommand.cc (asyncResolveHostname)
  8681. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8682. Updated man page: --async-dns and --ftp-reuse-connection were added.
  8683. Changed -j option's default value from 5 to 1.
  8684. Added new examples using protocol auto detection feature.
  8685. Removed -T, -M usage where it can be omitted.
  8686. * doc/aria2c.1.txt
  8687. * doc/aria2c.1.html
  8688. * doc/aria2c.1.txt
  8689. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8690. Updated command-line usage text, so that it tells users that they
  8691. can specify any number of torrent files and metalink files in
  8692. command-line.
  8693. * src/version_usage.cc
  8694. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8695. Changed the default value of -j option to 1.
  8696. * src/HelpItemFactory.cc
  8697. * src/option_processing.cc
  8698. * src/usage_text.h
  8699. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8700. Added the ability to reuse connection in FTP and it is enabled by
  8701. default. It can be disabled by --ftp-reuse-connection=false option.
  8702. * src/Command.cc
  8703. * src/DownloadCommand.cc
  8704. * src/FtpDownloadCommand.cc
  8705. * src/FtpDownloadCommand.h
  8706. * src/FtpFinishDownloadCommand.cc
  8707. * src/FtpFinishDownloadCommand.h
  8708. * src/FtpInitiateConnectionCommand.cc
  8709. * src/FtpNegotiationCommand.cc
  8710. * src/FtpNegotiationCommand.h
  8711. * src/HelpItemFactory.cc
  8712. * src/Makefile.am
  8713. * src/Makefile.in
  8714. * src/OptionHandlerFactory.cc
  8715. * src/option_processing.cc
  8716. * src/prefs.h
  8717. * src/usage_text.h
  8718. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8719. Call Command::transitStatus() before calling Command::execute(),
  8720. so that the status change made in execute() is not cleared.
  8721. * src/DownloadEngine.cc
  8722. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8723. Removed forward declaration of SocketCore class.
  8724. * src/HttpDownloadCommand.h
  8725. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8726. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  8727. in InitiateConnectionCommandFactory. They should be set only when
  8728. the protocol is HTTP or HTTPS.
  8729. * src/InitiateConnectionCommandFactory.cc
  8730. * src/RequestGroup.cc
  8731. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8732. Fixed infinite loop in checksum checking.
  8733. * src/IteratableChecksumValidator.cc
  8734. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8735. Set _supportsPersistentConnection to true by default.
  8736. * src/Request.cc
  8737. * src/RequestGroup.cc
  8738. * test/HttpRequestTest.cc
  8739. * test/RequestTest.cc
  8740. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8741. Added timeout to socket pool. The default timeout is 15 seconds,
  8742. which is the same value Apache uses.
  8743. * src/DownloadEngine.cc
  8744. * src/DownloadEngine.h
  8745. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8746. Fixed misuse of multimap::find()
  8747. * src/HttpHeader.cc
  8748. * test/HttpHeaderTest.cc
  8749. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8750. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  8751. option.
  8752. The asynchronous DNS is not capable of IPv6 yet.
  8753. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  8754. least for HTTP download.
  8755. * src/AbstractCommand.cc
  8756. * src/AbstractCommand.h
  8757. * src/AsyncNameResolver.cc
  8758. * src/AsyncNameResolver.h
  8759. * src/DHTEntryPointNameResolveCommand.cc
  8760. * src/DHTEntryPointNameResolveCommand.h
  8761. * src/DownloadEngine.cc
  8762. * src/DownloadEngine.h
  8763. * src/FtpInitiateConnectionCommand.cc
  8764. * src/FtpInitiateConnectionCommand.h
  8765. * src/HelpItemFactory.cc
  8766. * src/HttpInitiateConnectionCommand.cc
  8767. * src/HttpInitiateConnectionCommand.h
  8768. * src/InitiateConnectionCommand.cc
  8769. * src/InitiateConnectionCommand.h
  8770. * src/Makefile.am
  8771. * src/Makefile.in
  8772. * src/NameResolver.cc
  8773. * src/NameResolver.h
  8774. * src/OptionHandlerFactory.cc
  8775. * src/SocketCore.cc
  8776. * src/SocketCore.h
  8777. * src/Util.cc
  8778. * src/Util.h
  8779. * src/option_processing.cc
  8780. * src/prefs.h
  8781. * src/usage_text.h
  8782. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8783. Updated man page: --quiet, --header were added.
  8784. --metalink-servers and --enable-http-keep-alive option were updated.
  8785. * doc/aria2c.1
  8786. * doc/aria2c.1.html
  8787. * doc/aria2c.1.txt
  8788. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8789. Enable HTTP keep-alive by default.
  8790. * src/HelpItemFactory.cc
  8791. * src/option_processing.cc
  8792. * src/usage_text.h
  8793. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8794. Disable http keep-alive if the remote server is not HTTP/1.1.
  8795. * src/HttpConnection.cc
  8796. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8797. Receive content body of 302 response so that the connection can be
  8798. reused later when http keep-alive is enabled.
  8799. * src/HttpNullDownloadCommand.cc
  8800. * src/HttpNullDownloadCommand.h
  8801. * src/HttpResponseCommand.cc
  8802. * src/HttpResponseCommand.h
  8803. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8804. const SharedHandle<Request> -> const SharedHandle<Request>&
  8805. * src/FtpDowndloadCommand.cc
  8806. * src/FtpDowndloadCommand.h
  8807. * src/HttpDownloadCommand.cc
  8808. * src/HttpDownloadCommand.h
  8809. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8810. Fixed the bug that the control file(.aria2 file) is not renamed
  8811. according to tryAutoFileRenaming().
  8812. tryAutoFileRenaming() was rewritten so that if both renamed file and
  8813. its control file exist, use them and continue download.
  8814. The old implementation didn't take into account of control file's
  8815. existence, so basically you couldn't continue download of renamed file.
  8816. * src/BtProgressInfoFile.h
  8817. * src/DefaultBtProgressInfoFile.cc
  8818. * src/DefaultBtProgressInfoFile.h
  8819. * src/NullProgressInfoFile.h
  8820. * src/RequestGroup.cc
  8821. * test/DefaultBtProgressInfoFileTest.cc
  8822. * test/MockBtProgressInfoFile.h
  8823. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8824. Change the default value of --metalink-servers option from `5' to `1'.
  8825. * src/HelpItemFactory.cc
  8826. * src/option_processing.cc
  8827. * src/usage_text.h
  8828. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8829. Reimplemented transparent metalink using Accept request header.
  8830. * src/HttpRequest.cc
  8831. * src/HttpRequest.h
  8832. * src/HttpRequestCommand.cc
  8833. * src/Metalink2RequestGroup.cc
  8834. * src/RequestGroup.cc
  8835. * src/RequestGroup.h
  8836. * test/HttpRequestTest.cc
  8837. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8838. Bump up version number to 0.13.2a
  8839. * configure.ac
  8840. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8841. Updated configure.ac using the result of autoscan.
  8842. * configure.ac
  8843. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8844. Fixed compilation error without gcrypt/openssl.
  8845. * src/DownloadCommand.cc
  8846. * src/DownloadCommand.h
  8847. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8848. Reorganized version information so that it can be displayed in a
  8849. standard terminal screen without scrolling.
  8850. Removed http, ftp from Configuration section, because they are always
  8851. enabled.
  8852. * src/FeatureConfig.cc
  8853. * src/FeatureConfig.h
  8854. * src/main.cc
  8855. * src/messageDigest.cc
  8856. * src/messageDigest.h
  8857. * src/version_usage.cc
  8858. * test/FeatureConfigTest.cc
  8859. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8860. Masked user ID in log.
  8861. * src/FtpConnection.cc (sendUser)
  8862. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8863. Removed query part from filename in HTTP download. The query part means
  8864. the substring after "?" in URL. Firefox seems do the same thing.
  8865. A query part is sometimes very long and not suitable to filename,
  8866. so I think it is better to remove it from filename.
  8867. * src/HttpRequest.cc
  8868. * src/HttpRequest.h
  8869. * src/Request.cc
  8870. * src/Request.h
  8871. * test/HttpRequestTest.cc
  8872. * test/RequestTest.cc
  8873. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8874. Rewritten Exception class. Throw exception object, not its pointer and
  8875. catch by reference, so that remove problematic delete operator for
  8876. catched exception.
  8877. * src/Exception.cc
  8878. * src/Exception.h
  8879. * test/ExceptionTest.cc
  8880. * src/*: All files throwing/catching exception.
  8881. * test/*: All files throwing/catching exception.
  8882. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8883. Now auto protocol detection is enabled without -Z option.
  8884. But there is a important difference between with/without -Z optoin.
  8885. For example, if you type:
  8886. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  8887. then, aria2 interprets there are 3 request groups:
  8888. (1) http://host/file, http://mirror/file <-- multi-source download
  8889. (2) file1.torrent
  8890. (3) file2.metalink
  8891. On the other hand, if you invoke above command with -Z option, it is
  8892. interpreted as 4 request groups:
  8893. (1) http://host/file
  8894. (2) file1.torrent
  8895. (3) file2.metalink
  8896. (4) http://mirror/file
  8897. I think usually user don't mix multi-source URLs and torrent files, so
  8898. there is no big problem here.
  8899. * src/main.cc
  8900. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8901. Fixed the bug that causes segmentaion fault when reading XML containing
  8902. unescapsed character like '&'.
  8903. Also a modification was made which avoids adding unnecessary
  8904. characters stack and appending unused string.
  8905. * src/ExpatMetalinkProcessor.cc
  8906. * src/FileMetalinkParserState.h
  8907. * src/FilesMetalinkParserState.h
  8908. * src/FinMetalinkParserState.h
  8909. * src/HashMetalinkParserState.h
  8910. * src/InitialMetalinkParserState.h
  8911. * src/LanguageMetalinkParserState.h
  8912. * src/MetalinkMetalinkParserState.h
  8913. * src/MetalinkParserState.h
  8914. * src/MetalinkParserStateMachine.cc
  8915. * src/MetalinkParserStateMachine.h
  8916. * src/OSMetalinkParserState.h
  8917. * src/PieceHashMetalinkParserState.h
  8918. * src/PiecesMetalinkParserState.h
  8919. * src/ResourcesMetalinkParserState.h
  8920. * src/SizeMetalinkParserState.h
  8921. * src/SkipTagMetalinkParserState.h
  8922. * src/URLMetalinkParserState.h
  8923. * src/VerificationMetalinkParserState.h
  8924. * src/VersionMetalinkParserState.h
  8925. * src/XML2SAXMetalinkProcessor.cc
  8926. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8927. Added StringFormat class, which internally calls vasprintf.
  8928. operator<< is defined for this class, so it can be used with iostream
  8929. classes nicely. SimpleLogger and following functions are rewritten
  8930. using StringFormat class.
  8931. Besides, now Logger class's methods are non-const, many classes
  8932. that has a const Logger* as a member variable are modified to remove
  8933. const qualifier from the variable declaration.
  8934. * src/HelpItemFactory.cc
  8935. * src/Request.cc
  8936. * src/SimpleLogger.cc
  8937. * src/StringFormat.cc
  8938. * src/StringFormat.h
  8939. * src/Util.cc
  8940. * src/option_processing.cc
  8941. * src/version_usage.cc
  8942. * test/StringFormatTest.cc
  8943. * src/*.h: The classes that has const Logger* as a member variable.
  8944. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8945. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  8946. failed. Also fixed memory link when exception is thrown there.
  8947. * src/main.cc (AccRequestGroup)
  8948. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8949. Added build-in "Accept-Features" support. For now only "metalink" is
  8950. used in this header field.
  8951. This "metalink" value is removed from the list when connecting URLs
  8952. fed by metalink file to avoid loop in "transparent" metlaink.
  8953. * src/HttpRequest.cc
  8954. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  8955. header is also held in this variable. Also renamed setUserHeaders as
  8956. addHeader and it was rewritten to add header not just to clear the old
  8957. value.
  8958. * src/HttpRequestCommand.cc
  8959. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  8960. from "Accept-Features" list.
  8961. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  8962. default.
  8963. * src/RequestGroup.h
  8964. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  8965. * src/a2functional.h: Included <string> because Concat class depends on
  8966. it.
  8967. * test/HttpRequestTest.cc
  8968. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8969. Added comment
  8970. * src/RequestGroup.cc (createNextCommand)
  8971. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8972. Capitalized METHOD_GET and METHOD_HEAD
  8973. * src/Request.cc
  8974. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8975. Added getDownloadResults() method
  8976. * src/RequestGroupMan.cc
  8977. * src/RequestGroupMan.h
  8978. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8979. Fixed the bug that aria2 exits when commands is empty() but
  8980. _routineCommands are not.
  8981. * src/DownloadEngine.cc
  8982. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8983. Use the default value pulled from Option object in HelpItemFactory.
  8984. except options whose defualt value is embedded in a usage text.
  8985. * src/HelpItemFactory.cc
  8986. * src/HelpItemFactory.h
  8987. * src/option_processing.cc
  8988. * src/version_usage.cc
  8989. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8990. Added --quiet option to make aria2 quiet (no console output).
  8991. --quiet option is tagged with ADVANCED.
  8992. * src/HelpItemFactory.cc
  8993. * src/LogFactory.cc
  8994. * src/LogFactory.h
  8995. * src/MultiUrlRequestInfo.cc
  8996. * src/MultiUrlRequestInfo.h
  8997. * src/NullStatCalc.h: New class. This class prints nothing.
  8998. * src/OptionHandlerFactory.cc
  8999. * src/main.cc
  9000. * src/option_processing.cc
  9001. * src/prefs.h
  9002. * src/usage_text.h
  9003. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9004. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  9005. * src/HelpItemFactory.cc (createHelpItems):
  9006. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9007. Fixed compilation error in ExpatMetalinkProcessor.cc
  9008. * src/ExpatMetalinkProcessor.cc
  9009. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9010. Reuse socket if the origin server supports HTTP keep-alive and
  9011. --enable-http-keep-alive or --enable-http-pipelining is given.
  9012. The current implementation doesn't reuse the connections established
  9013. against proxy server.
  9014. * src/AbstractCommand.cc
  9015. * src/DownloadEngine.cc
  9016. * src/DownloadEngine.h
  9017. * src/HttpDownloadCommand.cc
  9018. * src/HttpInitiateConnectionCommand.cc
  9019. * src/HttpResponseCommand.cc
  9020. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9021. Rewritten HTTP keep-alive and pipelining routine.
  9022. * src/AbstractCommand.cc
  9023. * src/HttpConnection.cc
  9024. * src/HttpDownloadCommand.cc
  9025. * src/HttpRequest.cc
  9026. * src/HttpRequestCommand.cc
  9027. * src/HttpResponseCommand.cc
  9028. * src/Request.cc
  9029. * src/Request.h
  9030. * src/RequestGroup.cc
  9031. * test/HttpRequestTest.cc
  9032. * test/HttpResponseTest.cc
  9033. * test/RequestTest.cc
  9034. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9035. Added missing setUserHeaders call
  9036. * src/HttpRequestCommand.cc
  9037. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9038. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  9039. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  9040. waste of time because it is more likey false.
  9041. * src/FileAllocationDispatcherCommand.cc (execute)
  9042. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9043. Now HTTP status and version are a member variable of HttpHeader.
  9044. HTTP status is processed as a string, not integer.
  9045. * src/AbstractProxyResponseCommand.cc
  9046. * src/HttpConnection.cc
  9047. * src/HttpHeader.cc
  9048. * src/HttpHeader.h
  9049. * src/HttpHeaderProcessor.cc
  9050. * src/HttpHeaderProcessor.h
  9051. * src/HttpResponse.cc
  9052. * src/HttpResponse.h
  9053. * test/HttpHeaderProcessorTest.cc
  9054. * test/HttpResponseTest.cc
  9055. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9056. Added --header option. You can specify any number of additional HTTP headers
  9057. like:
  9058. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  9059. Unlike other commad-line option, you can use --header option multiple times.
  9060. * src/HelpItemFactory.cc
  9061. * src/HttpRequest.{cc, h}
  9062. * src/HttpRequestCommand.cc
  9063. * src/OptionHandlerFactory.cc
  9064. * src/OptionHandlerImpl.h
  9065. * src/option_processing.cc
  9066. * src/prefs.h
  9067. * src/usage_text.h
  9068. * test/HttpRequestTest.cc (testUserHeaders)
  9069. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9070. Eliminates the time lag between sequential downloads and commands in
  9071. the same RequestGroup.
  9072. In old implementation, aria2 occasionally waits 1 seconds before
  9073. executing next command or RequestGroup.
  9074. This is really a waste of time, and new implementation eliminates
  9075. this unnecessary time lag.
  9076. * src/AbstractCommand.cc
  9077. * src/AutoSaveCommand.cc
  9078. * src/CheckIntegrityCommand.cc
  9079. * src/Command.{cc, h}
  9080. * src/DownloadEngine.{cc, h}
  9081. * src/DownloadEngineFactory.cc
  9082. * src/FileAllocationCommand.cc
  9083. * src/FileAllocationDispatcherCommand.cc
  9084. * src/FillRequestGroupCommand.cc
  9085. * src/FtpInitiateConnectionCommand.cc
  9086. * src/HaveEraseCommand.cc
  9087. * src/HttpInitiateConnectionCommand.cc
  9088. * src/HttpResponseCommand.cc
  9089. * src/RealtimeCommand.cc
  9090. * src/RequestGroup.cc
  9091. * src/RequestGroupMan.cc
  9092. * src/StreamFileAllocationEntry.cc
  9093. * src/TimeBasedCommand.{cc, h}
  9094. * src/TimedHaltCommand.cc
  9095. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9096. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  9097. keyword explicit and SharedHandle's default constructor initializes
  9098. its internal obj to null, old implementation initializes it using
  9099. obj's default constructor.
  9100. To assign null, write SharedHandle<T> x(...); x.reset();
  9101. TODO: test/SharedHandleTest.cc needs more tests.
  9102. * src/SharedHandle.h
  9103. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9104. Fixed type in man page.
  9105. * doc/aria2c.1.txt
  9106. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9107. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  9108. * src/SimpleLogger.{cc, h}
  9109. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9110. Implemented auto protocol detection.
  9111. Now you can do:
  9112. aria2c -Z http://host/file file1.torrent file2.metalink
  9113. (Note: -Z option is required for auto protcol detection.)
  9114. Then aria2c downloads 3 files simultaneously:
  9115. 1. http://host/file
  9116. 2. file1.torrent <-- read local torrent file
  9117. 3. file2.metalink <-- read local Metalink file.
  9118. Same thing goes with -i option. Assume your uris.txt contans:
  9119. http://host/file
  9120. file1.torrent
  9121. file2.metalink
  9122. Then you can do: aria2c -i uris.txt
  9123. (Note: -Z option is not needed if -i option is given.)
  9124. * src/main.cc
  9125. * src/ProtocolDetector.{cc, h}
  9126. * test/ProtocolDetectorTest.cc
  9127. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9128. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  9129. installed
  9130. * src/ARC4Encryptor.h
  9131. * src/ARC4Decryptor.h
  9132. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9133. Renamed argument from 'errno' to 'err', since errno is confused with
  9134. errno defined in errno.h.
  9135. * src/LibgcryptARC4Decryptor.h
  9136. * src/LibgcryptARC4Context.h
  9137. * src/LibgcryptDHKeyExchange.h
  9138. * src/LibgcryptARC4Encryptor.h
  9139. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9140. Rewritten choking algorithm.
  9141. * src/PeerChokeCommand.{cc, h}
  9142. * src/BtInterestedMessage.cc
  9143. * src/PeerSessionResource.{cc, h}
  9144. * src/DefaultPeerStorage.{cc, h}
  9145. * src/BtNotInterestedMessage.cc
  9146. * src/DefaultBtMessageDispatcher.{cc, h}
  9147. * src/BtMessageDispatcher.h
  9148. * src/Peer.{cc, h}
  9149. * src/BtLeecherStateChoke.{cc, h}
  9150. * src/BtSetup.cc
  9151. * src/BtSeederStateChoke.{cc, h}
  9152. * src/PeerStorage.h
  9153. * test/MockPeerStorage.h
  9154. * test/MockBtMessageDispatcher.h
  9155. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9156. Fixed compilation error on x84-64 platform.
  9157. * src/AuthConfig.cc: Included ostream.
  9158. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9159. Rewritten getBasename() and getDirname(), without standard library
  9160. basename(), dirname().
  9161. * src/File.cc
  9162. * test/FileTest.cc
  9163. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9164. Added Simplified Chinese translation. Also updated the following
  9165. translations: Polish, Dutch, German. Great thanks to all translators.
  9166. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9167. Suppress content-range error when 'Content-Range' response header
  9168. doesn't contains bytes-unit specifier 'bytes'
  9169. * src/HttpHeader.cc (getRange)
  9170. * test/HttpHeaderTest.cc
  9171. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9172. Fixed compilation error with g++-4.3
  9173. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9174. Added missing include files for MinGW
  9175. * test/HttpHeaderProcessorTest.cc
  9176. * test/DHTRoutingTableSerializerTest.cc
  9177. * test/DHTRoutingTableDeserializerTest.cc
  9178. * test/UriListParserTest.cc
  9179. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9180. Now download line is printed nicely with no garbage at the end of
  9181. line. I use ioctl to get the columns of terminal.
  9182. If stdout is redirected to another device, instead of carriage return,
  9183. end of line '\n' character is used. This is feature request#1909659
  9184. * src/ConsoleStatCalc.cc (calculateStat)
  9185. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9186. Included a2time.h
  9187. * src/DHTMessageDispatcher.h
  9188. * src/DHTMessageEntry.h
  9189. * src/DHTReplaceNodeTask.h
  9190. * src/DHTMessageTracker.h
  9191. * src/Util.h
  9192. * src/CookieBox.h
  9193. * src/SocketCore.h
  9194. * src/DefaultBtMessageDispatcher.h
  9195. * src/SocketCore.cc
  9196. * src/Util.cc
  9197. * src/DHTPingTask.h
  9198. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9199. Fixed high memory footprint when DHT is enabled.
  9200. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  9201. queued than it is processed and the queue is getting longer. As a
  9202. consequence, momory usage is increased.
  9203. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  9204. replacement cache in DHTBucket which is described in Kademlia paper.
  9205. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  9206. DHTReplaceNodeTask.
  9207. * src/DHTBucket.{h, cc}
  9208. (cacheNode): New function.
  9209. (getCachedNodes): New function.
  9210. (dropNode): Push back cached node to _nodes.
  9211. * test/DHTBucketTest.cc
  9212. (testCacheNode): New test
  9213. (testDropNode): New test
  9214. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9215. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  9216. the unused 4KB memory when ssl is not used.
  9217. * src/SocketCore.cc
  9218. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9219. Added summary log for peer announce storage.
  9220. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  9221. Removed cast
  9222. * src/DefaultPeerStorage.cc (addPeer)
  9223. Log exception message
  9224. * src/DHTMessageTracker.cc (handleTimeout)
  9225. Fixed casting
  9226. * test/HttpRequestTest.cc
  9227. * test/MetalinkProcessorTest.cc
  9228. * test/PieceTest.cc
  9229. * test/MetalinkEntryTest.cc
  9230. * test/SequenceTest.cc
  9231. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9232. * src/ParameterizedStringParser.cc (createLoop):
  9233. Removed unused variable sstep.
  9234. * src/AlphaNumberDecorator.h (decode): Rewritten.
  9235. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9236. * src/Util.{h, cc}
  9237. (parseUInt): New function.
  9238. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  9239. The actual range is uint32_t.
  9240. * test/UtilTest.cc
  9241. * src/ParameterizedStringParser.cc:
  9242. Use Util::parseUInt() for loop variables.
  9243. * test/ParameterizedStringParserTest.cc
  9244. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  9245. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9246. Rewritten the functions for binding port.
  9247. * src/DHTConnectionImpl.{h, cc}
  9248. * src/PeerListenCommand.{h, cc}
  9249. * src/DHTSetup.cc
  9250. * src/BtSetup.cc
  9251. * test/DHTConnectionImplTest.cc
  9252. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9253. type cleanup for allmost all remaining files.
  9254. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9255. Type clarification
  9256. * src/PeerSessionResource.{h, cc}
  9257. * src/DefaultPieceStorage.{h, cc}
  9258. * src/Peer.{h, cc}
  9259. * test/PeerSessionResourceTest.cc
  9260. Use div function
  9261. * src/BtPieceMessage.cc (erasePieceOnDisk)
  9262. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9263. Type clarification
  9264. * src/DefaultPeerStorage.{h, cc}
  9265. * test/DefaultPeerStorageTest.cc
  9266. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9267. Type clarification: size_t for length or size, uint64_t for file
  9268. length, off_t for file offset.
  9269. * src/DefaultBtProgressInfoFile.cc
  9270. * src/DefaultBtContext.{h, cc}
  9271. * src/DefaultBtInteractive.cc
  9272. * src/DownloadCommand.{h, cc}
  9273. * src/IteratableChunkChecksumValidator.{h, cc}
  9274. * src/SegmentMan.{h, cc}
  9275. * src/SingleFileDownloadContext.{h, cc}
  9276. * src/IteratableChecksumValidator.{h, cc}
  9277. * src/BtContext.h
  9278. * src/IteratableValidator.h
  9279. * src/DownloadContext.h
  9280. * test/SingleFileDownloadContextTest.cc
  9281. * test/DefaultBtContextTest.cc
  9282. * test/MockBtContext.h
  9283. * test/Metalink2RequestGroupTest.cc
  9284. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9285. Type clarification: size_t for length or size, uint64_t for file
  9286. length, off_t for file offset.
  9287. * src/PiecedSegment.cc
  9288. * src/GrowSegment.h
  9289. * src/DefaultBtRequestFactory.h
  9290. * src/DefaultBtProgressInfoFile.cc
  9291. * src/UnknownLengthPieceStorage.h
  9292. * src/DefaultPieceStorage.cc
  9293. * src/UnknownLengthPieceStorage.cc
  9294. * src/DefaultBtInteractive.cc
  9295. * src/GrowSegment.cc
  9296. * src/BitfieldMan.h
  9297. * src/DownloadCommand.cc
  9298. * src/BtRequestFactory.h
  9299. * src/PiecedSegment.h
  9300. * src/DefaultPieceStorage.h
  9301. * src/Piece.cc
  9302. * src/DefaultBtRequestFactory.cc
  9303. * src/PieceStorage.h
  9304. * src/Segment.h
  9305. * src/Piece.h
  9306. * src/BitfieldMan.cc
  9307. * src/Util.cc
  9308. * test/DefaultBtProgressInfoFileTest.cc
  9309. * test/DefaultPieceStorageTest.cc
  9310. * test/MockPieceStorage.h
  9311. * test/BtRequestMessageTest.cc
  9312. * test/DefaultBtMessageDispatcherTest.cc
  9313. * test/BitfieldManTest.cc
  9314. * test/GrowSegmentTest.cc
  9315. * test/PieceTest.cc
  9316. * test/SegmentTest.cc
  9317. * test/SegmentManTest.cc
  9318. * test/DefaultBtRequestFactoryTest.cc
  9319. * test/MockBtRequestFactory.h
  9320. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9321. Fixed compilation error with --disable-nls
  9322. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  9323. in gettext.h causes the problem.
  9324. * src/common.h
  9325. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9326. Removed subPiece related functions.
  9327. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  9328. * src/DefaultPieceStorage.{h, cc}
  9329. * test/PieceTest.cc
  9330. * test/DefaultPieceStorageTest.cc
  9331. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9332. Use unsigned char for data store.
  9333. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9334. Bump up version number to 0.13.0+1
  9335. * configure.ac
  9336. * Release 0.13.0+1
  9337. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9338. Changed inactive connection timeout to 120.
  9339. To accept more mulually interested peers, disconnect peer when there
  9340. is no interest between us after certain time passed.
  9341. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  9342. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9343. Fixed the bug that aria2 only uses first dns server in resolv.conf
  9344. when compiled with async DNS support.
  9345. * src/DownloadEngine.cc
  9346. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  9347. value '10' will be a little bit short when some DNS servers are
  9348. offline and several DNS servers are tried. It should be configured
  9349. by command-line option.
  9350. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9351. Merged Ross's mingw patch.
  9352. * src/DHTRoutingTableDeserializer.cc
  9353. * src/DHTRoutingTableSerializer.cc
  9354. * src/Platform.{h, cc}
  9355. * src/timegm.h
  9356. * src/gettimeofday.h
  9357. * src/getaddrinfo.h
  9358. * src/SocketCore.h
  9359. * src/common.h
  9360. * src/inet_aton.h
  9361. * src/DownloadEngine.h
  9362. * src/gai_strerror.h
  9363. * src/a2netcompat.h
  9364. * configure.ac
  9365. * configure
  9366. * aclocal.m4
  9367. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9368. Included missing iostream.
  9369. * test/AllTest.cc
  9370. * test/BtDependencyTest.cc
  9371. * test/BtExtendedMessageTest.cc
  9372. * test/DHTConnectionImplTest.cc
  9373. * test/DHTMessageFactoryImplTest.cc
  9374. * test/DHTMessageTrackerEntryTest.cc
  9375. * test/DHTNodeTest.cc
  9376. * test/DHTRoutingTableSerializerTest.cc
  9377. * test/DefaultBtAnnounceTest.cc
  9378. * test/DefaultBtContextTest.cc
  9379. * test/DefaultBtMessageFactoryTest.cc
  9380. * test/DefaultExtensionMessageFactoryTest.cc
  9381. * test/HandshakeExtensionMessageTest.cc
  9382. * test/HttpResponseTest.cc
  9383. * test/MetalinkProcessorTest.cc
  9384. * test/MultiFileAllocationIteratorTest.cc
  9385. * test/SocketCoreTest.cc
  9386. * test/UTPexExtensionMessageTest.cc
  9387. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9388. Reorganized includes.
  9389. * src/NameResolver.cc
  9390. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9391. Fixed compilation error without ares/c-ares
  9392. * src/NameResolver.h:
  9393. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9394. Added a test for large file.
  9395. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  9396. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9397. Fixed the bug that file size is ignored if size > INT32_MAX
  9398. * src/SizeMetalinkParserState.cc (endElement):
  9399. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9400. Bump up version number to 0.13.0
  9401. * configure.ac
  9402. * Release 0.13.0
  9403. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9404. Updated Makfefile.am to make 'make dist' work.
  9405. Now packaged filename is aria2c-VERSION.tar.bz2.
  9406. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  9407. Added LICENSE.OpenSSL to dist_noinst_DATA.
  9408. Large file support is now configured by configure script.
  9409. * configure.ac
  9410. Removed unsused source files
  9411. * src/
  9412. * test/
  9413. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  9414. Peer.h and BtContext.h respectively.
  9415. * src/Peer.h
  9416. * src/BtContext.h
  9417. Updated translations.
  9418. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  9419. translations. Great thanks to all translators!;)
  9420. * po/*.{po, gmo}
  9421. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9422. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  9423. statically declared sha1 MessageDigestContext.
  9424. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  9425. initialization of short-lived MessageDigestContext.
  9426. * src/MessageDigestHelper.{h, cc}
  9427. * src/main.cc
  9428. Now DownloadCommand has a reference to MessageDigestContext to avoid
  9429. the initialization of MessageDigestContext every time in validating
  9430. chunk checksum.
  9431. * src/DownloadCommand.{h, cc}
  9432. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9433. Add a file descriptor which connected to fast peer(latency<1500) to
  9434. select(). This change reduced CPU load.
  9435. * src/PeerInteractionCommand.cc
  9436. * src/DefaultBtInteractive.{h, cc}
  9437. * src/BtInteractive.h
  9438. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9439. Fixed the previous insufficient fix for possible busy loop.
  9440. * src/MSEHandshake.cc (identifyHandshakeType)
  9441. Removed unused functions.
  9442. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  9443. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9444. Fixed possible busy loop if first 20 bytes are not received for a few
  9445. minutes.
  9446. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  9447. * src/ReceiverMSEHandshakeCommand.cc
  9448. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9449. Fixed compilation error
  9450. * src/ExpatMetalinkProcessor.cc
  9451. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9452. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  9453. * src/DHTBucket.cc
  9454. Removed unnecessary cast.
  9455. * src/HandshakeExtensionMessage.cc
  9456. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9457. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  9458. is missing.
  9459. * src/OptionHandlerFactory.cc
  9460. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9461. Fixed the bug that HAVE message is not sent for a piece they are
  9462. downloaded fom http/ftp server before any BitTorrent handshake is done
  9463. with peers.
  9464. * src/DefaultBtInteractive.cc
  9465. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9466. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  9467. * src/Makefile.am
  9468. * src/Makefile.in
  9469. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9470. Updated README. Added html version of README and man page.
  9471. * README
  9472. * README.html
  9473. * readme2html: Shell script to generate README.html from README using
  9474. asciidoc.
  9475. * doc/aria2c.1.html
  9476. * doc/makeman: Added the line to generate aria2c.1.html
  9477. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9478. Fixed offset calculation.
  9479. * src/LibgcryptDHKeyExchange.h (computeSecret)
  9480. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9481. Rewritten itos and uitos using template. llitos and ullitos are
  9482. replaced with itos and uitos respectively.
  9483. * src/Util.{h, cc}
  9484. * test/UtilTest.cc
  9485. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9486. Fixed the bug that DH key exchange sometimes fails due to bad handling
  9487. of the number of bytes required for storing public key and shared
  9488. secret.
  9489. * src/LibgcryptDHKeyExchange.h
  9490. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  9491. * src/MSEHandshake.cc
  9492. * test/DHKeyExchangeTest.cc
  9493. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9494. Removed since they are not used.
  9495. * src/Xml2MetalinkProcessor.{h, cc}
  9496. * src/Socket.cc
  9497. * src/SegmentSplitter.{h, cc}
  9498. * test/Xml2MetalinkProcessorTest.cc
  9499. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9500. Fixed the bug that prevents aria2 from stopping other than by pressing
  9501. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  9502. option. aria2 doesn't stop even after --seed-time is satisfied and
  9503. continues to output blank lines in the console.
  9504. * src/ReceiverMSEHandshakeCommand.cc
  9505. * src/PeerReceiveHandshakeCommand.cc
  9506. * src/PeerListenCommand.cc
  9507. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9508. Bump up version number to 0.13.0rc
  9509. * configure.ac
  9510. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9511. Updated man page and some usage text.
  9512. * doc/aria2c.1.txt
  9513. * src/usage_text.h
  9514. * po/*.{po, gmo}
  9515. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9516. Updated translations. Added Finnish and Hebrew translations.
  9517. Great thanks to all translators!
  9518. * po/*.{po, gmo}
  9519. * po/LINGUAS
  9520. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9521. Log more detailed information about each message.
  9522. * src/DHTQueryMessage.{h, cc}
  9523. * src/DHTGetPeersMessage.{h, cc}
  9524. * src/DHTFindNodeReplyMessage.{h, cc}
  9525. * src/DHTGetPeersReplyMessage.{h, cc}
  9526. * src/DHTAnnouncePeerMessage.{h, cc}
  9527. * src/DHTResponseMessage.{h, cc}
  9528. * src/DHTFindNodeMessage.{h, cc}
  9529. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9530. Use constants defined in prefs.h
  9531. * src/option_processing.cc
  9532. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9533. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  9534. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9535. Make room for future enchancements for IPv6 addresses.
  9536. Bump up version number of dht.dat file format to 2.
  9537. Not compatible with previous version.
  9538. * src/DHTRoutingTableSerializer.cc
  9539. * src/DHTRoutingTableDeserializer.cc
  9540. * test/DHTRoutingTableSerializerTest.cc
  9541. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9542. Added handling for the return values from
  9543. PeerMessageUtil::createcompact().
  9544. * src/DefaultBtContext.cc (computeFastSet):
  9545. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9546. Fixed abort when peer's ip address is IPv4-mapped address.
  9547. * src/DefaultBtContext.cc (computeFastSet)
  9548. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  9549. cannot handle IPv4-mapped addresses.
  9550. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  9551. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9552. Proper return value handling for OpenSSL functions.
  9553. * src/LibsslDHKeyExchange.h
  9554. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9555. Random bytes generation using libgcrypt and OpenSSL.
  9556. * src/DHTUtil.{h, cc}
  9557. * test/DHTUtilTest.cc
  9558. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9559. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  9560. received.
  9561. * src/DHTMessageReceiver.cc (receiveMessage)
  9562. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9563. Fixed the bug that a return code is always 0. BUG#1897704
  9564. If error occurred during the download or there exist unfinished
  9565. downloads, aria2 returns with code 1.
  9566. * src/RequestGroupMan.{h, cc}
  9567. * src/MultiUrlRequestInfo.{h, cc}
  9568. * src/main.cc
  9569. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9570. IPv6 support for SocketCore class.
  9571. TODO: In SocketCore::establishConnection(), this is insufficient to
  9572. determin the failure of connect() here because the socket is
  9573. non-blocking state. The next addresses should be tried after select().
  9574. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  9575. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  9576. instead which address family independent.
  9577. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  9578. information in a compact peer format which is for IPv4 only.
  9579. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  9580. this is a spec of BitTorrent protocol.
  9581. * src/SocketCore.{h, cc}
  9582. * src/PeerMessageUtil.cc
  9583. * test/SocketCoreTest.cc
  9584. * test/PeerMessageUtilTest.cc
  9585. * test/DHTConnectionImplTest.cc
  9586. Handle IPv4-mapped addresses.
  9587. * src/DHTNode.cc: Now identity is determined by node id.
  9588. * src/DHTMessageTrackerEntry.cc
  9589. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  9590. should handle it.
  9591. * src/DHTRoutingTableDeserializer.cc
  9592. * src/DHTMessageFactoryImpl.cc
  9593. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9594. Change the unit of --stop option from a minute to a second.
  9595. * src/usage_text.h
  9596. * src/DownloadEngineFactory.cc
  9597. * src/OptionHandlerFactory.cc
  9598. * src/message.h
  9599. * src/TimedHaltCommand.cc
  9600. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9601. Make listening socket non-block mode.
  9602. * src/FtpConnection.cc
  9603. * src/FtpNegotiationCommand.{h, cc}
  9604. * src/PeerListenCommand.cc
  9605. Fixed the bug that cause slow ftp negotiation.
  9606. * src/FtpNegotiationCommand.{h, cc}
  9607. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9608. Added basic tag to --enable-dht, --dht-listen-port option.
  9609. * src/HelpItemFactory.cc (createHelpItems)
  9610. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9611. Updated text.
  9612. * src/usage_text.h
  9613. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9614. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  9615. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9616. Determin _threadtholdSpeed in each constructor for
  9617. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  9618. * src/ActivePeerConnectionCommand.{h, cc}
  9619. * src/PeerReceiveHandshakeCommand.{h, cc}
  9620. * src/BtSetup.cc
  9621. * src/BtConstants.h
  9622. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9623. Added --bt-min-crypto-level and --bt-require-crypto options.
  9624. * src/OptionHandlerFactory.cc
  9625. * src/MSEHandshake.cc
  9626. * src/HelpItemFactory.cc
  9627. * src/option_processing.cc
  9628. * src/ReceiverMSEHandshakeCommand.cc
  9629. * src/prefs.h
  9630. * src/DefaultBtAnnounce.cc
  9631. * src/InitiatorMSEHandshakeCommand.cc
  9632. * src/usage_text.h
  9633. * test/MSEHandshakeTest.cc
  9634. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9635. Bump version number to 0.13.0b
  9636. * configure.ac
  9637. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9638. Updated doc.
  9639. * src/MessageDigestHelper.h:
  9640. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9641. Use raw message digest as a token instead of its hexadecimal
  9642. representation.
  9643. * src/DHTTokenTracker.cc (generateToken)
  9644. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9645. Added Message Stream Encryption(MSE) support.
  9646. Currently, aria2 accepts incoming connections with Obfuscation Header
  9647. and legacy BitTorrent Header and establishes connections with
  9648. Obfuscation Header first and if failed then retry with legacy
  9649. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  9650. choose ARC4. The new option to change the default behavior is planned.
  9651. For tracker extension, "supportcrypto=1" is added statically.
  9652. * src/PeerInitiateConnectionCommand.{h, cc}
  9653. * src/PeerConnection.{h, cc}
  9654. * src/HandleRegistry.h
  9655. * src/SocketCore.h
  9656. * src/PeerReceiveHandshakeCommand.{h, cc}
  9657. * src/BtRegistry.{h, cc}
  9658. * src/PeerListenCommand.cc
  9659. * src/InitiatorMSEHandshakeCommand.{h, cc}
  9660. * src/ReceiverMSEHandshakeCommand.{h, cc}
  9661. * src/MSEHandshake.{h, cc}
  9662. * src/ARC4Encryptor.h
  9663. * src/ARC4Decryptor.h
  9664. * src/LibgcryptARC4Encryptor.h
  9665. * src/LibgcryptARC4Decryptor.h
  9666. * src/LibgcryptARC4Context.h
  9667. * src/LibsslARC4Encryptor.h
  9668. * src/LibsslARC4Decryptor.h
  9669. * src/LibsslARC4Context.h
  9670. * src/DHKeyExchange.h
  9671. * src/LibgcryptDHKeyExchange.h
  9672. * src/LibsslDHKeyExchange.h
  9673. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  9674. * test/DefaultBtAnnounceTest.cc
  9675. * test/ARC4Test.cc
  9676. * test/DHKeyExchangeTest.cc
  9677. Removed prepareForRetry() because it is not used.
  9678. * src/PeerAbstractCommand.{h, cc}
  9679. * src/PeerInteractionCommand.{h, cc}
  9680. * src/PeerInitiateConnectionCommand.{h, cc}
  9681. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9682. Added the ability to load nodes from torrent file. These nodes are
  9683. added to the routing table when downloading that torrent.
  9684. * src/BtContext.h
  9685. * src/DefaultBtContext.{h, cc}
  9686. * src/DHTSetup.cc
  9687. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  9688. hostname and port pair, and resolves all of them.
  9689. * src/NameResolver.{h, cc}: Added reset().
  9690. * src/RequestGroup.cc
  9691. * test/DefaultBtContextTest.cc
  9692. * test/MockBtContext.h
  9693. Removed assert() from DefaultBtContext and throw exception instead.
  9694. * src/DefaultBtContext.cc
  9695. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9696. Fixed segmentation fault bug when exiting if dht is disabled.
  9697. * src/RequestGroup.cc
  9698. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9699. Fixed typo in log message and define the message in message.h
  9700. * src/TimedHaltCommand.cc
  9701. * src/message.h
  9702. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9703. Included RecoverableException.h to fix compilation error.
  9704. * test/DHTMessageFactoryImplTest.cc
  9705. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9706. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  9707. * test/DHTPingMessageTest.cc
  9708. * test/DHTGetPeersMessageTest.cc
  9709. * test/DHTFindNodeMessageTest.cc
  9710. * test/DHTAnnouncePeerMessageTest.cc
  9711. * test/MockDHTMessage.h
  9712. * test/MockDHTMessageFactory.h
  9713. * test/MockDHTMessageDispatcher.h: New class.
  9714. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9715. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  9716. virtual.
  9717. * src/DHTMessageDispatcher.h
  9718. * src/DHTMessageDispatcherImpl.{h, cc}
  9719. * src/DHTSetup.cc
  9720. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9721. Adding handling of DHT error message. Just log error message and
  9722. throw exception.
  9723. * src/DHTMessageFactoryImpl.cc
  9724. * test/DHTMessageFactoryImplTest.cc
  9725. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9726. Added handling of dynamic cast failure.
  9727. * src/DHTNodeLookupTask.cc
  9728. * src/DHTPeerLookupTask.cc
  9729. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9730. Added the ability to stop aria2 itself when given time has passed
  9731. from start. Use --stop option to specify time in minutes.
  9732. When 0 is given, this feature is disabled.
  9733. * src/OptionHandlerFactory.cc
  9734. * src/TimeBasedCommand.h: Make _interval protected scope.
  9735. * src/HelpItemFactory.cc
  9736. * src/option_processing.cc
  9737. * src/prefs.h
  9738. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  9739. before calling RequestGroupMan::fillRequestGroupFromReserver().
  9740. Without this modification, the result list shows "ERR" when aria2 is
  9741. stopped by --stop option. It should be "INPR".
  9742. * src/DownloadEngine.{h, cc}
  9743. * src/DownloadEngineFactory.cc
  9744. * src/usage_text.h
  9745. * src/TimedHaltCommand.{h, cc}: New class.
  9746. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9747. Bootstrap through node added by port message.
  9748. Currently bootstrap is executed if the number of buckets in routing
  9749. table is 1.
  9750. * src/BtPortMessage.{h, cc}
  9751. * src/DefaultBtMessageFactory.{h, cc}
  9752. * src/PeerInteractionCommand.cc
  9753. * test/BtPortMessageTest.cc
  9754. * test/MockDHTTask.h
  9755. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9756. Extract the Peer class's member variables, which are only needed after
  9757. PeerInteractionCommand, into PeerSessionResource class.
  9758. This class is instantiated in PeerInteractionCommand class's ctor and
  9759. released in its dtor.
  9760. This will make Peer class lightweight and uses less memory for peers
  9761. which are not connected and wait in the queue.
  9762. * src/PeerChokeCommand.cc
  9763. * src/PeerSessionResource.{h, cc}
  9764. * src/PeerInteractionCommand.cc
  9765. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  9766. * src/DefaultBtInteractive.cc
  9767. * src/BtPieceMessage.cc
  9768. * src/BtInterestedMessage.cc
  9769. * src/BtUnchokeMessage.cc
  9770. * src/DefaultPeerStorage.{h, cc}
  9771. * src/PeerInitiateConnectionCommand.cc
  9772. * src/ActivePeerConnectionCommand.cc
  9773. * src/BtNotInterestedMessage.cc
  9774. * src/DefaultBtMessageDispatcher.cc
  9775. * src/BtChokeMessage.cc
  9776. * src/BtRequestMessage.cc
  9777. * src/Peer.{h, cc}
  9778. * src/BtRegistry.h
  9779. * src/TrackerWatcherCommand.cc
  9780. * src/PeerReceiveHandshakeCommand.cc
  9781. * test/BtExtendedMessageTest.cc
  9782. * test/BtAllowedFastMessageTest.cc
  9783. * test/BtCancelMessageTest.cc
  9784. * test/DefaultPieceStorageTest.cc
  9785. * test/BtBitfieldMessageTest.cc
  9786. * test/BtHaveMessageTest.cc
  9787. * test/BtNotInterestedMessageTest.cc
  9788. * test/BtRequestMessageTest.cc
  9789. * test/PeerSessionResourceTest.cc
  9790. * test/DefaultBtMessageDispatcherTest.cc
  9791. * test/PeerTest.cc
  9792. * test/BtInterestedMessageTest.cc
  9793. * test/BtRejectMessageTest.cc
  9794. * test/BtChokeMessageTest.cc
  9795. * test/DefaultPeerStorageTest.cc
  9796. * test/BtHaveNoneMessageTest.cc
  9797. * test/BtHaveAllMessageTest.cc
  9798. * test/DefaultExtensionMessageFactoryTest.cc
  9799. * test/BtUnchokeMessageTest.cc
  9800. * test/DefaultBtMessageFactoryTest.cc
  9801. * test/HandshakeExtensionMessageTest.cc
  9802. * test/UTPexExtensionMessageTest.cc
  9803. * test/DefaultBtRequestFactoryTest.cc
  9804. * test/BtPieceMessageTest.cc
  9805. Removed typedef PeerStats.
  9806. * src/PeerStat.h
  9807. * src/SegmentMan.cc
  9808. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9809. Added std namespace to copy, remove_copy, back_inserter,
  9810. front_inserter.
  9811. * src/RequestGroupMan.cc
  9812. * src/DefaultPieceStorage.cc
  9813. * src/StreamFileAllocationEntry.cc
  9814. * src/BtFileAllocationEntry.cc
  9815. * src/RequestGroup.cc
  9816. * src/MetalinkEntry.cc
  9817. * src/DelegatingPeerListProcessor.cc
  9818. * src/DefaultBtRequestFactory.cc
  9819. * src/DefaultBtMessageDispatcher.cc
  9820. * src/version_usage.cc: Included <algorithm>
  9821. * src/main.cc
  9822. * src/MetalinkParserController.cc
  9823. * src/DefaultBtContext.cc
  9824. * src/DownloadEngineFactory.cc
  9825. * src/a2algo.h
  9826. Removed.
  9827. * test/StreamUriListParserTest.cc
  9828. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9829. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  9830. ActivePeerConnectionCommand when it is given and
  9831. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  9832. * src/ActivePeerConnectionCommand.{h, cc}
  9833. * src/BtSetup.cc
  9834. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9835. Only add socket to DownloadEngine's select routine when peer or
  9836. localhost is unchoked and interested. This lowers CPU usage a
  9837. little bit.
  9838. * src/PeerInteractionCommand.cc
  9839. * src/PeerAbstractCommand.{h, cc}
  9840. * src/BtInteractive.h
  9841. * src/DefaultBtInteractive.{h, cc}
  9842. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9843. Revert previous change because get_peers message is needed for
  9844. announce_peer anyway.
  9845. * src/DHTGetPeersCommand.cc
  9846. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9847. Request peers thought DHT only when download hasn't finished.
  9848. * src/DHTGetPeersCommand.cc
  9849. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9850. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  9851. * src/DHTBucketRefreshTask.{h, cc}
  9852. * src/DHTSetup.cc
  9853. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9854. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  9855. standard classes.
  9856. Included string.h where mem* function are used.
  9857. Added namespace aria2.
  9858. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9859. Create directory before saving DHT routing table.
  9860. Now ios::failure is now handled properly.
  9861. * src/DHTAutoSaveCommand.cc
  9862. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9863. Removed unnecessary cerr.
  9864. * src/DownloadEngine.cc
  9865. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9866. Catch exception inside DHTMessageReceiver::receiveMessage().
  9867. Log unknown message.
  9868. * src/DHTMessageReceiver.{h, cc}
  9869. * src/DHTMessageFactory.h
  9870. * src/DHTMessageFactoryImpl.{h, cc}
  9871. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  9872. * src/DHTInteractionCommand.cc
  9873. * src/DHTUnknownMessage.{h, cc}
  9874. * test/DHTUnknownMessageTest.cc
  9875. * test/MockDHTMessageFactory.h
  9876. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9877. Commented out ip address comparison because a host can have multiple
  9878. ip addresses and it is hard to predict the hostname is resolved into
  9879. which one.
  9880. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  9881. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9882. * po/Makefile.in: Removed since this is generated by configure.
  9883. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9884. Fixed compiler warning about redefinition of SIZE_MAX.
  9885. Use common.h instead of config.h directly here.
  9886. * src/Platform.{h, cc}
  9887. The check of ENABLE_NLS is made in gettext.h, so it is not required
  9888. here.
  9889. * common.h
  9890. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  9891. Updated gettext related files.
  9892. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  9893. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  9894. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9895. Added DHT functionality, compatible with mainline.
  9896. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  9897. You may need to specify entry point to DHT network using
  9898. --dht-entry-point. DHT uses UDP port to listen incoming message.
  9899. Use --dht-listen-port to specify port number. Make sure that your
  9900. firewall configuration can pass through UDP traffic to the port.
  9901. The routing table is saved in $HOME/.aria2/dht.dat.
  9902. * src/DHT*
  9903. * src/BNode.{h, cc}
  9904. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  9905. particular torrent.
  9906. * src/Data.cc: Rewritten ctor.
  9907. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  9908. --dht-entry-point.
  9909. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  9910. * src/RequestGroup.cc: Initialize DHT functionality. When download
  9911. ends, remove BtContext from DHTPeerAnnounceStorage.
  9912. * src/BtPortMessage.{h, cc}: Rewritten.
  9913. * src/message.h
  9914. * src/OptionHandlerImpl.cc
  9915. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  9916. --dht-entry-point.
  9917. * src/Dictionary.{h, cc} (remove): New function.
  9918. * src/prefs.h
  9919. * src/DefaultBtMessageFactory.h
  9920. * src/BtHandshakeMessage.cc
  9921. * src/ActivePeerConnectionCommand.cc
  9922. * src/SocketCore.{h, cc}: Added datagram socket support.
  9923. * src/DefaultBtMessageFactory.cc
  9924. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  9925. Create DHT commands.
  9926. * src/BtMessageFactory.h
  9927. * src/PeerMessageUtil.{h, cc}
  9928. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9929. Fixed the bug that log file is not written when configuration file doesn't exist.
  9930. This is caused by using Logger class before LogFactory is not configured.
  9931. BUG #1875079
  9932. * src/option_processing.cc
  9933. Warning message "configuration doesn't exist" is only printed when --conf is
  9934. given.
  9935. * src/option_processing.cc
  9936. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9937. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  9938. ShaVisitor is now deprecated and slated to be removed.
  9939. * src/DefaultBtContext.cc
  9940. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9941. Externalize message to message.h
  9942. * src/Platform.cc
  9943. * src/message.h
  9944. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9945. Set default domain and default path to cookie.
  9946. * src/HttpResponse.cc
  9947. * src/CookieBox.{h, cc}
  9948. * src/CookieParser.{h, cc}
  9949. * test/CookieParserTest.cc
  9950. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9951. Added --no-conf and --conf-path command-line option.
  9952. --no-conf option disables loading aria2.conf file.
  9953. --conf-path option changes the configuration file path. The default
  9954. file path is $HOME/.aria2/aria2.conf
  9955. Added a warning message when the configuration file is not found.
  9956. * src/HelpItemFactory.cc
  9957. * src/option_processing.cc
  9958. * src/prefs.h
  9959. * src/usage_text.h
  9960. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9961. Added the message to inform users that other help categories are
  9962. available in -h option.
  9963. * src/version_usage.cc
  9964. * src/TagContainer.{h, cc}
  9965. * test/TagContainerTest.cc
  9966. * src/TaggedItem.{h, cc}
  9967. * test/TaggedItemTest.cc
  9968. * src/HelpItem.h
  9969. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9970. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  9971. from PiecedSegment's ctor.
  9972. Previously Piece::getAllMissingBlockIndexes() is called from
  9973. PiecedSegment() but it is rather expensive since only first element is
  9974. used.
  9975. * src/PiecedSegment.cc
  9976. * src/Piece.{h, cc}
  9977. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9978. Rewritten get*Missing*Index functions. Now no need to allocate memory
  9979. each time these functions are called.
  9980. * src/BitfieldMan.{h, cc}
  9981. * test/BitfieldManTest.cc
  9982. * src/array_fun.h
  9983. * test/array_funTest.cc
  9984. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  9985. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  9986. filtered. Removed unnecessary cast to int32_t.
  9987. * src/BitfieldMan.{h, cc}
  9988. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9989. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  9990. payload length(4bytes) are received. This happens because lenbufLength
  9991. is not updated in this particular case and successive call of
  9992. receiveMessage() overwrites payload length with bytes recieved which
  9993. are payload body.
  9994. * src/PeerConnection.{h, cc}
  9995. * src/message.h
  9996. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9997. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  9998. peer if there are peers that have same ipaddr and port.
  9999. I've experiened segmentation fault and "pure virtual function was
  10000. called" error.
  10001. * src/Peer.h
  10002. * test/PeerTest.cc
  10003. * src/DefaultPeerStorage.cc
  10004. * test/DefaultPeerStorageTest.cc
  10005. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10006. Removed a call to isPowerOf() because it is no longer necessary here
  10007. and a request block is not always power of 2.
  10008. BUG#1866924
  10009. * src/PeerMessageUtil.cc (checkLength)
  10010. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10011. Fixed the bug that always first found Segment is removed from
  10012. usedSegmentEntries. Removed unused functions.
  10013. * src/SegmentMan.{h, cc}
  10014. * test/SegmentManTest.cc
  10015. Fixed the bug that ServerHost is not removed.
  10016. * src/RequestGroup.cc
  10017. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10018. Fixed the bug that SegmentMan::completeSegment() is not called
  10019. even if Segment is complete when --lowest-speed-limit is enabled.
  10020. BUG#1864525
  10021. * src/DownloadCommand.{h, cc}
  10022. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10023. Fixed: hash algorithm 'sha1' is always used.
  10024. * src/DownloadCommand.cc (validatePieceHash)
  10025. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10026. Added --enable-peer-exchange command-line option.
  10027. * src/OptionHandlerFactory.cc
  10028. * src/HelpItemFactory.cc
  10029. * src/option_processing.cc
  10030. * src/usage_text.h
  10031. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10032. Move extension from BtRuntime to ExtensionMessageFactory, because
  10033. extension can be specified per peer, not per torrent.
  10034. * src/DefaultBtInteractive.cc
  10035. * src/BtRuntime.h
  10036. * src/ExtendedMessagingAware.h
  10037. * src/ExtensionMessageFactory.h
  10038. * src/DefaultExtensionMessageFactory.cc
  10039. * test/DefaultExtensionMessageFactoryTest.cc
  10040. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10041. Added categorized option help. Specify category using --help option.
  10042. Also added the ability to search options in forward match.
  10043. * src/HelpItem.{h, cc}
  10044. * test/HelpItemTest.cc
  10045. * src/HelpItemFactory.{h, cc}
  10046. * src/TagContainer.{h, cc}
  10047. * test/TagContainerTest.cc
  10048. * src/option_processing.cc
  10049. * src/prefs.h
  10050. * src/TaggedItem.{h, cc}
  10051. * test/TaggedItemTest.cc
  10052. * src/version_usage.cc
  10053. * src/help_tags.h
  10054. * src/usage_text.h
  10055. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10056. Fixed segmentation fault when bad torrent metainfo is parsed.
  10057. Added dynamic_cast properly to detect the misconfiguration of metainfo
  10058. and then throw exception or skip it.
  10059. * src/DefaultBtContext.{h, cc}
  10060. * test/DefaultBtContextTest.cc
  10061. * src/AnnounceList.cc
  10062. * src/CompactPeerListProcessor.cc
  10063. * src/message.h
  10064. * src/DefaultBtAnnounce.{h, cc}
  10065. * test/DefaultBtAnnounceTest.cc
  10066. * src/BencodeVisitor.cc
  10067. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10068. Added missing "B"(=Byte). So now the message looks like this:
  10069. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  10070. * src/message.h (MSG_SHARE_RATIO_REPORT)
  10071. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10072. Show the seed ratio after torrent downloads.
  10073. For example, after torrent download completed and --seed-time and
  10074. --seed-ratio conditions are fulfilled, following message is printed
  10075. right after "Download complete: .....":
  10076. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  10077. * src/RequestGroupMan.cc
  10078. * src/RequestGroup.{h, cc}
  10079. * src/message.h
  10080. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10081. Remove a defunct control file. A defunct control file means that while
  10082. it exists, but the corresponding download file is missing.
  10083. After its removal, a download restarts from the beginning.
  10084. * src/RequestGroup.cc
  10085. * src/message.h
  10086. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10087. Allocate bitfield in Peer when it is really used. More specifically,
  10088. bitfield in Peer is allocated after the connection is established and
  10089. deallocated when the connection is dropped.
  10090. Since 2 parameters(piece length and total length) was removed from the
  10091. constructor of Peer class, many test classes were modified accordingly.
  10092. See svn log for more detailed information.
  10093. * src/PeerInteractionCommand.cc
  10094. * src/CompactPeerListProcessor.cc
  10095. * src/Peer.cc
  10096. * src/DefaultPeerListProcessor.cc
  10097. * src/PeerListenCommand.cc
  10098. * src/PeerReceiveHandshakeCommand.cc
  10099. Fixed memory leak
  10100. * src/Piece.cc
  10101. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10102. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  10103. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  10104. command-line options.
  10105. * src/option_processing.cc
  10106. * src/ActivePeerConnectionCommand.cc
  10107. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10108. Send have message to peer if it already has the piece.
  10109. * src/BtHaveMessage.{h, cc}
  10110. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10111. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  10112. port.
  10113. * src/DefaultPeerStorage.{h, cc}
  10114. * test/DefaultPeerStorageTest.cc
  10115. * src/HandshakeExtensionMessage.cc
  10116. * test/HandshakeExtensionMessageTest.cc
  10117. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  10118. * src/PeerStorage.h
  10119. * test/MockPeerStorage.h
  10120. * src/PeerListenCommand.cc
  10121. * src/PeerReceiveHandshakeCommand.cc
  10122. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10123. Added --metalink-enable-unique-protocol option.
  10124. * src/Metalink2RequestGroup.cc
  10125. * src/option_processing.cc
  10126. * src/prefs.h
  10127. * src/version_usage.cc
  10128. * doc/aria2c.1.txt
  10129. * doc/aria2c.1
  10130. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10131. Allow a peer in incomingPeer to be added peers.
  10132. * src/DefaultPeerStorage.cc
  10133. * test/DefaultPeerStorageTest.cc
  10134. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10135. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  10136. I could reproduce this bug in following procedure:
  10137. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  10138. 2. Restart aria2.
  10139. 3. You see the download stopped around 99%.
  10140. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  10141. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  10142. If timeout is reached, then _nextCommand is unused and it may contains
  10143. segments and they won't be canceled. Actually, timeout is not needed
  10144. here because if the server dropped connection, then retry is made.
  10145. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10146. Added uTorrent compatible Peer Exchange.
  10147. * src/BencodeVisitor.{h, cc}
  10148. * test/BencodeVisitorTest.cc
  10149. * src/BtConstants.h
  10150. * src/BtContext.h: Added 'private' flag.
  10151. * src/BtExtendedMessage.{h, cc}
  10152. * test/BtExtendedMessageTest.cc
  10153. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  10154. reserved field.
  10155. * test/BtHandshakeMessageTest.cc
  10156. * src/BtMessageFactory.h
  10157. * src/BtRegistry.h
  10158. * src/BtRuntime.h: This class holds default extension message IDs for
  10159. aria2. By default, aria2 uses ID 8 for ut_pex.
  10160. * src/DefaultBtContext.cc
  10161. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  10162. When it is true, aria2 enables ut_pex. This value is set by
  10163. PeerInteractionCommand.
  10164. * src/DefaultBtMessageFactory.{h, cc}
  10165. * test/DefaultBtMessageFactoryTest.cc
  10166. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  10167. handling to DefaultBtInteractive class.
  10168. * src/DefaultExtensionMessageFactory.{h, cc}
  10169. * test/DefaultExtensionMessageFactoryTest.cc
  10170. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  10171. the container(peers and incomingPeers. The equality is determined by
  10172. Peer::id).
  10173. * test/DefaultPeerStorageTest.cc
  10174. * src/ExtensionMessage.h
  10175. * test/MockExtensionMessage.h
  10176. * src/ExtensionMessageFactory.h
  10177. * test/MockExtensionMessageFactory.h
  10178. * src/HandshakeExtensionMessage.{h, cc}
  10179. * test/HandshakeExtensionMessageTest.cc
  10180. * src/MetaEntry.h
  10181. * src/Peer.{h, cc}
  10182. * src/PeerInteractionCommand.cc
  10183. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  10184. addIncomingPeer.
  10185. * src/PeerMessageUtil.{h, cc}
  10186. * src/PeerObject.h
  10187. * src/UTPexExtensionMessage.{h, cc}
  10188. * test/UTPexExtensionMessageTest.cc
  10189. * src/message.h
  10190. * src/prefs.h
  10191. Fixed the bug that returns incomplete data when it contains null
  10192. character. A convenient constructor was also added.
  10193. * src/Data.{h, cc}
  10194. Rewritten.
  10195. * src/CompactPeerListProcessor.cc
  10196. Fixed typos.
  10197. * src/message.h
  10198. * src/MetaFileUtil.cc
  10199. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10200. Added "Status Legend" label to the explanation text of 'stat' in
  10201. download result and moved it to the last. BUG#1848214
  10202. * src/RequestGroupMan.cc
  10203. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10204. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  10205. * src/Makefie.am
  10206. * test/Makefile.am
  10207. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10208. Fixed the bug that prevents aria2 from loading cookie file when expire
  10209. value is greater than 2^31-1. BUG#1851066
  10210. * src/CookieBoxFactory.cc
  10211. * test/CookieBoxFactoryTest.cc
  10212. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10213. Fixed possible memory leak when an exception is thrown.
  10214. * src/XML2SAXMetalinkProcessor.cc
  10215. Added Expat support. If both libxml2 and Expat are installed, then
  10216. libxml2 is used by default.
  10217. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  10218. ExpatMetalinkProcessor according to the configuration.
  10219. * src/ExpatMetalinkProcessor.{h, cc}
  10220. * src/main.cc: Removed libxml2 specific header and init/free function.
  10221. * src/MetalinkProcessorFactory.{h, cc}
  10222. * src/MetalinkHelper.cc
  10223. * src/Metalinker.h: Removed unnecessary libxml2 header.
  10224. * src/MetalinkProcessor.h
  10225. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  10226. MetalinkProcessorTest is used instead.
  10227. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  10228. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  10229. MetalinkProcessorFactory::newInstance().
  10230. * m4/libexpat.m4
  10231. * configure.ac: Added configuration options for libexpat.
  10232. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10233. Disabled -s option in metalink download.
  10234. * src/Metalink2RequestGroup.cc
  10235. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10236. If several protocols are available for a mirror in metalink file,
  10237. aria2 now use one of them. --metalink-preferred-protocol option was
  10238. added to specify the preference of protocol.
  10239. * src/AbstractCommand.cc
  10240. * src/OptionHandlerFactory.cc
  10241. * src/ServerHost.{h, cc}
  10242. * src/Metalink2RequestGroup.cc
  10243. * src/RequestGroup.{h, cc}
  10244. * test/RequestGroupTest.cc
  10245. * src/option_processing.cc
  10246. * src/prefs.h
  10247. * src/HttpResponseCommand.cc
  10248. * src/MetalinkResource.{h, cc}
  10249. * src/FtpNegotiationCommand.cc
  10250. * src/MetalinkEntry.{h, cc}
  10251. * src/MetalinkEntryTest.cc
  10252. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10253. Code cleanup and added debug log.
  10254. * src/PeerConnection.cc
  10255. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10256. Compiler error fix: applied the patch by Tiziano Mueller
  10257. * src/RequestGroup.cc
  10258. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10259. Fixed the bug: only first announce URL is tried in AnnounceTier,
  10260. in stopped and completed event.
  10261. * src/AnnounceList.{h, cc}
  10262. * test/AnnounceListTest.cc
  10263. * src/DefaultBtAnnounce.cc
  10264. * test/DefaultBtAnnounceTest.cc
  10265. Sorted URLs.
  10266. * test/Metalink2RequestGroupTest.cc
  10267. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10268. Removed unnecessary string copy. Updated doc and corrected indentation.
  10269. * src/Base64.cc
  10270. Fixed compilation warnings
  10271. * test/DataTest.cc
  10272. * test/HttpRequestTest.cc
  10273. * test/MetaFileUtilTest.cc
  10274. * test/RequestTest.cc
  10275. * Release 0.12.0
  10276. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10277. Updated translations
  10278. * po/{de,fr,ja,nl,ru}.po
  10279. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  10280. translations. Many thanks to translators.
  10281. * po/{ca,es,it,pt_BR,sv}.po
  10282. * po/LINGUAS
  10283. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10284. Added a notice about URL
  10285. * src/version_usage.cc
  10286. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  10287. Fixed the bug#1845750; CTRL+C does not stop torrent.
  10288. aria2 repeatedly sends stopped request when tracker returns error code.
  10289. * src/AnnounceList.cc
  10290. * test/AnnounceListTest.cc
  10291. * src/AnnounceTier.h
  10292. Added a message when ctrl-c is hit.
  10293. Now second ctrl-c is also handled in signal handler.
  10294. * src/RequestGroupMan.{h, cc}
  10295. * src/RequestGroup.{h, cc}
  10296. * src/MultiUrlRequestInfo.cc
  10297. * src/DownloadEngine.cc
  10298. * src/TrackerWatcherCommand.cc
  10299. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10300. Code cleanup
  10301. * src/Base64.cc (encode)
  10302. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10303. Changed Direct/IO enable/disable procesure in file allocation routine.
  10304. * src/SingleFileAllocationIterator.cc
  10305. (SingleFileAllocationIterator):
  10306. Disable directIO if offset is not multiple of 512.
  10307. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  10308. * src/MultiFileAllocationIterator.cc (allocateChunk):
  10309. Enable created SingleFileAllocationIterator's directIO.
  10310. * src/FileAllocationEntry.cc
  10311. (FileAllocationEntry): Enable directIO here.
  10312. (~FileAllocationEntry): Disable directIO here.
  10313. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10314. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  10315. * src/Peer.{h, cc}
  10316. * src/DefaultPieceStorage.cc
  10317. * test/DefaultPieceStorageTest.cc
  10318. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10319. Rewritten direct I/O support routine
  10320. * src/SingleFileAllocationIterator.cc
  10321. * src/MultiDiskAdaptor.{h, cc}
  10322. * src/ByteArrayDiskWriter.h
  10323. * src/AbstractSingleDiskAdaptor.h
  10324. * src/AbstractDiskWriter.cc
  10325. * src/DefaultPieceStorage.cc
  10326. * src/DiskWriter.h
  10327. * src/BinaryStream.h
  10328. * src/IteratableChunkChecksumValidator.cc
  10329. * src/IteratableChecksumValidator.cc
  10330. * src/CheckIntegrityEntry.cc
  10331. * src/FileAllocationEntry.cc
  10332. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10333. Fixed typo
  10334. * src/version_usage.cc
  10335. Updated doc
  10336. * doc/aria2c.1.txt
  10337. * doc/aria2c.1
  10338. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10339. Fixed compile error without message digest support.
  10340. * src/FileMetalinkParserState.cc
  10341. * src/MetalinkParserController.{h, cc}
  10342. * test/XML2SAXMetalinkProcessorTest.cc
  10343. * test/MetalinkParserControllerTest.cc
  10344. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10345. Enable direct I/O support in checksum checking.
  10346. * src/IteratableChunkChecksumValidator.{h, cc}
  10347. * test/IteratableChunkChecksumValidatorTest.cc
  10348. * src/CheckIntegrityEntry.cc
  10349. * src/PieceHashCheckIntegrityEntry.cc
  10350. * src/IteratableChecksumValidator.{h, cc}
  10351. * src/BtCheckIntegrityEntry.cc: Added doc.
  10352. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10353. Added --allow-piece-length-change option.
  10354. * src/DefaultBtProgressInfoFile.cc
  10355. * test/DefaultBtProgressInfoFileTest.cc
  10356. * src/OptionHandlerFactory.cc
  10357. * src/option_processing.cc
  10358. * src/prefs.h
  10359. * src/version_usage.cc
  10360. * doc/aria2c.1.txt
  10361. * doc/aria2c.1
  10362. Fixed: duplicated result entry appears when exception is thrown in
  10363. RequestGroup::createInitiateConnectionCommand().
  10364. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  10365. Add RequestGroup to _requestGroup after RequetGroup::
  10366. createInitiateConnectionCommand() succeeds.
  10367. Externalized message
  10368. * src/XML2SAXMetalinkProcessor.cc
  10369. * src/message.h
  10370. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10371. Forced download abort when received negative response from http/ftp
  10372. server.
  10373. * src/HttpResponseCommand.cc
  10374. * src/FtpNegotiationCommand.cc
  10375. * src/HttpResponse.cc
  10376. * src/FtpConnection.cc
  10377. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10378. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  10379. the predecessor, Xml2MetalinkParser class.
  10380. I tested them against 94KB metalink file with 1234 chunk checksums.
  10381. The new one parsed it in 22msec, while it took 6000msec with old one.
  10382. * src/XML2SAXMetalinkProcessor.{h, cc}
  10383. * test/XML2SAXMetalinkProcessorTest.cc
  10384. * src/MetalinkParserController.{h, cc}
  10385. * test/MetalinkParserControllerTest.cc
  10386. * src/MetalinkParserState.h: Also added 16 subclasses.
  10387. * src/main.cc
  10388. * src/Metalink2RequestGroup.cc
  10389. * src/MetalinkHelper.cc
  10390. * src/MetalinkEntry.cc
  10391. * src/ChunkChecksum.h
  10392. Rewritten Base64 class for better performance.
  10393. * src/Base64.{h, cc}
  10394. * test/Base64Test.cc
  10395. * src/HttpRequest.cc
  10396. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10397. Fixed the bug#1841757: aria2 will connect to server to only get
  10398. file size.
  10399. * src/StreamFileAllocationEntry.cc
  10400. * src/option_processing.cc
  10401. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  10402. downloads.
  10403. * src/FtpNegotiationCommand.cc
  10404. Suppressed wrong message when finding PreDownloadHandler
  10405. * src/RequestGroup.cc
  10406. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10407. Updated usage
  10408. * src/version_usage.cc
  10409. Updated man page
  10410. * doc/aria2c.1.txt
  10411. * doc/aria2c.1
  10412. Updated po files
  10413. * po/aria2c.pot
  10414. * po/*.po
  10415. * po/*.gmo
  10416. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10417. Eliminated g++-4.2 warning
  10418. * src/DownloadHandlerConstants.{h, cc}
  10419. * src/Util.cc
  10420. * test/MetaFileUtilTest.cc
  10421. * test/PStringBuildVisitorTest.cc
  10422. Fixed bug: --check-integrity doesn't work for multi file torrent.
  10423. * src/RequestGroup.cc
  10424. * src/BtCheckIntegrityEntry.cc
  10425. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10426. Fixed a2io.h
  10427. * src/a2io.h
  10428. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10429. Added direct I/O support. The current implementation uses O_DIRECT,
  10430. which is not posix standard and is tested on linux 2.6.21.
  10431. Currently only file allocation uses direct I/O.
  10432. * src/SingleFileAllocationIterator.{h, cc}
  10433. * test/SingleFileAllocationIteratorTest.cc
  10434. * src/MultiFileAllocationIterator.{h, cc}
  10435. * test/MultiFileAllocationIteratorTest.cc
  10436. * src/BinaryStream.h
  10437. * src/DiskWriter.h
  10438. * src/AbstractDiskWriter.{h, cc}
  10439. * src/ByteArrayDiskWriter.h
  10440. * src/DiskAdaptor.h
  10441. * src/AbstractSingleDiskAdaptor.{h, cc}
  10442. * src/MultiDiskAdaptor.{h, cc}
  10443. * src/FileAllocationEntry.cc
  10444. * src/Util.{h, cc}
  10445. * src/OptionHandlerFactory.cc
  10446. * src/prefs.h
  10447. * src/version_usage.cc
  10448. * src/option_processing.cc
  10449. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  10450. handleException.
  10451. * src/MultiFileAllocationIterator.cc
  10452. Added EINTR handling
  10453. * src/SocketCore.cc
  10454. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10455. Updated usage
  10456. * src/version_usage.cc
  10457. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10458. Applied Ross's patch for MinGW port.
  10459. * src/DownloadEngine.h
  10460. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10461. Set Content-Type to SingleFileDownloadContext when http response is
  10462. received.
  10463. * src/HttpResponseCommand.cc
  10464. * src/HttpResponse.{h, cc}
  10465. * test/HttpResponseTest.cc
  10466. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10467. Rewritten to add content-type support.
  10468. * src/DownloadHandler.{h, cc}
  10469. * src/BtPostDownloadHandler.{h, cc}
  10470. * test/BtPostDownloadHandlerTest.cc
  10471. * src/MetalinkPostDownloadHandler.{h, cc}
  10472. * test/MetalinkPostDownloadHandlerTest.cc
  10473. * src/PostDownloadHandler.{h, cc}
  10474. * src/DownloadHandlerConstants.{h, cc}
  10475. * src/RequestGroup.cc
  10476. * src/HttpResponseCommand.cc
  10477. * src/FtpNegotiationCommand.cc
  10478. * src/SingleFileDownloadContext.{h, cc}
  10479. * src/RequestGroup.h
  10480. * src/RequestGroupCriteria.h
  10481. * src/ContentTypeRequestGroupCriteria.h
  10482. Added 'mem' option value for --follow-metalink, --follow-torrent.
  10483. If it is give, metalink/torrent file is not written to the disk, but
  10484. just is kept in memory. Parsing is occurred on memory.
  10485. * src/MetalinkHelper.{h, cc}
  10486. * src/MetalinkProcessor.h
  10487. * src/Xml2MetalinkProcessor.{h, cc}
  10488. * test/Xml2MetalinkProcessorTest.cc
  10489. * src/DownloadHandlerFactory.{h, cc}
  10490. * test/DownloadHandlerFactoryTest.cc
  10491. * src/PreDownloadHandler.{h, cc}
  10492. * src/OptionHandlerFactory.cc
  10493. * src/DefaultBtContext.{h, cc}
  10494. * test/DefaultBtContextTest.cc
  10495. * src/version_usage.cc
  10496. * src/Metalink2RequestGroup.{h, cc}
  10497. * src/RequestGroup.{h, cc}
  10498. * src/a2functional.h
  10499. * test/a2functionalTest.cc
  10500. * src/MemoryBufferPreDownloadHandler.{h, cc}
  10501. * src/OptionHandlerImpl.h
  10502. * src/prefs.h
  10503. * src/Util.{h, cc}
  10504. * test/UtilTest.cc
  10505. Keep DownloadResult rather than RequestGroup after downloads to reduce
  10506. memory usage.
  10507. * src/RequestGroupMan.{h, cc}
  10508. * src/DownloadEngine.cc
  10509. * src/BtDependency.{h, cc}: Changed the type of dependee from
  10510. WeakHandle to SharedHandle because WeakHandle could be null.
  10511. * src/RequestGroup.{h, cc}
  10512. * src/DownloadEngineFactory.cc
  10513. * src/DownloadResult.h
  10514. Set totalLength after download finished
  10515. * src/UnknownLengthPieceStorage.{h, cc}
  10516. Keep torrent file specified in metalink in memory.
  10517. * src/Metalink2RequestGroup.cc
  10518. * src/BtDependency.cc
  10519. * src/TrueRequestGroupCriteria.h
  10520. Fixed the bug: seekg is used where seekp should be used.
  10521. * src/ByteArrayDiskWriter.cc
  10522. * test/ByteArraydiskWriterTest.cc
  10523. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10524. Fixed syntax error
  10525. * test/SequenceTest.cc
  10526. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10527. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  10528. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  10529. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  10530. * src/RequestGroup.cc (downloadFinishedByFileLength)
  10531. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10532. Added the check to see whether ares_host_callback accepts timeouts
  10533. with c-ares; only c-ares 1.5.0 or newer accepts it.
  10534. * src/NameResolver.{h, cc}
  10535. * m4/libcares.m4
  10536. * configure.ac: Set C++ for language choice.
  10537. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10538. Fixed: compilation fails without c-ares/ares
  10539. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  10540. Generate http/ftp commands only when download is incomplete.
  10541. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  10542. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10543. Corrected typo. Examples are removed since they are available in man
  10544. page.
  10545. * src/version_usage.cc
  10546. Updated man page.
  10547. * doc/aria2c.1
  10548. * doc/aria2c.1.txt
  10549. * doc/makeman: Commented out sed command.
  10550. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10551. Throw DlAbortEx when a remote file is not found.
  10552. * src/HttpResponse.cc
  10553. * src/FtpNegotiationCommand.cc
  10554. * src/message.h
  10555. Overwrite an existing file if --allow-overwrite=true is given.
  10556. * src/RequestGroup.cc
  10557. Removed unused functions
  10558. * src/AbstractCommand.h
  10559. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10560. Removed 'extern' from 'extern typedef ...' in src/*.h
  10561. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10562. Updated usage
  10563. * src/version_usage.cc
  10564. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10565. Trim announce URL
  10566. * src/DefaultBtContext.cc
  10567. * test/ShaVisitorTest.cc
  10568. Trim argument s. Give trimed s to exception constructor.
  10569. * src/Util.cc (parseInt)(parseLLInt)
  10570. * test/UtilTest.cc
  10571. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10572. Set precision back to 1.
  10573. * src/ConsoleStatCalc.cc (calculateStat)
  10574. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10575. Replaced strtol with Util::parseInt
  10576. * src/ChunkedEncoding.cc
  10577. * src/HttpConnection.cc
  10578. * src/CookieBoxFactory.cc
  10579. * src/ParameterizedStringParser.cc
  10580. * src/Util.cc
  10581. * test/UtilTest.cc
  10582. * test/OptionHandlerTest.cc
  10583. * src/Request.cc
  10584. Throw exception when empty string is given. The message for exception
  10585. changed.
  10586. * src/Util.cc (parseInt)(parseLLInt)
  10587. * src/message.h
  10588. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10589. Set precision to 2 because share ratio is rounded into 1.0 if precision
  10590. set to 1.
  10591. * src/ConsoleStatCalc.cc (calculateStat)
  10592. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10593. Preallocate non-requested file which is adjacent forward to requested
  10594. file('requested' files means the files given in --select-file option)
  10595. if they share a same piece.
  10596. This fixes long pause in the file system which doesn't support sparse
  10597. files like FAT32 while downloading.
  10598. * src/MultiFileAllocationIterator.{h, cc}
  10599. * test/MultiFileAllocationIteratorTest.cc
  10600. * src/FileEntry.{h, cc}
  10601. Removed unused _option.
  10602. * src/MultiDiskAdaptor.h
  10603. * test/MultiDiskAdaptorTest.cc
  10604. * src/DefaultPieceStorage.cc
  10605. Set the default value of --seed-ratio to 1.0.
  10606. If 0.0 is given, then seeding continues regardless of share ratio.
  10607. * src/version_usage.cc
  10608. * src/option_processing.cc
  10609. * src/BtSetup.cc
  10610. * doc/aria2c.1.txt
  10611. * doc/aria2c.1
  10612. Fixed: Selective download is not working in BitTorrent
  10613. * src/RequestGroup.cc
  10614. Introduced Sequence class. Use this instead of Util::unfoldRange()
  10615. * src/PieceStorage.h
  10616. * test/MockPieceStorage.h
  10617. * src/UnknownLengthPieceStorage.h
  10618. * src/DefaultPieceStorage.{h, cc}
  10619. * src/Metalink2RequestGroup.cc
  10620. * src/RequestGroup.cc
  10621. * src/Sequence.h
  10622. * test/SequenceTest.cc
  10623. * src/IntSequence.h
  10624. * src/message.h
  10625. * src/Util.{h, cc}
  10626. * test/UtilTest.cc
  10627. Added new function 'parse' to catch exception thrown by subclass's
  10628. parseArg
  10629. * src/OptionHandler.h
  10630. * src/OptionParser.cc
  10631. * src/NameMatchOptionHandler.h
  10632. * src/OptionHandlerImpl.h
  10633. * test/OptionHandlerTest.cc
  10634. Added IntegerRangeOptionHandler. Used for --listen-port and
  10635. --select-file. Now --listen-port accepts range of port.
  10636. * src/OptionHandlerFactory.cc
  10637. * src/version_usage.cc
  10638. * src/OptionHandlerImpl.h
  10639. * src/option_processing.cc
  10640. * src/BtSetup.cc
  10641. * src/PeerListenCommand.{h, cc}
  10642. * doc/aria2c.1.txt
  10643. * doc/aria2c.1
  10644. Implemented operator< for Exception class to provide easy way to print
  10645. exception stack trace.
  10646. * src/Exception.{h, cc}
  10647. * src/main.cc
  10648. * src/option_processing.cc
  10649. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10650. * src/version_usage.cc
  10651. (showVersion): Reworked.
  10652. (showUsage): Added examples.
  10653. Removed Hint for total length and file name.
  10654. * src/Metalink2RequestGroup.cc
  10655. * src/RequestGroup.{h, cc}
  10656. * src/HttpResponseCommand.cc
  10657. * src/FtpNegotiationCommand.cc
  10658. Now --follow-torrent and --follow-metalink option work properly.
  10659. * src/RequestGroup.cc
  10660. Updated man page
  10661. * doc/aria2c.1.txt
  10662. * doc/aria2c.1
  10663. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10664. Removed.
  10665. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  10666. Use Segment::operator==()
  10667. * src/HttpConnection.cc
  10668. * src/Segment.h
  10669. Updated usage
  10670. * src/version_usage.cc
  10671. Added EINTR treatment.
  10672. * src/SocketCore.cc
  10673. * src/AbstractDiskWriter.cc
  10674. Rewritten.
  10675. * src/Util.cc (rangedFileCopy)
  10676. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10677. Fixed typo.
  10678. * src/version_usage.cc
  10679. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10680. Implemented. Now -c option works fine.
  10681. * src/DefaultPieceStorage.cc (markPiecesDone)
  10682. * test/DefaultPieceStorageTest.cc
  10683. Removed.
  10684. * src/SegmentMan.{h, cc}
  10685. (markAllPiecesDone)
  10686. (markPieceDone)
  10687. Synchronized po files with
  10688. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  10689. * src/fr.po
  10690. * src/ru.po
  10691. * src/de.po
  10692. * src/ja.po
  10693. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10694. Added ifdef and some modifications to compile without BitTorrent,
  10695. Metalink, MessageDigest
  10696. support.
  10697. * src/PieceHashCheckIntegrityEntry.cc
  10698. * src/MetalinkEntry.h
  10699. * src/version_usage.cc
  10700. * src/main.cc
  10701. * src/DownloadEngine.{h, cc}
  10702. * src/Metalink2RequestGroup.cc
  10703. * src/Peer.cc
  10704. * src/RequestGroup.cc
  10705. * src/MetalinkHelper.cc
  10706. * test/DefaultPieceStorageTest.cc
  10707. * test/MetalinkPostDownloadHandlerTest.cc
  10708. * test/Metalink2RequestGroupTest.cc
  10709. Hide TOTAL SPD when all downloads complete.
  10710. * src/ConsoleStatCalc.cc
  10711. Log target system information.
  10712. * src/main.cc
  10713. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10714. Now --metalink-location accepts a comma-deliminated list of locations.
  10715. * src/MetalinkEntry.{h, cc}
  10716. * test/MetalinkEntryTest.cc
  10717. * src/version_usage.cc
  10718. * src/Metalink2RequestGroup.cc
  10719. * src/Xml2MetalinkProcessor.cc
  10720. * test/Xml2MetalinkProcessorTest.cc
  10721. * doc/aria2c.1.txt
  10722. * doc/aria2c.1
  10723. * src/Util.cc (toUpper)(toLower): Rewritten.
  10724. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10725. Added the ability to detect duplicate download entry which is about to
  10726. download the same file other RequestGroup is downloading.
  10727. * src/RequestGroup.cc
  10728. * src/HttpResponseCommand.cc
  10729. * src/FtpNegotiationCommand.cc
  10730. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10731. Recalculates download progress when loading a control file,
  10732. if the piece length of DownloadContext is different from the one saved
  10733. in the control file. Currently in-flight pieces are ignored.
  10734. * src/DefaultBtProgressInfoFile.cc
  10735. * test/DefaultBtProgressInfoFileTest.cc
  10736. * src/Util.{h, cc}
  10737. * test/UtilTest.cc
  10738. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10739. Do not rotate tiers in announce-list.
  10740. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  10741. AnnounceList::allTiersFailed() used instead to detect whether all
  10742. tiers are tried and failed.
  10743. * test/DefaultBtAnnounceTest.cc
  10744. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  10745. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  10746. * test/AnnounceListTest.cc
  10747. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  10748. clause. Catch RecoverableException instead of DlRetryEx instead.
  10749. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10750. Implemented checksum validation feature(1 checksum for each file)
  10751. The validation takes place after the download.
  10752. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  10753. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  10754. * src/CheckIntegrityCommand.cc: Changed log message.
  10755. * src/Metalink2RequestGroup.cc: Set checksum to
  10756. SingleFileDownloadContext.
  10757. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  10758. PieceHashCheckIntegrity class.
  10759. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  10760. PieceHashCheckIntegrity class.
  10761. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  10762. * src/IteratableValidator.h: New class.
  10763. * src/message.h
  10764. * src/CheckIntegrityEntry.{h, cc}
  10765. * src/IteratableChunkChecksumValidator.{h, cc}
  10766. * src/SingleFileDownloadContext.h
  10767. * src/DownloadCommand.cc
  10768. --allow-overwrite=true is no longer needed to check file integrity
  10769. before download in BitTorrent download.
  10770. * src/RequestGroup.cc (getInitialCommand)
  10771. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  10772. throws exception.
  10773. * src/RequestGroupMan.cc (getInitialCommands)
  10774. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10775. urlencode the given url inside Request::parseUrl(...)
  10776. * src/Request.{h, cc}
  10777. * src/Util.{h, cc}
  10778. * test/RequestTest.cc
  10779. Removed #!metalink3! notation support because it is deleted from
  10780. the metalink specification.
  10781. * src/Request.{h, cc}
  10782. * test/RequestTest.cc
  10783. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10784. Don't connect server before checking file integrity at startup, if
  10785. filesize and output file path are known.
  10786. * src/AbstractCommand.cc
  10787. * src/StreamFileAllocationEntry.cc
  10788. * src/Metalink2RequestGroup.cc
  10789. * src/RequestGroup.{h, cc}
  10790. * src/HttpResponseCommand.cc
  10791. * src/FtpNegotiationCommand.cc
  10792. Added DownloadFailureException. If it is thrown, RequestGroup should
  10793. halt.
  10794. * src/AbstractCommand.cc
  10795. * src/DownloadFailureException.h
  10796. * src/RequestGroup.cc
  10797. Catch RecoverableException, instead of DlAbortEx.
  10798. * src/RequestGroupMan.cc
  10799. * src/FillRequestGroupCommand.cc
  10800. * src/MetaFileUtil.cc
  10801. * src/IteratableChunkChecksumValidator.cc
  10802. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  10803. getGID())
  10804. * src/CheckIntegrityCommand.cc
  10805. * src/message.h
  10806. Print gid instead of idx.
  10807. * src/RequestGroupMan.cc
  10808. Removed exception throwers declaration.
  10809. * src/DirectDiskAdaptor.{h, cc}
  10810. * src/SocketCore.{h, cc}
  10811. * src/MultiDiskAdaptor.{h, cc}
  10812. * src/HttpConnection.{h, cc}
  10813. * src/HttpResponse.{h, cc}
  10814. * src/DiskAdaptor.{h, cc}
  10815. * src/CopyDiskAdaptor.{h, cc}
  10816. * src/MultiDiskAdaptor.{h, cc}
  10817. * src/HttpHeaderProcessor.{h, cc}
  10818. * src/AbstractSingleDiskAdaptor.{h, cc}
  10819. * src/Util.{h, cc}
  10820. * test/UtilTest.cc
  10821. * src/DefaultDiskWriter.{h, cc}
  10822. * src/FtpConnection.{h, cc}
  10823. * src/AbstractDiskWriter.{h, cc}
  10824. Removed duplicate code.
  10825. * src/StreamCheckIntegrityEntry.cc
  10826. Removed unnecessary include.
  10827. * src/DiskWriter.h
  10828. Included Exception.h
  10829. * src/option_processing.cc
  10830. Included 2 files and added doc
  10831. * src/TrackerWatcherCommand.cc
  10832. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  10833. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10834. Changed CheckIntegrityEntry interface so that it can define
  10835. the action when all the chunk checksums are valid.
  10836. * src/CheckIntegrityEntry.h
  10837. * src/StreamCheckIntegrityEntry.{h, cc}
  10838. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  10839. are valid, then aira2 goes to seeding mode. Sometimes it is better
  10840. to exit rather than doing seeding. So, it would be good to toggle this
  10841. behavior.
  10842. * src/CheckIntegrityCommand.cc
  10843. * src/AbstractCommand.cc
  10844. * src/RequestGroup.cc
  10845. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10846. Reflect the download length of in-flight pieces.
  10847. It makes the download length readout more precise.
  10848. * src/DefaultPieceStorage.{h, cc}
  10849. * test/DefaultPieceStorageTest.cc
  10850. * src/a2functional.h
  10851. * test/a2functionalTest.cc
  10852. Lower CPU load when --max-download-limit is used.
  10853. There is up and down in speed indicator when enabling
  10854. http-pipelining but a download goes well. I think the problem is that
  10855. because http-pipelining is enabled, DownloadCommand is created for
  10856. each segment and in its constructor, PeerStat::downloadStart() is
  10857. called. In PeerStat::downloadStart(), speed calculation object is
  10858. reseted, which makes download speed zero.
  10859. * src/DownloadCommand.cc
  10860. Rewritten using accumulate.
  10861. * src/RequestGroupMan.cc (calculateStat)
  10862. Code clearnup.
  10863. * src/FtpNegotiationCommand.cc
  10864. * src/HttpResponseCommand.cc
  10865. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10866. Fixed: Can not resume: aria2 reports download already finished.
  10867. * src/AbstractCommand.{h, cc}
  10868. * src/HttpResponseCommand.cc
  10869. * src/FtpNegotiateCommand.cc
  10870. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10871. Now a file is stored in the directory specified in .metalnk file
  10872. (file[@name]).
  10873. * src/Metalink2RequestGroup.cc
  10874. Create the directory structure when opening the file if it doesn't
  10875. exist.
  10876. * src/AbstractDiskWriter.cc
  10877. * src/Util.{h, cc}
  10878. * src/File.h
  10879. * test/UtilTest.cc
  10880. Removed file name comparison
  10881. * src/Metalink2RequestGroup.cc
  10882. * src/HttpResponseCommand.cc
  10883. Rewritten using Util::mkdirs()
  10884. * src/FileEntry.cc (setupDir)
  10885. * test/FileEntryTest.cc
  10886. Updated doc
  10887. * src/SingleFileDownloadContext.h
  10888. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10889. Now SleepCommand dispatches nextCommand when halt is requested.
  10890. It avoids a possible long wait after hitting CTRL-C.
  10891. * src/SleepCommand.{h, cc}
  10892. * src/RequestGroupAware.{h, cc}
  10893. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10894. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  10895. to open listen port, then remove the port number from the tracker
  10896. request.
  10897. * src/DefaultBtAnnounce.cc
  10898. * test/DefaultBtAnnounceTest.cc
  10899. * test/MockPieceStorage.h
  10900. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  10901. them more testable.
  10902. * src/DefaultBtAnnounce.{h, cc}
  10903. * src/DefaultBtContext.{h, cc}
  10904. * src/Util.{h, cc}
  10905. * test/DefaultBtAnnounceTest.cc
  10906. * test/DefaultBtContextTest.cc
  10907. * test/UtilTest.cc
  10908. Added 'B' to upload bytes readout.
  10909. * src/ConsoleStatCalc.cc
  10910. Now the listen port for BitTorrent download is opened when it is
  10911. needed.
  10912. * src/DownloadEngineFactory.cc
  10913. * src/BtSetup.{h, cc}
  10914. * src/PeerListenCommand.{h, cc}
  10915. Now an exception thrown while parsing tracker response is now logged.
  10916. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  10917. called, which means no retry is made in this case, assuming a tracker
  10918. has a problem.
  10919. * src/TrackerWatcherCommand.cc
  10920. Fixed: downloading a file whose length is unkown fails.
  10921. * src/DownloadCommand.cc
  10922. Simplified prepareForNextSegment()
  10923. * src/DownloadCommand.cc
  10924. Updated
  10925. * po/POTFILES.in
  10926. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10927. Re-implemented a file listing for Metalink, which was dropped while
  10928. http/ftp/torrent integration was being implemented.
  10929. * src/MetalinkHelper.{h, cc}: New class.
  10930. * test/MetalinkHelperTest.cc
  10931. * src/main.cc
  10932. * src/Metalink2RequestGroup.cc
  10933. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10934. Added the ability to display the detailed torrent file information.
  10935. Now -S option gives not only a file listing, but also total download
  10936. length, info hash, announce URI, piece length, the number of pieces,
  10937. and mode(single or multi-torrent).
  10938. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  10939. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  10940. KiB)
  10941. * test/UtilTest.cc
  10942. * src/main.cc
  10943. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10944. Added ftp://USER:PASSWD@Servername automatic parsing.
  10945. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  10946. _password. Recognize username and password in URI.
  10947. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  10948. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  10949. * src/RequestFactory.{h, cc}: Removed.
  10950. * src/AuthConfigFactory.{h, cc}: New class.
  10951. * src/FtpConnection.cc: Use AuthConfigFactory.
  10952. * src/HttpRequest.cc: Use AuthConfigFactory.
  10953. * test/HttpRequestTest.cc: Updated.
  10954. * test/RequestTest.cc: Updated.
  10955. * test/AuthConfigFactoryTest.cc: New class.
  10956. * test/RequestFactoryTest.cc: Removed.
  10957. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10958. Use RequestGroup::allDownloadFinished() to decide whether the control
  10959. file should be removed or saved.
  10960. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  10961. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  10962. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10963. Use File::renameTo()
  10964. * src/DefaultBtProgressInfoFile.cc
  10965. Added --no-file-allocation-limit command-line option.
  10966. * src/version_usage.cc
  10967. * src/option_processing.cc
  10968. * src/OptionHandlerFactory.cc
  10969. * src/RequestGroup.{h, cc}
  10970. * src/BtCheckIntegrityEntry.cc
  10971. * src/StreamCheckIntegrityEntry.cc
  10972. * src/prefs.h
  10973. * doc/aria2c.1.txt
  10974. * doc/aria2c.1
  10975. Now prealloc is the default value for --file-allocation option.
  10976. * src/version_usage.cc
  10977. * src/option_processing.cc
  10978. * doc/aria2c.1.txt
  10979. * doc/aria2c.1
  10980. Don't URL-encode user-agent.
  10981. * src/HttpRequest.cc
  10982. Updated translations
  10983. * po/LINGUAS: Added nl for Dutch translation.
  10984. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  10985. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  10986. * po/POTFILES.in: Updated.
  10987. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10988. Added the ability to recognize url-list in a torrent file.
  10989. The retrieved URLs are attached to the corresponding FileEntry.
  10990. * src/DefaultBtContext.{h, cc}
  10991. * src/FileEntry.{h, cc}
  10992. * test/DefaultBtContextTest.cc
  10993. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10994. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  10995. after the download finishes.
  10996. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10997. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  10998. the data smaller than block length.
  10999. A block length can be specified by constructor's argument.
  11000. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  11001. Get a missing piece in the range of given FileEntry. This function is
  11002. not used in the program yet.
  11003. * src/Util.h: Added some macros.
  11004. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11005. Added HTTP/1.1 keep alive and pipelining support.
  11006. See --enable-http-keep-alive and --enable-http-pipelining option.
  11007. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  11008. Segment.
  11009. * src/HttpDownloadCommand.{h, cc}
  11010. * src/OptionHandlerFactory.cc
  11011. * src/HttpConnection.{h, cc}
  11012. * src/version_usage.cc
  11013. * src/HttpInitiateConnectionCommand.cc
  11014. * src/FtpInitiateConnectionCommand.cc
  11015. * src/Segment.h
  11016. * src/HttpRequestCommand.{h, cc}
  11017. * src/option_processing.cc
  11018. * src/prefs.h
  11019. * src/HttpResponseCommand.cc
  11020. * src/SegmentMan.{h, cc}
  11021. * src/FtpNegotiateCommand.cc
  11022. * src/HttpProxyResponseCommand.cc
  11023. * src/Request.cc
  11024. * src/HttpRequest.cc
  11025. * src/DownloadCommand.cc
  11026. * test/HttpRequestTest.cc
  11027. * test/RequestTest.cc
  11028. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11029. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  11030. finished.
  11031. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11032. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  11033. catching it inside the method.
  11034. When no file entry is found in a metalink without querying user
  11035. preferences, throw the exception with the error message that suggests
  11036. metalink file is probably broken.
  11037. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  11038. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11039. Fixed the bug that prevents remote Metalink/Torrent file from begin
  11040. processed.
  11041. * src/RequestGroupMan.cc (removeStoppedGroup)
  11042. Added debug message.
  11043. * src/BtPostDownloadHandler.cc
  11044. * src/MetalinkPostDownloadHandler.cc
  11045. * src/PostDownloadHandler.{h, cc}
  11046. * src/RequestGroup.cc
  11047. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11048. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  11049. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11050. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  11051. stops and there are any unfinished or in-progress downloads.
  11052. Added the legend of "stat".
  11053. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11054. Throw exception when chunck checksum verification fails.
  11055. * src/DownloadCommand.cc (validatePieceHash): New function.
  11056. * src/PiecedSegment.{h, cc} (clear): New function.
  11057. * src/GrowSegment.{h, cc} (clear): New function.
  11058. * src/Segment.h (clear): New function.
  11059. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  11060. * test/SegmentTest.cc
  11061. * test/GrowSegmentTest.cc
  11062. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11063. Do not send referer when redirected.
  11064. * src/Request.cc (redirectUrl)
  11065. * test/RequestTest.cc
  11066. * test/HttpRequestTest.cc
  11067. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11068. Implemented BitTorrent/http/ftp integrated download.
  11069. I've rewritten lots of files and now some headers have forward
  11070. class declarations to reduce compile time.
  11071. The implementation is extremely alpha stage, I recommend to use this
  11072. for testing purpose only.
  11073. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11074. Fixed the compilation error on 64bit platform.
  11075. * test/HttpHeaderProcessorTest.cc
  11076. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11077. Merged Ross's patch that fixes compilation problem in MinGW
  11078. * test/DefaultBtProgressInfoFileTest.cc
  11079. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11080. Updated fr.po by sebone
  11081. * po/fr.po
  11082. Updated man page.
  11083. * doc/aria2c.1.txt
  11084. * Release 0.11.3
  11085. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11086. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  11087. failure in Metalink.
  11088. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11089. Automatically save *.aria2 control file of http/ftp download in every
  11090. 60 seconds.
  11091. * src/AutoSaveCommand.{h, cc}: New class.
  11092. * src/TimeBasedCommand.{h, cc}: New class.
  11093. * src/DownloadEngineFactory.cc (newConsoleEngine)
  11094. Disable parameterized URI support by default. Added -P option to
  11095. enable the feature.
  11096. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  11097. * src/OptionHandlerFactory.cc
  11098. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  11099. Updated Japanese translation.
  11100. * po/ja.po
  11101. Updated man page.
  11102. * doc/aria2c.1.txt
  11103. * Release 0.11.3-rc
  11104. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11105. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  11106. it is successful, then renamed to *.aria2.
  11107. This prevents *.aria2 file from being truncated or corrupted when
  11108. file system becomes out of space.
  11109. * src/DefaultBtProgressInfoFile.cc (save)
  11110. * src/SegmentMan.cc (save)
  11111. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  11112. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11113. Reduced the fragmentation of bitfield in http/ftp download.
  11114. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  11115. * test/BitfieldManTest.cc
  11116. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11117. Added the ability to disable segmented download in .metalink.
  11118. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  11119. 'url' tag.
  11120. * src/MetalinkEntry.{h, cc}
  11121. * src/RequestResource.{h, cc}
  11122. * src/MetalinkRequestInfo.cc
  11123. * src/Xml2MetalinkProcessor.cc
  11124. * test/Xml2MetalinkProcessorTest.cc
  11125. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11126. Added parameterized URI support.
  11127. * src/main.cc: -Z option added.
  11128. * src/OptionHandlerFactory.cc
  11129. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  11130. * src/PStringDatum.h: New class.
  11131. * src/PStringSegment.{h,cc}: New class.
  11132. * src/PStringNumLoop.h: New class.
  11133. * src/PStringSelect.h: New class.
  11134. * src/NumberDecorator.h: New class.
  11135. * src/FixedWidthNumberDecorator.h: New class.
  11136. * src/AlphaNumberDecorator.h: New class.
  11137. * src/PStringVisitor.h: New class.
  11138. * src/PStringBuildVisitor.{h,cc}: New class.
  11139. * src/ParameterizedStringParser.{h,cc}: New class.
  11140. * src/Util.{h,cc}
  11141. (isNumber): New function.
  11142. (isLowercase): New function.
  11143. (isUppercase): New function.
  11144. (alphaToNum): New function.
  11145. * test/ParameterizedStringParserTest.cc: New class.
  11146. * test/AlphaNumberDecoratorTest.cc: New class.
  11147. * test/PStringBuildVisitorTest.cc: New class.
  11148. * test/UtilTest.cc
  11149. (testIsNumber): New function.
  11150. (testIsLowercase): New function.
  11151. (testIsUppercase): New function.
  11152. (testAlphaToNum): New function.
  11153. Added '\n' after the error message
  11154. * src/RequestInfo.h (printDownloadAbortMessage)
  11155. Added auto file renaming feature in http(s)/ftp download.
  11156. * src/main.cc: Added --auto-file-renaming command-line option.
  11157. * src/OptionHandlerFactory.cc
  11158. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  11159. * src/RequestGroup.{h, cc}
  11160. (shouldCancelDownloadForSafety): Rewritten
  11161. (tryAutoFileRenaming): New function.
  11162. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  11163. * src/HttpResponseCommand.cc
  11164. (executeInternal): Removed the call to RequestGroupMan::
  11165. isSameFileBeingDownloaded()
  11166. * src/FtpNegotiateCommand.cc
  11167. (recvSize): Removed the call to RequestGroupMan::
  11168. isSameFileBeingDownloaded()
  11169. * test/RequestGroupTest.cc: New class.
  11170. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11171. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  11172. IO.
  11173. * src/DefaultBtProgressInfoFile.cc
  11174. * src/MetaFileUtil.cc
  11175. * src/SimpleLogger.cc
  11176. * src/SegmentMan.cc
  11177. * src/Util.cc
  11178. * src/Platform.cc
  11179. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11180. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  11181. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11182. Avoid sparse files if possible, because VFAT32 doesn't support it.
  11183. * src/DefaultDiskWriter.cc (initAndOpenFile)
  11184. Fixed the bug that prevents file allocation is not done when
  11185. dowloading multi-torrent file.
  11186. * src/AbstractDiskWriter.cc (openFile)
  11187. Increase the maximum number of -j option from 15 to 45.
  11188. * src/OptionHandlerFactory.cc (createOptionHandlers)
  11189. Added fr.po, thanks to Charles Landemaine.
  11190. * po/fr.po
  11191. * po/LINGUAS
  11192. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  11193. gcc 3.4.4 support:
  11194. * src/DefaultBtContext.cc: int32_t -> int
  11195. * src/main.cc: int -> int32_t, int32_t -> int
  11196. * src/messageDigest.h: uint32_t -> unsigned int
  11197. * src/NameResolver.h: int32_t -> int
  11198. * src/PeerConnection.cc: int -> int32_t
  11199. * src/SpeedCalc.cc: int32_t -> int
  11200. * src/TrackerUpdateCommand.h: int -> int32_t
  11201. * src/Util.cc: int32_t -> int
  11202. * src/Util.h: int32_t -> int
  11203. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  11204. * test/AnnounceListTest.cc: int -> int32_t
  11205. * test/ChunkedEncodingTest.cc: int -> int32_t
  11206. * test/DataTest.cc: int -> int32_t
  11207. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  11208. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  11209. * test/DefaultPieceStorageTest.cc: int -> int32_t
  11210. * test/FeatureConfigTest.cc: int -> int32_t
  11211. * test/MetalinkEntryTest.cc: int -> int32_t
  11212. * test/MockBtRequestFactory.h: int -> int32_t
  11213. * test/MockPieceStorage.h: int -> int32_t
  11214. * test/OptionTest.cc: int -> int32_t
  11215. * test/RequestTest.cc: int -> int32_t
  11216. * test/SegmentManTest.cc: int -> int32_t
  11217. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  11218. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  11219. Move sleep functions to Util class:
  11220. * src/Util.cc
  11221. (sleep): New function.
  11222. (usleep): New function.
  11223. * src/DownloadCommand.cc: sleep -> Util::sleep
  11224. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  11225. MinGW build enhancements. The following files are added:
  11226. * src/timegm.{c,h}
  11227. Changes to support the above new files:
  11228. * configure.ac
  11229. * src/Makefile.am
  11230. * src/a2time.h
  11231. * src/Util.cc:
  11232. * src/strptime.c: Added support for %Z option.
  11233. Fixed MinGW non-blocking bug.
  11234. * src/SocketCore.cc
  11235. * src/HttpRequestCommand.cc
  11236. Miscellenous build fixes/enhancements.
  11237. * configure.ac: Added summary report.
  11238. * src/Platform.h: Tweaked #include's.
  11239. * src/a2netcompat.h: Tweaked #include's.
  11240. * src/strptime.h: Tweaked #include's.
  11241. * src/gai_strerror.c: Tweaked #include's.
  11242. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  11243. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  11244. * src/gettimeofday.h: Added HAVE_CONFIG_H
  11245. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11246. Increased the initial connection size in BitTorrent download to 40.
  11247. * src/BtRuntime.h
  11248. Added the usage message of --peer-id-prefix option.
  11249. * src/main.cc
  11250. * Release 0.11.2
  11251. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11252. MessageDigestHelper is introduced in order to simplify the use
  11253. of message digest. Removed repeated code.
  11254. The message digest algorithm is now specified by string, like "sha1",
  11255. "md5".
  11256. * src/messageDigest.{h, cc}
  11257. * src/MessageDigestHelper.{h, cc}: New class.
  11258. * src/DefaultPieceStorage.cc
  11259. * src/DefaultBtContext.{h, cc}
  11260. (computeFastSet): New function.
  11261. (setInfoHash): Added for unit testing.
  11262. (setNumPieces): Added for unit testing.
  11263. * src/DefaultBtInteractive.cc
  11264. * src/BtPieceMessage.cc
  11265. * src/Peer.cc
  11266. * src/Checksum.h
  11267. * src/message.h
  11268. * src/IteratableChecksumValidator.h
  11269. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  11270. inside it.
  11271. * src/SegmentMan.{h, cc}
  11272. (checkIntegrity): Removed.
  11273. * src/IteratableChunkChecksumValidator.{h, cc}
  11274. * src/Util.h
  11275. (sha1Sum): Removed.
  11276. (simpleMessageDigest): Removed.
  11277. (fileChecksum): Removed.
  11278. (computeFastSet): Removed.
  11279. * src/ShaVisitor.cc
  11280. * src/ChunkChecksum.h
  11281. * src/DownloadCommand.cc
  11282. Removed messageDigest virtual functions.
  11283. * src/MultiDiskAdaptor.{h, cc}
  11284. * src/DiskAdaptor.h
  11285. * src/ByteArrayDiskWriter.h
  11286. * src/DiskWriter.h
  11287. * src/DiskAdaptorWriter.h
  11288. * src/AbstractSingleDiskAdaptor.{h, cc}
  11289. * src/AbstractDiskWriter.{h, cc}
  11290. Fixed comilation error when message digest is disabled.
  11291. * src/MetalinkEntry.{h, cc}
  11292. * src/MetalinkRequestInfo.cc
  11293. Removed srandom and random.
  11294. * src/SimpleRandomizer.h
  11295. Added size() virtual function to DiskAdaptor
  11296. * src/MultiDiskAdaptor.h
  11297. Fixed the bug that causes that files are not opened correctly in
  11298. multi-file torrent.
  11299. * src/TorrentRequestInfo.cc
  11300. * src/MultiDiskAdaptor.cc
  11301. Added SHA256 support
  11302. * src/messageDigest.cc
  11303. * src/Xml2MetalinkProcessor.cc
  11304. Show supported message digest algorithms
  11305. * src/main.cc
  11306. Updated contact info.
  11307. * src/main.cc
  11308. Applied Ross's patch
  11309. * src/a2netcompat.h
  11310. * src/main.cc
  11311. Fixed the bug that prevents a remote metalink from not being processed
  11312. even if '-o foo.metalink' is specified.
  11313. * src/MetalinkRequestInfo.cc
  11314. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11315. Merged Dan's patch:
  11316. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  11317. Use va_copy to avoid core dump on amd64:
  11318. * src/SimpleLogger.cc
  11319. Updated contact info.
  11320. * src/main.cc
  11321. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  11322. digest is not available.
  11323. * src/MetalinkEntry.h
  11324. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11325. Make a2netcompat.h include a2io.h to fix compilation error:
  11326. * src/a2netcompat.h
  11327. * src/SocketCore.cc: Removed include of a2io.h
  11328. * src/Util.cc: Removed include of a2io.h
  11329. Gather time related functions to a2time.h:
  11330. * src/a2time.h: New file.
  11331. * src/DefaultPeerStorage.cc
  11332. * src/SimpleLogger.cc
  11333. * src/Util.{h, cc}
  11334. * src/SimpleRandomizer.h
  11335. * src/TimeA2.{h,cc}
  11336. * src/DownloadCommand.cc
  11337. * src/main.cc
  11338. Removed #ifdef __MINGW32__ since gai_strerror is included in
  11339. a2netcompat.h:
  11340. * src/NameResolver.cc
  11341. Fixed compilation error without openssl:
  11342. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  11343. Added default block to suppress compiler warnings:
  11344. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  11345. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  11346. MinGW build enhancements. The following files are added:
  11347. * src/gai_strerror.{c,h}
  11348. * src/gettimeofday.{c,h}
  11349. Changes to support the above new files:
  11350. * configure.ac
  11351. * src/Makefile.am
  11352. * src/a2netcompat.h
  11353. * src/TimeA2.cc
  11354. * src/DefaultPeerStorage.cc
  11355. * src/NameResolver.cc: removed mingw_strerror() function.
  11356. * src/SocketCore.cc: removed mingw_strerror() function.
  11357. Miscellaneous MinGW build fixes.
  11358. * src/a2io.h: Use _lseeki64() instead of lseek()
  11359. * src/common.h
  11360. * src/DefaultFileAllocator.cc
  11361. * src/GlowFileAllocator.cc
  11362. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  11363. * src/NameResolver.cc
  11364. (callback): Changed int32_t to int.
  11365. (resolve): Changed int32_t to int.
  11366. * src/Platform.cc
  11367. * src/Platform.h
  11368. * test/MultiDiskWriterTest.cc
  11369. * test/PeerMessageUtilTest.cc
  11370. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  11371. Other enhancements and fixes.
  11372. * src/HttpRequestCommand.cc
  11373. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  11374. * src/SocketCore.cc:
  11375. (error): New function to abstract errno/WSAGetLastError().
  11376. (errorMsg): New function to abstract errno/WSAGetLastError().
  11377. (initiateSecureConnection): Added more detailed error reporting.
  11378. * src/SocketCore.h: Added private variable blocking, to allow
  11379. proper handling of OpenSSL psuedo-errors.
  11380. * src/message.h
  11381. (EX_SSL_INIT_FAILURE)
  11382. (EX_SSL_IO_ERROR)
  11383. (EX_SSL_PROTOCOL_ERROR)
  11384. (EX_SSL_UNKNOWN_ERROR)
  11385. (EX_SSL_CONNECT_ERROR)
  11386. (EX_SOCKET_BLOCKING)
  11387. (EX_SOCKET_NONBLOCKING)
  11388. (EX_SOCKET_UNKNOWN_ERROR)
  11389. * src/Util.cc
  11390. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  11391. reserved name.
  11392. (httpGMT): Fixed typo.
  11393. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11394. Merged Ross's win32 patch(manually)
  11395. In the course of merging, following files are added.
  11396. * src/strptime.{h,c}
  11397. * src/libgen.{h,c}
  11398. * src/inet_aton.{h,c}
  11399. * src/Platform.{h,cc}
  11400. * src/localtime_r.{h,c}
  11401. * src/getaddrinfo.{h,c}
  11402. I've gethered network related things, and put them to following file:
  11403. * src/a2netcompat.h
  11404. Also io related things are put to following file:
  11405. * src/a2io.h
  11406. Changed %lld to %s because mingw32 doesn't recognize %lld.
  11407. * src/message.h
  11408. (MSG_ALLOCATION_COMPLETED)
  11409. (EX_TOO_LARGE_FILE)
  11410. (EX_SIZE_MISMATCH)
  11411. (EX_FILE_OFFSET_OUT_OF_RANGE)
  11412. (EX_INVALID_CHUNK_CHECKSUM)
  11413. (EX_INVALID_RANGE_HEADER)
  11414. * src/FileAllocationCommand.cc
  11415. * src/HttpResponse.cc
  11416. * src/RequestGroup.cc
  11417. * src/MultiDiskAdaptor.cc
  11418. * src/OptionHandlerImpl.h
  11419. * src/HttpResponseCommand.cc
  11420. * src/FtpNegotiateCommand.cc
  11421. * src/IteratableChecksumValidator.cc
  11422. * src/SegmentMan.cc
  11423. * src/ChunkChecksumValidator.cc
  11424. Added Randomizer::getRandomNumber(long int)
  11425. * src/Randomizer.h (getRandomNumber)
  11426. * src/SimpleRandomizer.h (getRandomNumber)
  11427. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  11428. * src/Util.cc (randomAlpha): Use this new function.
  11429. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11430. Converted int's to in32_t. long long int's are also converted to
  11431. int64_t
  11432. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11433. Fixed the bug that prevents cookies from being sent to the server
  11434. if the domain of cookie is FQDN and starts with ".".
  11435. * src/Cookie.cc (match)
  11436. To add the ability to change peer id.
  11437. * src/DefaultBtContext.h
  11438. (_peerIdPrefix): New variable
  11439. (setPeerIdPrefix): New function.
  11440. * src/torrentRequestInfo.cc
  11441. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  11442. DefaultBtContext.
  11443. * src/main.cc (main): Added peer-id-prefix command-line option.
  11444. The usage message is not added yet.
  11445. * src/DefaultBtContext.cc
  11446. (generatePeerId): Use _peerIdPrefix.
  11447. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  11448. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11449. Fixed the bug that prevents filename in content-disposition from
  11450. being retrieved when filename is not quoted.
  11451. * src/Util.cc (getContentDispositionFilename)
  11452. Fixed the bug that causes infinate loop and memory leak when file open
  11453. operation failed.
  11454. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11455. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11456. Fixed the bug that causes segfault when all URIs specified are
  11457. unsupported.
  11458. * src/RequestGroupMan.cc (getInitialCommands)
  11459. Check if RequestGroup::createNextCommand() returns empty list of
  11460. commands.
  11461. * src/RequestGroup.cc (createNextCommand)
  11462. Change log level from info to error so that users can notice that
  11463. an error occurred.
  11464. Fixed the bug that causes segfault when a zero-sized file is
  11465. downloaded.
  11466. * src/BitfieldMan.cc (isAllBitSet)
  11467. Return true if bitfieldLength is 0.
  11468. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11469. * src/main.cc
  11470. (showUsage): Added 3 usage examples for metalink download.
  11471. Replace MetalinkChunkChecksum with ChunkChecksum.
  11472. * src/MetalinkChunkChecksum.h: Removed.
  11473. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  11474. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  11475. * src/Xml2MetalinkProcessor.cc
  11476. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  11477. * src/MetalinkRequestInfo.cc (execute)
  11478. * Release 0.11.1
  11479. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11480. Reads URIs from stdin when "-i -" is specified.
  11481. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  11482. * src/UriListParser.h, src/UriListParser.cc: New class.
  11483. * src/StreamUriListParser.h: New class.
  11484. * src/FileUriListParser.h: New class.
  11485. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  11486. instead of UriFileListParser.
  11487. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11488. Made console readout more readable.
  11489. * src/ConsoleDownloadEngine.cc (sendStatistics)
  11490. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11491. Fix the bug that causes -s option not to work.
  11492. * src/main.cc (main)
  11493. * src/a2algo.h: New file.
  11494. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11495. Create directory structure specified in metalink file.
  11496. * src/RequestGroup.h, src/RequestGroup.cc
  11497. (initAndOpenFile): Create a directory to store files if it does not
  11498. exist.
  11499. (getDir): New function.
  11500. Added ETA and download speed for an individual file to readout.
  11501. * src/ConsoleDownloadEngine.cc (sendStatistics)
  11502. * src/RequestGroup.h
  11503. (calculateDownloadSpeed): New function.
  11504. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11505. Made -S option work with metalink file and provided selective download
  11506. to metalink.
  11507. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  11508. (filename): Removed.
  11509. (file): New variable.
  11510. (size): Removed.
  11511. (operator=): Updated.
  11512. (getPath): New function.
  11513. (getLength): New function.
  11514. (toFileEntry): New function.
  11515. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  11516. (execute): Use toStream.
  11517. (showFileEntry): Removed.
  11518. * src/MetalinkRequestInfo.h
  11519. (targetFiles): New variable.
  11520. (setTargetFiles): New variable.
  11521. * src/MetalinkRequestInfo.cc
  11522. (execute): Added the ability to print file information included in
  11523. a metalink file.
  11524. Added selective download mode to metalink.
  11525. * src/main.cc
  11526. (showUsage): Updated to denote that -S and --select-file options are
  11527. applicable to metalink.
  11528. * src/FileEntry.h
  11529. (operator=): New function.
  11530. (getBasename): New function.
  11531. (getDirname): New function.
  11532. * src/Util.h, src/Util.cc
  11533. (toStream): New function.
  11534. * src/Xml2MetalinkProcessor.cc: Updated.
  11535. Made aria2 work with metalink with directory structure.
  11536. * src/File.h, src/File.cc
  11537. (getBasename): New function.
  11538. (getDirname): New function.
  11539. * src/RequestGroup.h, src/RequestGroup.cc
  11540. (_topDir): New variable.
  11541. (setTopDir): New function.
  11542. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  11543. Rewrote HTTP header parsing with stringstream.
  11544. * src/HttpConnection.h, src/HttpConnection.cc
  11545. (HttpRequestEntry): New class.
  11546. (headerBuf): Removed.
  11547. (headerBufLength): Removed.
  11548. (outstandingHttpRequests): Now its element type is
  11549. HttpRequestEntryHandle.
  11550. (findEndOfHeader): Removed.
  11551. (receiveResponse): Rewritten.
  11552. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  11553. Updated doc for -j option to notice that it should be used with -i
  11554. option.
  11555. * src/main.cc (showUsage)
  11556. Removed unused classes.
  11557. * src/RequestInfo.h
  11558. (FileInfo): Removed.
  11559. (checksum): Removed.
  11560. (fileInfo): Removed.
  11561. (setChecksum): Removed.
  11562. (getChecksum): Removed.
  11563. (getFileInfo): Removed.
  11564. Use ISO units.
  11565. * src/ConsoleDownloadEngine.cc
  11566. * src/TorrentConsoleDownloadEngine.cc
  11567. * src/Util.cc (abbrevSize)
  11568. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11569. Added the default listening ports to the help message.
  11570. * src/main.cc (showUsage)
  11571. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11572. Reduce the number of calls to gettimeofday to lower CPU load.
  11573. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  11574. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  11575. * src/Peer.h (calculateUploadSpeed): New function.
  11576. (calculateDownloadSpeed): New function.
  11577. * src/DefaultPeerStorage.cc
  11578. (CalculateStat): Added _now variable.
  11579. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  11580. and Peer::calculateUploadSpeed(const struct timeval&)
  11581. Drop connection if no request or piece message is exchanged in
  11582. a certain interval.
  11583. * src/DefaultBtInteractive.h
  11584. (btRuntime): New variable.
  11585. (inactiveCheckPoint): New variable.
  11586. (checkActiveInteraction): New function.
  11587. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  11588. request or piece message is received.
  11589. (checkActiveInteraction): New function.
  11590. (doInteractionProcessing): Call checkActiveInteraction.
  11591. Fixed the bug that causes remote Metalink and Torrent files are not
  11592. processed.
  11593. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  11594. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11595. Changed format of log file.
  11596. * src/SimpleLogger.cc
  11597. * Release 0.11.0
  11598. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11599. * src/AbstractCommand.cc
  11600. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  11601. MSG_MAX_TRY from error to info.
  11602. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  11603. * src/message.h
  11604. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  11605. (MSG_DOWNLOAD_ABORTED): Added %s.
  11606. (MSG_RESTARTING_DOWNLOAD): Added %s.
  11607. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  11608. * src/PeerAbstractCommand.cc
  11609. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  11610. * src/Request.h
  11611. (cookieBox): Made ShardHandle.
  11612. * src/RequestGroup.h, src/RequestGroup.cc
  11613. (createNextCommandWithAdj): New function.
  11614. * src/FileAllocationCommand.cc
  11615. (executeInternal): Use createNextCommandWithAdj().
  11616. * src/CheckIntegrityCommand.cc
  11617. (executeInternal): Use createNextCommandWithAdj().
  11618. Added --load-cookies command-option.
  11619. * src/OptionHandlerFactory.cc
  11620. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  11621. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  11622. Now aria2 can handle cookie's expiration date.
  11623. * src/Cookie.h (expires): Changed its type to time_t.
  11624. * src/main.cc: Added --load-cookies command-line option.
  11625. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  11626. * src/Util.h, src/Util.cc (httpGMT): New function.
  11627. * src/Request.cc (Request): Initialize cookieBox using
  11628. CookieBoxFactory.
  11629. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  11630. * src/CookieParser.h, src/CookieParser.cc: New class.
  11631. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  11632. * src/HttpResponseCommand.cc
  11633. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  11634. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  11635. download.
  11636. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11637. Added -j command-line option.
  11638. * src/OptionHandlerFactory.cc (createOptionHandlers)
  11639. * src/main.cc
  11640. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  11641. Rewritten using stringstream.
  11642. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  11643. Rewritten using stringstream.
  11644. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11645. Make download size shown in MB, KB.
  11646. * src/ConsoleDownloadEngine.h (sendStatistics)
  11647. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  11648. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11649. Accept incoming connections if download rate is low.
  11650. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  11651. (_lowestSpeedLimit): New variable.
  11652. (setLowestSpeedLimit): New function.
  11653. (execute): Accept incoming connections if download rate is low.
  11654. MAX_PEERS is ignored in this case.
  11655. Disable PREF_OUT in multiple concurrent download:
  11656. * src/RequestGroup.h, src/RequestGroup.cc
  11657. (setUserDefinedFilename): New function.
  11658. * src/DownloadEngineFactory.cc
  11659. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  11660. concurrent download.
  11661. * src/DefaultSegmentManFactory.cc
  11662. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  11663. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11664. RequestGroup::getNextCommand() was renamed to createNextCommand().
  11665. Added its overloaded method.
  11666. * src/RequestGroup.h
  11667. (_numConcurrentCommand): New variable.
  11668. (setNumConcurrentCommand): New function.
  11669. * src/RequestGroup.cc
  11670. Abort download if same file is being downloaded concurrently.
  11671. * src/RequestGroup.h, src/RequestGroupMan.cc
  11672. (isSameFileBeingDownloaded): New function.
  11673. * src/HttpResponseCommand.cc (executeInternal)
  11674. * src/FtpNegotiateCommand.cc (recvSize)
  11675. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  11676. * main.cc: Added help message for -i option.
  11677. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11678. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  11679. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  11680. * src/MetalinkEntry.h
  11681. (checksum): Changed to ChecksumHandle
  11682. * src/MetalinkRequestInfo.cc
  11683. (checksum): Changed to ChecksumHandle
  11684. * src/File.cc
  11685. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  11686. * src/common.h
  11687. (DIR_OPEN_MODE): New definition
  11688. * src/RequestGroup.cc
  11689. (prepareForNextAction): Added an argument.
  11690. * src/message.h
  11691. (MSG_GOOD_CHECKSUM): New definition
  11692. (MSG_BAD_CHECKSUM): New definition
  11693. * src/HttpResponseCommand.cc
  11694. (handleDefaultEncoding): Continue download sequence in new
  11695. non-segmented download.
  11696. * src/FileAllocationEntry.h
  11697. (_nextDownloadCommand): New variable.
  11698. * src/DownloadCommand.cc
  11699. (prepareForNextSegment): Create ChecksumCommand if checksum is
  11700. available.
  11701. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  11702. * src/IteratableChecksumValidator.h,
  11703. src/IteratableChecksumValidator.cc: New class.
  11704. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  11705. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11706. Change file mode to 666:
  11707. * src/common.h (OPEN_MODE): New definition.
  11708. * src/File.cc
  11709. * src/Util.cc
  11710. * src/Directry.cc
  11711. * src/AbstractDiskWriter.cc
  11712. Change the level of log message "download aborted" to debug:
  11713. * src/PeerAbstractCommand.cc (execute)
  11714. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  11715. * src/TrackerWatcherCommand.cc
  11716. (createCommand): Sleep some seconds after request failed.
  11717. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  11718. then abort tracker request.
  11719. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11720. * Added the simultaneous download feature.
  11721. * src/main.cc: Print "Exception caught: " when exception is caught.
  11722. Use CUIDCounter instead of BtRuntime::getNewCuid():
  11723. * src/ActivePeerConnectionCommand.cc
  11724. * src/PeerInteractionCommand.cc
  11725. * src/BtRuntime.h
  11726. (cuidCounter): Removed.
  11727. (getNewCuid): Removed.
  11728. * src/DownloadEngineFactory.cc
  11729. * src/PeerListenCommand.cc
  11730. * src/TrackerUpdateCommand.cc
  11731. * src/PeerInitiateConnectionCommand.cc
  11732. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11733. * src/PeerAbstractCommand.cc
  11734. (onAbort): Call PeerStorage::returnPeer()
  11735. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  11736. (incomingPeers): New variable.
  11737. (addIncomingPeer): New function.
  11738. (returnPeer): New function.
  11739. (onErasingPeer): New function.
  11740. (addPeer): push_back -> push_front
  11741. (getActivePeers): Rewritten.
  11742. (calculateStat): Rewritten.
  11743. * src/PeerStorage.h
  11744. (TransferStat::copy): New function.
  11745. (TransferStat::TransferStat): New function.
  11746. (TransferStat::operator=): New function.
  11747. (addIncomingPeer): New function.
  11748. (returnPeer): New function.
  11749. * src/PeerListenCommand.cc
  11750. (execute): Use PeerStorage::addIncomingPeer() instead of
  11751. Peer::addPeer().
  11752. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11753. Connect to a peer actively when download speed is lower than specified
  11754. speed in torrent download:
  11755. * src/ActivePeerConnectionCommand.h: New class.
  11756. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11757. * src/HttpRequest.cc (createRequest): url-encode user-agent
  11758. * src/main.cc: Fixed the bug that prevents download if .netrc
  11759. doesn't exist.
  11760. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11761. To cache resolved hostname:
  11762. * src/AbstractCommand.h, src/AbstractCommand.cc
  11763. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  11764. Added dns cache.
  11765. * src/FtpInitiateConnectionCommand.cc
  11766. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  11767. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  11768. NameResolver working without ares.
  11769. * src/TorrentRequestInfo.cc
  11770. (execute): Don't cache dns in torrent download.
  11771. * src/HttpInitiateConnectionCommand.cc
  11772. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  11773. * src/DNSCache.h: New class.
  11774. * src/UrlRequestInfo.cc
  11775. (execute): Use dns cache.
  11776. In http request, suppress port number in http request header if port
  11777. is 80 or 443:
  11778. * src/HttpRequest.cc (getHostText): Suppress port number in http
  11779. request header if port is 80 or 443.
  11780. (createProxyRequest): Allways send port number.
  11781. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11782. To add the command-line option which disables netrc support:
  11783. * src/OptionHandlerFactory.cc
  11784. (createOptionHandlers): Added PREF_NO_NETRC.
  11785. * src/main.cc: Added -n option.
  11786. * src/prefs.h (PREF_NO_NETRC): New definition.
  11787. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  11788. V_TRUE.
  11789. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  11790. is V_FALSE. This may get configurable in the future release.
  11791. To clear peer's error status by time basis:
  11792. * src/PeerAbstractCommand.cc
  11793. (onAbort): Call Peer::startBadCondition().
  11794. * src/Peer.h, src/Peer.cc
  11795. (error): Removed.
  11796. (_badConditionStartTime): New variable.
  11797. (_badConditionInterval): New variable. Initialized to 10 seconds.
  11798. (startBadCondition): New function.
  11799. (isGood): New function.
  11800. * src/DefaultPeerStorage.cc
  11801. (addPeer): Use Peer::isGood().
  11802. (FindFinePeer): Use Peer::isGood().
  11803. Always include port number in http request header:
  11804. * src/HttpRequest.cc (getHostText): Always include port number in
  11805. http request header.
  11806. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11807. To the ability to read options from a config file:
  11808. * src/main.cc: Command-line parameter validation is delegated to
  11809. OptionHandler class.
  11810. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  11811. * src/Option.h, src/Option.cc (clear): New function.
  11812. * src/OptionParser.h, src/OptionParser.cc: New class.
  11813. * src/OptionHandler.h: New class.
  11814. * src/NameMatchOptionHandler.h: New class.
  11815. * src/OptionHandlerImpl.h: New classes.
  11816. * src/prefs.h: '_' -> '-'
  11817. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  11818. (FTP_PASV): New definition.
  11819. * src/Util.h, src/Util.cc (getRealSize): New function.
  11820. To disable netrc support if .netrc file does not have correct
  11821. permissions:
  11822. * src/File.h, src/File.cc (mode): New function.
  11823. To prevent confidential information to be logged:
  11824. * src/HttpConnection.h, src/HttpConnection.cc
  11825. (eraseConfidentialInfo): New function.
  11826. (sendRequest): Call eraseConfidentialInfo().
  11827. (sendProxyRequest): Call eraseConfidentialInfo().
  11828. * src/main.cc: Validate permissions of .netrc file.
  11829. To add --user-agent command-line option:
  11830. * src/main.cc: Added new command line option: --user-agent
  11831. * src/prefs.h (PREF_USER_AGENT): New definition.
  11832. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  11833. parameter to HttpRequest object.
  11834. * src/AbstractProxyRequestCommand.cc
  11835. (executeInternal): Set user-agent option parameter to HttpRequest
  11836. object.
  11837. Marged the patches from Dan Fandrich.
  11838. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11839. Use filename and size from Metalink file instead of sending HEAD
  11840. request:
  11841. * src/UrlRequestInfo.h
  11842. (_filename): New variable.
  11843. (_totalLength): New variable.
  11844. (setTotalLength): New variable.
  11845. (setFilename): New variable.
  11846. * src/MetalinkRequestInfo.cc
  11847. (execute): Set filename and size to UrlRequestInfo
  11848. * src/UrlRequestInfo.cc
  11849. (execute): Use filename and size from Metalink instead of seding
  11850. HEAD request to servers.
  11851. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11852. To add the ability to resume downloading a partially downloaded file
  11853. which is downloaded from the beginning:
  11854. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  11855. takes this role.
  11856. * src/main.cc: Added -c option.
  11857. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  11858. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  11859. * src/prefs.h (PREF_CONTINUE): New definition.
  11860. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  11861. * src/DefaultDiskWriter.cc
  11862. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  11863. * src/AbstractDiskWriter.h
  11864. (glowFileAllocator): New variable.
  11865. * src/AbstractDiskWriter.cc
  11866. (openExistingFile): Now preallocate file space from the end of the
  11867. existing file if totalLength argument is specified and grater than 0.
  11868. * src/UrlRequestInfo.cc: If -c option is specified and the file
  11869. to download exists in local, continue the download of the file.
  11870. --allow-overwrite=true is assumed in this context.
  11871. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  11872. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  11873. Throw exception if --check-integrity=true is specified but chunk
  11874. checksums are not provided:
  11875. * src/UrlRequestInfo.cc
  11876. Do not print URLs to stdout:
  11877. * src/UrlRequestInfo.cc
  11878. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11879. * src/Request.h: Use AuthResolver to get authentication information.
  11880. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  11881. set to RequestFactory object.
  11882. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  11883. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  11884. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  11885. create Request object.
  11886. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  11887. To integrate Netrc into exsiting classes:
  11888. * src/Request.h
  11889. (_userDefinedAuthConfig): New variable.
  11890. (findNetrcAuthenticator): New function.
  11891. (segment): Removed.
  11892. (setUserDefinedAuthConfig): New function.
  11893. (resolveHttpAuthConfigItem): New function.
  11894. (resolveFtpAuthConfigItem): New function.
  11895. (resolveHttpProxyAuthConfigItem): New function.
  11896. * src/HttpRequest.h
  11897. (authConfig): Removed.
  11898. (proxyAuthConfig): Removed.
  11899. (setAuthConfig): Removed.
  11900. (setProxyAuthConfig): Removed.
  11901. * src/UrlRequest.h
  11902. (getHeadResult): Added a parameter: authConfigHandle
  11903. * src/common.h
  11904. (SingletonHolder.h): New include.
  11905. * src/main.cc
  11906. (Netrc.h): New include.
  11907. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  11908. Added initial value of PREF_NETRC_PATH.
  11909. Added the initialization of netrc.
  11910. * src/AuthConfig.h: New class.
  11911. * src/prefs.h
  11912. (PREF_NETRC_PATH): New definition.
  11913. * src/HttpAuthConfig.h: Removed.
  11914. * src/Netrc.cc
  11915. (getRequiredNextToken): New function.
  11916. (skipMacdef): New function.
  11917. (parse): Rewritten.
  11918. * src/Netrc.h
  11919. (getRequiredNextToken): New function.
  11920. (skipMacdef): New function.
  11921. * src/Util.h, src/Util.cc
  11922. (getHomeDir): New function.
  11923. * src/TrackerWatcherComand.cc
  11924. (createRequestCommand): Use AuthConfig.
  11925. * src/FtpConnection.cc
  11926. (sendUser): Use Request::resolveFtpAuthConfigItem().
  11927. (sendPass): Use Request::resolveFtpAuthConfigItem().
  11928. * src/Request.cc
  11929. (findNetrcAuthenticator): New function.
  11930. (resolveHttpAuthConfigItem): New function.
  11931. (resolveFtpAuthConfigItem): New function.
  11932. (resolveHttpProxyAuthConfigItem): New function.
  11933. * src/UrlRequestInfo.cc: Use AuthConfig.
  11934. * src/HttpRequest.cc
  11935. (createRequest): Use authConfig.
  11936. (getProxyAuthString): Use authConfig.
  11937. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  11938. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  11939. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11940. To reduce overhead to find commands whose socket is either
  11941. readable or writable in the download engine loop:
  11942. * src/Command.h, src/Command.cc
  11943. (STATUS): New enum.
  11944. (status): New variable.
  11945. (statusMatch): New function.
  11946. (setStatusActive): New function.
  11947. (setStatusInactive): New function.
  11948. * src/DownloadEngine.h, src/DownloadEngine.cc
  11949. (executeCommand): New function.
  11950. (run): Simplified.
  11951. (waitData): Call Command::setStatusActive() when command's socket is
  11952. readable or writable.
  11953. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11954. To handle Segment as SegmentHandle:
  11955. * src/AbstractCommand.cc (execute): Rewritten.
  11956. * src/SegmentMan.h: Segment -> SegmentHandle
  11957. Introducded HttpResponse class, HttpRequest class to improve code
  11958. extensiveness and make it clear:
  11959. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  11960. HttpResponse class.
  11961. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  11962. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  11963. * src/HttpConnection.cc: Contruction of http request were moved to
  11964. HttpRequest class.
  11965. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  11966. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  11967. * src/HttpAuthConfig.h: New class.
  11968. * src/Range.h: New class.
  11969. To make FtpTunnel{Request, Response}Command and
  11970. HttpProxy{Request, Response}Command derived from
  11971. AbstractProxy{Request, Response}Command:
  11972. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  11973. Derived from AbstractProxyRequestCommand class.
  11974. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  11975. Derived from AbstractProxyResponseCommand class.
  11976. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  11977. Derived from AbstractProxyRequestCommand class.
  11978. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  11979. Derived from AbstractProxyResponseCommand class.
  11980. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  11981. : New class.
  11982. * src/AbstractProxyResponseCommand.h,
  11983. src/AbstractProxyResponseCommand.cc: New class.
  11984. To add netrc support:
  11985. * src/Netrc.h, src/Netrc.cc: New class.
  11986. * src/Util.h, src/Util.cc (split): New function.
  11987. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  11988. "Content-Range" header instead of "Range" header.
  11989. * src/HttpHeader.h
  11990. (getStatus): Removed.
  11991. (setStatus): Removed.
  11992. * src/Segment.h
  11993. (getPositionToWrite): New function.
  11994. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11995. * src/HttpHeader.h
  11996. (Range.h): New include.
  11997. (status): New variable.
  11998. (HttpHeader): Initialized status with 0.
  11999. (getStatus): New function.
  12000. (setStatus): New function.
  12001. (getRange): New function.
  12002. (HttpHeaderHandle): New function.
  12003. * src/HttpHeader.cc
  12004. (getRange): New function.
  12005. * src/Request.h
  12006. (RequestWeakHandle): New definition.
  12007. * src/HttpConnection.h
  12008. (HttpConnectionHandle): New type definition.
  12009. * src/HttpConnection.cc
  12010. (receiveResponse): Set HTTP status to headers.
  12011. * src/main.cc
  12012. (showUsage): Fixed typo.
  12013. * src/Segment.h
  12014. (SegmentHandle): New type definition.
  12015. * src/BitfieldMan.h
  12016. (getMissingUnusedLength): New function.
  12017. * src/BitfieldMan.cc
  12018. (getMissingUnusedLength): New function.
  12019. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12020. To fix static initialization order problem:
  12021. * src/BitfieldManFactory.h
  12022. (defaultRandomizer): Removed.
  12023. (factory): New variable.
  12024. (getNewFactory): Removed.
  12025. (getFactoryInstance): New function.
  12026. (setDefaultRandomizer): Rewritten.
  12027. (getDefaultRandomizer): Rewritten.
  12028. * src/BitfieldManFactory.cc
  12029. (defaultRandomizer): Removed.
  12030. (factory): Initialized to 0.
  12031. (BitfieldManFactory): Initialized randomizer to 0.
  12032. * src/DefaultPieceStorage.cc
  12033. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  12034. * src/Peer.cc
  12035. (Peer): getNewFactory() -> getFactoryInstance()
  12036. * src/SegmentMan.cc
  12037. (initBitfield): getNewFactory() -> getFactoryInstance()
  12038. * src/Piece.cc
  12039. (Piece): getNewFactory() -> getFactoryInstance()
  12040. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12041. To fix the bug that causes crash on Max OS X:
  12042. * src/SimpleRandomizer.h
  12043. (getInstance): Create new instance if the static variable is null.
  12044. * src/SimpleRandomizer.cc
  12045. (randomizer): Initialized to 0.
  12046. * src/BitfieldManFactory.h
  12047. (getNewFactory): Removed the call to setRandomizer().
  12048. To fix the miscalculation of the range of checksum:
  12049. * src/BitfieldMan.h
  12050. (isBitSetOffsetRange): New function.
  12051. * src/BitfieldMan.cc
  12052. (isBitSetOffsetRange): New function.
  12053. * src/SegmentMan.cc
  12054. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  12055. Use bitfield->getBlockLength() instead of segment.segmentLength.
  12056. * Release 0.10.1
  12057. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12058. To lower CPU usage in BitTorrent download when --max-upload-limit
  12059. command-line option specified:
  12060. * src/DefaultBtMessageDispatcher.cc
  12061. (sendMessages): Calculate uploading speed only when current message
  12062. is uploading data and is not sent yet.
  12063. * src/DefaultPeerStorage.h
  12064. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  12065. * src/HttpResponseCommand.cc
  12066. (handleDefaultEncoding): Added the cast to int32_t to itos.
  12067. This fixes compile error in Soralis 10.
  12068. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12069. To fix segfault in Metalink download:
  12070. * src/UrlRequestInfo.h
  12071. (filename): Removed.
  12072. (totalLength): Removed.
  12073. (setTotalLength): Removed.
  12074. (setFilename): Removed.
  12075. * src/MetalinkRequestInfo.cc
  12076. (execute): Do not set filename and totalLength to reqInfo.
  12077. Set chunk checksum to reqInfo if it is not null.
  12078. * src/HttpResponseCommand.cc
  12079. (executeInternal): Fixed filename in log.
  12080. (handleDefaultEncoding): Removed the call to initBitfield() and
  12081. markAllPiecesDone().
  12082. (handleOtherEncoding): Added HEAD method handling.
  12083. * src/FtpNegotiateCommand.cc
  12084. (executeInternal): Added SEQ_HEAD_OK handling.
  12085. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  12086. return false.
  12087. * src/FtpNegotiateCommand.h
  12088. (SEQ_HEAD_OK): New definition.
  12089. * src/SegmentMan.cc
  12090. (initBitfield): Delete bitfield.
  12091. (isChunkChecksumValidationReady): Fixed the condition.
  12092. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  12093. works fine.
  12094. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12095. * src/Xml2MetalinkProcessor.h
  12096. (xpathExists): New function.
  12097. * src/Xml2MetalinkProcessor.cc
  12098. (xpathExists): New function.
  12099. Not to send HEAD request if filename and size are available in Metalink
  12100. file:
  12101. * src/UrlRequestInfo.h
  12102. (filename): New variable.
  12103. (totalLength): New variable.
  12104. (setTotalLength): New function.
  12105. (setFilename): New function.
  12106. * src/MetalinkRequestInfo.cc
  12107. (execute): Set filename and size to UrlRequestInfo.
  12108. * src/MetalinkEntry.cc
  12109. (MetalinkEntry): Initialize size with 0.
  12110. * src/UrlRequestInfo.cc
  12111. (execute): Set filename and size to SegmentMan.
  12112. Not to download rest of the files after selected files are downloaded
  12113. in BitTorrent:
  12114. * src/PieceStorage.h
  12115. (allDownloadFinished): New function.
  12116. * src/DefaultBtAnnounce.cc
  12117. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  12118. downloadFinished.
  12119. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  12120. * src/DefaultPieceStorage.cc
  12121. (completePiece): Use allDownloadFinished instead of downloadFinished.
  12122. Commented out the call to finishSelectiveDownloadingMode().
  12123. (downloadFinished): Call isFilteredAllBitSet() instead of
  12124. isAllBitSet().
  12125. (allDownloadFinished): New function.
  12126. * src/DefaultBtInteractive.cc
  12127. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  12128. downloadFinished().
  12129. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  12130. * src/TorrentDownloadEngine.cc
  12131. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  12132. * src/BitfieldMan.h
  12133. (isFilteredAllBitSet): New function.
  12134. * src/ShareRatioSeedCriteria.h
  12135. (PieceStorage.h): New include.
  12136. (pieceStorage): New variable.
  12137. (evaluate):
  12138. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  12139. * src/BitfieldMan.cc
  12140. (isFilteredAllBitSet): New function.
  12141. (isAllBitSet): Filter is not took into account.
  12142. Rename --force-truncate as --allow-overwrite:
  12143. * src/TorrentRequestInfo.cc
  12144. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  12145. * src/main.cc
  12146. (showUsage): --force-truncate -> --allow-overwrite
  12147. * src/message.h
  12148. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  12149. * src/prefs.h
  12150. (PREF_FORCE_TRUNCATE): Removed.
  12151. (PREF_ALLOW_OVERWRITE): New definition.
  12152. * src/SegmentMan.cc
  12153. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  12154. * src/MetalinkRequestInfo.cc
  12155. (execute): Queueing message are now logged in info level.
  12156. * src/common.h
  12157. (LONG_LONG_MAX): Removed.
  12158. (LONG_LONG_MIN): Removed.
  12159. * src/HttpResponseCommand.cc
  12160. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  12161. * src/FtpNegotiateCommand.cc
  12162. (recvSize): LONG_LONG_MAX -> INT64_MAX
  12163. * src/main.cc
  12164. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  12165. command-line option.
  12166. (main): Added --check-integriy and --realtime-chunk-checksum
  12167. command-line option.
  12168. --force-truncate -> --allow-overwrite
  12169. Set initial value of --check-integrity option to false.
  12170. Don't show usage when error occurs while persing command-line options.
  12171. Removed deprecated --upload-limit option.
  12172. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12173. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  12174. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  12175. * src/BtAllowedFastMessage.cc:
  12176. * src/BtBitfieldMessage.cc
  12177. * src/BtCancelMessage.cc
  12178. * src/BtChokeMessage.cc
  12179. * src/BtHaveAllMessage.cc
  12180. * src/BtHaveMessage.cc
  12181. * src/BtHaveNoneMessage.cc
  12182. * src/BtInterestedMessage.cc
  12183. * src/BtNotInterestedMessage.cc
  12184. * src/BtPieceMessage.cc
  12185. * src/BtPortMessage.cc
  12186. * src/BtRejectMessage.cc
  12187. * src/BtRequestMessage.cc
  12188. * src/BtSuggestPieceMessage.cc
  12189. * src/BtUnchokeMessage.cc
  12190. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  12191. files are affected.
  12192. * src/ChunkChecksumValidator.cc
  12193. * src/SegmentMan.cc
  12194. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12195. To add chunk checksum validation:
  12196. * src/MetalinkEntry.h
  12197. (MetalinkChunkChecksum.h): New include.
  12198. (chunkChecksum): New variable.
  12199. * src/Request.h
  12200. (method): New variable.
  12201. (setMethod): New function.
  12202. (getMethod): New function.
  12203. (METHOD_GET): New static constant.
  12204. (METHOD_HEAD): New static constant.
  12205. * src/Xml2MetalinkProcessor.h
  12206. (getPieceHash): New function.
  12207. * src/PieceStorage.h
  12208. (markAllPiecesDone): New function.
  12209. (checkIntegrity): New function.
  12210. * src/FileAllocator.h
  12211. (NullFileAllocationMonitor.h): New include.
  12212. (FileAllocator): Initialize fileAllocationMonitor with new
  12213. NullFileAllocationMonitor().
  12214. * src/MultiDiskAdaptor.h
  12215. (messageDigest.h): Remove include.
  12216. (ctx): Removed.
  12217. (hashUpdate): Added ctx.
  12218. (MultiDiskAdaptor): Removed ctx.
  12219. (sha1Sum): Renamed as messageDigest.
  12220. (messageDigest): New function.
  12221. * src/UrlRequestInfo.h
  12222. (HeadResult): New class.
  12223. (digestAlgo): New variable.
  12224. (chunkChecksumLength): New variable.
  12225. (chunkChecksums): New variable.
  12226. (getHeadResult): New function.
  12227. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  12228. (setDigestAlgo): New function.
  12229. (setChunkChecksumLength): New function.
  12230. (setChunkChecksums): New function.
  12231. * src/DefaultPieceStorage.cc
  12232. (DiskAdaptorWriter.h): New include.
  12233. (ChunkChecksumValidator.h): New include.
  12234. (markAllPiecesDone): New function.
  12235. (checkIntegrity): New function.
  12236. * src/DefaultBtContext.h
  12237. (getPieceHashes): New function.
  12238. * src/TorrentRequestInfo.cc
  12239. (execute): Try to validate chunk checksum if file already exists and
  12240. .aria2 file doesn't there and user allows aria2 to overwrite it.
  12241. * src/messageDigest.h
  12242. (~MessageDigestContext): Added digestFree().
  12243. * src/MetalinkRequestInfo.cc
  12244. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  12245. * src/DiskAdaptor.h
  12246. (messageDigest.h): New include.
  12247. (sha1Sum): Renamed as messageDigest.
  12248. (messageDigest): New function.
  12249. * src/DownloadCommand.h
  12250. (PeerStat.h): New include.
  12251. (maxDownloadSpeedLimit): New variable.
  12252. (startupIdleTime): New variable.
  12253. (lowestDownloadSpeedLimit): New variable.
  12254. (peerStat): New variable.
  12255. (setMaxDownloadSpeedLimit): New function.
  12256. (setStartupIdleTime): New function.
  12257. (setLowestDownloadSPeedLimit): New function.
  12258. * src/BtContext.h
  12259. (getPieceHashes): New function.
  12260. * src/main.cc
  12261. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  12262. option to true for testing purpose.
  12263. * src/BtPieceMessage.cc
  12264. (checkPieceHash): Use messageDigest
  12265. * src/DownloadEngine.cc
  12266. (SetDescriptor): Removed.
  12267. (AccumulateActiveCommand): Removed.
  12268. (waitData): Rewritten.
  12269. (updateFdSet): Rewritten.
  12270. * src/MultiDiskAdaptor.cc
  12271. (hashUpdate): Added ctx.
  12272. (sha1Sum): Renamed as messageDigest.
  12273. (messageDigest): New function.
  12274. * src/BitfieldMan.h
  12275. (isBitRangeSet): New function.
  12276. (unsetBitRange): New function.
  12277. * src/ByteArrayDiskWriter.h
  12278. (sha1Sum): Renamed as messageDigest.
  12279. (messageDigest): New function.
  12280. * src/ConsoleDownloadEngine.cc
  12281. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  12282. * src/DiskWriter.h
  12283. (messageDigest.h): New include.
  12284. (sha1Sum): Renamed as messageDigest.
  12285. (messageDigest): New function.
  12286. * src/ChunkChecksumValidator.h: New class.
  12287. * src/DiskAdaptorWriter.h: New class.
  12288. * src/prefs.h
  12289. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  12290. (PREF_CHECK_INTEGRITY): New definition.
  12291. * src/HttpResponseCommand.cc
  12292. (handleDefaultEncoding): Added method "HEAD" handling.
  12293. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  12294. (handleOtherEncoding):
  12295. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  12296. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  12297. startupIdleTime, lowestDownloadSpeedLimit to command.
  12298. * src/SegmentMan.h
  12299. (getSegmentEntryByIndex): New function.
  12300. (getSegmentEntryByCuid): New function.
  12301. (getSegmentEntryIteratorByCuid): New function.
  12302. (diskWriter): DiskWriter -> DiskWriterHandle
  12303. (pieceHashes): New variable.
  12304. (chunkHashLength): New variable.
  12305. (digestAlgo): New variable.
  12306. (FindPeerStat): Removed.
  12307. (getPeerStat): Rewritten.
  12308. (markAllPiecesDone): New function.
  12309. (checkIntegrity): New function.
  12310. (tryChunkChecksumValidation): New function.
  12311. (isChunkChecksumValidationReady): New function.
  12312. * src/BitfieldMan.cc
  12313. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  12314. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  12315. blocks to 0.
  12316. (isBitRangeSet): New function.
  12317. (unsetBitRange): New function.
  12318. * src/FtpNegotiateCommand.cc
  12319. (executeInternal): Set maxDownloadSpeedLimit,
  12320. startupIdleTime, lowestDownloadSpeedLimit to command.
  12321. (recvSize): Added method "HEAD" handling.
  12322. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  12323. * src/AbstractSingleDiskAdaptor.cc
  12324. (sha1Sum): Renamed as messageDigest.
  12325. (messageDigest): New function.
  12326. * src/AbstractSingleDiskAdaptor.h
  12327. (sha1Sum): Renamed as messageDigest.
  12328. (messageDigest): New function.
  12329. * src/Util.h
  12330. (indexRange): New function.
  12331. * src/MetalinkEntry.cc
  12332. (MetalinkEntry): Initialized chunkChecksum to 0.
  12333. * src/ShaVisitor.cc
  12334. (~ShaVisitor): Removed the call to ctx.digestFree().
  12335. * src/SegmentMan.cc
  12336. (ChunkChecksumValidator.h): New include.
  12337. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  12338. to DIGEST_ALGO_SHA1.
  12339. (~SegmentMan): Removed diskWriter.
  12340. (FindSegmentEntryByIndex): Removed.
  12341. (FindSegmentEntryByCuid): Removed.
  12342. (checkoutSegment): Rewritten.
  12343. (findSlowerSegmentEntry): Rewritten.
  12344. (getSegment): Rewritten.
  12345. (updateSegment): Rewritten.
  12346. (completeSegment): Rewritten.
  12347. (markAllPiecesDone): New function.
  12348. (checkIntegrity): New function.
  12349. (isChunkChecksumValidationReady): New function.
  12350. (tryChunkChecksumValidation): New function.
  12351. * src/Xml2MetalinkProcessor.cc
  12352. (getEntry): Get size and set it to entry.
  12353. Get chunk checksum and set it to entry.
  12354. (getPieceHash): New function.
  12355. * src/Util.cc
  12356. (sha1Sum): Removed ctx.digestFree()
  12357. (fileChecksum): Removed ctx.digestFree()
  12358. (indexRange): New function.
  12359. * src/Request.cc
  12360. (METHOD_GET): New variable.
  12361. (METHOD_HEAD): New variable.
  12362. (Request): Added method.
  12363. * src/UrlRequestInfo.cc
  12364. (FatalException.h): New include.
  12365. (message.h): New include.
  12366. (operator<<): Added operator<< for class HeadResult.
  12367. (getHeadResult): New function.
  12368. (execute): Get filename and size in separate download engine.
  12369. * src/ChunkChecksumValidator.cc: New class.
  12370. * src/DownloadCommand.cc:
  12371. (DownloadCommand): Added peerStat.
  12372. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  12373. the value from Option.
  12374. The buffer size is now 16KB.
  12375. Use peerStat member instead of getting it from SegmentMan.
  12376. Use startupIdleTime member instead of gettingit from Option.
  12377. Added chunk checksum validation.
  12378. * src/AbstractDiskWriter.cc
  12379. (AbstractDiskWriter): Removed ctx.
  12380. (~AbstractDiskWriter): Removed ctx.digestFree()
  12381. (writeDataInternal): Returns the return value of write.
  12382. (readDataInternal): Returns the return value of read.
  12383. (sha1Sum): Renamed as messageDigest
  12384. (messageDigest): New function.
  12385. * src/AbstractDiwkWriter.h
  12386. (messageDigest.h): Removed include.
  12387. (ctx): Removed.
  12388. (sha1Sum): Renamed as messageDigest
  12389. (messageDigest): New function.
  12390. * src/DefaultPieceStorage.h
  12391. (markAllPiecesDone): New function.
  12392. (checkIntegrity): New function.
  12393. * src/NullFileAllocationMonitor.h: New class.
  12394. * src/MetalinkChunkChecksum.h: New class.
  12395. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12396. To decrease CPU usage in bittorrent download, calculation results in
  12397. BitfieldMan were cached and realtime fetching PeerObject was removed
  12398. with WeakHandle introduced. Option values are set to the objects
  12399. by setter before download begins.
  12400. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  12401. * src/DefaultBtRequestFactory.h
  12402. (dispatcher): BtMessageDispatcherHandle ->
  12403. BtMessageDispatcherWeakHandle.
  12404. (messageFactory): New variable.
  12405. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  12406. BtMessageDispatcherWeakHandle.
  12407. (setBtMessageFactory): New function.
  12408. * src/DefaultBtMessageDispatcher.cc:
  12409. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  12410. from Option.
  12411. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  12412. feating the value from Option.
  12413. Use messageFactory member.
  12414. * src/PeerInteractionCommand.cc
  12415. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  12416. Add reverse dependencies to factory object.
  12417. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  12418. dispatcher.
  12419. Set messageFactory to receiver.
  12420. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  12421. btInteractive.
  12422. Set receiver to peerObject.
  12423. Set maxDownloadSpeedLimit to this.
  12424. (executeInternal): Use maxDownloadSpeedLimit member.
  12425. * src/BtChokeMessage.cc
  12426. (doReceivedAction): Use dispatcher, requestFactory member.
  12427. (onSendComplete): Use dispatcher member.
  12428. * src/PeerInteractionCommand.h
  12429. (maxDownloadSpeedLimit): New variable.
  12430. * src/DefaultBtMessageReceiver.h
  12431. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12432. (dispatcher):
  12433. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  12434. (messageFactory): New variable.
  12435. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12436. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12437. (setDispatcher):
  12438. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  12439. (setBtMessageFactory): New function.
  12440. * src/DefaultBtInteractive.cc
  12441. (initiateHandshake): Use messageFactory member.
  12442. (addBitfieldMessageToQueue): Use messageFactory member.
  12443. (addAllowedFastMessageToQueue): Use messageFactory member.
  12444. (decideChoking): Use messageFactory member.
  12445. (checkHave): Use messageFactory member.
  12446. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  12447. (receiveMessages): Use maxDownloadSpeedLimit member.
  12448. (decideInterest): Use messageFactory member.
  12449. * src/BtRequestMessage.cc
  12450. (doReceivedAction): Use messageFactory, dispatcher member.
  12451. (onQueued): Use dispatcher member.
  12452. * src/BtPieceMessage.cc
  12453. (doReceivedAction): Use dispatcher member.
  12454. (send): Use peerConnection member.
  12455. (onWrongPiece): Use requestFactory member.
  12456. (handleChokingEvent): Use messageFactory, dispatcher member.
  12457. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  12458. * src/BtMessageDispatcher.h
  12459. (BtMessageDispatcherWeakHandle): New type definition.
  12460. * src/SimpleBtMessage.cc
  12461. (send): Use peerConnection member.
  12462. * src/BtRejectMessage.cc
  12463. (doReceivedAction): Use dispatcher member.
  12464. * src/DefaultBtMessageDispatcher.h
  12465. (Option.h): Removed include.
  12466. (messageFactory): New variable.
  12467. (option): Removed.
  12468. (maxUploadSpeedLimit): New variable.
  12469. (requestTimeout): New variable.
  12470. (DefaultBtMessageDispatcher): Removed option.
  12471. Added maxUploadSpeedLimit, requestTimeout.
  12472. (setOption): Removed.
  12473. (getOption): Removed.
  12474. (setMaxUploadSpeedLimit): New function.
  12475. (setRequestTimeout): New function.
  12476. (setBtMessageFactory): New function.
  12477. * src/DefaultBtInteractive.h
  12478. (btMessageReceiver):
  12479. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  12480. (dispatcher):
  12481. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  12482. (btRequestFactory):
  12483. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  12484. (peerConnection):
  12485. PeerConnectionHandle -> PeerConnectionWeakHandle
  12486. (messageFactory): New variable.
  12487. (option): Removed.
  12488. (keepAliveInterval): New variable.
  12489. (maxDownloadSpeedLimit): New variable.
  12490. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  12491. (setBtMessageReceiver):
  12492. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  12493. (setDispatcher):
  12494. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  12495. (setBtRequestFactory):
  12496. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  12497. (setPeerConnection):
  12498. PeerConnectionHandle -> PeerConnectionWeakHandle
  12499. (setOption): Removed.
  12500. (setKeepAliveInterval): New function.
  12501. (setMaxDownloadSpeedLimit): New function.
  12502. (setBtMessageFactory): New function.
  12503. * src/BitfieldMan.h
  12504. (cachedNumMissingBlock): New variable.
  12505. (cachedNumFilteredBlock): New variable.
  12506. (cachedCompletedLength): New variable.
  12507. (cachedFilteredComletedLength): New variable.
  12508. (cachedFilteredTotalLength): New variable.
  12509. (countMissingBlockNow): New function.
  12510. (countFilteredBlockNow): New function.
  12511. (getFilteredTotalLengthNow): New function.
  12512. (getCompletedLengthNow): New function.
  12513. (getFilteredCompletedLengthNow): New function.
  12514. (updateCache): New function.
  12515. * src/AbstractBtMessage.h
  12516. (BtMessageDispatcher.h): New include.
  12517. (PeerConnection.h): New include.
  12518. (BtRequestFactory.h): New include
  12519. (BtMessageFactory.h): New include.
  12520. (dispatcher): New variable.
  12521. (messageFactory): New variable.
  12522. (peerConnection: New variable.
  12523. (setBtMessageDispatcher): New function.
  12524. (setPeerConnection): New function.
  12525. (setBtMessageFactory): New function.
  12526. (setBtRequestFactory): New function.
  12527. * src/DefaultBtMessageFactory.cc
  12528. (setCommonProperty): Set dispatcher, requestFactory, this,
  12529. peerConnection to msg.
  12530. * src/BtRegistry.h
  12531. (BT_MESSAGE_RECEIVER): New macro.
  12532. * src/PeerConnection.h
  12533. (PeerConnectionWeakHandle): New type definition.
  12534. * src/BtMessageFactory.h
  12535. (BtMessageFactoryWeakHandle): New type definition.
  12536. * src/BitfieldMan.cc
  12537. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  12538. cachedCompletedLength, cachedFilteredComletedLength,
  12539. cachedFilteredTotalLength.
  12540. Call updateCache().
  12541. (countMissingBlock): Return cachedNumMissingBlock.
  12542. (countMissingBlockNow): New function.
  12543. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  12544. (countFilteredBlockNow): New function.
  12545. (setBit): Call updateCache().
  12546. (unsetBit): Call updateCache().
  12547. (setBitfield): Call updateCache().
  12548. (clearAllBit): Call updateCache().
  12549. (setAllBit): Use setBitInternal instead of setBit.
  12550. Call updateCache().
  12551. (addFilter): Call updateCache().
  12552. (enableFilter): Call updateCache().
  12553. (disableFilter): Call updateCache().
  12554. (clearFilter): Call updateCache().
  12555. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  12556. (getFilteredTotalLengthNow): New function.
  12557. (getCompletedLength): Return cachedCompletedLength.
  12558. (getCompletedLengthNow): New function.
  12559. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  12560. (getFilteredCompletedLengthNow): New function.
  12561. (updateCache): New function.
  12562. * src/BtMessageReceiver.h
  12563. (BtMessageReceiverWeakHandle): New type definition.
  12564. * src/DefaultBtMessageReceiver.cc
  12565. (receiveHandshake): Use messageFactory member.
  12566. (sendHandshake): Use messageFactory member.
  12567. (receiveMessage): Use messageFactory member.
  12568. * src/DefaultBtMessageFactory.h
  12569. (dispatcher): New variable.
  12570. (requestFactory): New variable.
  12571. (peerConnection): New variablle.
  12572. (setBtMessageDispatcher): New function.
  12573. (setBtRequestFactory): New function.
  12574. (setPeerConnection): New function.
  12575. * src/SharedHandle.h
  12576. (RefCount): New class.
  12577. (WeakHandle): New class.
  12578. * src/PeerObject.h
  12579. (BtMessageReceiver.h): New include.
  12580. (PeerObject): Added btMessageReceiver.
  12581. (btMessageReceiver): New variable.
  12582. * src/Util.cc
  12583. (countBit): Simplified.
  12584. * src/BtCancelMessage.cc
  12585. (doReceivedAction): Use dispatcher member.
  12586. * src/BtRequestFactory.h
  12587. (BtRequestFactoryWeakHandle): New type definition.
  12588. * src/PeerStorage.h
  12589. (downloadSpeed): int -> uint32_t
  12590. (uploadSpeed): int -> uint32_t
  12591. (sessionDownloadLength): long long int -> uint64_t
  12592. (sessionUploadLength): long long int -> uint64_t
  12593. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12594. To add RecoverableException, FatalException:
  12595. * src/AbstractCommand.cc
  12596. (onAbort): Exception -> RecoverableException
  12597. * src/PeerAbstractCommand.h
  12598. (RecoverableException.h): New include.
  12599. (onAbort): Exception -> RecoverableException.
  12600. * src/PeerInteractionCommand.cc
  12601. (onAbort): Exception -> RecoverableException.
  12602. * src/PeerAbstractCommand.cc
  12603. (execute): Exception -> RecoverableException.
  12604. (onAbort): Exception -> RecoverableException.
  12605. * src/TorrentRequestInfo.cc
  12606. (execute): Exception -> RecoverableException.
  12607. * src/MetalinkRequestInfo.cc
  12608. (execute): Exception -> RecoverableException.
  12609. * src/MetaFileUtil.cc: RecoverableException.
  12610. * src/AbstractCommand.h
  12611. (onAbort): Exception -> RecoverableException.
  12612. * src/DlRetryEx.h: Exception -> RecoverableException.
  12613. * src/DlAbortEx.h: Exception -> RecoverableException.
  12614. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  12615. * src/Util.cc: Exception -> RecoverableException.
  12616. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  12617. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  12618. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  12619. To make ID static const int
  12620. * src/BtInterestedMessage.h
  12621. (ID_t): Removed.
  12622. (ID): New variable.
  12623. (getId): Made non-const.
  12624. * src/BtPieceMessage.h
  12625. (ID_t): Removed.
  12626. (ID): New variable.
  12627. (getId): Made non-const.
  12628. * src/BtChokeMessage.h
  12629. (ID_t): Removed.
  12630. (ID): New variable.
  12631. (getId): Made non-const.
  12632. * src/BtHaveAllMessage.h
  12633. (ID_t): Removed.
  12634. (ID): New variable.
  12635. (getId): Made non-const.
  12636. * src/BtKeepAliveMessage.h
  12637. (ID_t): Removed.
  12638. (ID): New variable.
  12639. (getId): Made non-const.
  12640. * src/BtHandshakeMessage.h
  12641. (ID): New variable.
  12642. (getId): Made non-const.
  12643. * src/BtSuggestPieceMessage.h
  12644. (ID_t): Removed.
  12645. (ID): New variable.
  12646. (getId): Made non-const.
  12647. * src/BtPortMessage.h
  12648. (ID_t): Removed.
  12649. (ID): New variable.
  12650. (getId): Made non-const.
  12651. * src/AbstractBtMessage.h
  12652. (id): Removed.
  12653. (AbstractBtMessage): Removed id.
  12654. (getId): Removed.
  12655. * src/BtHaveMessage.h
  12656. (ID_t): Removed.
  12657. (ID): New variable.
  12658. (getId): Made non-const.
  12659. * src/BtAllowedFastMessage.h
  12660. (ID_t): Removed.
  12661. (ID): New variable.
  12662. (getId): Made non-const.
  12663. * src/BtCancelMessage.h
  12664. (ID_t): Removed.
  12665. (ID): New variable.
  12666. (getId): Made non-const.
  12667. * src/BtNotInterestedMessage.h
  12668. (ID_t): Removed.
  12669. (ID): New variable.
  12670. (getId): Made non-const.
  12671. * src/BtChokeMessage.h
  12672. (ID_t): Removed.
  12673. (ID): New variable.
  12674. (getId): Made non-const.
  12675. * src/BtRejectMessage.h
  12676. (ID_t): Removed.
  12677. (ID): New variable.
  12678. (getId): Made non-const.
  12679. * src/BtBitfieldMessage.h
  12680. (ID_t): Removed.
  12681. (ID): New variable.
  12682. (getId): Made non-const.
  12683. * src/BtUnchokeMessage.h
  12684. (ID_t): Removed.
  12685. (ID): New variable.
  12686. (getId): Made non-const.
  12687. * src/BtRequestMessage.h
  12688. (ID_t): Removed.
  12689. (ID): New variable.
  12690. (getId): Made non-const.
  12691. * src/BtHaveMessage.h
  12692. (ID_t): Removed.
  12693. (ID): New variable.
  12694. (getId): Made non-const.
  12695. To add --force-truncate command-line option and a check whether
  12696. the file already exists:
  12697. * src/DirectDiskAdaptor.h
  12698. (getFilePath): Made virtual public.
  12699. * src/MultiDiskAdaptor.h
  12700. (File.h): New include.
  12701. (DiskWriterEntry::fileEntry): Made private.
  12702. (DiskWriterEntry::fileExists): New function.
  12703. (DiskWriterEntry::getFileEntry): New function.
  12704. (fileExists): New function.
  12705. (getFilePath): New function.
  12706. * src/TorrentRequestInfo.cc
  12707. (FatalException.h): New include.
  12708. (message.h): New include.
  12709. (RecoverableException.h): New include.
  12710. (execute): Added a check whether file is already exists or not.
  12711. * src/DiskAdaptor.h
  12712. (fileExists): New function.
  12713. (getFilePath): New function.
  12714. * src/main.cc
  12715. (showUsage): Added an explanation of --force-truncate command-line
  12716. option.
  12717. (main): Added --force-truncate command-line option.
  12718. * src/Exception.h
  12719. (setMsg): buf[256] -> buf[1024]
  12720. * src/CopyDiskWriter.h
  12721. (getFilePath): Made public virtual.
  12722. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  12723. (fileExists): New function.
  12724. * src/DownloadEngineFactory.cc
  12725. (newTorrentConsoleEngine): Don't open file here.
  12726. * src/message.h
  12727. (EX_FILE_ALREADY_EXISTS): New definition.
  12728. * src/prefs.h
  12729. (PREF_FOECE_TRUNCATE): New definition.
  12730. * src/HttpResponseCommand.cc
  12731. (handleDefaultEncoding): Added a check whether the file already exists.
  12732. * src/SegmentMan.h
  12733. (fileExists): New function.
  12734. (shouldCancelDownloadForSafety): New function.
  12735. * src/FtpNegotiateCommand.cc
  12736. (recvSize): Added a check whether the file already exists.
  12737. * src/AbstractSingleDiskAdaptor.cc
  12738. (File.h): New include.
  12739. (fileExists): New function.
  12740. * src/AbstractSingleDiskAdaptor.h
  12741. (getFilePath): Removed.
  12742. (fileExists): New function.
  12743. * src/SegmentMan.cc
  12744. (fileExists): New function.
  12745. (shouldCancelDownloadForSafety): New function.
  12746. To fix regression bug in torrent downloading:
  12747. * src/DefaultBtRequestFactory.cc
  12748. (doChokedAction): New function.
  12749. * src/DefaultBtRequestFactory.h
  12750. (doChokedAction): New function.
  12751. * src/DefaultBtMessageDispatcher.cc
  12752. (doChokedAction): Do not delete request if its target is in allowed
  12753. fast set.
  12754. * src/DefaultBtInteractive.cc
  12755. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  12756. (sendKeepAlive): Send keep alive message even if the outgoing message
  12757. queue is not empty.
  12758. (decideInterest): Simplified the code.
  12759. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  12760. it is already called when BtChokeMessage is received from a peer.
  12761. * src/BtRequestFactory.h
  12762. (doChokedAction): New function.
  12763. To clean up code:
  12764. * src/PeerInteractionCommand.h
  12765. (executeInternal): Added virtual keyword explicitly.
  12766. (prepareForRetry): Added virtual keyword explicitly.
  12767. (prepareForNextPeer): Added virtual keyword explicitly.
  12768. (onAbort): Added virtual keyword explicitly.
  12769. * src/RequestSlot.cc
  12770. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  12771. * src/BtPieceMessage.cc
  12772. (doReceivedAction): Added a debug log of piece's bitfield.
  12773. * src/Piece.h
  12774. (getBitfieldLength): New function.
  12775. * src/ByteArrayDiskWriter.cc
  12776. (clear): Added buf = 0 to avoid double free corruption.
  12777. * src/FileAllocator.cc
  12778. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  12779. Added cp.reset().
  12780. * src/BitfieldMan.h
  12781. (operator=): Rewritten.
  12782. * src/BitfieldMan.cc
  12783. (BitfieldMan): Initialized bitfield, useBitfield.
  12784. * src/PeerConnection.cc
  12785. (receiveMessage): Added a call to socket->readable() after getting
  12786. message length to avoid possible EOF.
  12787. * src/Util.cc
  12788. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  12789. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12790. To add an ability to pre-allocate file space:
  12791. * src/DirectDiskAdaptor.h: Rewritten.
  12792. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  12793. * src/MultiDiskAdaptor.h: Rewritten.
  12794. * src/DefaultPieceStorage.cc
  12795. (MultiDiskWriter.h): Removed include.
  12796. (PreAllocationDiskWriter.h): Removed include.
  12797. (FileAllocationMonitor.h): New include.
  12798. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  12799. (initStorage): Rewritten.
  12800. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12801. * src/FileAllocator.h: New class.
  12802. * src/FileAllocator.cc: New class.
  12803. * src/FileAllocationMonitor.h: New class.
  12804. * src/FileAllocationMonitor.cc: New class.
  12805. * src/ConsoleFileAllocationMonitor.h: New class.
  12806. * src/ConsoleFileAllocationMonitor.cc: New class.
  12807. * src/AbstractSingleDiskAdaptor.h: New class.
  12808. * src/AbstractSingleDiskAdaptor.cc: New class.
  12809. * src/DiskAdaptor.h
  12810. (Directory.h): Removed include.
  12811. (DiskWriter.h): Removed include.
  12812. (FileEntry.h): Removed include.
  12813. (diskWriter): Removed.
  12814. (DiskAdaptor): Removed diskWriter.
  12815. (openFile): Made pure virtual.
  12816. (closeFile): Made pure virtual.
  12817. (openExistingFile): Made pure virtual.
  12818. (initAndOpenFile): Made pure virtual.
  12819. (writeData): Made pure virtual.
  12820. (readData): Made pure virtual.
  12821. (sha1Sum): Made pure virtual.
  12822. (getStoreDir): Returns const reference of storeDir.
  12823. (DiskAdaptorHandle): New type definition.
  12824. * src/main.cc
  12825. (ConsoleFileAllocationMonitor.h): New include.
  12826. (showUsage): Added default value description of -s option.
  12827. Added the description of --file-allocation option.
  12828. (main): Set default value of --file-allocation option to 'none'.
  12829. Added --file-allocation command-line option.
  12830. Setup FileAllocationMonitorFactory.
  12831. * src/FtpInitiateConnectionCommand.cc
  12832. (executeInternal): Removed diskWriter related processing, which was
  12833. moved to FtpNegotiationCommand.cc.
  12834. * src/DirectDiskAdaptor.cc
  12835. (getFilePath): Made non-const.
  12836. * src/CopyDiskAdaptor.h
  12837. (DiskAdaptor.h): Removed include.
  12838. (DiskWriter.h): Removed include.
  12839. (AbstractSingleDiskAdaptor.h): New include.
  12840. (getFilePath): Made non-const. Added virtual keyword.
  12841. (CopyDiskAdaptor): Removed diskWriter.
  12842. (getTempFile): Returns const reference.
  12843. (CopyDiskAdaptorHandle): New type definition.
  12844. * src/ByteArrayDiskWriter.cc
  12845. (clear): Simplified.
  12846. (initAndOpenFile): Rewritten.
  12847. (openFile): Call initAndOpenFile()
  12848. * src/MultiDiskAdaptor.cc: Rewritten.
  12849. * src/DownloadEngineFactory.cc
  12850. (FileAllocator.h): New include.
  12851. (FileAllocationMonitor.h): New include.
  12852. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  12853. create DefaultDiskWriter with file allocator.
  12854. * src/DiskWriter.h
  12855. (initAndOpenFile): Added totalLength argument.
  12856. (openFile): Added totalLength argument.
  12857. * src/prefs.h
  12858. (PREF_FILE_ALLOCATION): New definition.
  12859. (V_PREALLOC): New definition.
  12860. (V_NONE): New definition.
  12861. * src/HttpResponseCommand.cc
  12862. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  12863. size.
  12864. * src/FtpNegotiateCommand.cc
  12865. (Util.h): New include.
  12866. (recvSize): Open file here.
  12867. * src/Util.h
  12868. (ullitos): New function.
  12869. * src/CopyDiskWriter.h
  12870. (getFilePath): Made non-const.
  12871. * src/DefaultDiskWriter.h
  12872. (Option.h): New include.
  12873. (totalLength): Removed.
  12874. (DefaultDiskWriter): Removed totalLength.
  12875. (initAndOpenFile): Added totalLength argument.
  12876. (DefaultDiskWriterHandle): New type definition.
  12877. (createNewDiskWriter): New function.
  12878. * src/Util.cc
  12879. (ullitos): New function.
  12880. * src/DefaultDiskWriter.cc
  12881. (message.h): New include.
  12882. (FileAllocator.h): New include.
  12883. (prefs.h): New include.
  12884. (Util.h): New include.
  12885. (DefaultDiskWriter): Removed totalLength.
  12886. (initAndOpenFile): Added file allocation.
  12887. (createNewDiskWriter): New function. Just for temporary solution.
  12888. It will be rewritten later.
  12889. * src/DiskAdaptor.cc
  12890. (DiskAdaptor): Removed diskWriter.
  12891. * src/AbstractDiskWriter.cc
  12892. (LogFactory.h): New include.
  12893. (AbstractDiskWriter): Added fileAllocator, logger.
  12894. (openFile): Added totalLength argument.
  12895. * src/AbstractDiskWriter.h
  12896. (FileAllocator.h): New include.
  12897. (Logger.h): New include.
  12898. (fileAllocator): New variable.
  12899. (logger): New variable.
  12900. (openFile): Added totalLength argument. Added virtual keyword
  12901. explicitly.
  12902. (openExistingFile): Added totalLength argument. Added virtual keyword
  12903. explicitly.
  12904. (closeFile): Added virtual keyword explicitly.
  12905. (sha1Sum): Added virtual keyword explicitly.
  12906. (writeData): Added virtual keyword explicitly.
  12907. (readData): Added virtual keyword explicitly.
  12908. (setFileAllocator): New function.
  12909. * src/DefaultPieceStorage.h
  12910. (FileAllocator.h): New include.
  12911. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12912. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12913. * src/FileProgressMonitor.h: New class.
  12914. To compile aria2 on PC-BSD:
  12915. * src/DefaultBtContext.cc
  12916. (libgen.h): New include.
  12917. To fix memory leak:
  12918. * src/Exception.h
  12919. (~Exception): Delete cause. Fixed memory leak.
  12920. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12921. Rewritten a portion of bittorrent implementation:
  12922. * src/BtMessageValidator.h: New class.
  12923. * src/BtBitfieldMessageValidator.h: New class.
  12924. * src/BtHandshakeMessageValidator.h: New class.
  12925. * src/BtRequestMessageValidator.h: New class.
  12926. * src/BtSuggestPieceMessageValidator.h: New class.
  12927. * src/BtAllowedFastMessageValidator.h: New class.
  12928. * src/BtRejectMessageValidator.h: New class.
  12929. * src/BtCancelMessageValidator.h: New class.
  12930. * src/BtPieceMessageValidator.h: New class.
  12931. * src/BtHaveMessageValidator.h: New class.
  12932. * src/BtEventListener.h: New class.
  12933. * src/AbstractBtEventListener.h: New class.
  12934. * src/BtEvent.h: New class.
  12935. * src/BtChokingEvent.h: New class.
  12936. * src/BtChokedEvent.h: New class.
  12937. * src/BtCancelSendingPieceEvent.h: New class.
  12938. * src/BtAbortOutstandingRequestEvent.h: New class.
  12939. * src/Randomizer.h: New class.
  12940. * src/SimpleRandomizer.h: New class.
  12941. * src/BtMessage.h: New class.
  12942. * src/AbstractBtMessage.h: New class.
  12943. * src/SimpleBtMessage.h: New class.
  12944. * src/BtHaveMessage.h: New class.
  12945. * src/BtInterestedMessage.h: New class.
  12946. * src/BtAllowedFastMessage.h: New class.
  12947. * src/BtUnchokeMessage.h: New class.
  12948. * src/BtCancelMessage.h: New class.
  12949. * src/BtNotInterestedMessage.h: New class.
  12950. * src/BtChokeMessage.h: New class.
  12951. * src/BtHaveNoneMessage.h: New class.
  12952. * src/BtHandshakeMessage.h: New class.
  12953. * src/BtSuggestPieceMessage.h: New class.
  12954. * src/BtHaveMessage.h: New class.
  12955. * src/BtPieceMessage.h: New class.
  12956. * src/BtHaveAllMessage.h: New class.
  12957. * src/BtKeepAliveMessage.h: New class.
  12958. * src/BtPortMessage.h: New class.
  12959. * src/BtRejectMessage.h: New class.
  12960. * src/BtBitfieldMessage.h: New class.
  12961. * src/BtRequestMessage.h: New class.
  12962. * src/DefaultBtRequestFactory.h: New class.
  12963. * src/DefaultBtMessageReceiver.h: New class.
  12964. * src/BtInteractive.h: New class.
  12965. * src/BtMessageDispatcher.h: New class.
  12966. * src/DefaultBtMessageDispatcher.h: New class.
  12967. * src/DefaultBtInteractive.h: New class.
  12968. * src/BitfieldManFactory.h: New class.
  12969. * src/HandleRegistry.h: New class.
  12970. * src/BtMessageFactory.h: New class.
  12971. * src/BtMessageReceiver.h: New class.
  12972. * src/DefaultBtMessageFactory.h: New class.
  12973. * src/PeerObject.h: New class.
  12974. * src/BtRequestFactory.h: New class.
  12975. * src/SuggestPieceMessage.h: Removed.
  12976. * src/PortMessage.h: Removed.
  12977. * src/SuggestPieceMessage.h: Removed.
  12978. * src/KeepAliveMessage.h: Removed.
  12979. * src/HandshakeMessage.h: Removed.
  12980. * src/PeerInteraction.h: Removed.
  12981. * src/UnchokeMessage.h: Removed.
  12982. * src/PieceMessage.h: Removed.
  12983. * src/RequestMessage.h: Removed.
  12984. * src/InterestedMessage.h: Removed.
  12985. * src/HaveMessage.h: Removed.
  12986. * src/CancelMessage.h: Removed.
  12987. * src/RejectMessage.h: Removed.
  12988. * src/AllowedFastMessage.h: Removed.
  12989. * src/HaveNoneMessage.h: Removed.
  12990. * src/SimplePeerMessage.h: Removed.
  12991. * src/HaveAllMessage.h: Removed.
  12992. * src/BitfieldMessage.h: Removed.
  12993. * src/PeerMessageFactory.h: Removed.
  12994. * src/NotInterestedMessage.h: Removed.
  12995. * src/ChokeMessage.h: Removed.
  12996. * src/PeerMessage.h: Removed.
  12997. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12998. To know root cause of exception:
  12999. * src/Exception.h
  13000. (cause): New variable.
  13001. (Exception): Added a parameter.
  13002. (getMsg): Return const reference to msg.
  13003. (getCause): New function.
  13004. * src/DlRetryEx.h
  13005. (DlRetryEx): Added a parameter 'cause'.
  13006. Added an overloaded constructor.
  13007. (DlAbortEx): Added a parameter 'cause'.
  13008. Added an overloaded constructor.
  13009. * src/SimpleLogger.cc
  13010. (writeLog): Log nested exception messages recursively.
  13011. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13012. * src/DefaultBtProgressInfoFile.cc
  13013. (load): Fixed memory leak when the infohash doesn't match.
  13014. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13015. * src/DefaultPeerStorage.cc
  13016. (calculateStat): Simplified the code by combining 2 loops into 1.
  13017. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13018. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  13019. for BitTorrent download:
  13020. * src/PeerAbstractCommand.cc
  13021. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  13022. * src/main.cc:
  13023. (timeoutSpecified): Removed.
  13024. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  13025. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  13026. * src/TorrentRequestInfo.cc
  13027. (timeoutSpecified): Removed.
  13028. (torrentHandler): Removed timeoutSpecified and the adjustment of
  13029. timeout value.
  13030. * src/prefs.h
  13031. (PREF_BT_TIMEOUT): New definition.
  13032. Delete unused variables:
  13033. * src/TorrentRequestInfo.cc
  13034. (requestInfo): Removed.
  13035. Move setSignalHander to Util::setGlobalSignalHandler:
  13036. * src/TorrentRequestInfo.cc:
  13037. setSignalHander -> Util::setGlobalSignalHandler
  13038. * src/main.cc
  13039. (setSignalHander): Removed.
  13040. (main): setSignalHander -> Util::setGlobalSignalHandler
  13041. * src/Util.h
  13042. (setGlobalSignalHandler): New function.
  13043. * src/Util.cc
  13044. (setGlobalSignalHandler): New function.
  13045. * src/UrlRequestInfo.cc:
  13046. setSignalHander -> Util::setGlobalSignalHandler
  13047. Reset peer status in order to exit gracefully:
  13048. * src/PeerAbstractCommand.cc
  13049. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  13050. To fix the bug that causes the number of bytes uploaded is not saved
  13051. to .aria2 file:
  13052. * src/DefaultPeerStorage.h
  13053. (removedPeerSessionDownloadLength): New variable.
  13054. (removedPeerSessionUploadLength): New variable.
  13055. * src/DefaultPeerStorage.cc
  13056. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  13057. removedPeerSessionUploadLength(0).
  13058. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  13059. through all peers, and then add removedPeerSessionDownloadLength(
  13060. removedPeerSessionUploadLength) to it.
  13061. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  13062. (to) the peer to removedPeerSessionDownloadLength
  13063. (removedPeerSessionUploadLength).
  13064. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13065. To add Metalink location option:
  13066. * src/MetalinkRequestInfo.cc
  13067. (execute): Call MetalinkEntry::setLocationPreference()
  13068. * src/main.cc
  13069. (showUsage): Added the help message for --metalink-location option.
  13070. (main): Added --metalink-location option.
  13071. * src/prefs.h
  13072. (PREF_METALINK_LOCATION): New definition.
  13073. * src/MetalinkEntry.cc
  13074. (AddLocationPreference): New function object.
  13075. (setLocationPreference): New function.
  13076. * src/Xml2MetalinkProcessor.cc
  13077. (getResource): Set location attribute to MetalinkResource
  13078. To show URLs to download
  13079. * src/UrlRequestInfo.h
  13080. (printUrls): New function.
  13081. To add multiple <file> Metalink support:
  13082. * src/MetalinkEntry.h
  13083. (MetalinkResources): Removed.
  13084. (setLocationPreference): New function.
  13085. (MetalinkEntryHandle): New type definition.
  13086. (MetalinkEntries): New type definition.
  13087. * src/Xml2MetalinkProcessor.h
  13088. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  13089. (getResource): MetalinkResource* -> MetalinkResourceHandle
  13090. (parseFile): Metalinker* -> MetalinkerHandle
  13091. * src/UrlRequestInfo.h
  13092. (execute): RequestInfo* -> RequestInfos
  13093. * src/MetalinkRequestInfo.cc
  13094. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  13095. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  13096. (execute): RequestInfo* -> RequestInfos
  13097. Added multiple <file> support. Print filename when it is queued.
  13098. * src/MetalinkRequestInfo.h
  13099. (execute): RequestInfo* -> RequestInfos
  13100. (getDownloadEngine): Removed.
  13101. * src/RequestInfo.h
  13102. (RequestInfoHandle): New type definition.
  13103. (RequestInfos): New type definition.
  13104. (execute): RequestInfo* -> RequestInfos
  13105. (getDownloadEngine): Removed.
  13106. * src/MetalinkResource.h
  13107. (MetalinkResourceHandle): New type definition.
  13108. (MetalinkResources): New type definition.
  13109. * src/MetalinkEntry.cc
  13110. (~MetalinkEntry): Removed the deletion of the elements of resources,
  13111. because the element is now of type MetalinkResourceHandle.
  13112. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  13113. (Supported): MetalinkResource* -> MetalinkResourceHandle
  13114. (dropUnsupportedResource): Removed the deletion of the elements of
  13115. resources because the element is now of type MetalinkResourceHandle.
  13116. * src/Xml2MetalinkProcessor.cc
  13117. (parseFile): Metalinker* -> MetalinkerHandle
  13118. MetalinkEntry* -> MetalinkEntryHandle
  13119. Removed try-catch block.
  13120. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  13121. MetalinkResource* -> MetalinkResourceHandle
  13122. Removed try-catch block.
  13123. (getResource): MetalinkResource* -> MetalinkResourceHandle
  13124. Free result by using xmlXPathFreeObject()
  13125. * src/Metalinker.cc
  13126. (~Metalinker): Removed the deletion of entries.
  13127. MetalinkEntry* -> MetalinkEntryHandle
  13128. (queryEntry): Add multiple <file> Metalink support.
  13129. * src/Metalinker.h
  13130. (MetalinkEntries): Removed.
  13131. (queryEntry): MetalinkEntry* -> MetalinkEntries
  13132. * src/MetalinkProcessor.h
  13133. (parseFile): Metalinker* -> MetalinkerHandle
  13134. Bug fixes:
  13135. * src/PeerChokeCommand.cc
  13136. (execute): cat01->cat02
  13137. * src/DefaultPieceStorage.cc
  13138. (DefaultPieceStorage): Added diskAdaptor(0)
  13139. * src/TrackerWatcherComand.cc:
  13140. (execute): Use btAnnounce->noMoreAnnounce()
  13141. to determin whether the function returns true or not.
  13142. * src/TrackerUpdateCommand.cc:
  13143. (execute): Use btAnnounce->noMoreAnnounce()
  13144. to determin whether the function returns true or not.
  13145. * src/FtpConnection.cc
  13146. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  13147. This is the fix of the busy loop bug.
  13148. * src/DownloadCommand.cc
  13149. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  13150. cached PeerStat.
  13151. The value of "name" entry in torrent file is now set by
  13152. *DiskAdaptor::setTopDir(...) methods.
  13153. * src/MultiDiskAdaptor.h
  13154. (topDir): New variable.
  13155. (setTopDir): New function.
  13156. (getTopDir): New function.
  13157. * src/MultiDiskAdaptor.cc
  13158. (getFilePath): Concat storDir, "/" and topDir.
  13159. (mkdir): Use getFilePath() to get the directory path for output.
  13160. * src/DefaultPieceStorage.cc
  13161. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  13162. CopyDiskAdaptor.
  13163. * src/CopyDiskAdaptor.h
  13164. (topDir): New variable.
  13165. (setTopDir): New function.
  13166. (getTopDir): New function.
  13167. * src/CopyDiskAdaptor.cc
  13168. (fixFilename): Updated.
  13169. Misc
  13170. * src/UrlRequestInfo.h
  13171. (e): Removed.
  13172. (UrlRequestInfo): Removed e.
  13173. (getDownloadEngine): Removed.
  13174. * src/UrlRequestInfo.cc
  13175. (handler): Rewritten.
  13176. (printUrls): New function.
  13177. (execute): Call printUrls().
  13178. * src/HandshakeMessage.cc
  13179. (check): peerinteraction->getBtContext() -> btContext
  13180. * src/PeerInteraction.h
  13181. (getBtContext): Removed.
  13182. * src/TorrentRequestInfo.h
  13183. (execute): RequestInfo* -> RequestInfos
  13184. (getDownloadEngine): Removed.
  13185. * src/TorrentRequestInfo.cc
  13186. (haltRequested): Removed.
  13187. (btHaltRequested): New variable.
  13188. (torrentHandler): haltRequested -> btHaltRequested
  13189. (execute): RequestInfo* -> RequestInfos
  13190. * src/TorrentConsoleDownloadEngine.cc
  13191. (afterEachIteration): haltRequested -> btHaltRequested.
  13192. * src/ConsoleDownloadEngine.h
  13193. (initStatistics): Added virtual.
  13194. (calculateStatistics): Added virtual.
  13195. (onEndOfRun): Added virtual.
  13196. (afterEachIteration): Added virtual.
  13197. * src/ConsoleDownloadEngine.cc
  13198. (haltRequested): New variable.
  13199. (afterEachIteration): New function.
  13200. * src/main.cc
  13201. (requestInfo): Removed.
  13202. * src/SegmentMan.cc
  13203. (findSlowerSegmentEntry): Refactored.
  13204. * Release 0.9.0
  13205. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13206. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  13207. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  13208. * src/TorrentMan.h: Removed.
  13209. * src/TorrentMan.cc: Removed.
  13210. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  13211. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  13212. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  13213. * src/PeerAbstractCommand.cc: Use btRuntime.
  13214. * src/BtContextAwareCommand.h: New class.
  13215. * src/FileEntry.h: Added accessor methods for following variables.
  13216. (path): Made private.
  13217. (length): Made private.
  13218. (offset): Made private.
  13219. (extracted): Made private.
  13220. (requested): Made private.
  13221. (FileEntries): New definition.
  13222. (FileEntryHandle): New definition.
  13223. * src/FileEntry.cc: New file.
  13224. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  13225. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  13226. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  13227. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  13228. * src/PieceStorage.h: New file.
  13229. * src/PeerInteractionCommand.h: Use btContext.
  13230. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  13231. btRuntime.
  13232. * src/DefaultBtProgressInfoFile.h: New file.
  13233. * src/DefaultBtProgressInfoFile.cc: New file.
  13234. * src/File.cc
  13235. (Util.h): New include.
  13236. (mkdirs): New function.
  13237. * src/MultiDiskAdaptor.h
  13238. (mkdir): New function.
  13239. * src/PeerListProcessor.h
  13240. (Peers): Removed.
  13241. * src/PeerInteraction.h
  13242. (torrentMan): Removed.
  13243. (btContext): New variable.
  13244. (peerStorage): New variable.
  13245. (pieceStorage): New variable.
  13246. (btAnnounce): New variable.
  13247. (getTorrentMan): Removed.
  13248. (getBtContext): New function.
  13249. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  13250. btAnnounce.
  13251. * src/HandshakeMessage.h
  13252. (TorrentMan.h): Removed.
  13253. * src/HandshakeMessage.cc: Use btContext.
  13254. * src/DefaultBtAnnounce.cc: New file.
  13255. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  13256. * src/DefaultPieceStorage.cc: New file.
  13257. * src/DefaultBtContext.h: New file.
  13258. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  13259. Use the accessor methods of FileEntry.
  13260. * src/CookieBox.cc: Updated to use Util::slice().
  13261. * src/PieceMessage.cc: Use btContext, pieceStorage.
  13262. * src/common.h (SharedHandle.h): New include.
  13263. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  13264. pieceStorage.
  13265. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  13266. * src/DiskAdaptor.h
  13267. (topDir): Removed.
  13268. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  13269. (setTopDir): Removed.
  13270. (getTopDir): Removed.
  13271. * src/BtContext.h: New file.
  13272. * src/DefaultPeerStorage.h: New file.
  13273. * src/PieceMessage.h (TorrentMan.h): Removed.
  13274. * src/RequestMessage.h (TorrentMan.h): Removed.
  13275. * src/TorrentDownloadEngine.h
  13276. (uploadLength): New variable.
  13277. (btContext): New variable.
  13278. (btRuntime): New variable.
  13279. (pieceStorage): New variable.
  13280. (peerStorage): New variable.
  13281. (btAnnounce): New variable.
  13282. (btProgressInfoFile): New variable.
  13283. (torrentMan): Removed.
  13284. (setBtContext): New function.
  13285. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  13286. peerStorage, btAnnounce, btProgressInfoFile.
  13287. * src/Piece.h
  13288. (toString): New function.
  13289. (Pieces): New type definition.
  13290. * src/Peer.h
  13291. (active): New variable.
  13292. (Peer): Added active.
  13293. (activate): Set active to true.
  13294. (deactivate): Set active to false.
  13295. (isActive): New function.
  13296. (Peers): New type definition.
  13297. * src/DirectDiskAdaptor.cc
  13298. (getFilePath): Use the accessor methods of FileEntry.
  13299. * src/TorrentConsoleDownloadEngine.h
  13300. (afterEachIteration): New function.
  13301. * src/TorrentConsoleDownloadEngine.cc
  13302. (haltRequested): New variable.
  13303. (sendStatistics): Use pieceStorage, btRuntime.
  13304. (afterEachIteration): New function.
  13305. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  13306. * src/Directry.h
  13307. (Directory): New function.
  13308. (DirectoryHandle): New type definition.
  13309. * src/BtProgressInfoFile.h: New file.
  13310. * src/RequestMessage.cc: Use pieceStorage.
  13311. * src/BtRuntime.h: New file.
  13312. * src/DefaultBtContext.cc: New file.
  13313. * src/BitfieldMan.h
  13314. (getCompletedLength): New function(private).
  13315. (getCompletedLength): New function.
  13316. (getFilteredCompletedLength): New function.
  13317. * src/BitfieldMan.h
  13318. (getCompletedLength): New function(private).
  13319. (getCompletedLength): New function.
  13320. (getFilteredCompletedLength): New function.
  13321. * src/MultiDiskAdaptor.cc
  13322. (mkdir): New function.
  13323. (openFile): Call mkdir().
  13324. (initAndOpenFile): Call mkdir().
  13325. * src/CancelMessage.h
  13326. (TorrentMan.h): Removed.
  13327. * src/RejectMessage.h
  13328. (TorrentMan.h): Removed.
  13329. * src/DownloadEngineFactory.cc
  13330. (DefaultPieceStorage.h): New include.
  13331. (DefaultPeerStorage.h): New include.
  13332. (DefaultBtAnnounce.h): New include.
  13333. (DefaultBtProgressInfoFile.h): New include.
  13334. (newTorrentConsoleEngine): Rewritten.
  13335. * src/ShareRatioSeedCriteria.h
  13336. (torrentMan): Removed.
  13337. (btContext): New variable.
  13338. (peerStorage): New variable.
  13339. (btRuntime): New variable.
  13340. (evaluate): Use btContext, btRuntime, peerStorage.
  13341. * src/AnnounceTier.h: New file.
  13342. * src/BtAnnounce.h: New file.
  13343. * src/BtRegistry.h: New file.
  13344. * src/PeerInitiateConnectionCommand.h: Added btContext.
  13345. * src/PeerConnection.h (TorrentMan.h): Removed.
  13346. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  13347. * src/Util.h
  13348. (slice): Added an argument.
  13349. * src/Util.cc
  13350. (slice): Added an argument to control whether trim is made or not.
  13351. * src/PeerStorage.h: New file.
  13352. * src/BtRegistry.cc: New file.
  13353. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  13354. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  13355. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  13356. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  13357. * src/TorrentRequestInfo.h
  13358. (e): Removed.
  13359. (showFileEntry): Added an argument.
  13360. (getDownloadEngine): Return 0.
  13361. * src/DefaultBtAnnounce.h: New file.
  13362. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  13363. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  13364. * src/PeerMessageFactory.h
  13365. (btContext): New variable.
  13366. (pieceStorage): New variable.
  13367. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  13368. btAnnounce.
  13369. * src/DiskAdaptor.cc
  13370. (DiskAdaptor): Removed topDir.
  13371. (~DiskAdaptor): Removed topDir.
  13372. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  13373. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  13374. * src/File.h (mkdirs): New function.
  13375. * src/DefaultPeerStorage): New file.
  13376. * src/DownloadEngineFactory.h
  13377. (newTorrentConsoleEngine): Use btContext.
  13378. * src/BtContextAwareCommand.cc: New file.
  13379. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  13380. * src/PeerMessage.h
  13381. (btContext): New variable.
  13382. (peerStorage): New variable.
  13383. (pieceStorage): New variable.
  13384. (setBtContext): New function.
  13385. * src/Directry.cc
  13386. (Directory): New function.
  13387. (createDir): Do nothing if name.size() == 0.
  13388. * src/AnnounceList.h
  13389. (AnnounceTier): Removed.
  13390. (AnnounceTiers): Removed.
  13391. * src/DefaultPieceStorage.h: New file.
  13392. * src/Piece.cc (toString): New function.
  13393. To fix typo:
  13394. * src/main.cc (showVersion): Fixed typo.
  13395. To fix compile warning:
  13396. * src/DelegatingPeerListProcessor.cc
  13397. (canHandle): Added "return false".
  13398. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13399. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  13400. make the process of announce request testable.
  13401. * src/TrackerWatcherCommand.h
  13402. (TimeA2.h): Removed.
  13403. (interval): Removed.
  13404. (checkPoint): Removed.
  13405. (createRequestCommand): Added an argument 'url'.
  13406. (TrackerWatherCommand): Removed interval.
  13407. (createCommand): New function.
  13408. * src/DownloadEngineFactory.cc
  13409. (newTorrentConsoleEngine): Updated according to the changes in
  13410. TrackerWatherCommand.
  13411. * src/TorrentMan.cc
  13412. (DelegatingPeerListProcessor.h): New includes.
  13413. (TorrentMan): Added the initialization of announceInterval.
  13414. (isStoppedAnnounceReady): New function.
  13415. (isCompletedAnnounceReady): New function.
  13416. (isDefaultAnnounceReady): New function.
  13417. (isAnnounceReady): New function.
  13418. (getAnnounceUrl): New function.
  13419. (announceStart): New function.
  13420. (announceFailure): New function.
  13421. (announceSuccess): New function.
  13422. (isAllAnnounceFailed): New function.
  13423. (resetAnnounce): New function.
  13424. (processAnnounceResponse): New function.
  13425. (needMorePeerConnection): New function.
  13426. (noMoreAnnounce): New function.
  13427. * src/TrackerUpdateCommand.h
  13428. (getTrackerResponse): int->size_t
  13429. * src/TorrentMan.h
  13430. (isStoppedAnnounceReady): New function.
  13431. (isCompletedAnnounceReady): New function.
  13432. (isDefaultAnnounceReady): New function.
  13433. (announceInterval): New variable.
  13434. (isAnnounceReady): New function.
  13435. (getAnnounceUrl): New function.
  13436. (announceStart): New function.
  13437. (announceFailure): New function.
  13438. (announceSuccess): New function.
  13439. (isAllAnnounceFailed): New function.
  13440. (resetAnnounce): New function.
  13441. (processAnnounceResponse): New function.
  13442. (needMorePeerConnection): New function.
  13443. (noMoreAnnounce): New function.
  13444. * src/TrackerWatcherCommand.cc
  13445. (TrackerWatherCommand): Removed interval and checkPoint.
  13446. (execute): Rewritten.
  13447. (createCommand): New function.
  13448. (createRequestCommand): Rewritten.
  13449. * src/TrackerUpdateCommand.cc
  13450. (MetaFileUtil.h): Removed.
  13451. (DelegatingPeerListProcessor.h): Removed.
  13452. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  13453. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13454. Request -> RequestHandle:
  13455. * src/HttpResponseCommand.h: Request->RequestHandle
  13456. * src/AbstractCommand.cc: Request->RequestHandle
  13457. * src/HttpDownloadCommand.cc: Request->RequestHandle
  13458. * src/HttpRequestCommand.cc: Request->RequestHandle
  13459. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  13460. * src/AbstractCommand.h: Request->RequestHandle
  13461. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  13462. * src/HttpResponseCommand.cc: Request->RequestHandle
  13463. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  13464. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  13465. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  13466. * src/HttpConnection.h: Request->RequestHandle
  13467. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  13468. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  13469. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  13470. * src/DownloadCommand.h: Request->RequestHandle
  13471. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  13472. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  13473. * src/HttpRequestCommand.h: Request->RequestHandle
  13474. * src/FtpNegotiateCommand.h: Request->RequestHandle
  13475. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  13476. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  13477. * src/HttpDownloadCommand.h: Request->RequestHandle
  13478. * src/FtpConnection.cc: Request->RequestHandle
  13479. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  13480. * src/UrlRequestInfo.cc: Request->RequestHandle
  13481. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  13482. * src/HttpConnection.h: Request->RequestHandle
  13483. * src/DownloadCommand.cc: Request->RequestHandle
  13484. * src/FtpConnection.h: Request->RequestHandle
  13485. * src/FtpDowndloadCommand.h: Request->RequestHandle
  13486. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  13487. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  13488. * src/Request.h
  13489. (SharedHandle.h): New include.
  13490. (RequestHandle): New type definition.
  13491. (Requests): Redefined.
  13492. To add MULTITRACKER support:
  13493. * src/TrackerWatcherCommand.h
  13494. (createRequestCommand): New function.
  13495. * src/DownloadEngineFactory.cc
  13496. (newTorrentConsoleEngine): Removed req.
  13497. * src/prefs.h
  13498. (PREF_TRACKER_MAX_TRIES): New definition.
  13499. * src/TorrentMan.cc
  13500. (TorrentMan): Removed req. Added trackerNumTry.
  13501. (~TorrentMan): Removed req.
  13502. (setupInternal1): Added announceList.
  13503. * src/TorrentRequestInfo.cc
  13504. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  13505. announces is now specified by PREF_TRACKER_MAX_TRIES.
  13506. * src/main.cc
  13507. (main): Added PREF_TRACKER_MAX_TRIES.
  13508. * src/TorrentMan.h
  13509. (Request.h): Removed.
  13510. (AnnounceList.h): New include.
  13511. (trackerNumTry): New variable.
  13512. (req): Removed.
  13513. (announceList): New variable.
  13514. * src/TrackerWatcherCommand.cc
  13515. (execute): Rewritten.
  13516. (createRequestCommand): New function.
  13517. * src/TrackerUpdateCommand.cc
  13518. (execute): Updated with the use of AnnounceList.
  13519. * src/AnnounceList.cc: New class.
  13520. * src/AnnounceList.h: New class.
  13521. To fix typo:
  13522. * src/prefs.h
  13523. (PREF_MAX_TRIES): max_try->max_tries
  13524. To not to decode "+" as space in URL decode:
  13525. * src/Util.cc
  13526. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  13527. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13528. To add timeout to async name resolution:
  13529. * src/AbstractCommand.h
  13530. (nameResolveFinished): New function. This is not elegant way. It needs
  13531. to be more refined.
  13532. (nameResolverCheck): New variable.
  13533. * src/AbstractCommand.cc
  13534. (AbstractCommand): Added nameResolverCheck.
  13535. (execute): Added the check whether the name resolution has finished.
  13536. (setNameResolverCheck): Set nameResolverCheck to true.
  13537. (disableNameResolverCheck): Set nameResolverCheck to false.
  13538. (nameResolverFinished): New function.
  13539. * src/FtpInitiateConnectionCommand.h
  13540. (nameResolverFinished): New function.
  13541. * src/FtpInitiateConnectionCommand.cc
  13542. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  13543. * src/HttpInitiateConnectionCommand.h
  13544. (nameResolverFinished): New function.
  13545. * src/HttpInitiateConnectionCommand.cc
  13546. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  13547. * src/prefs.h
  13548. (PREF_DNS_TIMEOUT): New definition.
  13549. * src/main.cc
  13550. (main): Added PREF_DNS_TIMEOUT.
  13551. To add the support for a non-compact response from a tracker:
  13552. * src/PeerListProcessor.h: New class.
  13553. * src/DefaultPeerListProcessor.h: New class.
  13554. * src/DefaultPeerListProcessor.cc: New class.
  13555. * src/CompactPeerListProcessor.h: New class.
  13556. * src/CompactPeerListProcessor.cc: New class.
  13557. * src/DelegatingPeerListProcessor.h: New class.
  13558. * src/DelegatingPeerListProcessor.cc: New class.
  13559. * src/TorrentMan.cc
  13560. (addPeer): New function(overload).
  13561. (addPeer): Delete unused peers only when new peer is added.
  13562. * src/TorrentMan.h
  13563. (PeerListProcessor.h): Included.
  13564. (Peers): Removed.
  13565. (addPeer): New function(overload).
  13566. * src/TrackerUpdateCommand.cc
  13567. (netinet/in.h): Removed.
  13568. (DelegatingPeerListProcessor.h): Included.
  13569. (execute): Updated to use DelegatingPeerListProcessor.
  13570. To fix the memory leak in TorrentMan::peers:
  13571. * src/PeerAbstractCommand.cc
  13572. (onAbort): Added peer->resetStatus().
  13573. * src/Peer.h
  13574. (resetStatus): Made public.
  13575. To improve the precision of the speed calculation:
  13576. * src/SpeedCalc.h
  13577. (nextInterval): New variable.
  13578. * src/SpeedCalc.cc
  13579. (reset): Added nextInterval.
  13580. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  13581. (changeSw): Set nextInterval to 15 seconds relative to the current
  13582. instant time.
  13583. * src/main.cc
  13584. (showVersion): Updated.
  13585. (showUsage): Updated.
  13586. * Release 0.8.1
  13587. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13588. * src/main.cc
  13589. (showUsage): Commented out --min-segment-size option.
  13590. (main): Commented out --min-segment-size option.
  13591. * Release 0.8.0
  13592. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13593. * src/*.{h,cc}:
  13594. Added an exception to the license which allows linking with OpenSSL.
  13595. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13596. * src/AbstractCommand.cc
  13597. (execute): Check whether the download has finished before checking
  13598. socket status.
  13599. Return true if peerStat->getStatus() == REQUEST_IDLE.
  13600. Do not exit even if no segment is available.
  13601. * src/prefs.h
  13602. (PREF_STARTUP_IDLE_TIME): New definition.
  13603. * src/PeerInteractionCommand.cc
  13604. (executeInternal): Removed max speed limit. Because it performs bad.
  13605. (receiveMessages): Added max speed limit. This was better than above,
  13606. but still a little bit to be desired. Sometimes the download speed
  13607. became much faster than I specified.
  13608. * src/SpeedCalc.h
  13609. (start): New variable.
  13610. (accumulatedLength): New variable.
  13611. (getAvgSpeed): New function.
  13612. * src/SpeedCalc.cc
  13613. (reset): Added start, accumulatedLength.
  13614. (update): Added calculation of an average speed.
  13615. (getAvgSpeed): New function.
  13616. * src/DownloadCommand.h
  13617. (sw): Removed.
  13618. * src/main.cc
  13619. (main): Added PREF_STARTUP_IDLE_TIME.
  13620. * src/PeerStat.h
  13621. (STATUS): Added REQUEST_IDLE.
  13622. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  13623. (getAvgDownloadSpeed): New function
  13624. (requestIdle): New function.
  13625. * src/SegmentMan.h
  13626. (SegmentEntryHandle): New type definition.
  13627. (SegmentEntries): Now holds SegmentEntryHandle.
  13628. (findSlowerSegmentEntry): New funtion.
  13629. * src/SegmentMan.cc
  13630. (save): Updated according to the changes in SegmentEntries.
  13631. (read): Updated according to the changes in SegmentEntries.
  13632. (FindSegmentEntryByIndex): Updated according to the changes in
  13633. SegmentEntries.
  13634. (FindSegmentEntryByCuid): Updated according to the changes in
  13635. SegmentEntries.
  13636. (checkoutSegment): Updated according to the changes in SegmentEntries.
  13637. (onNullBitfield): Updated according to the changes in SegmentEntries.
  13638. Renamed uitr as itr.
  13639. (findSlowerSegmentEntry): New function.
  13640. (getSegment): Updated according to the changes in SegmentEntries.
  13641. Added the feature that cancels the segment with slow server and fast
  13642. one takes it over.
  13643. (cancelSegment): Updated according to the changes in SegmentEntries.
  13644. (getDownloadLength): Updated according to the changes in
  13645. SegmentEntries.
  13646. (init): Assigned 0 to bitfield after deleting it.
  13647. * src/DownloadCommand.cc
  13648. (STARTUP_IDLE_TIME): Removed.
  13649. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  13650. * src/PeerChokeCommand.cc
  13651. (optUnchokingPeer): Updated according to the changes in Peer.
  13652. (ResetDelta): Removed.
  13653. (UploadFaster): Updated according to the changes in Peer.
  13654. (DownloadFaster): Updated according to the changes in Peer.
  13655. (execute): I clarify the meaning of "upload" and "download" here.
  13656. "upload" means the transfer from localhost to remote host.
  13657. "download" means the transfer from remote host to localhost.
  13658. Based on this rule, I swapped orderByUploadRate and
  13659. orderByDownloadRate.
  13660. * src/PeerInteractionCommand.cc
  13661. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  13662. (executeInternal): Removed the argument of
  13663. peerInteraction->sendMessages().
  13664. (receiveMessages): Rewritten download speed limit.
  13665. (sendKeepAlive): Removed peerInteraction->sendMessages().
  13666. * src/HttpResponseCommand.cc
  13667. (handleDefaultEncoding): If file size is unknown in torrent request,
  13668. do not call segmentMan->initBitfield() here.
  13669. Disabled persistent connection feature in torrent request.
  13670. * src/UrlRequestInfo.h
  13671. (UrlRequestInfo): Removed const qualifier from option.
  13672. * src/TorrentMan.h
  13673. (TransferStat): New class.
  13674. (deltaDownloadLength): Removed.
  13675. (deltaUploadLength): Removed.
  13676. (addDeltaDownloadLength): Removed.
  13677. (getDeltaDownloadLength): Removed.
  13678. (resetDeltaDownloadLength): Removed.
  13679. (addDeltaUploadLength): Removed.
  13680. (getDeltaUploadLength): Removed.
  13681. (resetDeltaUploadLength): Removed.
  13682. (addActivePeer): Added peer->activate().
  13683. (deleteActivePeer): Added peer->deactivate().
  13684. (calculateStat): New function.
  13685. * src/TorrentMan.cc
  13686. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  13687. (calculateStat): New function.
  13688. * src/PeerInteraction.h
  13689. (uploadLimit): Removed.
  13690. (option): New variable.
  13691. (setUploadLimit): Removed.
  13692. (getUploadSpeed): Removed.
  13693. (sendMessages): Removed the argument "currentUploadSpeed".
  13694. * src/PeerInteraction.cc
  13695. (prefs.h): Included.
  13696. (PeerInteraction): Removed uploadLimit. Added option.
  13697. (sendMessages): Rewritten upload speed limit.
  13698. (sendHandshake): Removed the argument from sendMessages().
  13699. (sendBitfield): Removed the argument from sendMessages().
  13700. * src/PeerAbstractCommand.cc
  13701. (execute): Commented out the portion of upload limit.
  13702. (onAbort): Removed peer->resetStatus().
  13703. * src/TorrentRequestInfo.cc
  13704. (timeoutSpecified): Declared extern.
  13705. (execute): Set timeout to 180 if timeout is not specified by.
  13706. command-line.
  13707. * src/PieceMessage.cc
  13708. (receivedAction): Added peer->updateDownloadLength().
  13709. Removed peer->addPeerUpload().
  13710. Removed torrentMan->addDeltaDownloadLength().
  13711. (send): Added peer->updateUploadLength().
  13712. Removed peer->addPeerDownload().
  13713. Removed torrentMan->addDeltaUploadLength().
  13714. * src/main.cc
  13715. (timeoutSpecified): New variable.
  13716. (main): Set timeoutSpecified to false.
  13717. If the command-line option "--upload-limit" is specified, then
  13718. timeoutSpecified is set to true. This option will remain in the next
  13719. release, but be deprecated in the future release.
  13720. * src/TorrentRequestInfo.h
  13721. (TorrentRequestInfo): Removed const qualifier from op.
  13722. * src/PeerStat.h
  13723. (uploadSpeed): New variable.
  13724. (PeerStat): Added default value to cuid.
  13725. (calculateUploadSpeed): New function.
  13726. (updateUploadLength): New function.
  13727. (getMaxUploadSpeed): New function.
  13728. (getAvgUploadSpeed): New function.
  13729. (reset): Added uploadSpeed. Set status to IDLE.
  13730. * src/TorrentDownloadEngine.h
  13731. (cp): Declared as Time.
  13732. (sessionDownloadLengthArray): Removed.
  13733. (sessionUploadLengthArray): Removed.
  13734. (currentCp): Removed.
  13735. (lastCalcStat): New variable
  13736. (lastElapsed): Removed.
  13737. (sessionDownloadLength): Removed.
  13738. (calculateStat): New function.
  13739. * src/TorrentDownloadEngine.cc
  13740. (initStatistics): Removed lastElapsed, cp[],
  13741. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  13742. currentCp, sessionDownloadLength.
  13743. Added cp.reset() and lastCalcStat.reset().
  13744. (calculateSpeed): Changed the name of the argument.
  13745. (calculateStatistics): Rewritten.
  13746. (calculateStat): New function.
  13747. * src/Peer.h
  13748. (PeerStat.h): Included.
  13749. (peerUpload): Removed.
  13750. (peerDownload): Removed.
  13751. (peerStat): New variable.
  13752. (sessionUploadLength): New variable.
  13753. (sessionDownloadLength): New variable.
  13754. (deltaUpload): Removed.
  13755. (deltaDownload): Removed.
  13756. (resetStatus): Made private.
  13757. (Peer): Added sessionUploadLength, sessionDownloadLength.
  13758. Removed peerUpload, peerDownload.
  13759. (updateUploadLength): New function.
  13760. (addDeltaUpload): Removed.
  13761. (updateDownloadLength): New function.
  13762. (resetDeltaUpload): Removed.
  13763. (getDeltaUpload): Removed.
  13764. (addDeltaDownload): Removed.
  13765. (calculateUploadSpeed): New function.
  13766. (resetDeltaDownload): Removed.
  13767. (getDeltaDownload): Removed.
  13768. (calculateDownloadSpeed): New function.
  13769. (getSessionUploadLength): New function.
  13770. (getSessionDownloadLength): New function.
  13771. (activate): New function.
  13772. (deactivate): New function.
  13773. (addPeerUpload): Removed.
  13774. (setPeerUpload): Removed.
  13775. (getPeerUpload): Removed.
  13776. (addPeerDownload): Removed.
  13777. (setPeerDownload): Removed.
  13778. (getPeerDownload): Removed.
  13779. * src/Peer.cc
  13780. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  13781. * src/MetalinkRequestInfo.h
  13782. (MetalinkRequestInfo): Removed const qualifier from op.
  13783. * src/RequestInfo.h
  13784. (op): Removed const qualifier.
  13785. (RequestInfo): Removed const qualifier from op.
  13786. * src/prefs.h
  13787. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  13788. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  13789. * src/PeerInteractionCommand.cc
  13790. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  13791. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  13792. * src/PeerInteraction.cc
  13793. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  13794. * src/main.cc
  13795. (showUsage): Updated the description of "--lowest-speed-limit" option.
  13796. Added the description of "--max-download-limit" option.
  13797. Removed the description of "--upload-limit" option.
  13798. Added the description of "--max-upload-limit" option.
  13799. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  13800. Added "--max-download-limit" option and "--max-upload-limit" option.
  13801. Added the warning message if "--upload-limit" option is used.
  13802. * src/DownloadCommand.cc
  13803. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  13804. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13805. To rewrite segment download mechanism for HTTP/FTP download.
  13806. Use BitfieldMan to manage segment download.
  13807. * src/HttpResponseCommand.h
  13808. (executeInternal): Pass the reference of segment.
  13809. * src/AbstractCommand.cc
  13810. (prepareForRetry): Call segmentMan->cancelSegment here.
  13811. (onAbort): Call segmentMan->cancelSegment here.
  13812. * src/HttpDownloadCommand.cc
  13813. (prepareForNextSegment): New function.
  13814. * src/DownloadEngineFactory.cc
  13815. (newConsoleEngine): Removed splitter.
  13816. (newTorrentConsoleEngine): Removed splitter.
  13817. * src/Request.h
  13818. (segment): Renamed from seg.
  13819. * src/FtpInitiateConnectionCommand.h
  13820. (executeInternal): Pass the reference of segment.
  13821. * src/AbstractCommand.h
  13822. (executeInternal): Pass the reference of segment.
  13823. * src/pref.h
  13824. (PREF_SEGMENT_SIZE): New definition.
  13825. * src/HttpProxyRequestCommand.h
  13826. (executeInternal): Pass the reference of segment.
  13827. * src/HttpResponseCommand.cc
  13828. (checkResponse): Allowed status 206 when a request range starts 0.
  13829. (handleDefaultEncoding): Rewritten the code related to Segment.
  13830. (handleOtherEncoding): Rewritten the code related to Segment.
  13831. * src/SegmentMan.h
  13832. (SegmentEntry): New class.
  13833. (SegmentEntries): New type definition.
  13834. (bitfield): New variable.
  13835. (usedSegmentEntries): New variable.
  13836. (onNullBitfield): New function.
  13837. (checkoutSegment): New function.
  13838. (segments): Removed.
  13839. (splitter): Removed.
  13840. (unregisterId): Removed.
  13841. (getSegment): New function(overload)
  13842. (getDownloadedSize): Removed.
  13843. (cancelSegment): New function.
  13844. (completeSegment): New function.
  13845. (initBitfield): New function.
  13846. (hasSegment): New function.
  13847. (getDownloadLength): New function.
  13848. * src/BitfieldMan.h
  13849. (getStartIndex): New function.
  13850. (getEndIndex): New function.
  13851. (getMissingUnusedIndex): New function(overload).
  13852. (getSparseMissingUnusedIndex): New function.
  13853. * src/BitfieldMan.cc
  13854. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  13855. (getMissingUnusedIndex): New function(overload).
  13856. (Range): New class.
  13857. (getStartIndex): New function.
  13858. (getEndIndex): New function.
  13859. (getSparseMissingUnusedIndex): New function.
  13860. (isBitSetInternal): Return false if the given index is less than 0.
  13861. * src/HttpInitiateConnectionCommand.h
  13862. (executeInternal): Pass the reference of segment.
  13863. * src/FtpNegotiateCommand.h
  13864. (executeInternal): Pass the reference of segment.
  13865. * src/FtpNegotiateCommand.cc
  13866. (recvSize): Initialize bitfield here.
  13867. * src/FtpTunnelResponseCommand.h
  13868. (executeInternal): Pass the reference of segment.
  13869. * src/HttpConnection.cc
  13870. (createRequest): Rewritten range header processing.
  13871. * src/DownloadCommand.h
  13872. (executeInternal): Pass the reference of segment.
  13873. (prepareForRetry): Removed.
  13874. (prepareForNextSegment): Added an argument segment. Made it a virtual
  13875. function.
  13876. * src/main.cc
  13877. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  13878. * src/SegmentMan.cc
  13879. (SegmentMan): Added bitfield. Removed splitter.
  13880. (~SegmentMan): Added bitfield. Removed splitter.
  13881. (unregisterId): Removed.
  13882. (getSegment): Rewritten.
  13883. (updateSegment): Rewritten.
  13884. (save): Rewritten.
  13885. (read): Rewritten.
  13886. (finished): Rewritten.
  13887. (getDownloadedSize): Removed.
  13888. (initBitfield): New function.
  13889. (FindSegmentEntryByIndex): New function object.
  13890. (FindSegmentEntryByCuid): New function object.
  13891. (checkoutSegment): New function.
  13892. (onNullBitfield): New function.
  13893. (getSegment): New function(overload).
  13894. (CancelSegment): New function object.
  13895. (cancelSegment): New function.
  13896. (completeSegment): New function.
  13897. (hasSegment): New function.
  13898. (getDownloadLength): New function.
  13899. * src/FtpInitiateConnectionCommand.cc
  13900. (executeInternal): Load .aria2 file after hostname resolution finishes.
  13901. * src/Segment.h: Rewritten.
  13902. * src/Segment.cc (operator<<): New function.
  13903. * src/HttpDownloadCommand.h
  13904. (prepareForNextSegment): New function.
  13905. * src/Request.cc
  13906. (resetUrl): Made segment null.
  13907. * src/DownloadEngine.cc
  13908. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  13909. * src/HttpProxyRequestCommand.h
  13910. (executeInternal): Pass the reference of segment.
  13911. * src/DownloadCommand.cc
  13912. (executeInternal): Rewritten the code related to Segment.
  13913. (prepareForRetry): Removed.
  13914. (prepareForNextSegment): Rewritten.
  13915. * src/FtpTunnelResponseCommand.h
  13916. (executeInternal): Pass the reference of segment.
  13917. To add HTTP 1.1 persistent connection support(experimental)
  13918. * src/HttpRequestCommand.cc
  13919. (executeInternal): Disable keep alive if it is disabled by
  13920. configuration.
  13921. * src/Request.h
  13922. (keepAlive): New variable.
  13923. (isKeepAlive): New function.
  13924. (setKeepAlive): New function.
  13925. * src/pref.h
  13926. (PREF_HTTP_KEEP_ALIVE): New definition.
  13927. * src/HttpResponseCommand.cc
  13928. (executeInternal): Check the remote server supports keep alive.
  13929. * src/HttpConnection.cc
  13930. (createRequest): Send "Connection: close" only if keep alive is
  13931. disabled.
  13932. * src/main.cc
  13933. (main):
  13934. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  13935. To add max download speed limit:
  13936. * src/pref.h
  13937. (PREF_MAX_SPEED_LIMIT): New definition.
  13938. * src/PeerInteractionCommand.cc
  13939. (executeInternal): Added max download speed limit. Not tested yet.
  13940. * src/SegmentMan.h
  13941. (PeerStats): New type definition.
  13942. (peerStats): New variable.
  13943. (registerPeerStat): New function.
  13944. (FindPeerStat): New function object.
  13945. (getPeerStat): New function.
  13946. (calculateDownloadSpeed): New function.
  13947. * src/SpeedCalc.h: New class.
  13948. * src/SpeedCalc.cc: New class.
  13949. * src/main.cc
  13950. (main):
  13951. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  13952. download speed is not restricted).
  13953. * src/PeerStat.h: New class.
  13954. * src/SegmentMan.cc
  13955. (registerPeerStat): New function.
  13956. (calculateDownloadSpeed): New function.
  13957. * src/DownloadCommand.cc
  13958. (STARTUP_IDLE_TIME): New definition.
  13959. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  13960. downloadStart.
  13961. (~DownloadCommand): Call peerStat->downloadStop.
  13962. (executeInternal): Added download speed limitter. Rewritten lowest
  13963. speed limitter.
  13964. * src/HttpConnection.cc
  13965. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  13966. * src/AbstractCommand.cc
  13967. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  13968. Added hostname to the error message.
  13969. * src/ConsoleDownloadEngine.cc
  13970. (calculateStatistics): Initialize psize with dlSize.
  13971. * src/PieceMessage.cc
  13972. (receivedAction): Do not call peerInteraction->abortPiece here.
  13973. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  13974. * src/BitfieldMan.h
  13975. (clearAllUseBit): New function.
  13976. (setAllUseBit): New function.
  13977. * src/BitfieldMan.cc
  13978. (clearAllBit): Do not clear useBitfield here.
  13979. (clearAllUseBit): New function.
  13980. (setAllUseBit): New function.
  13981. * src/Piece.cc
  13982. (clearAllBlock): Call bitfield->clearAllUseBit().
  13983. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13984. To make filename URL-decoded:
  13985. * src/HttpResponseCommand.h: Updated doc.
  13986. * src/HttpResponseCommand.cc
  13987. (determinFilename): Made filename URL-decoded.
  13988. * src/FtpInitiateConnectionCommand.cc
  13989. (executeInternal): Made filename URL-decoded.
  13990. * src/Util.h (urldecode): New function.
  13991. * src/Util.cc (urldecode): New function.
  13992. To fix a bug that caused assertion failure in ares_strerror:
  13993. * src/NameResolver.cc (callback): Fixed the bug.
  13994. * Release 0.7.3
  13995. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13996. To add --seed-time and --seed-ratio command-line option:
  13997. * src/Option.h (getAsDouble): New function.
  13998. * src/Option.cc (getAsDouble): New function.
  13999. * src/SeedCheckCommand.h: New class.
  14000. * src/SeedCheckCommand.cc: New class.
  14001. * src/DownloadEngineFactory.cc
  14002. (SeedCheckCommand.h): Included.
  14003. (UnionSeedCriteria.h): Included.
  14004. (TimeSeedCriteria.h): Included.
  14005. (ShareRatioSeedCriteria.h): Included.
  14006. (newTorrentConsoleEngine): Added the processing of seed option.
  14007. * src/SeedCriteria.h: New class.
  14008. * src/ShareRatioSeedCriteria.h: New class.
  14009. * src/TimeSeedCriteria.h: New class.
  14010. * src/UnionSeedCriteria.h: New class.
  14011. * src/prefs.h
  14012. (PREF_SEED_TIME): New definition.
  14013. (PREF_SEED_RATIO): New definition.
  14014. * src/main.cc
  14015. (showUsage): Added --seed-time and --seed-ratio option.
  14016. (main): Added --seed-time and --seed-ratio option.
  14017. Made default log file name "/dev/null".
  14018. * src/SharedHandle.h
  14019. (SharedHandle): Copy constructor. Made it assignable from the
  14020. SharedHandle of the subclasses.
  14021. (operator=): Made it assignable from the SharedHandle of the
  14022. subclasses.
  14023. (getRefCount): New function.
  14024. To add notice log level and the switch to write log to stdout. This
  14025. switch is configurable per log level.
  14026. * src/Logger.h
  14027. (notice): New function.
  14028. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  14029. constant.
  14030. * src/LogFactory.cc
  14031. (getInstance): The use of NullLogger was removed. A log message with
  14032. notice log level was made written to stdout along with log file.
  14033. * src/NullLogger.h
  14034. (notice): New function.
  14035. * src/SimpleLogger.h
  14036. (writeHeader): Added the 'file' argument.
  14037. (writeLog): Added the 'file' argument.
  14038. (writeFile): New function.
  14039. (stdoutField): New variable.
  14040. (SimpleLogger): Removed the default constructor.
  14041. (SimpleLogger): Made the default value of logfile 0.
  14042. (debug): Added 'virtual' keyword.
  14043. (info): Added 'virtual' keyword.
  14044. (warn): Added 'virtual' keyword.
  14045. (error): Added 'virtual' keyword.
  14046. (notice): New function.
  14047. (setStdout): New function.
  14048. * src/SimpleLogger.cc
  14049. (WRITE_LOG): Replaced writeLog with writeFile.
  14050. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  14051. (SimpleLogger): Removed the default constructor.
  14052. (setStdout): New function.
  14053. (writeLog): Added the handling of NOTICE log level.
  14054. (writeFile): New function.
  14055. (notice): New function.
  14056. * src/TorrentMan.h: Updated doc.
  14057. * src/BitfieldMan.h: Updated doc.
  14058. * src/TrackerWatcherCommand.cc
  14059. (execute): Return true if error occurred in the request to the tracker
  14060. and halt is requested.
  14061. * src/TrackerUpdateCommand.cc
  14062. (execute): Return true if error occurred in the request to the tracker
  14063. and halt is requested.
  14064. To call onDownloadComplete from TorrentMan::completePiece(), not from
  14065. DownloadEngine:
  14066. * src/TorrentConsoleDownloadEngine.h
  14067. (onSelectiveDownloadingCompletes): Removed.
  14068. * src/TorrentConsoleDownloadEngine.cc
  14069. (onSelectiveDownloadingCompletes): Removed.
  14070. * src/TorrentDownloadEngine.h
  14071. (onEndOfRun): Added 'virtual' keyword.
  14072. (afterEachIteration): Removed.
  14073. (onSelectiveDownloadingCompletes): Removed.
  14074. * src/TorrentDownloadEngine.cc
  14075. (onEndOfRun): Removed filenameFixed.
  14076. (afterEachIteration): Removed.
  14077. * src/TorrentMan.cc
  14078. (completePiece): Call onDownloadComplete here.
  14079. (onDownloadComplete): Added 2 log messages.
  14080. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14081. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  14082. * src/NameResolver.h: Added the prototype declaration of callback().
  14083. To support c-ares library:
  14084. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14085. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14086. * src/FtpInitiateConnectionCommand.h:
  14087. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14088. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14089. * src/HttpInitiateConnectionCommand.h:
  14090. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14091. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  14092. Added thes upport of c-ares's ares_strerror(the idea came from patch
  14093. #1542285 by tizianomueller)
  14094. * src/HttpInitiateConnectionCommand.cc:
  14095. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14096. * src/FtpInitiateConnectionCommand.cc:
  14097. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14098. * src/DownloadEngine.h:
  14099. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14100. * src/DownloadEngine.cc:
  14101. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14102. To fix the bug that causes compilation failure with metalink-support
  14103. disabled(bug#1543587):
  14104. * src/main.cc: Fixed with the patch by tizianomueller.
  14105. * Release 0.7.2
  14106. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14107. * src/main.cc
  14108. (main): Added a message to inform users that aria2 is starting to
  14109. verify checksum.
  14110. * src/RequestInfo.cc
  14111. (printDownloadAbortMessage): Added a message to inform users that
  14112. transfer can be resumed.
  14113. * src/FeatureConfig.cc
  14114. (FEATURE_ASYNC_DNS): New definition.
  14115. (FeatureConfig): Added aysnc DNS entry.
  14116. To replace CommandUuid with Command* in SocketEntry and
  14117. NameResolverEntry:
  14118. * src/DownloadEngine.h
  14119. (CommandUuids): Removed.
  14120. (SocketEntry::commandUuid): Removed.
  14121. (SocketEntry::command): New variable.
  14122. (SocketEntry::SocketEntry): Updated.
  14123. (SocketEntry::operator==): Updated.
  14124. (NameResolverEntry::commandUuid): Removed.
  14125. (NameResolverEntry::command): New variable.
  14126. (NameResolverEntry::NameResolverEntry): Updated.
  14127. (NameResolverEntry::operator==): Updated.
  14128. (waitData): Changed the argument type.
  14129. (addSocketForReadCheck): Changed the argument type.
  14130. (deleteSocketForReadCheck): Changed the argument type.
  14131. (addSocketForWriteCheck): Changed the argument type.
  14132. (deleteSocketForWriteCheck): Changed the argument type.
  14133. (addNameResolverCheck): Changed the argument type.
  14134. (deleteNameResolverCheck): Changed the argument type.
  14135. * src/DownloadEngine.cc
  14136. (FindCommand): Removed.
  14137. (run): Removed activeUuid. Added activeCommands instead.
  14138. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  14139. (AccumulateActiveCommand): New function object.
  14140. (waitData): Use AccumulateActiveCommand.
  14141. (addSocketForReadCheck): Use Command instead of CommandUuid.
  14142. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  14143. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  14144. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  14145. (addNameResolverCheck): Use Command instead of CommandUuid.
  14146. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  14147. * src/AbstractCommand.cc
  14148. (disableReadCheckSocket): Updated according to the changes in
  14149. DownloadEngine.
  14150. (setReadCheckSocket): Updated according to the changes in
  14151. DownloadEngine.
  14152. (disableWriteCheckSocket): Updated according to the changes in
  14153. DownloadEngine.
  14154. (setWriteCheckSocket): Updated according to the changes in
  14155. DownloadEngine.
  14156. (setNameResolverCheck): Updated according to the changes in
  14157. DownloadEngine.
  14158. (disableNameResolverCheck): Updated according to the changes in
  14159. DownloadEngine.
  14160. * src/AbstractCommand.cc
  14161. (disableReadCheckSocket): Updated according to the changes in
  14162. DownloadEngine.
  14163. (setReadCheckSocket): Updated according to the changes in
  14164. DownloadEngine.
  14165. (disableWriteCheckSocket): Updated according to the changes in
  14166. DownloadEngine.
  14167. (setWriteCheckSocket): Updated according to the changes in
  14168. DownloadEngine.
  14169. * release 0.7.1
  14170. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14171. To handle the case where some BitTorrent tracker requires all letters
  14172. except for [A-Za-z0-9] is URL encoded.
  14173. * src/Util.h
  14174. (torrentUrlencode): New function.
  14175. * src/Util.cc
  14176. (ctype.h): Included.
  14177. (torrentUrlencode): New function.
  14178. * src/TrackerWatcherCommand.cc
  14179. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  14180. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14181. To add asynchronous DNS support(libares):
  14182. * src/AbstractCommand.h
  14183. (setNameResolverCheck): New function.
  14184. (disableNameResolverCheck): New function
  14185. (resolveHostname): New function.
  14186. * src/AbstractCommand.cc
  14187. (setNameResolverCheck): New function.
  14188. (disableNameResolverCheck): New function
  14189. (resolveHostname): New function.
  14190. * src/FtpInitiateConnectionCommand.h
  14191. (nameResolver): New function.
  14192. * src/FtpInitiateConnectionCommand.cc
  14193. (Util.h): Included.
  14194. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  14195. disableWriteCheckSocket.
  14196. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  14197. (executeInternal): Added async DNS support.
  14198. * src/HttpInitiateConnectionCommand.h
  14199. (nameResolver): New function.
  14200. * src/HttpInitiateConnectionCommand.cc
  14201. (DlRetryEx.h): Included.
  14202. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  14203. disableWriteCheckSocket.
  14204. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  14205. (executeInternal): Added async DNS support.
  14206. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  14207. by extern "C" declaration.
  14208. * src/NameResolver.cc: New class.
  14209. * src/Util.h:
  14210. (isNumberAndDotsNotation): New function
  14211. * src/Util.cc
  14212. (isNumberAndDotsNotation): New function.
  14213. * src/DownloadEngine.h
  14214. (NameResolver.h): Included.
  14215. (NameResolverEntry): New class.
  14216. (NameResolverEntries): New type definition.
  14217. (addNameResolverCheck): New function.
  14218. (deleteNameResolverCheck): New function.
  14219. * src/DownloadEngine.cc
  14220. (run): Initialize cp with 0.
  14221. (SetDescriptor::operator()): Added for NameResolverEntry.
  14222. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  14223. (waitData): Check nameResolver entries.
  14224. (updateFdSet): Update fds in nameResolver entries.
  14225. (addNameResolverCheck): New function.
  14226. (deleteNameResolverCheck): new function.
  14227. * src/PeerInteractionCommand.cc
  14228. (executeInternal): Fixed wrong socket handling.
  14229. * src/main.cc
  14230. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  14231. * src/Util.cc
  14232. (fileChecksum): Removed the call to ctx.digestReset().
  14233. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14234. * po/ru.po: Azamat sent me Russian translation.
  14235. * src/FtpNegotiateCommand.cc
  14236. (recvGreeting): Call disableWriteCheckSocket just after
  14237. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  14238. (recvRetr): Recognized status code 125 as a acceptable response code.
  14239. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  14240. case-insesitive filesystem(BUG#1531057).
  14241. * src/Time.h: Renamed as TimeA2.h.
  14242. * src/Time.cc: Renamed as TimeA2.cc.
  14243. * src/TimeA2.h: New class.
  14244. * src/TimeA2.cc: New class.
  14245. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  14246. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  14247. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  14248. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  14249. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  14250. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  14251. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  14252. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  14253. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  14254. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  14255. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  14256. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  14257. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  14258. * release 0.7.0
  14259. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14260. * src/PeerChokeCommand.h
  14261. (PeerChokeCommand): Rearranged the arguments.
  14262. * src/PeerChokeCommand.cc
  14263. (PeerChokeCommand): Rearranged the arguments.
  14264. * src/MetalinkEntry.h
  14265. (Checksum.h): Included.
  14266. (md5): Removed.
  14267. (sha1): Removed.
  14268. (checksum): New variable.
  14269. (operator=): Updated.
  14270. (check): Removed.
  14271. * src/prefs.h
  14272. (PREF_LOWEST_SPEED_LIMIT): New definition.
  14273. (PREF_FOLLOW_TORRENT): New definition.
  14274. (PREF_SELECT_FILE): New definition.
  14275. (PREF_FOLLOW_METALINK): New definition.
  14276. * src/MetalinkResource.h
  14277. (TYPE_HTTPS): Added to enum TYPE.
  14278. * src/TorrentMan.cc
  14279. (~TorrentMan): Rewritten.
  14280. * src/MultiDiskWriter.cc
  14281. (MultiDiskAdaptor): Updated according to the changes in
  14282. MessageDigestContext.
  14283. (~MultiDiskAdaptor): Updated according to the changes in
  14284. MessageDigestContext.
  14285. (hashUpdate): Updated according to the changes in MessageDigestContext.
  14286. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14287. * src/Util.h
  14288. (fileChecksum): Updated according to the changes in
  14289. MessageDigestContext.
  14290. * src/Util.cc
  14291. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14292. (fileChecksum): Updated according to the changes in
  14293. MessageDigestContext.
  14294. * src/messageDigest.h: Rewritten.
  14295. * src/MetalinkEntry.cc
  14296. (check): Removed.
  14297. (Supported): Updated.
  14298. (dropUnsupportedResource): Fixed a memory leak.
  14299. * src/ShaVisitor.cc
  14300. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  14301. (~ShaVisitor): Updated according to the changes in
  14302. MessageDigestContext.
  14303. (visit): Updated according to the changes in MessageDigestContext.
  14304. * src/main.cc
  14305. (main): Rewritten the portion of download loop. --lowest-speed-limit
  14306. command-line option added.
  14307. * src/DownloadEngine.h
  14308. (SocketEntry): New class.
  14309. (SocketEntries): New definition.
  14310. (PairFind): Removed.
  14311. (SockCmdMap): Removed.
  14312. * src/DownloadEngine.cc
  14313. (DownloadEngine): Rewritten.
  14314. (~DownloadEngine): Rewritten.
  14315. (run): Renamed activeCommandUuids as activeUuids.
  14316. (SetDescriptor): Rewritten.
  14317. (AccumulateActiveCommandUuid): Removed.
  14318. (AccumulateActiveUuid): New function object.
  14319. (waitData): Rewritten.
  14320. (updateFdSet): Rewritten.
  14321. (addSocket): Rewritten.
  14322. (deleteSocket): Rewritten.
  14323. (addSocketForReadCheck): Rewritten.
  14324. (deleteSocketForReadCheck): Rewritten.
  14325. (addSocketForWriteCheck): Rewritten.
  14326. (deleteSocketForWriteCheck): Rewritten.
  14327. * src/Xml2MetalinkProcessor.cc
  14328. (getEntry): Rewritten the portion of MetalinkEntry creation.
  14329. * src/DownloadCommand.cc
  14330. (executeInternal): Added the check routine for lowest speed limit.
  14331. * src/AbstractDiskWriter.cc
  14332. (AbstractDiskWriter): Updated according to the changes in
  14333. MessageDigestContext.
  14334. (~AbstractDiskWriter): Updated according to the changes in
  14335. MessageDigestContext.
  14336. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14337. * src/RequestInfo.h: New class.
  14338. * src/UrlRequestInfo.h: New class.
  14339. * src/UrlRequestInfo.cc: New class.
  14340. * src/TorrentRequestInfo.h: New class.
  14341. * src/TorrentRequestInfo.cc: New class.
  14342. * src/MetalinkRequestInfo.h: New class.
  14343. * src/MetalinkRequestInfo.cc: New class.
  14344. * src/Checksum.h: New class.
  14345. * src/DownloadEngineFactory.h: New class.
  14346. * src/DownloadEngineFactory.cc: New class.
  14347. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14348. * src/Option.h
  14349. (getAsBool): New function.
  14350. * src/Option.cc
  14351. (prefs.h): Included.
  14352. (defined): 0-length value is now recognized as undefined.
  14353. (getAsInt): Rewritten.
  14354. (getAsLLInt): Rewritten.
  14355. (getAsBool): New function.
  14356. * src/FeatureConfig.h: Rewritten.
  14357. * src/FeatureConfig.cc: Rewritten.
  14358. * src/prefs.h
  14359. (PREF_STDOUT_LOG): New definition.
  14360. (PREF_LOG): New definition.
  14361. (PREF_DIR): New definition.
  14362. (PREF_OUT): New definition.
  14363. (PREF_SPLIT): New definition.
  14364. (PREF_DAEMON): New definition.
  14365. (PREF_REFERER): New definition.
  14366. (PREF_TORRENT_FILE): New definition.
  14367. (PREF_LISTEN_PORT): New definition.
  14368. (PREF_METALINK_FILE): New definition.
  14369. (PREF_METALINK_VERSION): New definition.
  14370. (PREF_METALINK_LANGUAGE): New definition.
  14371. (PREF_METALINK_OS): New definition.
  14372. (PREF_METALINK_SERVERS): New definition.
  14373. * src/main.cc
  14374. (main): Following command-line parameters are now put into Option
  14375. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  14376. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  14377. metalinkLanguage, metalinkOs, metalinkServers
  14378. To fix the bug that aria2 can not handle http response header properly.
  14379. * src/HttpHeader.cc
  14380. (put): Made name lowercased.
  14381. (defined): Made name lowercased.
  14382. (getFirst): Made name lowercased.
  14383. (get): Made name lowercased.
  14384. (getFirstAsInt): Rewritten.
  14385. (getFirstAsLLInt): Rewritten.
  14386. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14387. * src/TorrentMan.h:
  14388. (advertisePiece): Updated doc.
  14389. (getAdvertisedPieceIndexes): Updated doc.
  14390. (removeAdvertisedPiece); New function.
  14391. * src/TorrentMan.cc
  14392. (FindElapsedHave): New function object.
  14393. (removeAdvertisedPiece): New function.
  14394. * src/HaveEraseCommand.h: New class.
  14395. * src/HaveEraseCommand.cc: New class.
  14396. * src/FeatureConfig.h: New class.
  14397. * src/FeatureConfig.cc: New class.
  14398. * src/Request.h
  14399. (defaultPorts): Removed.
  14400. * src/Request.cc
  14401. (FeatureConfig.h): Included.
  14402. (Request): Removed the statements related to defaultPorts.
  14403. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  14404. A default port number is now retrieved from FeatureConfig.
  14405. * src/main.cc
  14406. (HaveEraseCommand.h): Included.
  14407. (showVersion): Added the output of feature list.
  14408. (main): Added HaveEraseCommand to command queue in BitTorrent
  14409. downloading.
  14410. * src/PeerInteractionCommand.h
  14411. (chokeCheckPoint): Commented out.
  14412. (periodicExecPoint): New variable.
  14413. * src/PeerInteractionCommand.cc
  14414. (executeInternal): Following methods are now called in at least every
  14415. 0.5 seconds to reduce CPU usage:
  14416. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  14417. checkHave(), sendKeepAlive().
  14418. (checkLongTimePeerChoking): Commented out.
  14419. * src/BitfieldMan.h
  14420. (getNthBitIndex): Changed the method signature.
  14421. (getMissingIndexRandomly): Changed the method signature.
  14422. * src/BitfieldMan.cc
  14423. (getNthBitIndex): Rewritten
  14424. (getMissingIndexRandomly): Rewritten.
  14425. (hasMissingPiece): Rewritten.
  14426. (getMissingIndex): Refactored.
  14427. (getMissingUnusedIndex); Refactored.
  14428. (getMissingIndex): Refactored.
  14429. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14430. * src/PeerMessage.h
  14431. (Piece.h): Included.
  14432. (SharedHandle.h): Included.
  14433. (invalidate): New variable.
  14434. (uploading): New variable.
  14435. (isInvalidate): New function.
  14436. (isUploading): New function.
  14437. (onPush): New function.
  14438. (onChoked): New function.
  14439. (onCanceled): New function.
  14440. (onAbortPiece): New function.
  14441. (PeerMessageHandle): New type definition.
  14442. * src/PeerMessage.cc
  14443. (PeerMessage): Added the initialization for invalidate and uploading.
  14444. * src/CancelMessage.h
  14445. (CancelMessage): Rewritten.
  14446. * src/RejectMessage.h
  14447. (RejectMessage): Rewritten.
  14448. * src/Metalinker.h
  14449. (operator=): Defined.
  14450. * src/MetaEntry.h
  14451. (operator=): Defined.
  14452. * src/MetalinkResource.h
  14453. (operator=): Defined.
  14454. * src/AllowedFastMessage.h
  14455. (AllowedFastMessage): Rewritten.
  14456. * src/HandshakeMessage.h
  14457. (HandshakeMessage): New function(overload).
  14458. * src/HandshakeMessage.cc
  14459. (HandshakeMessage): Rewritten.
  14460. (init): New function.
  14461. * src/HaveMessage.h
  14462. (HaveMessage): Rewritten.
  14463. * src/Time.h
  14464. (operator=): Defined the function body here.
  14465. * src/Time.cc
  14466. (operator=): Removed.
  14467. * src/SocketCore.h
  14468. (operator==): Defined here.
  14469. (operator!=): Defined here.
  14470. (operator<): Defined here.
  14471. * src/SocketCore.cc
  14472. (operator==): Removed.
  14473. (operator<): Removed.
  14474. * src/BitfieldMan.h
  14475. (operator=): Defined the function body here.
  14476. * src/BitfieldMan.cc
  14477. (operator=): Removed.
  14478. * src/TorrentMan.h
  14479. (deleteErrorPeer): Removed.
  14480. (deleteUnusedPeer); New function.
  14481. * src/TorrentMan.cc
  14482. (addPeer): Call deleteUnusedPeer.
  14483. (deleteErrorPeer): Removed.
  14484. (deleteUnusedPeer): New function.
  14485. * src/PeerAbstractCommand.h
  14486. (setNoCheck): New function.
  14487. (noCheck): New variable.
  14488. * src/PeerAbstractCommand.cc
  14489. (PeerAbstractCommand): Added the initialization of noCheck.
  14490. (execute): Added a check for noCheck.
  14491. (setNoCheck): New function.
  14492. * src/Util.h
  14493. (stdio.h): Included.
  14494. * src/Util.cc
  14495. (unistd.h): Included.
  14496. * src/DefaultDiskWriter.cc
  14497. (unistd.h): Included.
  14498. * src/Peer.h
  14499. (operator==): Defined the function body here.
  14500. (operator!=): Defined the function body here.
  14501. * src/Peer.cc
  14502. (operator==): Removed.
  14503. (operator!=): Removed.
  14504. * src/Piece.h
  14505. (Piece): Defined the function body here(copy constructor).
  14506. (operator=): Defined the function body here.
  14507. (operator==): Defined the function body here.
  14508. * src/Piece.cc
  14509. (Piece): Removed(copy constructor).
  14510. (operator=): Removed.
  14511. (operator==): Removed.
  14512. * src/PeerMessageUtil.h
  14513. (ChokeMessage.h): Removed.
  14514. (UnchokeMessage.h): Removed.
  14515. (InterestedMessage.h): Removed.
  14516. (NotInterestedMessage.h): Removed.
  14517. (HaveMessage.h): Removed.
  14518. (BitfieldMessage.h): Removed.
  14519. (RequestMessage.h): Removed.
  14520. (CancelMessage.h): Removed.
  14521. (PieceMessage.h): Removed.
  14522. (HandshakeMessage.h): Removed.
  14523. (KeepAliveMessage.h): Removed.
  14524. (PortMessage.h): Removed.
  14525. (HaveAllMessage.h): Removed.
  14526. (HaveNoneMessage.h): Removed.
  14527. (PeerConnection.h): Removed.
  14528. (HandshakeMessage.h): Included.
  14529. * src/BitfieldMessage.h
  14530. (init): New function.
  14531. (BitfieldMessage): Rewritten.
  14532. (BitfieldMessage): New function(overload).
  14533. * src/RequestSlot.h
  14534. (operator=): Defined the function body here.
  14535. (operator==): Defined the function body here.
  14536. * src/RequestSlot.cc
  14537. (operator=): Removed.
  14538. (operator==): Removed.
  14539. To remove the dependency on the PeerMessage subclass from
  14540. PeerInteraction:
  14541. * src/PeerMessageFactory.h: New class.
  14542. * src/PeerMessageFactory.cc: New class.
  14543. * src/SimplePeerMessage.cc
  14544. (send): If invalidate is true then do nothing.
  14545. * src/PeerInteractionCommand.cc
  14546. (HandshakeMessage.h): Included.
  14547. (KeepAliveMessage.h): Included.
  14548. (ChokeMessage.h): Included.
  14549. (UnchokeMessage.h): Included.
  14550. (HaveMessage.h): Included.
  14551. (executeInternal): Call setNoCheck().
  14552. Removed setWriteCheckSocket(socket).
  14553. * src/PeerInteraction.h
  14554. (ChokeMessage.h): Removed.
  14555. (UnchokeMessage.h): Removed.
  14556. (InterestedMessage.h): Removed.
  14557. (NotInterestedMessage.h): Removed.
  14558. (HaveMessage.h): Removed.
  14559. (BitfieldMessage.h): Removed.
  14560. (RequestMessage.h): Removed.
  14561. (CancelMessage.h): Removed.
  14562. (PieceMessage.h): Removed.
  14563. (HandshakeMessage.h): Removed.
  14564. (KeepAliveMessage.h): Removed.
  14565. (PortMessage.h): Removed.
  14566. (HaveAllMessage.h): Removed.
  14567. (HaveNoneMessage.h): Removed.
  14568. (RejectMessage.h): Removed.
  14569. (AllowedFastMessage.h): Removed.
  14570. (SuggestPieceMessage.h): Removed.
  14571. (PeerMessageFactory.h): Included.
  14572. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  14573. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  14574. (PeerMessageFactory): New variable.
  14575. (createPeerMessage): Removed.
  14576. (createHandshakeMessage): Removed.
  14577. (setPeerMessageCommonProperty): Removed.
  14578. (addRequestSlot): New function.
  14579. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14580. (getPeerMessageFactory): New function.
  14581. (createRequestMessage): Removed.
  14582. (createCancelMessage): Removed.
  14583. (createPieceMessage): Removed.
  14584. (createHaveMessage): Removed.
  14585. (createChokeMessage): Removed.
  14586. (createUnchokeMessage): Removed.
  14587. (createInterestedMessage): Removed.
  14588. (createNotInterestedMessage): Removed.
  14589. (createBitfieldMessage): Removed.
  14590. (createKeepAliveMessage): Removed.
  14591. (createHaveAllMessage): Removed.
  14592. (createHaveNoneMessage): Removed.
  14593. (createRejectMessage): Removed.
  14594. (createAllowedFastMessage): Removed.
  14595. * src/PeerInteraction.cc
  14596. (PeerInteraction): Allocate PeerMessageFactory here.
  14597. (~PeerInteraction): Deallocate PeerMessageFactory here.
  14598. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  14599. PieceMessage::ID.
  14600. (addMessage): Simplified by using PeerMessage::onPush().
  14601. (addRequestSlot): New function.
  14602. (rejectAllPieceMessageInQueue): Simplified by using
  14603. PeerMessage::onChoked().
  14604. (rejectPieceMessageInQueue): Simplified by using
  14605. PeerMessage::onCanceled().
  14606. (abortPiece): Simplified by using PeerMessage::abortPiece().
  14607. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14608. (createHandshakeMessage): Removed.
  14609. (createPeerMessage): Removed.
  14610. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  14611. (setPeerMessageCommonProperty): Removed.
  14612. (createRequestMessage): Removed.
  14613. (createCancelMessage): Removed.
  14614. (createPieceMessage): Removed.
  14615. (createHaveMessage): Removed.
  14616. (createChokeMessage): Removed.
  14617. (createUnchokeMessage): Removed.
  14618. (createInterestedMessage): Removed.
  14619. (createNotInterestedMessage): Removed.
  14620. (createBitfieldMessage): Removed.
  14621. (createKeepAliveMessage): Removed.
  14622. (createHaveAllMessage): Removed.
  14623. (createHaveNoneMessage): Removed.
  14624. (createRejectMessage): Removed.
  14625. (createAllowedFastMessage): Removed.
  14626. * src/PieceMessage.h
  14627. (createRejectMessage): New function.
  14628. (PieceMessage): Rewritten.
  14629. (onChoked): New function.
  14630. (onCanceled): New function.
  14631. * src/PieceMessage.cc
  14632. (send): If invalidate is true then do nothing, just return.
  14633. (createRejectMessage): New function.
  14634. (onChoked): New function.
  14635. (onCanceled): New function.
  14636. * src/RequestMessage.h
  14637. (RequestMessage): Rewritten.
  14638. (onPush): New function.
  14639. (onAbortPiece): New function.
  14640. * src/RequestMessage.cc
  14641. (onPush): New function.
  14642. (onAbortPiece): New function.
  14643. Update fd_set when a socket is added or deleted in order to improve
  14644. performance:
  14645. * src/DownloadEngine.h
  14646. (rfdset): New variable.
  14647. (wfdset): New variable.
  14648. (updateFdSet): New function.
  14649. * src/DownloadEngine.cc
  14650. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  14651. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  14652. (waitData): Copy rfdset and wfdset.
  14653. (updateFdSet): New function.
  14654. (addSocket): Call updateFdSet.
  14655. (deleteSocket): Call updateFdSet.
  14656. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14657. To add the support for Metalink3.0 backward compatible links:
  14658. * src/Request.h
  14659. (SAFE_CHARS): Added '#'.
  14660. (METALINK_MARK): New definition.
  14661. * src/Request.cc
  14662. (parseUrl): Added the support for Metalink3.0 backward compatible
  14663. links.
  14664. etc
  14665. * src/PeerInteraction.cc
  14666. (MsgPushBack): Removed.
  14667. (sendMessages): Use STL copy and back_inserter.
  14668. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  14669. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  14670. * src/TorrentMan.h
  14671. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  14672. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14673. * src/SharedHandle.h: New class.
  14674. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  14675. * src/HttpResponseCommand.h
  14676. (HttpResponseCommand): Wrapped Socket.
  14677. * src/SocketCore.h
  14678. (operator==): New function.
  14679. (operator!=): New function.
  14680. (operator<): New function.
  14681. (getSockfd): New function.
  14682. (isOpen): New function.
  14683. (writeData): New function.
  14684. * src/SocketCore.cc
  14685. (operator==): New function.
  14686. (operator!=): New function.
  14687. (operator<): New function.
  14688. * src/AbstractCommand.h
  14689. (socket): Changed its type to SocketHandle.
  14690. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14691. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14692. (disableReadCheckSocket): New function.
  14693. (disableWriteCheckSocket): New function.
  14694. (readCheckTarget): Changed its type to SocketHandle.
  14695. (writeCheckTarget): Changed its type to SocketHandle.
  14696. (AbstractCommand): Replaced Socket with SocketHandle.
  14697. * src/AbstractCommand.cc
  14698. (AbstractCommand): Replaced Socket with SocketHandle.
  14699. (~AbstractCommand): Removed the deallocation for Socket object.
  14700. (disableReadCheckSocket): New function.
  14701. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14702. (disableWriteCheckSocket): New function.
  14703. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14704. * src/HttpDownloadCommand.cc
  14705. (DownloadCommand): Replaced Socket with SocketHandle.
  14706. * src/PeerAbstractCommand.h
  14707. (socket): Changed its type to SocketHandle.
  14708. (peer): Changed its type to PeerHandle.
  14709. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14710. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14711. (disableReadCheckSocket): New function.
  14712. (disableWriteCheckSocket): New function.
  14713. (readCheckTarget): Changed its type to SocketHandle.
  14714. (writeCheckTarget): Changed its type to SocketHandle.
  14715. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14716. Replaced Peer with PeerHandle.
  14717. * src/HttpRequestCommand.cc
  14718. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14719. Use disableReadCheckSocket.
  14720. * src/PeerInitiateConnectionCommand.h
  14721. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14722. * src/PeerChokeCommand.cc
  14723. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  14724. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  14725. (execute): Use PeerHandle.
  14726. * src/PeerConnection.h
  14727. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  14728. (socket): Changed its type to SocketHandle.
  14729. (PeerConnection): Replaced Socket with SocketHandle.
  14730. * src/PeerConnection.cc
  14731. (PeerConnection): Replaced Socket with SocketHandle.
  14732. * src/PeerInteractionCommand.h
  14733. (PeerInteractionCommand): Replaced socket with SocketHandle.
  14734. Replaced Peer with PeerHandle.
  14735. * src/PeerInteractionCommand.cc
  14736. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  14737. Replaced Peer with PeerHandle.
  14738. (executeInternal): Use disableWriteCheckSocket.
  14739. Use HandshakeMessageHandle.
  14740. (receiveMessages): Use PeerMessageHandle.
  14741. (prepareForNextPeer): Use PeerHandle.
  14742. * src/HttpProxyRequestCommand.h
  14743. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14744. * src/HttpResponseCommand.cc
  14745. (HttpResponseCommand): Replaced Socket with SocketHandle.
  14746. * src/TorrentMan.cc
  14747. (nullPeer): Added external reference.
  14748. (~TorrentMan): Removed the deallocation of the elements of peers.
  14749. (addPeer): Rewritten.
  14750. (isPeerAvailable): Use nullPeer.
  14751. (deleteOldpeers): Replaced with deleteErrorPeer.
  14752. (deleteErrorPeer): New function.
  14753. (getPeer): Use PeerHandle and nullPeer.
  14754. (hasMissingPiece): Replaced Peer with PeerHandle.
  14755. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14756. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14757. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14758. (getMissingPiece): Replaced Peer with PeerHandle.
  14759. * src/FtpNegotiateCommand.cc
  14760. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  14761. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  14762. (recvGreeting): Use disableWriteCheckSocket.
  14763. (recvPasv): Removed the allocation of Socket.
  14764. Use disableReadCheckSocket.
  14765. (sendRestPasv): Use disableWriteCheckSocket.
  14766. (recvRetr): Changed assertion.
  14767. * src/PeerInteraction.h
  14768. (SharedHandle.h): Included SharedHandle.h.
  14769. (PeerMessageHandle): New type definition.
  14770. (HandshakeMessageHandle): New type definition.
  14771. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  14772. (peer): Changed its type to PeerHandle.
  14773. (createHandshakeMessage): Replaced HandshakeMessage with
  14774. HandshakeMessageHandle.
  14775. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  14776. (PeerInteraction): Replaced Peer with PeerHandle.
  14777. Replaced Socket with SocketHandle.
  14778. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14779. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14780. (receiveHandshake): Replaced HandshakeMessage with
  14781. HandshakeMessageHandle.
  14782. * src/PeerInteraction.cc
  14783. (PeerInteraction): Replaced Peer with PeerHandle.
  14784. Replaced Socket with SocketHandle.
  14785. (~PeerInteraction): Removed the deallocation of the elements of
  14786. messageQueue.
  14787. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  14788. (isSendingMessageInProgress): Replaced PeerMessage with
  14789. PeerMessageHandle.
  14790. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  14791. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14792. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  14793. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  14794. (abortPiece): Use PeerMessageHandle.
  14795. (receiveHandshake): Replaced HandshakeMessage with
  14796. HandshakeMessageHandle. Removed try-catch block.
  14797. (createHandshakeMessage): Replaced HandshakeMessage with
  14798. HandshakeMessageHandle.
  14799. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14800. Removed try-catch block.
  14801. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  14802. * src/HttpProxyResponseCommand.cc
  14803. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14804. * src/FtpTunnelResponseCommand.h
  14805. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14806. * src/HttpConnection.cc
  14807. (HttpConnection): Replaced Socket with SocketHandle.
  14808. * src/PeerAbstractCommand.cc
  14809. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14810. (~PeerAbstractCommand): Removed the deallocation of socket.
  14811. Use disableReadCheckSocket, disableWriteCheckSocket.
  14812. (disableReadCheckSocket): New function.
  14813. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14814. (disableWriteCheckSocket): New function.
  14815. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14816. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  14817. * src/FtpTunnelRequestCommand.cc
  14818. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14819. (~FtpTunnelRequestCommand): Corrected indentation.
  14820. * src/DownloadCommand.h
  14821. (DownloadCommand): Replaced Socket with SocketHandle.
  14822. * src/PeerListenCommand.cc
  14823. (PeerListenCommand): Removed the initialization of socket.
  14824. (~PeerListenCommand): Removed the deallocation of socket.
  14825. (bindPort): Use SocketHandle.
  14826. (execute): Use SocketHandle and PeerHandle.
  14827. * src/FtpDowndloadCommand.cc
  14828. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14829. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  14830. * src/main.cc
  14831. (main): Corrected indentation.
  14832. * src/HttpInitiateConnectionCommand.cc
  14833. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  14834. (executeInternal): Removed the allocation of socket.
  14835. * src/HttpRequestCommand.h
  14836. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14837. * src/FtpNegotiationCommand.h
  14838. (dataSocket): Changed its type to SocketHandle.
  14839. (serverSocket): Changed its type to SocketHandle.
  14840. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  14841. * src/TorrentMan.h
  14842. (MAX_PEER_UPDATE): Removed.
  14843. (MAX_PEERS): New definition.
  14844. (Peers): The element is now of type PeerHandle.
  14845. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  14846. (getPeer): Replaced Peer with PeerHandle.
  14847. (deleteOldErrorPeers): Removed.
  14848. (deleteErrorPeer): New function.
  14849. (hasMissingPiece): Replaced Peer with PeerHandle.
  14850. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14851. (getMissingPiece): Replaced Peer with PeerHandle.
  14852. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14853. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14854. (addActivePeer): Replaced Peer with PeerHandle.
  14855. (deleteActivePeer): Replaced Peer with PeerHandle.
  14856. Added a check for the return value of find.
  14857. * src/FtpTunnelResponseCommand.cc
  14858. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14859. * src/FtpInitiateConnectionCommand.cc
  14860. (executeInternal): Removed the allocation of socket.
  14861. * src/DownloadEngine.h
  14862. (Sockets): An element is now of type SocketHandle.
  14863. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  14864. (CommandUuids): New type definition.
  14865. (rsockets): Changed its type to SockCmdMap.
  14866. (wsockets): Changed its type to SockCmdMap.
  14867. (addSocket): Rewritten.
  14868. (deleteSocket): Rewritten.
  14869. (addSocketForReadCheck): Rewritten.
  14870. (deleteSocketForReadCheck): Rewritten.
  14871. (addSocketForWriteCheck): Rewritten.
  14872. (deleteSocketForWriteCheck): Rewritten.
  14873. (PairFind): New template class.
  14874. * src/HttpDownloadCommand.h
  14875. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  14876. * src/FtpConnection.cc
  14877. (FtpConnection): Replaced Socket with SocketHandle.
  14878. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  14879. block.
  14880. * src/InitiateConnectionCommandFactory.cc
  14881. (DlAbortEx.h): Included DlAbortEx.h.
  14882. (createInitiateConnectionCommand): Throw exception if the protocol of
  14883. requested URI is not supported.
  14884. * src/Peer.cc
  14885. (nullPeer): Changed its type to PeerHandle.
  14886. (operator==): New function.
  14887. (operator!=): New function.
  14888. * src/Peer.h
  14889. (SharedHandle.h): Included SharedHandle.h.
  14890. (operator==): New function.
  14891. (operator!=): New function.
  14892. (Peer): Added the default constructor.
  14893. Use resetStatus() to initialize member variables.
  14894. (nullPeer): Removed.
  14895. * src/TrackerUpdateCommand.cc
  14896. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  14897. with MIN_PEERS.
  14898. * src/PeerListenCommand.h
  14899. (socket): Changed its type to SocketHandle.
  14900. * src/Command.h
  14901. (CommandUuid): New type definition.
  14902. (uuid): New variable.
  14903. (uuidGen): New variable.
  14904. (Command): Added the initialization of uuid.
  14905. (getUuid): New function.
  14906. * src/Socket.h
  14907. (Socket): Removed.
  14908. (SocketHandle): New type definition.
  14909. * src/DownloadEngine.h
  14910. (FindCommand): New function object.
  14911. (run): The portion of socket check was rewritten.
  14912. (SetDescriptor): New function object.
  14913. (AccumulateActiveCommandUuid): New function object.
  14914. (waitData): Rewritten.
  14915. (addSocket): Rewritten.
  14916. (deleteSocket): Rewritten.
  14917. (addSocketForReadCheck): Rewritten.
  14918. (addSocketForWriteCheck): Rewritten.
  14919. (deleteSocketForReadCheck): Rewritten.
  14920. (deleteSocketForWriteCheck): Rewritten.
  14921. * src/HttpProxyResponseCommand.h
  14922. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  14923. * src/HttpConnection.h
  14924. (socket): Changed its type to SocketHandle.
  14925. (HttpConnection): Replaced Socket with SocketHandle.
  14926. * src/PeerInitiateConnectionCommand.cc
  14927. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14928. (executeInternal): Removed the allocation of socket.
  14929. (prepareForNextPeer): Use PeerHandle.
  14930. * src/PeerMessage.h
  14931. (peer): Changed its type to PeerHandle.
  14932. (getPeer): Replaced Peer with PeerHandle.
  14933. (setPeer): Replaced Peer with PeerHandle.
  14934. * src/DownloadCommand.cc
  14935. (DownloadCommand): Replaced Socket with SocketHandle.
  14936. * src/FtpConnection.h
  14937. (socket): Changed its type to SocketHandle.
  14938. (FtpConnection): Replaced Socket with SocketHandle.
  14939. (sendPort); Replaced Socket with SocketHandle.
  14940. * src/FtpDowndloadCommand.h
  14941. (ctrlSocket): Changed its type to SocketHandle.
  14942. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14943. * src/HttpProxyRequestCommand.cc
  14944. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14945. * src/FtpTunnelRequestCommand.h
  14946. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14947. etc
  14948. * src/PeerChokeCommand.h
  14949. (setAllPeerChoked): Removed.
  14950. (setAllPeerResetDelta): Removed.
  14951. * src/PeerChokeCommand.cc
  14952. (setAllPeerChoked): Removed.
  14953. (ChokePeer): New function object.
  14954. (setAllPeerResetDelta): Removed.
  14955. (ResetDelta): New function object.
  14956. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  14957. (execute): Show download speed when the local node is a seeder.
  14958. setAllPeerChoked and setAllPeerResetDelta were rewritten
  14959. using STL.
  14960. * src/TrackerWatcherCommand.h
  14961. (MIN_PEERS): Removed.
  14962. * src/TorrentMan.cc
  14963. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  14964. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14965. To fix the bug that .aria2 file is not saved if downloading is stopped
  14966. by the errors:it results that aria2 can not resume downloading:
  14967. * src/main.cc
  14968. (normalDownload): Added the call to save().
  14969. (main): Added the deletion of the elements in 'reserved'.
  14970. To fix log:
  14971. * src/PeerInteraction.cc
  14972. (receiveHandshake): Fixed log.
  14973. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14974. To improve download performance in BitTorrent:
  14975. * src/TorrentMan.cc
  14976. (getPeer): Check the number of connections. Return nullPeer if
  14977. it is greater than MAX_PEER_UPDATE.
  14978. This code was originally here, but was removed in 0.5.1.
  14979. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14980. To improve the conditional compilation:
  14981. * src/MultiDiskWriter.h:
  14982. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14983. * src/MultiDiskWriter.cc:
  14984. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14985. * src/Util.h:
  14986. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14987. Added ENABLE_BITTORRENT around computeFastSet().
  14988. * src/Util.cc:
  14989. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14990. Added ENABLE_BITTORRENT around computeFastSet().
  14991. * src/messageDigest.h:
  14992. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  14993. * src/ShaVisitor.h:
  14994. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14995. * src/ShaVisitor.cc:
  14996. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14997. * src/main.cc:
  14998. Added ENABLE_BITTORRENT around includes and blocks related to
  14999. BitTorrent.
  15000. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  15001. digest support is not available.
  15002. * src/AbstractDiskWriter.h:
  15003. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15004. * src/AbstractDiskWriter.cc:
  15005. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15006. * src/MetalinkEntry.cc
  15007. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  15008. support is not available.
  15009. To add command-line options for Metalink:
  15010. * src/main.cc:
  15011. Added metalink-version, metalink-language, metalink-os,
  15012. follow-metalink.
  15013. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  15014. * src/main.cc: Use these definition.
  15015. * Release 0.6.0
  15016. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15017. To add Metalink support(http/ftp only):
  15018. * src/AbstractCommand.h
  15019. (tryReserved): New function.
  15020. * src/AbstractCommand.cc
  15021. (execute): Call tryReserved().
  15022. (tryReserved): New function.
  15023. * src/Request.h
  15024. (Requests): New type definition.
  15025. * src/SegmentMan.h
  15026. (reserved): New variable.
  15027. * src/Util.h
  15028. (fileChecksum): New function.
  15029. (toUpper): New function.
  15030. (toLower): New function.
  15031. * src/Util.cc
  15032. (messageDigest.h): Included.
  15033. (trim): Trim \r\n\t.
  15034. (fileChecksum): New function.
  15035. (toUpper): New function.
  15036. (toLower): New function.
  15037. * src/main.cc
  15038. (normalDownload): New function.
  15039. (main): Added 2 command-line options: metalink-file,
  15040. metalink-connection. Their usage has not been written yet.
  15041. * src/MetalinkProcessor.h: New class.
  15042. * src/Xml2MetalinkProcessor.h: New class.
  15043. * src/Xml2MetalinkProcessor.cc: New class.
  15044. * src/MetalinkEntry.h: New class.
  15045. * src/MetalinkEntry.cc: New class.
  15046. * src/MetalinkResource.h: New class.
  15047. * src/MetalinkResource.cc: New class.
  15048. To add md5 message digest checking:
  15049. * src/messageDigest.h: Rewritten.
  15050. * src/MultiDiskWriter.cc: Updated according to the changes in
  15051. messageDigest.h.
  15052. * src/ShaVisitor.cc: Updated according to the changes in
  15053. messageDigest.h.
  15054. * src/Util.cc: Updated according to the changes in messageDigest.h.
  15055. * src/AbstractDiskWriter.cc: Updated according to the changes in
  15056. messageDigest.h.
  15057. To fix a bug that causes segfault when the payload length in peer
  15058. message is less than 0:
  15059. * src/PeerConnection.cc:
  15060. (receiveMessage): Fixed the bug.
  15061. * src/PeerMessageUtil.cc
  15062. (checkLength): Throw an exception if length is less than or equals to
  15063. 0.
  15064. To add new interfaces to Base64 encoding/decoding:
  15065. * src/Base64.h
  15066. (part_encode): Changed the method signature.
  15067. (encode): New function(overload).
  15068. (decode): New function(overload).
  15069. * src/Base64.cc
  15070. (part_encode): Rewritten.
  15071. (encode): Rewritten.
  15072. (encode): New function(overload).
  15073. To prevent a peer to download same piece if there is an error in
  15074. checksum:
  15075. * src/PieceMessage.cc
  15076. (receivedAction): Call peerInteraction->abortPiece().
  15077. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15078. To fix the bug that causes same have message is sent many times to
  15079. a single peer.
  15080. * src/Time.cc
  15081. (isNewer): Use Util::difftv().
  15082. * src/Util.cc
  15083. (difftv): Added a cast to (long long int).
  15084. * src/TorrentMan.cc
  15085. (advertisePiece): Use push_front.
  15086. (getAdvertisedPieceIndexes): A performance improvement was made.
  15087. To fix the bug that sends tracker requests without a sleep interval
  15088. when the number of connections is less than 15.
  15089. * src/TrackerWatcherCommand.cc
  15090. (execute): Now the number of connections is not a factor to decide
  15091. whether or not a tracker request should be sent or not.
  15092. * src/Time.h
  15093. (setTimeInSec): New function.
  15094. * src/Time.cc
  15095. (setTimeInSec): New function.
  15096. etc.
  15097. * src/ChokeMessage.cc
  15098. (receivedAction): Removed peer->snubbing = false
  15099. * src/PeerConnection.h
  15100. (receiveHandshake): Updated doc.
  15101. * src/TorrentMan.h
  15102. (getAdvertisedPieceIndexes): Updated the method signature.
  15103. * src/TorrentMan.cc
  15104. (getAdvertisedPieceIndexes): Updated the method signature.
  15105. * src/Time.h
  15106. (getTimeInMicros): Added a cast to (long long int).
  15107. (getTimeInMillis): Added a cast to (long long int).
  15108. * Release 0.5.2
  15109. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15110. To make a listening socket non-block:
  15111. * src/SocketCore.h
  15112. (setNonBlockingMode): New function.
  15113. * src/SocketCore.cc
  15114. (setNonBlockingMode): New function.
  15115. (beginListen): Added a call to setNonBlockingMode().
  15116. (acceptConnection): Call setNonBlockingMode().
  15117. (setBlockingMode): Updated.
  15118. To handle tracker's NAT-checking:
  15119. * src/PeerConnection.cc
  15120. (receiveHandshake): 'msg' param is filled with received data and
  15121. its length is assigned to 'length' param, even if all handshake
  15122. message is not yet received.
  15123. * src/PeerInteractionCommand.cc
  15124. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  15125. a new peer connects to localhost.
  15126. A call to peerInteraction->sendHandshake() was removed because
  15127. it is called from peerInteraction->receiveHandshake(true).
  15128. * src/PeerInteraction.h
  15129. (quickReplied): New variable.
  15130. (receiveHandshake): Added an argument.
  15131. * src/PeerInteraction.cc
  15132. (PeerInteraction): Added the initialization of quickReplied.
  15133. (receiveHandshake): Send handshake message as soon as the info hash
  15134. in a handshake message from a peer is correct.
  15135. To change the random part of peer id and key parameter:
  15136. * src/TorrentMan.h
  15137. (key): New variable.
  15138. * src/TorrentMan.cc
  15139. (setupInternal1): Use Util::randomAlpha() to generate random part
  15140. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  15141. key is also generated by Util::randomAlpha() and it is now 8 character
  15142. long.
  15143. * src/Util.h
  15144. (randomAlpha): New function.
  15145. * src/Util.cc
  15146. (randomAlpha): New function.
  15147. * src/TrackerWatcherCommand.cc
  15148. (execute): In a tracker request: Use torrentMan->key as key parameter.
  15149. Added no_peer_id=1.
  15150. Set snubbing flag to false when a choke message is received from a
  15151. snubbed peer.
  15152. * src/ChokeMessage.cc
  15153. (receivedAction): Set snubbing flag to false.
  15154. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15155. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  15156. * src/SimpleLogger.h (writeHeader): New function.
  15157. * src/SimpleLogger.cc (writeHeader): New function.
  15158. (writeLog): Fixed the bug that causes segfaults if exception message
  15159. contains an unescaped "%" character.
  15160. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  15161. when a tracker request fails.
  15162. * src/Request.cc (parseUrl): Query string is now handled properly.
  15163. * Release 0.5.1
  15164. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15165. To add Time class which represents a specific instant in time and
  15166. its precision is microseconds. Time checking procedures were rewritten
  15167. using this object.
  15168. * src/Time.h: New class.
  15169. * src/Time.cc: New class.
  15170. * src/AbstractCommand.h
  15171. (updateCheckPoint): Removed.
  15172. (isTimeoutDetected): Removed.
  15173. (checkPoint): Changed the type to Time.
  15174. (timeout): New variable.
  15175. (setTimeout): New function.
  15176. * src/AbstractCommand.cc
  15177. (AbstractCommand): Removed the initialization of checkPoint.
  15178. Added the initialization of timeout.
  15179. (updateCheckPoint): Removed.
  15180. (isTimeoutDetected): Removed.
  15181. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  15182. * src/PeerChokeCommand.h
  15183. (checkPoint): Changed the type to Time.
  15184. * src/PeerChokeCommand.cc
  15185. (PeerChokeCommand): Removed the initialization of checkPoint.
  15186. (execute): Rewritten using Time object.
  15187. * src/TrackerWatcherCommand.h
  15188. (checkPoint): Changed the type to Time.
  15189. * src/TrackerWatcherCommand.cc
  15190. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  15191. (execute): Rewritten.
  15192. * src/ConsoleDownloadEngine.h
  15193. (cp): Changed the type to Time.
  15194. (startup): Changed the type to Time.
  15195. * src/ConsoleDownloadEngine.cc
  15196. (initStatistics): Use cp.reset(), startup.reset().
  15197. (calculateStatistics): Rewritten using Time object.
  15198. * src/PeerAbstractCommand.h
  15199. (updateCheckPoint): Removed.
  15200. (isTimeoutDetected): Removed.
  15201. (checkPoint): Changed the type to Time.
  15202. * src/PeerAbstractCommand.cc
  15203. (PeerAbstractCommand): Removed the initialization of checkPoint.
  15204. (updateCheckPoint): Removed.
  15205. (isTimeoutDetected): Removed.
  15206. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  15207. * src/PeerInteractionCommand.cc
  15208. (PeerInteractionCommand): Removed the initializations of struct
  15209. timeval variables.
  15210. * src/PeerInteractionCommand.h
  15211. (keepAliveCheckPoint): Changed the type to Time.
  15212. (chokeCheckPoint): Changed the type to Time.
  15213. (freqCheckPoint): Changed the type to Time.
  15214. (haveCheckTime): Changed the type to Time.
  15215. * src/PeerInteractionCommand.cc
  15216. (executeInternal): Rewritten using Time object.
  15217. (detectMessageFlooding): Rewritten using Time object.
  15218. (checkLongTimePeerChoking): Rewritten using Time object.
  15219. (sendKeepAlive): Rewritten using Time object.
  15220. (checkHave): Rewritten using Time object.
  15221. * src/SleepCommand.h
  15222. (checkPoint): Changed the type to Time.
  15223. * src/SleepCommand.cc
  15224. (SleepCommand): Removed the initialization of checkPoint.
  15225. (execute): Rewritten using Time object.
  15226. * src/TorrentAutoSaveCommand.h
  15227. (checkPoint): Changed the type to Time.
  15228. * src/TorrentAutoSaveCommand.cc
  15229. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  15230. (execute): Rewritten.
  15231. * src/DownloadCommand.h
  15232. (sw): Changed the type to Time.
  15233. * src/DownloadCommand.cc
  15234. (DownloadCommand): Removed the initialization of sw.
  15235. (executeInternal): Rewritten.
  15236. * src/RequestSlot.h
  15237. (dispatchedTime): Changed the type to Time.
  15238. * src/RequestSlot.cc
  15239. (RequestSlot): Removed the call to setDispatchedTime().
  15240. (setDispatchedTime): Rewirtten.
  15241. (isTimeout): Rewritten.
  15242. (getLatencyInMillis): Rewritten.
  15243. * src/TorrentDownloadEngine.h
  15244. (cp): Changed the type to Time[2].
  15245. (startup): Changed the type to Time.
  15246. * src/TorrentDownloadEngine.cc
  15247. (initStatistics): Rewritten.
  15248. (calculateStatistics): Rewritten.
  15249. * src/DownloadEngine.cc
  15250. (run): Rewritten.
  15251. To detect all attempts to connect to the tracker are failed:
  15252. * src/AbstractCommand.cc
  15253. (execute): Increment e->segmentMan->errors if a command aborted.
  15254. * src/SegmentMan.h
  15255. (errors): New variable.
  15256. * src/SegmentMan.cc
  15257. (SegmentMan): Added the initialization of errors.
  15258. (init): Added the initialization of errors.
  15259. * src/TrackerWatcherCommand.cc
  15260. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  15261. request was failed.
  15262. To handle snubbed peers:
  15263. * src/PeerChokeCommand.cc
  15264. (optUnchokingPeer): Snubbed peers don't get unchoked.
  15265. (execute): Snubbed peers don't get unchoked.
  15266. * src/PeerInteraction.h
  15267. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  15268. * src/PeerInteraction.cc
  15269. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  15270. back the requested 16k block in 60 seconds.
  15271. * src/PieceMessage.cc
  15272. (receivedAction): A peer's snubbed state is cleard if it sends
  15273. the requested 16k block in 60 seconds.
  15274. * src/Peer.h
  15275. (snubbing): New variable.
  15276. * src/Peer.cc
  15277. (resetStatus): Added snubbed = false.
  15278. To fix the bug that causes have message is not sent:
  15279. * src/PeerInteractionCommand.cc
  15280. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  15281. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  15282. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  15283. * src/TorrentMan.h
  15284. (HaveEntry): New class.
  15285. (advertisePiece): Rewritten.
  15286. (getAdvertisedPieceIndexes): Rewritten.
  15287. (Haves): Changed the type.
  15288. (getAdvertisedPieceIndexes): Added an argument.
  15289. Others:
  15290. * src/TorrentMan.h
  15291. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  15292. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  15293. * src/TorrentMan.cc
  15294. (getPeer): Don't check the number of connections here.
  15295. (setupInternal1): Changed peerId.
  15296. * src/PeerInteractionCommand.h
  15297. (KEEP_ALIVE_INTERVAL): New definition.
  15298. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  15299. * src/main.cc
  15300. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  15301. * src/DownloadEngine.h: Removed unnecessary header includes.
  15302. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15303. To fix the bug that causes segfaults if a tracker returns a zero-length
  15304. list as "peers":
  15305. * src/TrackerUpdateCommand.cc
  15306. (execute): Added a check to see wether the type of peers is Data*.
  15307. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15308. * Release 0.5.0
  15309. To fix compile issue with gcc3:
  15310. * src/CancelMessage.h
  15311. (ID): Renamed as ID_t
  15312. (ID_t): New enum.
  15313. * src/RejectMessage.h
  15314. (ID): Renamed as ID_t
  15315. (ID_t): New enum.
  15316. * src/SuggestPieceMessage.h
  15317. (ID): Renamed as ID_t
  15318. (ID_t): New enum.
  15319. * src/AllowedFastMessage.h
  15320. (ID): Renamed as ID_t
  15321. (ID_t): New enum.
  15322. * src/PortMessage.h
  15323. (ID): Renamed as ID_t
  15324. (ID_t): New enum.
  15325. * src/HaveNoneMessage.h
  15326. (ID): Renamed as ID_t
  15327. (ID_t): New enum.
  15328. * src/KeepAliveMessage.h
  15329. (ID): Renamed as ID_t
  15330. (ID_t): New enum.
  15331. * src/HaveAllMessage.h
  15332. (ID): Renamed as ID_t
  15333. (ID_t): New enum.
  15334. * src/UnchokeMessage.h
  15335. (ID): Renamed as ID_t
  15336. (ID_t): New enum.
  15337. * src/BitfieldMessage.h
  15338. (ID): Renamed as ID_t
  15339. (ID_t): New enum.
  15340. * src/PieceMessage.h
  15341. (ID): Renamed as ID_t
  15342. (ID_t): New enum.
  15343. * src/RequestMessage.h
  15344. (ID): Renamed as ID_t
  15345. (ID_t): New enum.
  15346. * src/NotInterestedMessage.h
  15347. (ID): Renamed as ID_t
  15348. (ID_t): New enum.
  15349. * src/ChokeMessage.h
  15350. (ID): Renamed as ID_t
  15351. (ID_t): New enum.
  15352. * src/InterestedMessage.h
  15353. (ID): Renamed as ID_t
  15354. (ID_t): New enum.
  15355. * src/HaveMessage.h
  15356. (ID): Renamed as ID_t
  15357. (ID_t): New enum.
  15358. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15359. * src/PeerAbstractCommand.h
  15360. (beforeSocketCheck): Removed.
  15361. * src/PeerAbstractCommand.cc
  15362. Modified in order to call executeInternal() even if socket check
  15363. and upload limit check fail.
  15364. * src/PeerInteractionCommand.h
  15365. (keepAlive): Removed.
  15366. (sendKeepAlive): New function.
  15367. (checkHave): New function.
  15368. (beforeSocketCheck): Removed.
  15369. * src/PeerInteractionCommand.cc
  15370. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  15371. calls to checkHave() and sendKeepAlive().
  15372. (keepAlive): Renamed to sendKeepAlive().
  15373. (sendKeepAlive): New function.
  15374. (beforeSocketCheck): Removed.
  15375. (checkHave): New function.
  15376. * src/BitfieldMan.cc
  15377. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  15378. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  15379. 0.
  15380. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  15381. * src/TorrentMan.h
  15382. (UsedPieces): Removed.
  15383. (Pieces): New type definition.
  15384. * src/Piece.h: Updated doc.
  15385. * src/Peer.h
  15386. (totalLength): Removed.
  15387. * src/Peer.cc
  15388. (updateLatency): Fixed the latency calculation.
  15389. * src/TorrentMan.cc
  15390. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  15391. than or equal to MAX_PEER_LIST_SIZE.
  15392. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  15393. then return false.
  15394. (deleteOldErrorPeers): Rewritten.
  15395. (deleteUsedPiece): Fixed the miss use of STL remove.
  15396. * src/PeerInteraction.h
  15397. (Pieces): Removed.
  15398. (deleteTimeoutRequestSlot): Removed.
  15399. (deleteCompletedRequestSlot): Removed.
  15400. (checkRequestSlot): New function.
  15401. * src/PeerInteraction.cc
  15402. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  15403. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  15404. (checkRequestSlot): New function.
  15405. * src/DownloadEngine.cc
  15406. (run): Clear activeSockets before calling waitData().
  15407. (waitData): Removed a call to activeSockets.clear().
  15408. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15409. To attempt to handle EINTR:
  15410. * src/SocketCore.cc
  15411. (isReadable): Added EINTR handling.
  15412. (isWritable): Added EINTR handling.
  15413. To improve the performance:
  15414. * src/AbstractCommand.cc
  15415. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  15416. * src/PeerInteractionCommand.h
  15417. (receiveMessage): Renamed as receiveMessages().
  15418. (receiveMessages): New function.
  15419. * src/PeerInteractionCommand.cc
  15420. (executeInternal): receiveMessage loop is moved to new receiveMessages
  15421. () function. detectMessageFlooding() is moved here.
  15422. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  15423. (). The flooding detection for have message is comment out.
  15424. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  15425. Util::difftv().
  15426. (receiveMessage): Renamed as receiveMessages().
  15427. (receiveMessages): New function.
  15428. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  15429. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  15430. * src/SleepCommand.cc
  15431. (execute): Use Util::difftvsec() instead of Util::difftv().
  15432. * src/BitfieldMan.h
  15433. (getNthBitIndex): New function.
  15434. (hasMissingPiece): New function.
  15435. (getAllMissingIndexes): New function.
  15436. * src/BitfieldMan.cc
  15437. (countSetBit): Rewritten.
  15438. (getNthBitIndex): New function.
  15439. (getMissingIndexRandomly): Rewritten.
  15440. (hasMissingPiece): New function.
  15441. (getAllMissingIndexes): New function.
  15442. * src/TorrentMan.cc
  15443. (hasMissingPiece): New function.
  15444. (deleteUsedPiece): Rewritten using STL.
  15445. * src/PeerInteraction.cc
  15446. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  15447. is a little bit faster then TorrentMan::getMissingPieceIndex().
  15448. (addRequests): Updated the number of pending requests.
  15449. * src/PeerAbstractCommand.cc
  15450. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  15451. (execute): Returns true if TorrentMan::isHalt() is true.
  15452. Corrected the condition of upload limit checking.
  15453. * src/Util.h
  15454. (countBit): New function.
  15455. * src/Util.cc
  15456. (nbits): New variable.
  15457. (countBit): New function.
  15458. * src/DownloadEngine.h
  15459. (SockCmdMap): New type definition.
  15460. (waitData): Added an argument.
  15461. (addSocket): Added an argument.
  15462. (addSocketForReadCheck): Added an argument.
  15463. (addSocketForWriteCheck): Added an argument.
  15464. * src/DownloadEngine.cc
  15465. (run): Executes only commands whose sockets are ready to read or write.
  15466. All commands are executed in every 1 second.
  15467. (waitData): Calls select() again if it returned
  15468. EINTR.
  15469. (addSocket): Saves socket and command object pair to the map.
  15470. (deleteSocket): Deletes socket and command object pair from the map.
  15471. (addSocketForReadCheck): Added an argument.
  15472. (addSocketForWriteCheck): Added an argument.
  15473. * src/DownloadCommand.cc
  15474. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  15475. To send "event=stopped" to the tracker when the application finishes:
  15476. * src/PeerChokeCommand.h
  15477. (checkPoint): New variable.
  15478. * src/PeerChokeCommand.cc
  15479. (PeerChokeCommand): Added the initialization of checkPoint.
  15480. (execute): The interval check is now done by checkPoint, not
  15481. SleepCommand. Return true if TorrentMan::isHalt() is true.
  15482. * src/TorrentMan.h
  15483. (halt): New function.
  15484. (hasMissingPiece): New function.
  15485. (isHalt): New function.
  15486. (setHalt): New function.
  15487. * src/TorrentMan.cc
  15488. (TorrentMan): Added the initialization of halt.
  15489. * src/TorrentAutoSaveCommand.h
  15490. (checkPoint): New variable.
  15491. * src/PeerListenCommand.cc
  15492. (execute): Returns true if TorrentMan::isHalt() is true.
  15493. * src/main.cc
  15494. (setSignalHander): Added flags argument.
  15495. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  15496. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  15497. Removed printDownloadAbortMessage() after torrent downloading loop.
  15498. * src/TorrentAutoSaveCommand.cc
  15499. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  15500. (execute): Returns true if TorrentMan::isHalt() is true.
  15501. The interval check is now done by checkPoint, not SleepCommand.
  15502. * src/TrackerWatcherCommand.cc
  15503. (execute): If TorrentMan::isHalt(), then create a tracker request with
  15504. event=stopped.
  15505. * src/TrackerUpdateCommand.cc
  15506. (prepareForRetry): Do not use SleepCommand here.
  15507. (execute): Returns true if TorrentMan::isHalt() is true.
  15508. Others:
  15509. * src/TorrentMan.cc
  15510. (getMissingPieceIndex): Updated log message.
  15511. * src/PeerInteraction.cc
  15512. (createPeerMessag): Updated log message.
  15513. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15514. To add the ability to download several pieces in mix in a command and
  15515. increase the number of request slots according to request-cancel
  15516. latency:
  15517. * src/PeerInteractionCommand.cc
  15518. (executeInternal): The number of messages to be received at a time
  15519. is increased from 10 to 50.
  15520. * src/LogFactory
  15521. (getInstance): Added NullLogger.
  15522. * src/NullLogger.h: New class.
  15523. * src/BitfieldMan.h
  15524. (getMissingIndex): New function.
  15525. * src/BitfieldMan.cc
  15526. (getMissingIndex): New function.
  15527. * src/TorrentMan.h
  15528. (checkOutPiece): New function.
  15529. (getMissingPieceIndex): New function.
  15530. (getMissingFastPieceIndex): New function.
  15531. (getMissingFastPiece): New function.
  15532. * src/TorrentMan.cc
  15533. (updatePiece): Rewritten using STL.
  15534. (syncPiece): Rewritten using STL.
  15535. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  15536. checkOutPiece().
  15537. (getMissingPieceIndex): New function.
  15538. (getMissingFastPieceIndex): New function.
  15539. (getMissingFastPiece): New function.
  15540. (checkOutPiece): New function.
  15541. * src/PeerInteraction.h
  15542. (Pieces): New type definition.
  15543. (piece): Removed.
  15544. (pieces): New variable.
  15545. (getNewPieceAndSendInterest): Added the "piece" argument.
  15546. (abortPiece): Added the "piece" argument.
  15547. (abortAllPieces): New function.
  15548. (isInRequestSlot): New function.
  15549. (hasDownloadPiece): Added the "index" argument.
  15550. (setDownloadPiece): Removed.
  15551. (getDownloadPiece): Added the "index" argument.
  15552. (updatePiece): New function.
  15553. (createRequestMessage): Added the "index" argument.
  15554. * src/PeerInteraction.cc
  15555. (onChoked): Rewritten.
  15556. (abortPiece): Rewirtten.
  15557. (abortAllPieces): New function.
  15558. (deleteTimeoutRequestSlot): Rewritten.
  15559. Clarified code a little bit.
  15560. (deleteCompletedRequestSlot): Rewritten.
  15561. (isInRequestSlot): New function.
  15562. (syncPiece): Rewritten.
  15563. (updatePiece): New function.
  15564. (getNewPieceAndSendInterest): Rewritten.
  15565. (addRequests): Rewritten.
  15566. (getDownloadPiece): Rewritten.
  15567. (hasDownloadPiece): Rewritten.
  15568. (createRequestMessage): Added the "index" argument.
  15569. * src/common.h
  15570. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  15571. (DIV_FLOOR): New definition.
  15572. * src/PieceMessage.cc
  15573. (receivedAction): Update request-piece latency here.
  15574. * src/RequestSlot.h
  15575. (getLatencyInMillis): New function.
  15576. * src/RequestSlot.cc
  15577. (isTimeout): Rewritten using getLatencyInMillis.
  15578. (getLatencyInMillis): New function.
  15579. * src/Piece.h
  15580. (operator==): New function.
  15581. (getMissingBlockIndex): New function.
  15582. * src/Piece.cc
  15583. (operator==): New function.
  15584. (getMissingBlockIndex): New function.
  15585. * src/Peer.h
  15586. (DEFAULT_LATENCY): New definition.
  15587. (latency): New variable.
  15588. (updateLatency): New function.
  15589. (getLatency): New function.
  15590. * src/Peer.cc
  15591. (resetStatus): Reset latecy.
  15592. (updateLatency): New function.
  15593. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15594. * src/SocketCore.cc
  15595. (isReadable): Added secure to the condition.
  15596. * src/HttpConnection.cc
  15597. (receiveResponse): Fixed a bug that causes no response header
  15598. exception.
  15599. * src/Peer.h
  15600. (getFastSet): Fixed the return value type.
  15601. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15602. To remove a wait from download loop:
  15603. * src/DownloadEngine.cc
  15604. (run): Comment out shortSleep.
  15605. To rewrite the message handling:
  15606. * src/SimplePeerMessage.h: New class.
  15607. * src/SimplePeerMessage.cc: New class.
  15608. * src/CancelMessage.h: Derived from SimplePeerMessage.
  15609. (msg): New variable.
  15610. (create): New function.
  15611. (send): Removed.
  15612. (getMessage): New function.
  15613. (getMessageLength): New function.
  15614. * src/CancelMessage.cc
  15615. (create): New function.
  15616. (receivedAction): Replaced deleteRequestMessageInQueue with
  15617. rejectPieceMessageInQueue.
  15618. (send): Removed.
  15619. (getMessage): New function.
  15620. (getMessageLength): New function.
  15621. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  15622. (msg): New variable.
  15623. (msgLength): New variable.
  15624. (~BitfieldMessage): Deleted msg.
  15625. (send): Removed.
  15626. (getMessage): New function.
  15627. (getMessageLength): New function.
  15628. * src/BitfieldMessage.cc
  15629. (create): New function.
  15630. (send): Removed.
  15631. (getMessage): New function.
  15632. (getMessageLength): New function.
  15633. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  15634. (msg): New variable.
  15635. (sendPredicate): New function.
  15636. (onSendComplete): New function.
  15637. (send): Removed.
  15638. (getMessage): New function.
  15639. (getMessageLength): New function.
  15640. (create): New function.
  15641. * src/ChokeMessage.cc
  15642. (create): New function.
  15643. (send): Removed.
  15644. (sendPredicate): New function.
  15645. (getMessage): New function.
  15646. (getMessageLength): New function.
  15647. (onSendComplete): New function.
  15648. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  15649. (msg): New variable.
  15650. (send): Removed.
  15651. (getMessage): New function.
  15652. (getMessageLength): New function.
  15653. * src/KeepAliveMessage.cc
  15654. (send): Removed.
  15655. (getMessage): New function.
  15656. (getMessageLength): New function.
  15657. * src/PortMessage.h
  15658. (create): New function.
  15659. (receivedAction): Updated log message.
  15660. * src/PortMessage.cc: New file.
  15661. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  15662. (msg): New variable.
  15663. (sendPredicate): New function.
  15664. (onSendComplete): New function.
  15665. (create): New function.
  15666. (send): Removed.
  15667. (getMessage): New function.
  15668. (getMessageLength): New function.
  15669. * src/UnchokeMessage.cc
  15670. (create): New function.
  15671. (send): Removed.
  15672. (sendPredicate): New function.
  15673. (getMessage): New function.
  15674. (getMessageLength): New function.
  15675. (onSendComplete): New function.
  15676. * src/PieceMessage.h
  15677. (leftPieceDataLength): Removed.
  15678. (leftDataLength): New variable.
  15679. (headerSend): New variable.
  15680. (pendingCount): New variable.
  15681. (msgHeader): New variable.
  15682. (sendPieceData): New function.
  15683. (incrementPendingCount): New function.
  15684. (isPendingCountMax): New function.
  15685. (create): New function.
  15686. (getMessageHeader): New function.
  15687. (getMessageHeaderLength): New function.
  15688. * src/PieceMessage.cc
  15689. (create): New function.
  15690. (getMessageHeader): New function.
  15691. (getMessageHeaderLength): New function.
  15692. (send): Rewritten.
  15693. (sendPieceData): New function.
  15694. * src/HaveMessage.h: Derived from SimplePeerMessage.
  15695. (msg): New variable.
  15696. (create): New function.
  15697. (getMessage): New function.
  15698. (getMessageLength): New function.
  15699. * src/HaveMessage.cc
  15700. (create): New function.
  15701. (send): Removed.
  15702. (sendPieceData): New function.
  15703. (getMessage): New function.
  15704. (getMessageLength): New function.
  15705. * src/RequestMessage.h: Derived from SimplePeerMessage.
  15706. (msg): New variable.
  15707. (create): New function.
  15708. (send): Removed.
  15709. (getMessage): New function.
  15710. (getMessageLength): New function.
  15711. * src/RequestMessage.cc
  15712. (create): New function.
  15713. (receivedAction): Added the handling of fast extension.
  15714. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  15715. (send): Removed.
  15716. (getMessage): New function.
  15717. (getMessageLength): New function.
  15718. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  15719. (msg): New variable.
  15720. (sendPredicate): New function.
  15721. (onSendComplete): New function.
  15722. (create): New function.
  15723. (getMessage): New function.
  15724. (getMessageLength): New function.
  15725. * src/InterestedMessage.cc
  15726. (create): New function.
  15727. (send): Removed.
  15728. (sendPieceData): New function.
  15729. (getMessage): New function.
  15730. (getMessageLength): New function.
  15731. (onSendComplete): New function.
  15732. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  15733. (msg): New variable.
  15734. (sendPieceData): New function.
  15735. (onSendComplete): New function.
  15736. (create): New function.
  15737. (send): Removed.
  15738. (getMessage): New function.
  15739. (getMessageLength): New function.
  15740. * src/NotInterestedMessage.cc
  15741. (create): New function.
  15742. (send): Removed.
  15743. (sendPredicate): New function.
  15744. (getMessage): New function.
  15745. (getMessageLength): New function.
  15746. (onSendComplete): New function.
  15747. * src/AllowedFastMessage.h: New class.
  15748. * src/AllowedFastMessage.cc: New class.
  15749. * src/RejectMessage.h: New class.
  15750. * src/RejectMessage.cc: New class.
  15751. * src/SuggestPieceMessage.h: New class.
  15752. * src/SuggestPieceMessage.cc: New class.
  15753. * src/HaveAllMessage.h: New class.
  15754. * src/HaveAllMessage.cc: New class.
  15755. * src/HaveNoneMessage.h: New class.
  15756. * src/HaveNoneMessage.cc: New class.
  15757. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  15758. (msg): New variable.
  15759. (reserved): New variable.
  15760. (create): New function.
  15761. (getId): New function.
  15762. (receivedAction): New function.
  15763. (getMessage): New function.
  15764. (getMessageLength): New function.
  15765. (isFastExtensionSupported): New function.
  15766. * src/HandshakeMessage.cc
  15767. (HandshakeMessage): Moved here from HandshakeMessage.h.
  15768. (create): New function.
  15769. (getMessage): New function.
  15770. (getMessageLength): New function.
  15771. (toString): Added the output of reserved field.
  15772. (check): Added const qualifier.
  15773. (isFastExtensionSupported): New function.
  15774. * src/PeerMessageUtil.h
  15775. (createChokeMessage): Removed.
  15776. (createUnchokeMessage): Removed.
  15777. (createInterestedMessage): Removed.
  15778. (createNotInterestedMessage): Removed.
  15779. (createHaveMessage): Removed.
  15780. (createBitfieldMessage): Removed.
  15781. (createRequestMessage): Removed.
  15782. (createCancelMessage): Removed.
  15783. (createPieceMessage): Removed.
  15784. (createPortMessage): Removed.
  15785. (createChokeMessage): Removed.
  15786. (createUnchokeMessage): Removed.
  15787. (createInterestedMessage): Removed.
  15788. (createNotInterestedMessage): Removed.
  15789. (createHaveMessage): Removed.
  15790. (createBitfieldMessage): Removed.
  15791. (createRequestMessage): Removed.
  15792. (createCancelMessage): Removed.
  15793. (createPieceMessage): Removed.
  15794. (createKeepAliveMessage): Removed.
  15795. (createHandshakeMessage): Removed.
  15796. (setIntParam): New function.
  15797. (createPeerMessageString): New function.
  15798. * src/PeerMessageUtil.cc
  15799. (createChokeMessage): Removed.
  15800. (createUnchokeMessage): Removed.
  15801. (createInterestedMessage): Removed.
  15802. (createNotInterestedMessage): Removed.
  15803. (createHaveMessage): Removed.
  15804. (createBitfieldMessage): Removed.
  15805. (createRequestMessage): Removed.
  15806. (createCancelMessage): Removed.
  15807. (createPieceMessage): Removed.
  15808. (createPortMessage): Removed.
  15809. (createRequestMessage): Removed.
  15810. (createCancelMessage): Removed.
  15811. (createPieceMessage): Removed.
  15812. (createHaveMessage): Removed.
  15813. (createChokeMessage): Removed.
  15814. (createUnchokeMessage): Removed.
  15815. (createInterestedMessage): Removed.
  15816. (createNotInterestedMessage): Removed.
  15817. (createBitfieldMessage): Removed.
  15818. (createKeepAliveMessage): Removed.
  15819. (createHandshakeMessage): Removed.
  15820. (setIntParam): New function.
  15821. (createPeerMessageString): New function.
  15822. * src/PeerConnection.h
  15823. (peer): Removed.
  15824. (torrentMan): Removed.
  15825. (createNLengthMessage): Removed.
  15826. (setIntParam): Removed.
  15827. (writeOutgoingMessageLog): Removed all overloaded functions.
  15828. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15829. (sendMessage): New function.
  15830. (sendHandshake): Removed.
  15831. (sendKeepAlive): Removed.
  15832. (sendChoke): Removed.
  15833. (sendUnchoke): Removed.
  15834. (sendInterested): Removed.
  15835. (sendNotInterested): Removed.
  15836. (sendHave): Removed.
  15837. (sendBitfield): Removed.
  15838. (sendRequest): Removed.
  15839. (sendPiece): Removed.
  15840. (sendPieceHeader): Removed.
  15841. (sendPieceData): Removed.
  15842. (sendCancel): Removed.
  15843. (getPeer): Removed.
  15844. * src/PeerConnection.cc
  15845. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15846. (sendHandshake): Removed.
  15847. (sendKeepAlive): Removed.
  15848. (createNLengthMessage): Removed.
  15849. (setIntParam): Removed.
  15850. (writeOutgoingMessageLog): Removed all overloaded functions.
  15851. (sendChoke): Removed.
  15852. (sendUnchoke): Removed.
  15853. (sendInterested): Removed.
  15854. (sendNotInterested): Removed.
  15855. (sendHave): Removed.
  15856. (sendBitfield): Removed.
  15857. (sendRequest): Removed.
  15858. (sendPiece): Removed.
  15859. (sendPieceHeader): Removed.
  15860. (sendPieceData): Removed.
  15861. (sendMessage): New function.
  15862. (sendCancel): Removed.
  15863. * src/PeerInteractionCommand.cc
  15864. (PeerInteractionCommand): Call setUploadLimit.
  15865. (executeInternal): Call setUploadLimit.
  15866. Added the handling of "inProgress" state of handshake message.
  15867. Call sendBitfield() or sendAllowdFast() instead of deprecated
  15868. sendNow().
  15869. (keepAlive): Call addMessage and sendMessage instead of deprecated
  15870. sendNow().
  15871. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  15872. * src/TorrentMan.h
  15873. (PEER_ID_LENGTH): New definition.
  15874. (hasAllPieces): New function.
  15875. * src/TorrentMan.cc
  15876. (getMissingPiece): Added the handling of fast extension.
  15877. (cancelPiece): Call updatePiece().
  15878. (hasAllPieces): New function.
  15879. * src/PeerInteraction.h
  15880. (fastSet): New variable.
  15881. (getNewPieceAndSendInterest): Changed the return type to void.
  15882. (send): Renamed as sendMessages.
  15883. (deleteAllRequestSlot): Removed.
  15884. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15885. (cancelAllRequest): Removed all overloaded functions.
  15886. (deleteAllRequestSlot): Removed.
  15887. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15888. (rejectPieceMessageInQueue): New function.
  15889. (rejectAllPieceMessageInQueue): New function.
  15890. (onChoked): New function.
  15891. (isSendingMessageInProgress): New function.
  15892. (getCorrespondingRequestSlot): Changed its arguments.
  15893. (isInFastSet): New function.
  15894. (addFastSetIndex): New function.
  15895. (addRequests): New function.
  15896. (sendNow): Removed.
  15897. (trySendNow): Removed.
  15898. (sendBitfield): New function.
  15899. (sendAllowdFast): New function.
  15900. (createHaveAllMessage): New function.
  15901. (createHaveNoneMessage): New function.
  15902. (createRejectMessage): New function.
  15903. (createAllowedFastMessage): New function.
  15904. * src/PeerInteraction.cc
  15905. (send): Renamed as sendMessages.
  15906. (sendMessages): New function.
  15907. (MsgPushBack): New class.
  15908. (isSendingMessageInProgress): New function.
  15909. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15910. (rejectAllPieceMessageInQueue): New function.
  15911. Added the handling of fast extension.
  15912. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15913. (rejectPieceMessageInQueue): New function.
  15914. Added the handling of fast extension.
  15915. (deleteRequestSlot): Replaced for loop with std::find.
  15916. (onChoked): New function.
  15917. (deleteAllRequestSlot): Removed.
  15918. (abortPiece): Rewirtten.
  15919. (deleteTimeoutRequestSlot): Updated log messages.
  15920. (getCorrespondingRequestSlot): Changed its arguments.
  15921. (cancelAllRequest): Removed all overloaded functions.
  15922. (receiveHandshake): Added the check to see whether an incoming peer
  15923. supports fast extension.
  15924. (createHandshakeMessage): Use HandshakeMessage::create instead of
  15925. PeerMessageUtil.
  15926. (createPeerMessage): Use create() of each message class instead of
  15927. PeerMessageUtil.
  15928. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  15929. AllowedFastMessage were added.
  15930. (getNewPieceAndSendInterest): Changed its return value type to void.
  15931. Added the handling of fast extension.
  15932. (addRequests): New function.
  15933. (sendNow): Removed.
  15934. (sendHandshake): Rewritten.
  15935. (trySendNow): Removed.
  15936. (sendBitfield): New function.
  15937. (sendAllowdFast): New function.
  15938. (isInFastSet): New function.
  15939. (addFastSetIndex): New function.
  15940. (createRequestMessage): Use RequestMessage::create instead of
  15941. PeerMessageUtil.
  15942. (createCancelMessage): Use CancelMessage::create instead of
  15943. PeerMessageUtil.
  15944. (createPieceMessage): Use PieceMessage::create instead of
  15945. PeerMessageUtil.
  15946. (createHaveMessage): Use HaveMessage::create instead of
  15947. PeerMessageUtil.
  15948. (createChokeMessage): Use ChokeMessage::create instead of
  15949. PeerMessageUtil.
  15950. (createUnchokeMessage): Use UnchokeMessage::create instead of
  15951. PeerMessageUtil.
  15952. (createInterestedMessage): Use InterestedMessage::create instead of
  15953. PeerMessageUtil.
  15954. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  15955. of PeerMessageUtil.
  15956. (createBitfieldMessage): Use BitfieldMessage::create instead of
  15957. PeerMessageUtil.
  15958. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  15959. PeerMessageUtil.
  15960. (createHaveAllMessage): New function.
  15961. (createHaveNoneMessage): New function.
  15962. (createRejectMessage): New function.
  15963. (createAllowedFastMessage: New function.
  15964. * src/Util.h
  15965. (sha1Sum): New function.
  15966. (computeFastSet): New function.
  15967. * src/Util.cc
  15968. (sha1Sum): New function.
  15969. (computeFastSet): New function.
  15970. * src/Peer.h
  15971. (fastExtensionEnabled): New variable.
  15972. (fastSet): New variable.
  15973. (setAllBitfield): New function.
  15974. (setFastExtensionEnabled): New function.
  15975. (isFastExtensionEnabled): New function.
  15976. (addFastSetIndex): New function.
  15977. (getFastSet): New function.
  15978. (isInFastSet): New function.
  15979. (countFastSet): New function.
  15980. * src/Peer.cc
  15981. (isInFastSet): New function.
  15982. (addFastSetIndex): New function.
  15983. (setAllBitfield): New function.
  15984. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  15985. sockets.
  15986. * src/PeerAbstractCommand.cc
  15987. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  15988. and uploadLimit.
  15989. (execute): Changed the procedure of checking sockets. The upload speed
  15990. checking were added.
  15991. (setUploadLimit): New function.
  15992. (setUploadLimitCheck): New function.
  15993. * src/PeerAbstractCommand.h
  15994. (setUploadLimit): New function.
  15995. (setUploadLimitCheck): New function.
  15996. (uploadLimit): New variable.
  15997. (uploadLimitCheck): New variable.
  15998. To contact a tracker regularly:
  15999. * src/TrackerWatcherCommand.h (interval): New variable.
  16000. (checkPoint): New variable.
  16001. (TrackerWatcherCommand): Added interval argument.
  16002. * src/TrackerWatcherCommand.cc
  16003. (TrackerWatcherCommand): Initialized checkPoint.
  16004. (execute): Now a tracker is contacted in every specified period.
  16005. If peer list is not needed, send request with numwant=0.
  16006. * src/TrackerUpdateCommand.cc
  16007. (execute): Updated log messages.
  16008. * src/DownloadEngine.cc
  16009. (~DownloadEngine): Removed two asserts.
  16010. (waitData): Uncommented wfds. May be a bug fix.
  16011. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16012. * src/PeerInteractionCommand.h
  16013. (checkInactiveConnection): Removed.
  16014. * src/PeerInteractionCommand.cc
  16015. (executeInternal): Removed following function calls:
  16016. detectMessageFlooding(), checkLongTimePeerChoking and
  16017. checkInactiveConnection().
  16018. (checkInactiveConnection): Removed.
  16019. (detectMessageFlooding): Removed function call to
  16020. checkInactiveConnection().
  16021. * src/PeerMessageUtil.h
  16022. (createChokeMessage): New function. Overload.
  16023. (createUnchokeMessage): New function. Overload.
  16024. (createInterestedMessage): New function. Overload.
  16025. (createNotInterestedMessage): New function. Overload.
  16026. (createHaveMessage): New function. Overload.
  16027. (createBitfieldMessage): New function. Overload.
  16028. (createRequestMessage): New function. Overload.
  16029. (createCancelMessage): New function. Overload.
  16030. (createPieceMessage): New function. Overload.
  16031. (createKeepAliveMessage): New function. Overload.
  16032. * src/PeerMessageUtil.cc
  16033. (createChokeMessage): New function. Overload.
  16034. (createUnchokeMessage): New function. Overload.
  16035. (createInterestedMessage): New function. Overload.
  16036. (createNotInterestedMessage): New function. Overload.
  16037. (createHaveMessage): New function. Overload.
  16038. (createBitfieldMessage): New function. Overload.
  16039. (createRequestMessage): New function. Overload.
  16040. (createCancelMessage): New function. Overload.
  16041. (createPieceMessage): New function. Overload.
  16042. (createKeepAliveMessage): New function. Overload.
  16043. * src/SendMessageQueue.cc
  16044. (createRequestMessage): Use PeerMessageUtil.
  16045. (createCancelMessage): Use PeerMessageUtil.
  16046. (createPieceMessage): Use PeerMessageUtil.
  16047. (createHaveMessage): Use PeerMessageUtil.
  16048. (createChokeMessage): Use PeerMessageUtil.
  16049. (createUnchokeMessage): Use PeerMessageUtil.
  16050. (createInterestedMessage): Use PeerMessageUtil.
  16051. (createNotInterestedMessage): Use PeerMessageUtil.
  16052. (createBitfieldMessage): Use PeerMessageUtil.
  16053. (createKeepAliveMessage): Use PeerMessageUtil.
  16054. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  16055. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  16056. * src/PeerInteraction.h: New class.
  16057. * src/PeerInteraction.cc: New class.
  16058. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16059. Each peer message has its own class.
  16060. * src/PendingMessages.h: Removed.
  16061. * src/PendingMessages.cc: Removed. The sending process was moved to
  16062. each message class.
  16063. * src/RequestSlotMan.h: Removed.
  16064. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  16065. SendMessageQueue.
  16066. * src/RequestMessage.h: New class.
  16067. * src/RequestMessage.cc: New class.
  16068. * src/CancelMessage.h: New class.
  16069. * src/CancelMessage.cc: New class.
  16070. * src/BitfieldMessage.h: New class.
  16071. * src/BitfieldMessage.cc: New class.
  16072. * src/ChokeMessage.h: New class.
  16073. * src/ChokeMessage.cc: New class.
  16074. * src/KeepAliveMessage.h: New class.
  16075. * src/KeepAliveMessage.cc: New class.
  16076. * src/PortMessage.h: New class.
  16077. * src/UnchokeMessage.h: New class.
  16078. * src/UnchokeMessage.cc: New class.
  16079. * src/PieceMessage.h: New class.
  16080. * src/PieceMessage.cc: New class.
  16081. * src/HaveMessage.h: New class.
  16082. * src/HaveMessage.cc: New class.
  16083. * src/BitfieldMessage.h: New class.
  16084. * src/BitfieldMessage.cc: New class.
  16085. * src/NotInterestedMessage.h: New class.
  16086. * src/NotInterestedMessage.cc: New class.
  16087. * src/InterestedMessage.h: New class.
  16088. * src/InterestedMessage.cc: New class.
  16089. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  16090. (getSendMessageQueue): New function.
  16091. (setSendMessageQueue): New function.
  16092. * src/HandshakeMessage.cc: New class.
  16093. * src/PeerConnection.h (receiveMessage): Changed return value and
  16094. arguments.
  16095. (receiveHandshake): Changed return value and arguments.
  16096. * src/PeerConnection.cc (receiveMessage): Do not create message class
  16097. here.
  16098. (receiveHandshake): Do not create handshake class here.
  16099. * src/PeerInteractionCommand.h (peerConnection): Removed.
  16100. (piece): Removed.
  16101. (syncPiece): Removed.
  16102. (sendInterest): Removed.
  16103. (sendMessages): Removed.
  16104. (createRequestPendingMessage): Removed.
  16105. (checkPieceHash): Removed.
  16106. (erasePieceOnDisk): Removed.
  16107. (getNewPieceAndSendInterest): Removed.
  16108. (onGotNewPice): Removed.
  16109. (onGotWrongPiece): Removed.
  16110. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16111. Removed peerConnection, piece.
  16112. (~PeerInteractionCommand): Removed peerConnection.
  16113. (executeInternal): Use sendMessageQueue instead of peerConnection.
  16114. (syncPiece): Moved to SendMessageQueue.
  16115. (decideChoking): Removed PendingMessage.
  16116. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  16117. The action after receiving peer message was moved to each message
  16118. class.
  16119. (onGotNewPice): Moved to SendMessageQueue.
  16120. (onGotWrongPiece): Moved to SendMessageQueue.
  16121. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  16122. (sendInterest): Moved to SendMessageQueue.
  16123. (createRequestPendingMessage): Removed.
  16124. (sendMessages): Moved to SendMessageQueue.
  16125. (onAbort): Use SendMessageQueue::abortPiece()
  16126. (keepAlive): Use sendMessageQueue instead of peerConnection.
  16127. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  16128. (checkPieceHash): Moved to SendMessageQueue.
  16129. (erasePieceOnDisk): Moved to SendMessageQueue.
  16130. * src/PeerMessageUtil.h
  16131. (createBitfieldMessage): Removed.
  16132. (createHaveMessage): Changed return value and arguments.
  16133. (createBitfieldMessage): Changed return value and arguments.
  16134. (createRequestCancelMessage): Removed.
  16135. (createPieceMessage): Changed return value and arguments.
  16136. (getShortIntParam): New function.
  16137. (checkIndex): Changed arguments.
  16138. (checkBegin): Changed arguments.
  16139. (checkLength): Changed arguments.
  16140. (checkPieceOffset): Removed.
  16141. (checkRange): New function.
  16142. (checkBitfield): Changed arguments.
  16143. (createPeerMessage): Removed.
  16144. (checkIntegrity): Removed.
  16145. (createHandshakeMessage): Changed arguments.
  16146. (createChokeMessage): New function.
  16147. (createUnchokeMessage): New function.
  16148. (createInterestedMessage): New function.
  16149. (createNotInterestedMessage): New function.
  16150. (createRequestMessage): New function.
  16151. (createCancelMessage): New function.
  16152. (createPortMessage): New function.
  16153. * src/PeerMessageUtil.cc
  16154. (createBitfieldMessage): Removed.
  16155. (createHaveMessage): Changed return value and arguments.
  16156. (createBitfieldMessage): Changed return value and arguments.
  16157. (createRequestCancelMessage): Removed.
  16158. (createPieceMessage): Changed return value and arguments.
  16159. (getShortIntParam): New function.
  16160. (checkIndex): Changed arguments.
  16161. (checkBegin): Changed arguments.
  16162. (checkLength): Changed arguments.
  16163. (checkPieceOffset): Removed.
  16164. (checkRange): New function.
  16165. (checkBitfield): Changed arguments.
  16166. (createPeerMessage): Removed.
  16167. (checkIntegrity): Removed.
  16168. (createHandshakeMessage): Changed arguments.
  16169. (createChokeMessage): New function.
  16170. (createUnchokeMessage): New function.
  16171. (createInterestedMessage): New function.
  16172. (createNotInterestedMessage): New function.
  16173. (createRequestMessage): New function.
  16174. (createCancelMessage): New function.
  16175. (createPortMessage): New function.
  16176. * src/PeerMessage.h
  16177. (id): Removed.
  16178. (index): Removed.
  16179. (begin): Removed.
  16180. (length): Removed.
  16181. (bitfield): Removed.
  16182. (bitfieldLength): Removed.
  16183. (block): Removed.
  16184. (blockLength): Removed.
  16185. (inProgress): New variable.
  16186. (cuid): New variable.
  16187. (peer): New variable.
  16188. (sendMessageQueue): New variable.
  16189. (logger): New variable.
  16190. (setBitfield): Removed.
  16191. (getBitfield): Removed.
  16192. (setBlock): Removed.
  16193. (getBlock): Removed.
  16194. (getBitfieldLength): Removed.
  16195. (getBlockLength): Removed.
  16196. (isInProgress): New function.
  16197. (toString): Made pure virtual.
  16198. (check): New function.
  16199. (send): New function.
  16200. (receivedAction): New function.
  16201. (getId): Made pure virtual.
  16202. (setId): Removed.
  16203. (getIndex): Removed.
  16204. (setIndex): Removed.
  16205. (getBegin): Removed.
  16206. (setBegin): Removed.
  16207. (getLength): Removed.
  16208. (setLength): Removed.
  16209. (getCuid): New function.
  16210. (setCuid): New function.
  16211. (getPeer): New function.
  16212. (setPeer): New function.
  16213. (getSendMessageQueue): New function.
  16214. (setSendMessageQueue): New function.
  16215. (ID): Removed.
  16216. * src/PeerMessage.cc
  16217. (setBitfield): Removed.
  16218. (setBlock): Removed.
  16219. (toString): Removed.
  16220. * src/TorrentMan.h
  16221. (getPieceLength): New function.
  16222. (getPieceLength): New function.
  16223. * src/SendMessageQueue.h
  16224. (REQUEST_TIME_OUT): New definition.
  16225. (RequestSlots): New definition.
  16226. (MessageQueue): New definition.
  16227. (requestSlotMan): Removed.
  16228. (pendingMessages): Removed.
  16229. (requestSlots): New variable.
  16230. (messageQueue): New variable.
  16231. (torrentMan): New variable.
  16232. (peerConnection): New variable.
  16233. (peer): New variable.
  16234. (piece): New variable.
  16235. (getNewPieceAndSendInterest): New function.
  16236. (createPeerMessage): New function.
  16237. (createHandshakeMessage): New function.
  16238. (send): Made private.
  16239. (setPeerMessageCommonProperty): New function.
  16240. (deleteAllRequestSlot): New function.
  16241. (deleteRequestMessageInQueue): New function.
  16242. (cancelAllRequest): Made private.
  16243. (cancelAllRequest): Made private.
  16244. (countRequestSlot): Made private.
  16245. (addPendingMessage): Removed.
  16246. (deletePendingPieceMessage): Removed.
  16247. (deletePendingRequestMessage): Removed.
  16248. (addMessage): New function.
  16249. (deletePieceMessageInQueue): New function.
  16250. (deleteTimeoutRequestSlot): Changed argument.
  16251. (deleteCompletedRequestSlot): Changed argument.
  16252. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  16253. (getCorrespondingRequestSlot): New function.
  16254. (countPendingMessage): Removed.
  16255. (countMessageInQueue): New function.
  16256. (getTorrentMan): New function.
  16257. (getPeerConnection): New function.
  16258. (hasDownloadPiece): New function.
  16259. (getDownloadPiece): New function.
  16260. (setDownloadPiece): New function.
  16261. (syncPiece): New function.
  16262. (sendMessages): New function.
  16263. (sendNow): New function.
  16264. (trySendNow): New function.
  16265. (abortPiece): New function.
  16266. (sendHandshake): New function.
  16267. (receiveMessage): New function.
  16268. (receiveHandshake): New function.
  16269. (createRequestMessage): New function.
  16270. (createCancelMessage): New function.
  16271. (createPieceMessage): New function.
  16272. (createHaveMessage): New function.
  16273. (createChokeMessage): New function.
  16274. (createUnchokeMessage): New function.
  16275. (createInterestedMessage): New function.
  16276. (createNotInterestedMessage): New function.
  16277. (createBitfieldMessage): New function.
  16278. (createKeepAliveMessage): New function.
  16279. * src/SendMessageQueue.cc
  16280. (SendMessageQueue): Removed requestSlotMan.
  16281. Instantiated peerConnection here.
  16282. (~SendMessageQueue): Removed requestSlotMan.
  16283. Added deletion of peerConnection and the contents of messageQueue.
  16284. (send): Updated according to the change of messageQueue.
  16285. (addPendingMessage): Renamed to addMessage.
  16286. (addMessage): New function.
  16287. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  16288. (deletePieceMessageInQueue): New function.
  16289. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  16290. (deleteRequestMessageInQueue): New function.
  16291. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  16292. here.
  16293. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  16294. (...) was moved here.
  16295. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  16296. moved here.
  16297. (deleteCompletedRequestSlot):
  16298. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  16299. (getCorrespondingRequestSlot):
  16300. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  16301. And renamed to getCorrespondingRequestSlot, correcting a typo.
  16302. (countPendingMessage): Renamed to countMessageInQueue.
  16303. (countMessageInQueue): New function.
  16304. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  16305. (receiveHandshake): New function.
  16306. (createHandshakeMessage): New function.
  16307. (receiveMessage): New function.
  16308. (createPeerMessage): New function.
  16309. (syncPiece): New function.
  16310. (getNewPieceAndSendInterest): New function.
  16311. (sendMessages): New function.
  16312. (sendNow): New function.
  16313. (trySendNow): New function.
  16314. (sendHandshake): New function.
  16315. (abortPiece): New function.
  16316. (getDownloadPiece): New function.
  16317. (getPeerMessageCommonProperty): New function.
  16318. (createRequestMessage): New function.
  16319. (createCancelMessage): New function.
  16320. (createPieceMessage): New function.
  16321. (createHaveMessage): New function.
  16322. (createChokeMessage): New function.
  16323. (createUnchokeMessage): New function.
  16324. (createInterestedMessage): New function.
  16325. (createNotInterestedMessage): New function.
  16326. (createBitfieldMessage): New function.
  16327. (createKeepAliveMessage): New function.
  16328. To add simple Content-Disposition support:
  16329. * src/HttpResponseCommand.h (determinFilename): New function.
  16330. * src/HttpResponseCommand.cc (executeInternal):
  16331. Use determinFilename(headers) instead of req->getFile() when comparing
  16332. filename.
  16333. (determinFilename): New function.
  16334. (handleDefaultEncoding): Use determinFilename(headers) instead of
  16335. req->getFile().
  16336. (handleOtherEncoding): Use determinFilename(headers) instead of
  16337. req->getFile().
  16338. * src/Util.h (getContentDispositionFilename): New function.
  16339. * src/Util.cc (getContentDispositionFilename): New function.
  16340. * src/LogFactory.h (release): New function.
  16341. * src/LogFactory.cc (release): New function.
  16342. To fix a bug that causes out-of-bound exception when HTTP status
  16343. line is wrong:
  16344. * src/HttpConnection.cc (receiveResponse): Added a check for header
  16345. size.
  16346. * src/common.h (Deleter): New class.
  16347. * src/SegmentMan.cc
  16348. (~SegmentMan): Added deletion of splitter and diskWriter.
  16349. * src/DownloadEngine.h
  16350. (Commands): Use deque.
  16351. (clearQueue): New function.
  16352. * src/DownloadEngine.cc
  16353. (~DownloadEngine): Added deletion of segmentMan.
  16354. (cleanQueue): New function.
  16355. * src/TorrentDownloadEngine.h
  16356. (TorrentDownloadEngine): The implementation was moved to
  16357. TorrentDownloadEngine.cc.
  16358. (~TorrentDownloadEngine): The implementation was moved to
  16359. TorrentDownloadEngine.cc.
  16360. * src/TorrentDownloadEngine.cc
  16361. (~TorrentDownloadEngine): Added deletion of torrentMan.
  16362. * src/main.cc
  16363. (clearRequest): Removed.
  16364. (handler): Added deletion of e.
  16365. (torrentHandler): Added deletion of te.
  16366. (main): Do not share splitter.
  16367. Use Deleter instead of clearRequest.
  16368. Deletion of classes were updated.
  16369. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16370. * src/main.cc (main): Fixed typo.
  16371. * src/message.h: Fixed typo.
  16372. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  16373. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16374. To add --select-file command-line option:
  16375. * src/Util.cc
  16376. (unfoldRange): New function.
  16377. (getNum): New function.
  16378. (unfoldSubRange): New function
  16379. * src/main.cc
  16380. (showUsage): Added help message.
  16381. (main): Added --select-file command-line option. Updated the layout of
  16382. file listing.
  16383. * src/common.h
  16384. (Integers): New definition.
  16385. * src/SocketCore.cc
  16386. (writeData): Removed timeout argument.
  16387. (readData): Removed timeout argument.
  16388. (peekData): Removed timeout argument.
  16389. * src/Socket.cc
  16390. (writeData): Removed timeout argument.
  16391. (readData): Removed timeout argument.
  16392. (peekData): Removed timeout argument.
  16393. * Release 0.4.1
  16394. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16395. To deploy upload rate based choking algorithm:
  16396. * src/PeerInteractionCommand.cc
  16397. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  16398. peer currently used.
  16399. (decideChoking): Deleted the choke/unchoke decision algorithm when
  16400. download completes. Simplified.
  16401. (receiveMessage): Updated.
  16402. * src/TorrentMan.h
  16403. (activePeers): New variable.
  16404. (addActivePeer): New function.
  16405. (getActivePeers): New function.
  16406. (deleteActivePeer): New function.
  16407. * src/TorrentMan.cc
  16408. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  16409. * src/PeerAbstractCommand.cc
  16410. (onAbort): Use peer->resetStatus().
  16411. * src/main.cc
  16412. (PeerChokeCommand.h): Included.
  16413. (main): Added the instance of ChokingCommand to the command queue.
  16414. * src/Peer.h
  16415. (amChoking): Renamed from amChocking
  16416. (chokingRequired): New variable.
  16417. (optUnchoking): New variable.
  16418. (deltaUpload): New variable.
  16419. (deltaDownload): New variable.
  16420. (addDeltaUpload): New function.
  16421. (resetDeltaUpload): New function.
  16422. (addDeltaDownload): New function.
  16423. (resetDeltaDownload): New function.
  16424. (addPeerUpload): Added a call to addDeltaUpload.
  16425. (addPeerDownload): Added a call to addDeltaDownload.
  16426. * src/Peer.cc
  16427. (shouldBeChoking): Renamed from shouldChoke.
  16428. (resetStatus): New function.
  16429. * src/PeerChokeCommand.h: New class.
  16430. * src/PeerChokeCommand.cc: New class.
  16431. To add lazy upload speed limiter:
  16432. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  16433. statistics calculation to TorrentDownloadEngine.
  16434. * src/TorrentConsoleDownloadEngine.cc
  16435. (sendStatistics): Renamed from printStatistics.
  16436. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  16437. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  16438. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  16439. * src/TorrentDownloadEngine.h: Added the variables for statistics
  16440. calculation.
  16441. (sendStatistics): New function as pure virtual function.
  16442. (getUploadSpeed): New function.
  16443. * src/TorrentDownloadEngine.cc
  16444. (initStatistics): New function.
  16445. (calculateSpeed): New function.
  16446. (calculateStatistics): New function.
  16447. * src/SendMessageQueue.h
  16448. (uploadLength): New variable.
  16449. (send): Added an argument.
  16450. (setUploadLimit): New function.
  16451. (getUploadLimit): New function.
  16452. * src/SendMessageQueue.cc
  16453. (send): Added upload speed limiter.
  16454. * src/prefs.h
  16455. (PREF_UPLOAD_LIMIT): New definition.
  16456. * src/PeerInteractionCommand.cc
  16457. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  16458. * src/main.cc
  16459. (main): Added --upload-limit option
  16460. For bug fixes:
  16461. * src/main.cc
  16462. (showUsage): Corrected --listen-port help
  16463. Other changes:
  16464. * src/TorrentMan.cc
  16465. (getPeer): Return nullPeer if connection is grather than
  16466. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  16467. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16468. To add some useful information to the exception message:
  16469. * src/SocketCore.cc : Updated messages.
  16470. * src/SegmentMan.cc :
  16471. * src/TorrentMan.cc : Updated messages.
  16472. * src/MultiDiskWriter.cc : Updated messages.
  16473. * src/Util.cc : Updated messages.
  16474. * src/AbstractDiskWriter.cc : Updated messages.
  16475. * src/PreAllocationDiskWriter.cc : Updated messages.
  16476. * src/message.cc : Added new messages. Updated some messages.
  16477. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  16478. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  16479. Updated threshold from 30 to 15.
  16480. * src/AbstractDiskWriter.h (filename): New variable.
  16481. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  16482. (createFile): Assigned filename.
  16483. * src/main.cc: Updated the help message for http-auth-scheme.
  16484. * Release 0.4.0
  16485. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16486. To add TrackerUpdateCommand with which replaces
  16487. CompactTrackerResponseProcessor:
  16488. * src/TrackerWatcherCommand.h (req): Removed.
  16489. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  16490. if the number of peer connections are less than 30.
  16491. * src/ByteArrayDiskWriter.h (readData): Implemented.
  16492. * src/SegmentMan.h (diskWriter): New function.
  16493. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  16494. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  16495. (main): Use TrackerUpdateCommand.
  16496. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  16497. (req): New variable.
  16498. (setTrackerResponseProcessor): Removed.
  16499. (getTrackerResponseProcessor): Removed.
  16500. (processTrackerResponse): Removed.
  16501. * src/DownloadEngine.h (diskWriter): Removed.
  16502. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  16503. to torrentMan->processTrackerResponse().
  16504. To add Util::expandBuffer:
  16505. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  16506. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  16507. * src/Util.h (expandBuffer): New function.
  16508. To fix the bug that causes segmentation fault when "-l ." is specified
  16509. in command-line option:
  16510. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  16511. (openFile): New function.
  16512. (closeFile): New function.
  16513. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  16514. (~SimpleLogger): Call closeFile();
  16515. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  16516. * src/main.cc (main): Added a check to see logger is configured
  16517. properly.
  16518. To enable HTTP authentication without specifying "--http-auth-scheme"
  16519. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  16520. * src/HttpConnection.cc (createRequest): Send Authorization header
  16521. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  16522. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  16523. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  16524. * src/Peer.cc (shouldChoke): Updated algorithm.
  16525. * src/message.h (EX_AUTH_FAILED): New definition.
  16526. (EX_FILE_OPEN): New definition.
  16527. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  16528. if status == 401.
  16529. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  16530. if req->isTorrent == true.
  16531. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  16532. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  16533. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  16534. (createFile): Updated message.
  16535. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16536. To add a readout of estimated remaining time to normal HTTP/FTP
  16537. downloads:
  16538. * src/ConsoleDownloadEngine.h (startup): New variable.
  16539. (startupLength): New variable.
  16540. (isStartupLengthSet): New variable.
  16541. (avgSpeed): New variable.
  16542. (eta): New variable.
  16543. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  16544. estimated remaining time.
  16545. (initStatistics): Initialized newly added variables.
  16546. (calculateStatistics): Calculate average speed and estimated remaining
  16547. time.
  16548. To decouple TorrentDownloadEngine from HttpResponseCommand:
  16549. * src/TrackerDownloadCommand.h: Removed.
  16550. * src/TrackerDownloadCommand.cc: Removed.
  16551. * src/TrackerInitCommand.h: Removed.
  16552. * src/TrackerInitCommand.cc: Removed.
  16553. * src/TrackerUpdateCommand.h: Removed.
  16554. * src/TrackerUpdateCommand.cc: Removed.
  16555. * src/TrackerWatcherCommand.cc (execute): The construction of request
  16556. url written in TrackerInitCommand was moved here. Do not create
  16557. tracker request command if torrentMan->trackers != 0.
  16558. * src/CompactTrackerResponseProcessor.h: New class.
  16559. * src/CompactTrackerResponseProcessor.cc: New class.
  16560. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  16561. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  16562. Decoupled TorrentDownloadEngine from this.
  16563. * src/SegmentMan.h (init): New function.
  16564. * src/SegmentMan.cc (init): New function.
  16565. * src/TorrentMan.h (responseProcessor): New variable.
  16566. (trackers): New variable.
  16567. (setTrackerResponseProcessor): New function.
  16568. (getTrackerResponseProcessor): New function.
  16569. (processTrackerResponse): New function.
  16570. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  16571. (processTrackerResponse): New function.
  16572. * src/main.cc (main): Use ByteArrayDiskWriter and
  16573. CompactTrackerResponseProcessor.
  16574. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  16575. processTrackerResponse().
  16576. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  16577. readout.
  16578. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  16579. which indicates download has completed.
  16580. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  16581. (closeFile): fd >= 0, not fd > 0
  16582. * src/main.cc (main): Added short cut for show-files.
  16583. Added short cut for torrent-file.
  16584. Added new command-line option listen-port.
  16585. Updated i18n messages.
  16586. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16587. To add LogFactory which creates singleton logger:
  16588. * src/LogFactory.h: New class.
  16589. * src/LogFactory.cc: New class.
  16590. * src/Command.h (logger): New variable.
  16591. (Constructor): Use LogFactory.
  16592. * src/AbstractCommand.cc: Use Command::logger
  16593. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  16594. Use LogFactory.
  16595. * src/SegmentSplitter.h : Made logger protected.
  16596. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  16597. * src/SegmentMan.cc (Constructor): Use LogFactory.
  16598. * src/DownloadEngine.h : Made logger protected.
  16599. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  16600. * src/PeerInteractionCommand.cc : Use Command::logger.
  16601. * src/HttpResponseCommand.cc : Use Command::logger.
  16602. * src/SegmentMan.h : Made logger private.
  16603. * src/TorrentMan.h : Made logger private.
  16604. * src/TorrentMan.cc : Use LogFactory.
  16605. * src/FtpNegotiateCommand.cc : Use Command::logger.
  16606. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  16607. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  16608. Use LogFactory.
  16609. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  16610. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  16611. Use LogFactory.
  16612. * src/DownloadCommand.cc : Use Command::logger.
  16613. * src/PeerAbstractCommand.cc : Use Command::logger.
  16614. * src/PeerListenCommand.cc : Use Command::logger.
  16615. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  16616. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  16617. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  16618. * src/TrackerWatcherCommand.cc : Use Command::logger.
  16619. * src/TrackerUpdateCommand.cc : Use Command::logger.
  16620. * src/TrackerDownloadCommand.cc : Use Command::logger.
  16621. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  16622. Use LogFactory.
  16623. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  16624. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  16625. Use LogFactory.
  16626. * src/main.cc (main): Use LogFactory.
  16627. * src/DiskAdaptor.h (logger): New variable.
  16628. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  16629. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  16630. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16631. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  16632. parameter to a tracker request.
  16633. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  16634. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  16635. * src/main.cc (setSignalHander): New function.
  16636. (main): Added a handler for SIGTERM.
  16637. (handler): Updated message.
  16638. (torrentHandler): Updated message.
  16639. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16640. * src/TorrentConsoleDownloadEngine.cc
  16641. (onPartialDownloadingCompletes): Renamed as
  16642. onSelectiveDownloadingCompletes.
  16643. (onSelectiveDownloadingCompletes): Updated message.
  16644. To add DiskAdaptor which abstract DiskWriter family:
  16645. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  16646. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  16647. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  16648. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  16649. MultiDiskAdaptor.h.
  16650. (readFileEntry): Changed its arguments.
  16651. (setup): setupDiskWriter is merged into this function.
  16652. (setupDiskWriter): Removed.
  16653. (setFileFilter): New function.
  16654. (readFileEntryFromMetaInfoFile): Updated according to the changes
  16655. made in readFileEntry.
  16656. (getFilePath): Removed.
  16657. (getTempFilePath): Removed.
  16658. (getSegmentFilePath): Updated due to the removal of getFilePath.
  16659. (fixFilename): Removed.
  16660. (copySingleFile): Removed.
  16661. (splitMultiFile): Removed.
  16662. (deleteTempFile): Removed.
  16663. (setFileEntriesToDownload): Removed.
  16664. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  16665. (isSelectiveDownloadingMode): New function.
  16666. (setAllMultiFileRequestedState): Removed.
  16667. (finishPartialDownloadingMode): Renamed as
  16668. finishSelectiveDownloadingMode.
  16669. (finishSelectiveDownloadingMode): New function.
  16670. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  16671. (getSelectedTotalLength): New function.
  16672. (onDownloadComplete): Use diskAdaptor.
  16673. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  16674. (Range): Removed.
  16675. (setMultiFileEntries): Renamed as setFileEntries.
  16676. (setFileEntries): New function.
  16677. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  16678. (pieceLength): New variable.
  16679. * src/main.cc (printDownloadCompeleteMessage): New function.
  16680. (torrentHandler): Use diskAdaptor instead of diskWriter.
  16681. (main): Renamed torrent-show-files to show-files.
  16682. Rewritten file contents listing.
  16683. * src/TorrentMan.h (FileEntry): Removed.
  16684. (multiFileTopDir): Removed.
  16685. (multiFileEntries): Removed.
  16686. (diskWriter): Removed.
  16687. (diskAdaptor): New variable.
  16688. * src/DefaultDiskWriter.h (totalLength): New variable.
  16689. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  16690. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  16691. diskWriter.
  16692. * src/TorrentConsoleDownloadEngine.h
  16693. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  16694. (partialTotalLength): Renamed as selectedTotalLength.
  16695. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  16696. openExistingFile, otherwise call initAndOpenFile.
  16697. (closeFile): fd > 0, not fd != 0.
  16698. * src/DirectDiskAdaptor.h: New class.
  16699. * src/DirectDiskAdaptor.cc: New class.
  16700. * src/MultiDiskAdaptor.h: New class.
  16701. * src/MultiDiskAdaptor.cc: New class.
  16702. * src/CopyDiskAdaptor.h: New class.
  16703. * src/CopyDiskAdaptor.cc: New class.
  16704. * src/DiskAdaptor.h: New class.
  16705. * src/DiskAdaptor.cc: New class.
  16706. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  16707. (PREF_SHOW_FILES): New definition.
  16708. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16709. To add the ability to download multi torrent into respective files
  16710. directly:
  16711. * src/DiskWriter.h (openFile): New function.
  16712. (seek): Removed.
  16713. * src/MultiDiskWriter.h: New class.
  16714. * src/MultiDiskWriter.cc: New class.
  16715. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  16716. protected.
  16717. (openFile): New function.
  16718. * src/AbstractDiskWriter.cc (openFile): New function.
  16719. * src/prefs.h (V_FALSE): New definition.
  16720. (PREF_DIRECT_FILE_MAPPING): New definition.
  16721. * src/TorrentMan.h (setupDiskWriter): New function.
  16722. (setAllMultiFileRequestedState): New function.
  16723. (onDownloadComplete): New function.
  16724. * src/TorrentMan.cc : Included MultiDiskWriter.h
  16725. (setupDiskWriter): New function.
  16726. (getFilePath): Updated.
  16727. (getTempFilePath): Updated.
  16728. (getSegmentFilePath): Updated.
  16729. (fixFilename): Updated.
  16730. (deleteTempFile): Updated.
  16731. (setAllMultiFileRequestedState): New function.
  16732. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  16733. (finishPartialDownloadingMode): Reset requested flags.
  16734. (onDownloadComplete): New function.
  16735. * src/main.cc: Added --direct-file-mapping option.
  16736. Use TorrentMan::setupDiskWriter().
  16737. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  16738. onDownloadComplete().
  16739. To fix ETA bug:
  16740. * src/Util.h (difftvsec): New function.
  16741. * src/Util.cc (difftvsec): New function.
  16742. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  16743. type of "elapsed" instead of long long int.
  16744. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  16745. The updates of statistics takes place every 1 seconds.
  16746. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  16747. (calculateSpeed): Changed its argument signature.
  16748. * src/PeerMessage.cc (toString): Fixed message.
  16749. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16750. To print ETA:
  16751. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  16752. completion handling when dealing with
  16753. TorrentMan::isPartialDownloadingMode() == true.
  16754. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  16755. New function.
  16756. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  16757. (sessionDownloadLength): New variable.
  16758. (avgSpeed): New variable.
  16759. (eta): New variable.
  16760. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  16761. new variables: eta, avgSpeed, startup.
  16762. (calculateSpeed): Calculate average speed and ETA.
  16763. (printStatistics): Added ETA.
  16764. * src/Util.h (secfmt): New function.
  16765. * src/Util.cc (secfmt): New function.
  16766. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16767. To detect "keep alive" flooding:
  16768. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  16769. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  16770. variable: keepAliveCount.
  16771. (detectMessageFlooding): Added "keep alive" flooding detection.
  16772. (receiveMessage): Increase keepAliveCount when "keep alive" message
  16773. received.
  16774. To add the ability to download only specified files in multi-file
  16775. torrent:
  16776. * src/BitfieldMan.h (filterBitfield): New variable.
  16777. (filterEnabled): New variable.
  16778. (setFilterBit): New function.
  16779. (enableFilter): New function.
  16780. (disableFilter): New function.
  16781. (isFilterEnabled): New function.
  16782. (getFilteredTotalLength): New function.
  16783. (getCompletedLength): New function.
  16784. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  16785. filterBitfield, filterEnabled.
  16786. (CopyConstructor): Added filterBitfield and filterEnabled.
  16787. (operator==): Added filterBitfield and filterEnabled.
  16788. (Destructor): Added filterBitfield.
  16789. (getMissingIndex): Use filterBitfield.
  16790. (getMissingUnusedIndex): Use filterBitfield.
  16791. (getFirstMissingUnusedIndex): Use filterBitfield.
  16792. (getFirstMissingUnusedIndex): Use filterBitfield.
  16793. (getAllMissingIndexes): Use filterBitfield.
  16794. (countMissingBlock): Use filterBitfield.
  16795. (countBlock): Use filterBitfield.
  16796. (setBitInternal): Added new argument on.
  16797. (setUseBit): Use setBitInternal.
  16798. (unsetUseBit): Use setBitInternal.
  16799. (setBit): Use setBitInternal.
  16800. (unsetBit): Use setBitInternal.
  16801. (isAllBitSet): Use filterBitfield.
  16802. (setFilterBit): New function.
  16803. (addFilter): New function.
  16804. (enableFilter): New function.
  16805. (disableFilter): New function.
  16806. (clearFilter): New function.
  16807. (isFilterEnabled): New function.
  16808. (getFilteredTotalLength): New function.
  16809. (getCompletedLength): New function.
  16810. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  16811. Initalized newly added variables.
  16812. [FileEntry](offset): New variable.
  16813. [FileEntry](extracted): New variable.
  16814. [FileEntry](requested): New variable.
  16815. (readFileEntry): New function.
  16816. (option): New variable.
  16817. (splitMultiFile): Removed const qualifier.
  16818. (fixFilename): Removed const qualifier.
  16819. (readFileEntryFromMetaInfoFile): New function.
  16820. (finishPartialDownloadingMode): New function.
  16821. (isPartialDownloadingMode): New function.
  16822. (setFileEntriesToDownload): New function.
  16823. (getCompletedLength): New function.
  16824. (getPartialTotalLength): New function.
  16825. * src/TorrentMan.cc (readFileEntry): New function.
  16826. (setup): Use readFileEntry. If no-preallocation option is specified,
  16827. use DefaultDiskWriter.
  16828. (readFileEntryFromMetaInfoFile): New function.
  16829. (fixFilename): Removed const qualifier.
  16830. (splitMultiFile): Removed const qualifier.
  16831. (setFileEntriesToDownload): New function.
  16832. (isPartialDownloadingMode): New function.
  16833. (finishPartialDownloadingMode): New function.
  16834. (getCompletedLength): New function.
  16835. (getPartialTotalLength): New function.
  16836. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  16837. New variable.
  16838. (partialTotalLength): New variable.
  16839. (downloadLength): New variable.
  16840. (totalLength): New variable.
  16841. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  16842. Added log.
  16843. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  16844. partialTotalLength, downloadLength, totalLength.
  16845. (calculate): Calculate downloadLength and totalLength.
  16846. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  16847. * src/main.cc (addCommand): Changed argument signature.
  16848. (main): Added new variable: args. Added new option "torrent-show-files"
  16849. "no-preallocation". Usage is not updated yet.
  16850. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16851. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  16852. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16853. Attempt to add the ability to listing file entries in a .torrent file.
  16854. This feature is not yet complete.
  16855. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  16856. * src/TorrentMan.cc (getMultiFileEntries): New function.
  16857. (getName): New function.
  16858. * src/TorrentMan.h (getMultiFileEntries): New function.
  16859. (getName): New function.
  16860. * src/main.cc (main): Use above 2 funtion.
  16861. * Release 0.3.2
  16862. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16863. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  16864. (detectMessageFlooding): Updated threshold value.
  16865. (checkLongTimePeerChoking): Updated timeout value.
  16866. (getNewPieceAndSendInterest): Added debug log.
  16867. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  16868. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  16869. (getPeer): Updated.
  16870. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  16871. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  16872. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  16873. is localhost.
  16874. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  16875. * src/PendingMessage.cc (processMessage): Not to send piece message
  16876. if peer is not interested in the pieces localhost has.
  16877. * src/Peer.cc (shouldChoke): Updated.
  16878. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  16879. * src/Util.cc (isPowerOf): New function.
  16880. * src/Util.h (isPowerOf): New function.
  16881. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  16882. whether or not it is power of 2.
  16883. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16884. Added new class SendMessageQueue that includes PendingMessages and
  16885. RequestSlotMan.
  16886. * src/SendMessageQueue.h: New class.
  16887. * src/SendMessageQueue.cc: New class.
  16888. * src/PendingMessage.h: Added new member variable blockIndex and its
  16889. accessors.
  16890. (createRequestMessage): Updated.
  16891. * src/PendingMessage.cc (createRequestMessage): Updated.
  16892. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  16893. SendMessageQueue.
  16894. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  16895. (receiveMessage): Updated with SendMessageQueue.
  16896. (deletePendingPieceMessage): Removed.
  16897. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  16898. (sendInterest): Updated with SendMessageQueue.
  16899. (createRequestPendingMessage): Updated with SendMessageQueue.
  16900. (sendMessages): Updated with SendMessageQueue.
  16901. (onAbort): Updated with SendMessageQueue.
  16902. (keepAlive): Updated with SendMessageQueue.
  16903. (beforeSocketCheck): Updated SendMessageQueue.
  16904. * src/PeerInteractionCommand (sendMessages): Shuffle
  16905. missingBLockIndexes before using it.
  16906. Added its own timeout for peer connection.
  16907. * src/PeerAbstractCommand.h: Added member variable timeout and its
  16908. setter.
  16909. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  16910. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16911. Added setTimeout() call.
  16912. (executeInternal): Added setTimeout() call.
  16913. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  16914. Added timeout.
  16915. (isTimeoutDetected): Updated.
  16916. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  16917. option.
  16918. Added *simple* message flooding checker.
  16919. * src/PeerInteractionCommand.cc (executeInternal):
  16920. Added detectMessageFlooding() call.
  16921. (detectMessageFlooding): New function.
  16922. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  16923. (beforeSocketCheck): Added detectMessageFlooding() call.
  16924. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  16925. chokeUnchokeCount, haveCount, detectMessageFlooding().
  16926. Removed deletePendingPieceMessage(), getRequestSlot(),
  16927. deleteRequestSlot(), deleteAllRequestSlot().
  16928. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  16929. Added checkLongTimePeerChoking() call.
  16930. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  16931. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  16932. if duplicate == false.
  16933. The parameter "uploaded" and "downloaded" in the tracker request are
  16934. the size since the client sent the "started" event to the tracker.
  16935. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  16936. uploaded size to preDownloadedSize, preUploadedSize respectively.
  16937. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  16938. getSessionDownloadedSize(), getSessionUploadedSize().
  16939. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  16940. getSessionUploadedSize() instead of getDownloadedSize(),
  16941. getUploadedSize().
  16942. * src/PendingMessage.cc (processMessage): Do not send request message
  16943. if the peer is choking the client.
  16944. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  16945. less than interval.
  16946. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16947. * configure.in: Added gnutls support. Added several CPP macros.
  16948. * m4/openssl.m4: Added.
  16949. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  16950. readData(), peekData(). Added gnutls support.
  16951. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  16952. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  16953. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  16954. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  16955. Instead, added a check for whether setup method has executed
  16956. successfully.
  16957. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  16958. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  16959. * src/Makefile.am: Updated.
  16960. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  16961. using whether OpenSSL or gcrypt, depending on the result of configure
  16962. script.
  16963. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  16964. messageDigest.h.
  16965. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  16966. * src/PeerListenCommand.cc: Added log about port binded successfully.
  16967. Fixed memory leak.
  16968. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  16969. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  16970. Removed instantiation of TrackerInitCommand. Instead,
  16971. TrackerWatcherCommand is instantiated and pushed to the command queue.
  16972. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  16973. ENABLE_SSL.
  16974. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  16975. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  16976. If a piece is already acquired by another command, delete the request
  16977. slots for the piece.
  16978. * src/TrackerUpdateCommand.cc (execute):
  16979. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  16980. Added a check whether peer list is null.
  16981. Fixed the bug that causes sending completed event to the tracker
  16982. several times.
  16983. * src/TrackerInitCommand.cc (execute):
  16984. Fixed the bug that causes sending completed event to the tracker
  16985. several times.
  16986. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  16987. by using messageDigest.h.
  16988. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16989. * PeerConnection.cc: Replaced log message "keep-alive" with
  16990. "keep alive".
  16991. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  16992. localhost long time.
  16993. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  16994. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  16995. at most 100 failure entry from the list. If with duplicate = false,
  16996. MAX_PEER_LIST is not checked.
  16997. * PeerListenCommand.cc: Fixed the argument order of log message.
  16998. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16999. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  17000. Added warn().
  17001. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  17002. Implemented warn().
  17003. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  17004. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17005. * Request.h: Added AFTER_COMPLETED event.
  17006. * TorrentDownloadEngine.cc: Prints "Download complete" message
  17007. instead of downloaded size and progress(%) after download completes.
  17008. * PeerInteractionCommand.cc: After download completes, sends unchoke
  17009. message to the peer if it is interested in what localhost has
  17010. downloaded.
  17011. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  17012. destination instead of just renaming it.
  17013. * TorrentMan.cc: Added deleteTempFile().
  17014. * PeerAbstractCommand.cc: do not stop execution after download
  17015. completes. This makes localhost a seeder.
  17016. * Util.{h,cc}: Added fileCopy().
  17017. * PeerListenCommand.cc: do not stop execution after download completes.
  17018. This makes localhost a seeder.
  17019. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  17020. Added TorrentMan::deleteTempFile() to torrentHandler.
  17021. Initialized the variable dir as ".".
  17022. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  17023. Deleted renameSingleFile().
  17024. Added copySingleFile(), deleteTempFile().
  17025. * DownloadEngine.h: Added virtual function afterEachIteration().
  17026. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  17027. in onEndOfRun() to afterEachIteration().
  17028. In onEndOfRun(), changed if condition to check whether filenameFixed is
  17029. true.
  17030. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  17031. In rangedFileCopy(), added try-catch block to properly close file
  17032. descriptors.
  17033. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  17034. Added afterEachIteration(), isFilenameFixed().
  17035. * Peer.cc: Changed choking strategy.
  17036. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  17037. * TrackerInitCommand.cc: Send completed event only once.
  17038. * DownloadEngine.cc: Added a call to afterEachIteration().
  17039. * TrackerUpdateCommand.cc: Do not stop execution after download
  17040. completes.
  17041. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  17042. connect the peers at most MAX_PEER_UPDATE when a peer list is
  17043. received from a tracker.
  17044. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  17045. Decreased the number of failure peers to delete to 0(just comment out
  17046. the line).
  17047. * Release 0.3.1
  17048. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17049. * PeerInteractionCommand.cc: added a call to
  17050. TorrentMan::unadvertisePiece in Destructor.
  17051. * PeerInteractionCommand.cc: make have message sent immediately
  17052. if the size of pending message queue is zero.
  17053. * TorrentMan.cc: set the maximum size of peer list to 250.
  17054. * TorrentMan.h: changed the container type of Peers and UsedPieces
  17055. to deque.
  17056. * Util.cc: fixed rangedFileCopy.
  17057. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  17058. to Constructor. Also, moved digest cleanup to Destructor.
  17059. * MetaFileUtil.cc: fixed memory leak
  17060. * replaced std::vector with std::deque.
  17061. * AbstractCommand.cc: casted timeout value to long long int.
  17062. * ChunkedEncoding.cc: fixed memory leak.
  17063. * PeerInteractionCommand.cc: casted timeout value to long long int.
  17064. * SleepCommand.cc: casted timeout value to long long int.
  17065. * Data.cc: fixed memory leak.
  17066. * Data.cc: fixed toLLInt().
  17067. * BitfieldMan.cc: fixed memory leak.
  17068. * TorrentMan.cc: initialized storeDir to ".".
  17069. * TorrentMan.cc: fixed memory leak.
  17070. * TorrentMan.cc: corrected file paths of splitted files.
  17071. * PeerAbstractCommand.cc: casted timeout to long long int.
  17072. * main.cc: added delete(req) and delete(te->diskWriter).
  17073. * RequestSlot.cc: casted timeout value to long long int.
  17074. * Request.cc: fixed memory leak.
  17075. * PendingMessage.cc: make HAVE messages sent only when peer does not
  17076. have the piece.
  17077. * Peer.{h,cc}: added hasPiece(int index).
  17078. * main.cc: corrected addCommand.
  17079. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17080. * BitTorrent protocol support added.
  17081. * Release 0.3.0
  17082. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17083. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  17084. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17085. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  17086. decoding did not work properly.
  17087. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17088. * DownloadEngine.h: included sys/time.h
  17089. * DownloadEngine.cc: remove sys/time.h
  17090. * Makefile.am (SUBDIRS): Add intl.
  17091. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  17092. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17093. * main.cc: correct help message for --http-auth-scheme.
  17094. * main.cc: changed e-mail address for bug reports.
  17095. * ja.po: added japanese translation.
  17096. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17097. * SimpleLogger.cc: flush log file instead of stdout.
  17098. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17099. * main.cc: Fixed command-line option: max-tries
  17100. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  17101. does not equal to seg.sp.
  17102. * DownloadCommand.cc: If EOF is got from the server and the total size
  17103. of file is not zero, then throw DlRetryEx.
  17104. * main.cc: Set the minium value of min-segment-size to 1024.
  17105. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  17106. fails because of a regression since 0.2.0 release.
  17107. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17108. * HttpConnection.cc:
  17109. * common.h: defined the user agent name as macro
  17110. * DownloadEngine.{h, cc}:
  17111. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  17112. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  17113. * main.cc: Download complete/abort message is now generated by main.
  17114. * Makefile.am (SUBDIRS): Add m4.
  17115. (ACLOCAL_AMFLAGS): New variable.
  17116. (EXTRA_DIST): New variable.
  17117. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  17118. * gettext: added gettext functionality
  17119. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17120. * AbstractCommand.cc:
  17121. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  17122. unregister its cuid from SegmentMan.
  17123. * DownloadEngine.cc: .aria2 file was written when a downloading
  17124. failed with errors.
  17125. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  17126. Added "User-Agent" header to CONNECT proxy request.
  17127. Fixed "Proxy-Authorization" header. Now proxy authorization works
  17128. properly.
  17129. * Logger.h:
  17130. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  17131. * ChunkedEncoding.cc: Added #include directive for strings.h
  17132. * Release 0.2.1
  17133. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17134. * Util.{h,cc}: added startsWith().
  17135. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  17136. Util::endsWith().
  17137. * SocketCore.cc: struct addrinfo is now zero-initialized.
  17138. * common.h: added #include directive of limit.h.
  17139. * DownloadEngine.cc: added #include directive of sys/time.h and
  17140. algorithm.
  17141. * Exception.h: added #include directive of stdio.h.
  17142. * AbstractCommand.h: added #include directive of sys/time.h.
  17143. * DownloadCommand.h: added #include directive of sys/time.h.
  17144. * *.h: added #include directive of common.h to all base classes.
  17145. subclasses' one was removed.
  17146. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  17147. does not define these macros.
  17148. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17149. * Release 0.2.0
  17150. * main.cc:
  17151. * HttpInitiateConnectionCommand.{h,cc}:
  17152. * prefs.h:
  17153. * HttpConnection.{h,cc}: added --http-proxy-method option.
  17154. We can now use GET command in http proxy.
  17155. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17156. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  17157. that splits slowest segment of SegmentMan::commands vector.
  17158. This is the default split algorithm of aria2.
  17159. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  17160. that splits first segment of SegmentMan::commands vector.
  17161. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  17162. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  17163. * Segment.h:
  17164. * SegmentMan.cc: Added speed field to Segment.h
  17165. * main.cc: -s option now affects all URLs in command-line arguemtns.
  17166. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  17167. * message.h: Change file size related %d to %lld.
  17168. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17169. * FtpInitiateConnectionCommand.{h,cc}:
  17170. * FtpNegotiationCommand.{h,cc}:
  17171. * FtpDownloadCommand.{h,cc}:
  17172. * FtpConnection.{h,cc}: Added FTP support
  17173. * SimpleLogger.cc: Log message now includes time information.
  17174. * main.cc: The value of --http-auth-scheme option is chagned from
  17175. 'BASIC' to 'basic'
  17176. * main.cc: Added --timeout command-line option.
  17177. * main.cc: Added --min-segment-size command-line option.
  17178. * main.cc: Added --max-retries command-line option.
  17179. * prefs.h: option string constants are now defined in prefs.h
  17180. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17181. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  17182. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  17183. with version 0.1.0's one.
  17184. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17185. * configure.in: Added --enable-ssl option to configure script.
  17186. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  17187. cannot permit absoluteURI as Request-URI.
  17188. * HttpConnection.cc: Added Referer support.
  17189. * main.cc: Added referer command-line option.
  17190. * main.cc: Added rety-wait command-line option.
  17191. * Exception.h: Fixed formating bug in Exception::setMsg()
  17192. * SocketCore.{h,cc}:
  17193. * Socket.{h, cc}:
  17194. * Request.cc:
  17195. * InitiateConnectionCommandFactory.cc:
  17196. * HttpRequestCommand.cc: Added HTTPS support.
  17197. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  17198. for SocketCore.
  17199. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  17200. size is wrong
  17201. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  17202. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  17203. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  17204. * Release 0.1.0