ChangeLog 544 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217
  1. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Log incoming host in HttpListenCommand.
  3. * src/HttpListenCommand.cc
  4. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  6. --xml-rpc-passwd option.
  7. * src/HttpServer.cc
  8. * src/HttpServer.h
  9. * src/HttpServerCommand.cc
  10. * src/OptionHandlerFactory.cc
  11. * src/prefs.cc
  12. * src/prefs.h
  13. * src/usage_text.h
  14. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  15. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  16. processing 0 length request.
  17. * src/HttpServerBodyCommand.cc
  18. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  19. Removed --enable-http-server and --http-server-listen-port
  20. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  21. instead. The original feature for --enable-http-server that
  22. reports download progress in HTML was officially removed. Persist
  23. XML-RPC connection if client supports keep-alive.
  24. * src/DownloadEngineFactory.cc
  25. * src/HttpServerCommand.cc
  26. * src/HttpServerResponseCommand.cc
  27. * src/Makefile.am
  28. * src/Makefile.in
  29. * src/OptionHandlerFactory.cc
  30. * src/RequestGroupMan.cc
  31. * src/main.cc
  32. * src/option_processing.cc
  33. * src/prefs.cc
  34. * src/prefs.h
  35. * src/usage_text.h
  36. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  37. Added "uris" key to the response of tellStatus command. Added
  38. "connections" key to the response of tellStatus and tellActive
  39. command.
  40. * src/XmlRpcMethodImpl.cc
  41. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  42. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  43. Added TellStatusXmlRpcMethod. Remove command can now remove
  44. waiting RequestGroup.
  45. * src/RequestGroupMan.cc
  46. * src/RequestGroupMan.h
  47. * src/XmlRpcMethodFactory.cc
  48. * src/XmlRpcMethodImpl.cc
  49. * src/XmlRpcMethodImpl.h
  50. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  51. Initialized _peerId
  52. * src/Peer.cc
  53. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  54. Return fault structure for error. FailXmlRpcMethod is renamed as
  55. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  56. in non-torrent download. Return single param value.
  57. * src/XmlRpcMethod.cc
  58. * src/XmlRpcMethodFactory.cc
  59. * src/XmlRpcMethodImpl.cc
  60. * src/XmlRpcMethodImpl.h
  61. * test/XmlRpcMethodTest.cc
  62. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  63. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  64. command.
  65. * src/RequestGroup.cc
  66. * src/RequestGroup.h
  67. * src/RequestGroupMan.cc
  68. * src/XmlRpcMethodImpl.cc
  69. * test/RequestGroupTest.cc
  70. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  71. Added more options that can be specified in -i list and xml-rpc
  72. add* command.
  73. * src/download_helper.h
  74. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  75. The available options in -i list should be listed in
  76. listRequestOptions().
  77. * src/download_helper.cc
  78. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  79. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  80. command.
  81. * src/XmlRpcMethodImpl.cc
  82. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  83. Now RequestGroup has its own copy of Option object. This will help
  84. to give custom option for each RequestGroup.
  85. addTorrentFile command now takes options.
  86. * src/AbstractCommand.cc
  87. * src/AbstractCommand.h
  88. * src/AbstractProxyRequestCommand.cc
  89. * src/ActivePeerConnectionCommand.cc
  90. * src/ActivePeerConnectionCommand.h
  91. * src/AdaptiveURISelector.cc
  92. * src/BtCheckIntegrityEntry.cc
  93. * src/BtDependency.cc
  94. * src/BtDependency.h
  95. * src/BtFileAllocationEntry.cc
  96. * src/BtPostDownloadHandler.cc
  97. * src/CheckIntegrityEntry.cc
  98. * src/DownloadCommand.cc
  99. * src/FtpDownloadCommand.cc
  100. * src/FtpFinishDownloadCommand.cc
  101. * src/FtpInitiateConnectionCommand.cc
  102. * src/FtpNegotiationCommand.cc
  103. * src/HttpInitiateConnectionCommand.cc
  104. * src/HttpRequestCommand.cc
  105. * src/HttpResponseCommand.cc
  106. * src/HttpSkipResponseCommand.cc
  107. * src/InitiateConnectionCommand.cc
  108. * src/InitiateConnectionCommandFactory.cc
  109. * src/InitiatorMSEHandshakeCommand.cc
  110. * src/InitiatorMSEHandshakeCommand.h
  111. * src/Metalink2RequestGroup.cc
  112. * src/Metalink2RequestGroup.h
  113. * src/MetalinkPostDownloadHandler.cc
  114. * src/MultiUrlRequestInfo.cc
  115. * src/MultiUrlRequestInfo.h
  116. * src/PeerAbstractCommand.cc
  117. * src/PeerInteractionCommand.cc
  118. * src/PeerInteractionCommand.h
  119. * src/PeerReceiveHandshakeCommand.cc
  120. * src/PeerReceiveHandshakeCommand.h
  121. * src/RequestGroup.cc
  122. * src/RequestGroup.h
  123. * src/TrackerWatcherCommand.cc
  124. * src/TrackerWatcherCommand.h
  125. * src/XmlRpcMethod.cc
  126. * src/XmlRpcMethod.h
  127. * src/XmlRpcMethodImpl.cc
  128. * src/download_helper.cc
  129. * src/download_helper.h
  130. * src/main.cc
  131. * test/BtDependencyTest.cc
  132. * test/BtPostDownloadHandlerTest.cc
  133. * test/DefaultBtMessageDispatcherTest.cc
  134. * test/DownloadHandlerFactoryTest.cc
  135. * test/DownloadHelperTest.cc
  136. * test/Metalink2RequestGroupTest.cc
  137. * test/MetalinkPostDownloadHandlerTest.cc
  138. * test/RequestGroupManTest.cc
  139. * test/RequestGroupTest.cc
  140. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  141. Added tellActiveStatus xml-rpc command which reports download
  142. status of active downloads.
  143. * src/XmlRpcMethodFactory.cc
  144. * src/XmlRpcMethodImpl.cc
  145. * src/XmlRpcMethodImpl.h
  146. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  147. Added addTorrentFile xml-rpc command which receives uploaded
  148. torrent file and add download for it.
  149. * src/RequestGroupMan.cc
  150. * src/XmlRpcMethodFactory.cc
  151. * src/XmlRpcMethodImpl.cc
  152. * src/XmlRpcMethodImpl.h
  153. * src/download_helper.cc
  154. * src/download_helper.h
  155. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  156. Added remove xml-rpc command which removes specified download.
  157. There is a known issue: the removed unfinished downloads are
  158. reported ERR when aria2 exits. They should be reported as INPR.
  159. * src/RequestGroupMan.cc
  160. * src/RequestGroupMan.h
  161. * src/XmlRpcMethodFactory.cc
  162. * src/XmlRpcMethodImpl.cc
  163. * src/XmlRpcMethodImpl.h
  164. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  165. If --enable-http-server is enabled, don't stop aria2 when all
  166. download finished and don't quit when no files to download at
  167. start up.
  168. * src/RequestGroupMan.cc
  169. * src/main.cc
  170. * src/option_processing.cc
  171. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  172. Added missing AM_CONDITIONAL
  173. * configure.ac
  174. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  175. Added xml-rpc functionality. Currently only addURI commad is
  176. supported. To enable xml-rpc, run aria2 with
  177. --enable-http-server. This option name is temporal and will be
  178. changed. The feature that reports download progress in html format
  179. is temporarily disabled.
  180. * src/HttpServer.cc
  181. * src/HttpServer.h
  182. * src/HttpServerBodyCommand.cc
  183. * src/HttpServerBodyCommand.h
  184. * src/HttpServerCommand.cc
  185. * src/HttpServerResponseCommand.cc
  186. * src/Makefile.am
  187. * src/OptionParser.cc
  188. * src/OptionParser.h
  189. * src/RequestGroupMan.cc
  190. * src/RequestGroupMan.h
  191. * src/XmlRpcMethod.cc
  192. * src/XmlRpcMethod.h
  193. * src/XmlRpcMethodFactory.cc
  194. * src/XmlRpcMethodFactory.h
  195. * src/XmlRpcMethodImpl.cc
  196. * src/XmlRpcMethodImpl.h
  197. * src/download_helper.cc
  198. * src/download_helper.h
  199. * test/Makefile.am
  200. * test/XmlRpcMethodTest.cc
  201. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  202. Added xml-rpc request parser. The supported value types are:
  203. i4/int, string, double, struct, array, base64. Currently only
  204. libxml2 version is provided.
  205. * src/Xml2XmlRpcRequestProcessor.cc
  206. * src/Xml2XmlRpcRequestProcessor.h
  207. * src/XmlRpcElements.cc
  208. * src/XmlRpcElements.h
  209. * src/XmlRpcRequest.h
  210. * src/XmlRpcRequestParserController.cc
  211. * src/XmlRpcRequestParserController.h
  212. * src/XmlRpcRequestParserState.h
  213. * src/XmlRpcRequestParserStateImpl.cc
  214. * src/XmlRpcRequestParserStateImpl.h
  215. * src/XmlRpcRequestParserStateMachine.cc
  216. * src/XmlRpcRequestParserStateMachine.h
  217. * src/XmlRpcRequestProcessor.h
  218. * test/XmlRpcRequestParserControllerTest.cc
  219. * test/XmlRpcRequestProcessorTest.cc
  220. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  221. * Release 1.3.3
  222. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  223. Fixed compile error since r1202.
  224. * src/ExpatMetalinkProcessor.cc
  225. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  226. Updated Ukrainian, Russian and Simplified Chinese
  227. translations. Thanks to all translators.
  228. * po/ru.po
  229. * po/uk.po
  230. * po/zh_CN.po
  231. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  232. Pass reference of Option object instead of pointer.
  233. * src/download_helper.cc
  234. * src/download_helper.h
  235. * src/main.cc
  236. * test/DownloadHelperTest.cc
  237. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  238. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  239. from option directly. Instead, get them from RequestGroup.
  240. * src/ActivePeerConnectionCommand.cc
  241. * src/ActivePeerConnectionCommand.h
  242. * src/PeerReceiveHandshakeCommand.cc
  243. * src/RequestGroup.h
  244. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  245. Removed unused uploadLimitCheck and uploadLimit from
  246. PeerAbstractCommand. Removed unused maxDownloadLimit from
  247. PeerInteractionCommand.
  248. * src/PeerAbstractCommand.cc
  249. * src/PeerAbstractCommand.h
  250. * src/PeerInteractionCommand.cc
  251. * src/PeerInteractionCommand.h
  252. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  253. Fixed broken file renaming feature since r1202.
  254. * src/FtpNegotiationCommand.cc
  255. * src/FtpNegotiationCommand.h
  256. * src/HttpResponseCommand.cc
  257. * src/RequestGroup.cc
  258. * src/RequestGroup.h
  259. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  260. Removed unused debug log
  261. * src/SocketCore.cc
  262. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  263. Generated configure and Makefile.in using autoconf 2.63 and
  264. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  265. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  266. * configure.ac
  267. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  268. Moved piece statistics stuff to new PieceStatMan class.
  269. Refactored PieceSelector interface.
  270. * src/DefaultPieceStorage.cc
  271. * src/DefaultPieceStorage.h
  272. * src/LongestSequencePieceSelector.cc
  273. * src/LongestSequencePieceSelector.h
  274. * src/Makefile.am
  275. * src/PieceSelector.h
  276. * src/PieceStatMan.cc
  277. * src/PieceStatMan.h
  278. * src/RarestPieceSelector.cc
  279. * src/RarestPieceSelector.h
  280. * src/RequestGroup.cc
  281. * test/DefaultPieceStorageTest.cc
  282. * test/InOrderPieceSelector.h
  283. * test/Makefile.am
  284. * test/PieceStatManTest.cc
  285. * test/RarestPieceSelectorTest.cc
  286. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  287. Added static member _protocolFamily to SocketCore. By default,
  288. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  289. address. Sometime SocketCore::bind() and
  290. SocketCore::establishConnection() use difference protocl family
  291. and latter cannot connect to former. To avoid this situation, we
  292. limit protocol family to AF_INET for unit tests.
  293. * src/SocketCore.cc
  294. * src/SocketCore.h
  295. * test/AllTest.cc
  296. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  297. Avoid std::bad_alloc for negative bencode string length.
  298. * src/bencode.cc
  299. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  300. Supported segmented downloading with chunked transfer encoding and
  301. content-length.
  302. * src/DownloadCommand.cc
  303. * src/HttpResponseCommand.cc
  304. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  305. Bump up version number to 1.3.3
  306. * configure.ac
  307. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  308. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  309. from 4096 to 65536 (for insanely large ftp login banners)
  310. * src/FtpConnection.h
  311. * test/FtpConnectionTest.cc
  312. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  313. In DefaultBtContext::getActualBasePath(), return first
  314. FileEntry::getPath() for single file torrent.
  315. * src/DefaultBtContext.cc
  316. * test/DefaultBtContextTest.cc
  317. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  318. Removed directIOAllowed() from BinaryStream, DiskWriter,
  319. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  320. Removed _directIOAllowed member from DiskWriter.
  321. * src/AbstractDiskWriter.cc
  322. * src/AbstractDiskWriter.h
  323. * src/AbstractSingleDiskAdaptor.cc
  324. * src/AbstractSingleDiskAdaptor.h
  325. * src/BinaryStream.h
  326. * src/ByteArrayDiskWriter.h
  327. * src/DefaultPieceStorage.cc
  328. * src/DiskWriter.h
  329. * src/MultiDiskAdaptor.cc
  330. * src/MultiDiskAdaptor.h
  331. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  332. Now the constructor of AbstractDiskWriter takes filename as an
  333. argument and filename argument is removed from openFile(),
  334. initAndOpenFile(), openExistingFile() interface. storeDir member
  335. and its accessor functions are removed from DiskAdaptor because it
  336. is not used anymore. size() member function of DefaultDiskWriter,
  337. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  338. opening file.
  339. * src/AbstractDiskWriter.cc
  340. * src/AbstractDiskWriter.h
  341. * src/AbstractSingleDiskAdaptor.cc
  342. * src/AbstractSingleDiskAdaptor.h
  343. * src/ByteArrayDiskWriter.cc
  344. * src/ByteArrayDiskWriter.h
  345. * src/ByteArrayDiskWriterFactory.cc
  346. * src/ByteArrayDiskWriterFactory.h
  347. * src/DefaultDiskWriter.cc
  348. * src/DefaultDiskWriter.h
  349. * src/DefaultDiskWriterFactory.cc
  350. * src/DefaultDiskWriterFactory.h
  351. * src/DefaultPieceStorage.cc
  352. * src/DirectDiskAdaptor.cc
  353. * src/DirectDiskAdaptor.h
  354. * src/DiskAdaptor.h
  355. * src/DiskWriter.h
  356. * src/DiskWriterFactory.h
  357. * src/MessageDigestHelper.cc
  358. * src/MultiDiskAdaptor.cc
  359. * src/RequestGroup.cc
  360. * src/UnknownLengthPieceStorage.cc
  361. * src/Util.cc
  362. * test/DefaultDiskWriterTest.cc
  363. * test/DirectDiskAdaptorTest.cc
  364. * test/FallocFileAllocationIteratorTest.cc
  365. * test/MessageDigestHelperTest.cc
  366. * test/MetalinkProcessorTest.cc
  367. * test/MultiDiskAdaptorTest.cc
  368. * test/MultiFileAllocationIteratorTest.cc
  369. * test/SingleFileAllocationIteratorTest.cc
  370. * test/UtilTest.cc
  371. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  372. Fixed the bug that aria2 aborts when --select-file is used. This
  373. bug was introduced in r1199.
  374. * src/MultiDiskAdaptor.cc
  375. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  376. Code cleanup
  377. * test/MockPieceStorage.cc
  378. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  379. Fixed the bug that read-only file with wrong file size will cause
  380. error because it cannot be truncated to the correct size. Now if
  381. file size is different than the expected one, re-open file in
  382. writable mode.
  383. * src/AbstractSingleDiskAdaptor.cc
  384. * src/AbstractSingleDiskAdaptor.h
  385. * src/BtCheckIntegrityEntry.cc
  386. * src/DiskAdaptor.h
  387. * src/MultiDiskAdaptor.h
  388. * src/RequestGroup.cc
  389. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  390. Fixed the bug that with --check-integrity option aria2 reports
  391. downloaded file size is 0 even if some parts of file is correctly
  392. downloaded. This bug is reproducible for the download that a file
  393. includes last piece is missing. This bug doesn't reveal for
  394. single-torrent with file allocation on.
  395. * src/IteratableChecksumValidator.cc
  396. * test/IteratableChecksumValidatorTest.cc
  397. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  398. Avoid circular reference between RequestGroup and AdaptiveURISelector
  399. * src/RequestGroupMan.cc
  400. * src/AdaptiveURISelector.cc
  401. * src/AdaptiveURISelector.h
  402. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  403. * Release 1.3.2
  404. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  405. Updated README
  406. * README
  407. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  408. Updated Ukrainian translations. Thanks to Alexander10.
  409. * po/uk.po
  410. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  411. Code cleanup
  412. * src/MetalinkParserStateMachine.cc
  413. * src/MetalinkParserStateMachine.h
  414. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  415. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  416. and expat simultaneously, MetalinkProcessor is now not base class
  417. and it is directly implemented in XML2SAXMetalinkProcessor and
  418. ExpatMetalinkProcessor.
  419. * src/ExpatMetalinkProcessor.cc
  420. * src/ExpatMetalinkProcessor.h
  421. * src/Makefile.am
  422. * src/MetalinkHelper.cc
  423. * src/MetalinkProcessor.h
  424. * src/MetalinkProcessorFactory.cc: Removed.
  425. * src/MetalinkProcessorFactory.h: Removed
  426. * src/XML2SAXMetalinkProcessor.cc
  427. * src/XML2SAXMetalinkProcessor.h
  428. * test/MetalinkProcessorTest.cc
  429. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  430. Bump up version number to 1.3.2
  431. * configure.ac
  432. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  433. Added missing file.
  434. * test/Makefile.am
  435. * test/url-list-singleFileEndsWithSlash.torrent
  436. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  437. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  438. request.
  439. * src/AnnounceList.cc
  440. * src/AnnounceList.h
  441. * src/BDE.cc: Added
  442. * src/BDE.h: Added
  443. * src/DHTAbstractMessage.cc
  444. * src/DHTAbstractMessage.h
  445. * src/DHTAnnouncePeerMessage.cc
  446. * src/DHTAnnouncePeerMessage.h
  447. * src/DHTAnnouncePeerReplyMessage.cc
  448. * src/DHTAnnouncePeerReplyMessage.h
  449. * src/DHTFindNodeMessage.cc
  450. * src/DHTFindNodeMessage.h
  451. * src/DHTFindNodeReplyMessage.cc
  452. * src/DHTFindNodeReplyMessage.h
  453. * src/DHTGetPeersMessage.cc
  454. * src/DHTGetPeersMessage.h
  455. * src/DHTGetPeersReplyMessage.cc
  456. * src/DHTGetPeersReplyMessage.h
  457. * src/DHTMessageFactory.h
  458. * src/DHTMessageFactoryImpl.cc
  459. * src/DHTMessageFactoryImpl.h
  460. * src/DHTMessageReceiver.cc
  461. * src/DHTMessageTracker.cc
  462. * src/DHTMessageTracker.h
  463. * src/DHTPingMessage.cc
  464. * src/DHTPingMessage.h
  465. * src/DHTPingReplyMessage.cc
  466. * src/DHTPingReplyMessage.h
  467. * src/DHTQueryMessage.cc
  468. * src/DHTQueryMessage.h
  469. * src/DHTResponseMessage.cc
  470. * src/DHTResponseMessage.h
  471. * src/DefaultBtAnnounce.cc
  472. * src/DefaultBtContext.cc
  473. * src/DefaultBtContext.h
  474. * src/HandshakeExtensionMessage.cc
  475. * src/Makefile.am
  476. * src/PeerListProcessor.h
  477. * src/UTPexExtensionMessage.cc
  478. * src/bencode.cc
  479. * src/bencode.h
  480. * test/AnnounceListTest.cc
  481. * test/BDETest.cc: Added
  482. * test/BencodeTest.cc
  483. * test/DHTAnnouncePeerMessageTest.cc
  484. * test/DHTAnnouncePeerReplyMessageTest.cc
  485. * test/DHTFindNodeMessageTest.cc
  486. * test/DHTFindNodeReplyMessageTest.cc
  487. * test/DHTGetPeersMessageTest.cc
  488. * test/DHTGetPeersReplyMessageTest.cc
  489. * test/DHTMessageFactoryImplTest.cc
  490. * test/DHTMessageTrackerTest.cc
  491. * test/DHTPingMessageTest.cc
  492. * test/DHTPingReplyMessageTest.cc
  493. * test/Makefile.am
  494. * test/MockDHTMessageFactory.h
  495. * test/PeerListProcessorTest.cc
  496. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  497. Use url-list (web-seeding) only for single-file torrent. This is
  498. basically the same behavior with Metalink file with torrent and
  499. URIs.
  500. * src/RequestGroup.cc
  501. * src/DefaultBtContext.cc
  502. * test/DefaultBtContextTest.cc
  503. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  504. Rewritten expr
  505. * src/array_fun.h
  506. * test/array_funTest.cc
  507. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  508. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  509. * src/DefaultBtMessageDispatcher.cc
  510. * src/a2algo.h
  511. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  512. Removed ExtendedMessagingAware. Instead of using inheritance,
  513. added ExtensionMessageRegistry and it is passed to
  514. DefaultExtensionMessageFactory.
  515. * src/DefaultBtInteractive.cc
  516. * src/DefaultBtInteractive.h
  517. * src/DefaultExtensionMessageFactory.cc
  518. * src/DefaultExtensionMessageFactory.h
  519. * src/ExtendedMessagingAware.h: Removed.
  520. * src/ExtensionMessageFactory.h
  521. * src/ExtensionMessageRegistry.h: Added.
  522. * src/Makefile.am
  523. * src/PeerInteractionCommand.cc
  524. * test/DefaultExtensionMessageFactoryTest.cc
  525. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  526. Fixed typo in log messages
  527. * src/MSEHandshake.cc
  528. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  529. Fixed the bug that prevents torrent download from finishing. The
  530. bug doesn't reveal for all torrents. The torrents affected this
  531. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  532. of pieces.
  533. * src/bitfield.h
  534. * test/bitfieldTest.cc
  535. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  536. Code cleanup
  537. * src/PeerListProcessor.h
  538. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  539. Removed RequestGroupAware
  540. * src/AbstractCommand.cc
  541. * src/AbstractCommand.h
  542. * src/ActivePeerConnectionCommand.cc
  543. * src/ActivePeerConnectionCommand.h
  544. * src/DHTGetPeersCommand.cc
  545. * src/DHTGetPeersCommand.h
  546. * src/InitiatorMSEHandshakeCommand.cc
  547. * src/InitiatorMSEHandshakeCommand.h
  548. * src/Makefile.am
  549. * src/PeerInitiateConnectionCommand.cc
  550. * src/PeerInitiateConnectionCommand.h
  551. * src/PeerInteractionCommand.cc
  552. * src/PeerInteractionCommand.h
  553. * src/RealtimeCommand.cc
  554. * src/RealtimeCommand.h
  555. * src/RequestGroupAware.cc: Removed
  556. * src/RequestGroupAware.h: Removed
  557. * src/SeedCheckCommand.cc
  558. * src/SeedCheckCommand.h
  559. * src/SleepCommand.cc
  560. * src/TrackerWatcherCommand.cc
  561. * src/TrackerWatcherCommand.h
  562. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  563. Rewritten PeerListProcessor
  564. * src/PeerListProcessor.h
  565. * src/CompactPeerListProcessor.h: Removed
  566. * src/CompactPeerListProcessor.cc: Removed
  567. * src/DelegatingPeerListProcessor.cc: Removed.
  568. * src/DefaultBtAnnounce.cc
  569. * src/Makefile.am
  570. * src/UTPexExtensionMessage.cc
  571. * src/DefaultPeerListProcessor.h: Removed.
  572. * src/DefaultPeerListProcessor.cc: Removed.
  573. * src/DelegatingPeerListProcessor.h: Removed.
  574. * test/Makefile.am
  575. * test/PeerListProcessorTest.cc
  576. * test/DefaultPeerListProcessorTest.cc: Removed.
  577. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  578. Rewritten RequestGroupMan::calculateStat()
  579. * src/RequestGroupMan.cc
  580. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  581. Removed unnecessary virtual destructor for Request class.
  582. * src/Request.cc
  583. * src/Request.h
  584. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  585. Avoid dynamic_pointer_cast.
  586. * src/DHTGetPeersCommand.cc
  587. * src/DHTGetPeersCommand.h
  588. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  589. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  590. BtEvent.
  591. * src/AbstractBtEventListener.h: Removed.
  592. * src/AbstractBtMessage.cc
  593. * src/AbstractBtMessage.h
  594. * src/BtAbortOutstandingRequestEvent.h
  595. * src/BtCancelSendingPieceEvent.h
  596. * src/BtChokedEvent.h: Removed.
  597. * src/BtChokingEvent.h
  598. * src/BtEvent.h: Removed
  599. * src/BtEventListener.h: Removed.
  600. * src/BtMessage.h
  601. * src/BtPieceMessage.cc
  602. * src/BtPieceMessage.h
  603. * src/BtRequestMessage.cc
  604. * src/BtRequestMessage.h
  605. * src/DefaultBtMessageDispatcher.cc
  606. * src/Makefile.am
  607. * src/a2functional.h
  608. * test/BtPieceMessageTest.cc
  609. * test/BtRequestMessageTest.cc
  610. * test/DefaultBtMessageDispatcherTest.cc
  611. * test/MockBtMessage.h
  612. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  613. Code cleanup
  614. * src/RequestGroupMan.cc
  615. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  616. Code cleanup
  617. * src/DownloadCommand.cc
  618. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  619. Fixed segmentation fault when GZipDecoder::decode() returns 0
  620. byte.
  621. * src/DownloadCommand.cc
  622. * src/bitfield.h
  623. * test/bitfieldTest.cc
  624. Fixed the bug that causes infinite loop if broken web server
  625. returns chunked response without last "0" chunk-size marker and
  626. closes connection.
  627. * src/DownloadCommand.cc
  628. Instantiate properly configured HttpDownloadCommand for
  629. non-resumable downlaods.
  630. * src/HttpResponseCommand.cc
  631. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  632. Rewritten array operation functions.
  633. * src/BitfieldMan.cc
  634. * src/array_fun.h
  635. * test/array_funTest.cc
  636. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  637. Removed unused variable 'query'
  638. * src/Request.cc
  639. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  640. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  641. accidentally set to false in r1162.
  642. * configure.ac
  643. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  644. Code cleanup
  645. * src/BNode.cc
  646. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  647. Increase prefixLength for the bucket which doesn't own local node
  648. ID when splitting bucket.
  649. * src/DHTBucket.cc
  650. * test/DHTBucketTest.cc
  651. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  652. * Release 1.3.1
  653. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  654. Bump up version number to 1.3.1
  655. * configure.ac
  656. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  657. Removed unused variable checkPoint. Also removed include directive
  658. for TimeA2.h.
  659. * src/SeedCheckCommand.h
  660. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  661. Fixed the bug that upload limit exceeds the value specified in
  662. --seed-ratio option depending on the timing of the execution of
  663. SeedCheckCommand.
  664. * src/SeedCheckCommand.cc
  665. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  666. Fixed the bug that removed peer's session upload/download length
  667. are counted twice in _cachedTransferStat before it is
  668. re-calculated. This affected the calculation of shara ratio,
  669. resulting aria2 wrongly determines that specified share ratio is
  670. reached. Also fixed the typo in calculateStatFor function name.
  671. * src/BtSetup.cc
  672. * src/DefaultPeerStorage.cc
  673. * src/ShareRatioSeedCriteria.h
  674. * test/ShareRatioSeedCriteriaTest.cc
  675. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  676. * Release 1.3.0
  677. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  678. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  679. Nynorsk translations. Thanks to all translators.
  680. * po/es.po
  681. * po/ja.po
  682. * po/nn.po
  683. * po/ru.po
  684. * po/uk.po
  685. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  686. Rewritten isInRange()
  687. * src/DHTBucket.cc
  688. * test/DHTBucketTest.cc
  689. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  690. Fixed typo
  691. * doc/aria2c.1.txt
  692. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  693. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  694. malloc/realloc is not used.
  695. * src/configure.ac
  696. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  697. BitfieldMan::getMissingIndexes family functions now takes unsigned
  698. char* bitfield instead of stl container for efficiency.
  699. PieceSelector::select now takes this
  700. bitfield. RarestPieceSelector::select now also performs
  701. efficiently for this change. bitfield namespace is introduced and
  702. it has several helper functions to handle basic bitfield
  703. operations such as test, count set bits, etc.
  704. * src/BitfieldMan.cc
  705. * src/BitfieldMan.h
  706. * src/DefaultBtRequestFactory.cc
  707. * src/DefaultPieceStorage.cc
  708. * src/DefaultPieceStorage.h
  709. * src/LongestSequencePieceSelector.cc
  710. * src/LongestSequencePieceSelector.h
  711. * src/Makefile.am
  712. * src/Piece.cc
  713. * src/Piece.h
  714. * src/PieceSelector.h
  715. * src/RarestPieceSelector.cc
  716. * src/RarestPieceSelector.h
  717. * src/Util.cc
  718. * src/Util.h
  719. * src/bitfield.h
  720. * test/BitfieldManTest.cc
  721. * test/LongestSequencePieceSelectorTest.cc
  722. * test/Makefile.am
  723. * test/RarestPieceSelectorTest.cc
  724. * test/UtilTest.cc
  725. * test/bitfieldTest.cc
  726. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  727. Made accepted socket non-block.
  728. * src/FtpNegotiationCommand.cc
  729. * src/HttpListenCommand.cc
  730. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  731. Guarded #ifdef HAVE_POSIX_FALLOCATE
  732. * src/AbstractSingleDiskAdaptor.cc
  733. * src/DefaultPieceStorage.cc
  734. * src/DiskAdaptor.h
  735. * src/DiskAdaptor.h
  736. * src/MultiFileAllocationIterator.cc
  737. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  738. Run
  739. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  740. in every 1 sec. The timeout of RequestSlot is 60s by default and
  741. it doesn't need to be called every time when
  742. DefaultBtInteractive::doInteractionProcessing() is called.
  743. * src/DefaultBtInteractive.cc
  744. * src/DefaultBtInteractive.h
  745. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  746. Documented 'falloc' in man page.
  747. * doc/aria2c.1.txt
  748. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  749. Updated doc
  750. * src/usage_text.h
  751. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  752. Added 'falloc' parameter for --file-allocation option. 'falloc'
  753. allocation mode uses posix_fallocate() system call to allocate
  754. file on disk. If you are using newer file systems such as ext4
  755. (with extents support), btrfs or xfs, 'falloc' is your best
  756. choice. It allocates large(few GiB) files almost instantly. Don't
  757. use 'falloc' with legacy file systems such as ext3 because it
  758. takes almost same time as 'prealloc' and it blocks aria2 entirely
  759. until allocation finishes. 'falloc' may not be available if your
  760. system doesn't have posix_fallocate() system call.
  761. * configure.ac
  762. * src/AbstractDiskWriter.cc
  763. * src/AbstractDiskWriter.h
  764. * src/AbstractSingleDiskAdaptor.cc
  765. * src/BinaryStream.h
  766. * src/BtCheckIntegrityEntry.cc
  767. * src/ByteArrayDiskWriter.h
  768. * src/CheckIntegrityEntry.cc
  769. * src/CheckIntegrityEntry.h
  770. * src/DefaultPieceStorage.cc
  771. * src/DiskAdaptor.cc
  772. * src/DiskAdaptor.h
  773. * src/DiskWriter.h
  774. * src/FallocFileAllocationIterator.cc
  775. * src/FallocFileAllocationIterator.h
  776. * src/FileAllocationEntry.cc
  777. * src/FileAllocationEntry.h
  778. * src/Makefile.am
  779. * src/MultiFileAllocationIterator.cc
  780. * src/MultiFileAllocationIterator.h
  781. * src/OptionHandlerFactory.cc
  782. * src/RequestGroup.cc
  783. * src/StreamCheckIntegrityEntry.cc
  784. * src/prefs.cc
  785. * src/prefs.h
  786. * src/usage_text.h
  787. * test/FallocFileAllocationIteratorTest.cc
  788. * test/Makefile.am
  789. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  790. Removed duplicate enableDirectIO() call.
  791. * src/MultiFileAllocationIterator.cc
  792. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  793. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  794. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  795. cost of std::rotate().
  796. * src/RarestPieceSelector.cc
  797. * src/RarestPieceSelector.h
  798. * test/RarestPieceSelectorTest.cc
  799. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  800. Updated usage doc for --bt-tracker-interval option.
  801. * src/usage_text.h
  802. * doc/aria2c.1.txt
  803. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  804. Documented --bt-tracker-interval option in man page.
  805. * doc/aria2c.1.txt
  806. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  807. Added an option to specify the interval between tracker requests.
  808. If non-zero value is specified, aria2 uses it and ignores the
  809. interval value in the response of tracker. If zero is specified,
  810. aria2 determines the inteval value based on the tarcker response
  811. and download progress.
  812. * src/DefaultBtAnnounce.cc
  813. * src/DefaultBtAnnounce.h
  814. * src/OptionHandlerFactory.cc
  815. * src/RequestGroup.cc
  816. * src/prefs.cc
  817. * src/prefs.h
  818. * src/usage_text.h
  819. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  820. Added operator+=, operator-=, operator-
  821. * src/TransferStat.cc
  822. * src/TransferStat.h
  823. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  824. Refactored RarestPieceSelector to reduce CPU load, especially for
  825. addPieceStats.
  826. * src/RarestPieceSelector.cc
  827. * src/RarestPieceSelector.h
  828. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  829. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  830. getAllMissingBlockIndexes to reduce a call to
  831. array_function_base::operator[].
  832. * src/BitfieldMan.cc
  833. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  834. Cached TransferStat/download speed to avoid to sum them up in each
  835. call.
  836. * src/DefaultPeerStorage.cc
  837. * src/DefaultPeerStorage.h
  838. * src/SegmentMan.cc
  839. * src/SegmentMan.h
  840. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  841. Typedefed cuid_t as int32_t in Command.h
  842. * src/CUIDCounter.h
  843. * src/Command.cc
  844. * src/Command.h
  845. * src/DownloadEngine.cc
  846. * src/DownloadEngine.h
  847. * src/PeerStat.h
  848. * src/SegmentMan.cc
  849. * src/SegmentMan.h
  850. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  851. Reduced the number of calls to PeerStorage::calculateStat() and
  852. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  853. transfer rate.
  854. * src/DefaultBtInteractive.cc
  855. * src/DefaultBtMessageDispatcher.cc
  856. * src/DefaultPeerStorage.cc
  857. * src/DefaultPeerStorage.h
  858. * src/DownloadCommand.cc
  859. * src/DownloadEngine.cc
  860. * src/PeerStorage.h
  861. * src/SegmentMan.cc
  862. * src/SegmentMan.h
  863. * test/MockPeerStorage.h
  864. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  865. Prepended _dir+"/" after joining path elements in torrent file.
  866. * src/DefaultBtContext.cc
  867. * test/DefaultBtContextTest.cc
  868. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  869. Added missing IndexBtMessageValidator.h
  870. * src/Makefile.am
  871. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  872. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  873. Chinese translations. Thank you for contributing our project.
  874. * po/id.po
  875. * po/it.po
  876. * po/ru.po
  877. * po/uk.po
  878. * po/zh_CN.po
  879. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  880. Updated README
  881. * README
  882. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  883. Bump up version number to 1.3.0
  884. * configure.ac
  885. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  886. Updated doc
  887. * src/DefaultBtContext.h
  888. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  889. Slice/joinPath for name of single torrent.
  890. * src/DefaultBtContext.cc
  891. * test/DefaultBtContextTest.cc
  892. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  893. Updated man page: Documented --dry-run and --index-out
  894. options. Changed the default value of --uri-selector and
  895. --http-auth-challenge options. Removed --direct-file-mapping
  896. option. Added example for --index-out
  897. * doc/aria2c.1.txt
  898. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  899. Updated TEXT_DRY_RUN
  900. * src/usage_text.h
  901. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  902. Changed the default value of --uri-selector option from 'inorder'
  903. to 'feedback'
  904. * src/OptionHandlerFactory.cc
  905. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  906. Included current URI in exception message.
  907. * src/AbstractCommand.cc
  908. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  909. Renamed ServerStatURISelector as FeedbackURISelector.
  910. * src/FeedbackURISelector.cc
  911. * src/FeedbackURISelector.h
  912. * src/Makefile.am
  913. * src/RequestGroupMan.cc
  914. * src/ServerStatURISelector.cc
  915. * src/ServerStatURISelector.h
  916. * test/FeedbackURISelectorTest.cc
  917. * test/Makefile.am
  918. * test/ServerStatURISelectorTest.cc
  919. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  920. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  921. all URIs are tested and their timeout is not reached.
  922. * src/AdaptiveURISelector.cc
  923. * src/AdaptiveURISelector.h
  924. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  925. Changed the default value of --http-auth-challenge option to false.
  926. * src/OptionHandlerFactory.cc
  927. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  928. Reuse URIs when all unused URIs run out.
  929. * src/OptionHandlerFactory.cc
  930. * src/RequestGroup.cc
  931. * src/prefs.cc
  932. * src/prefs.h
  933. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  934. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  935. and BtRejectMessage are derived from RangeBtMessage class.
  936. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  937. derived from IndexBtMessage class. BtChokeMessage,
  938. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  939. BtNotInterestedMessage and BtUnchokeMessage are derived from
  940. ZeroBtMessage class.
  941. * src/AbstractBtMessage.cc
  942. * src/AbstractBtMessage.h
  943. * src/BtAllowedFastMessage.cc
  944. * src/BtAllowedFastMessage.h
  945. * src/BtAllowedFastMessageValidator.h: Removed
  946. * src/BtBitfieldMessage.cc
  947. * src/BtBitfieldMessage.h
  948. * src/BtCancelMessage.cc
  949. * src/BtCancelMessage.h
  950. * src/BtCancelMessageValidator.h: Removed
  951. * src/BtChokeMessage.cc
  952. * src/BtChokeMessage.h
  953. * src/BtExtendedMessage.cc
  954. * src/BtExtendedMessage.h
  955. * src/BtHandshakeMessage.cc
  956. * src/BtHandshakeMessage.h
  957. * src/BtHaveAllMessage.cc
  958. * src/BtHaveAllMessage.h
  959. * src/BtHaveMessage.cc
  960. * src/BtHaveMessage.h
  961. * src/BtHaveMessageValidator.h: Removed
  962. * src/BtHaveNoneMessage.cc
  963. * src/BtHaveNoneMessage.h
  964. * src/BtInterestedMessage.cc
  965. * src/BtInterestedMessage.h
  966. * src/BtKeepAliveMessage.cc
  967. * src/BtKeepAliveMessage.h
  968. * src/BtNotInterestedMessage.cc
  969. * src/BtNotInterestedMessage.h
  970. * src/BtPieceMessage.cc
  971. * src/BtPieceMessage.h
  972. * src/BtPortMessage.cc
  973. * src/BtPortMessage.h
  974. * src/BtRejectMessage.cc
  975. * src/BtRejectMessage.h
  976. * src/BtRejectMessageValidator.h: Removed
  977. * src/BtRequestMessage.cc
  978. * src/BtRequestMessage.h
  979. * src/BtRequestMessageValidator.h: Removed
  980. * src/BtSuggestPieceMessage.cc
  981. * src/BtSuggestPieceMessage.h
  982. * src/BtSuggestPieceMessageValidator.h: Removed
  983. * src/BtUnchokeMessage.cc
  984. * src/BtUnchokeMessage.h
  985. * src/DefaultBtMessageFactory.cc
  986. * src/IndexBtMessage.cc
  987. * src/IndexBtMessage.h
  988. * src/IndexBtMessageValidator.h
  989. * src/Makefile.am
  990. * src/PeerMessageUtil.cc
  991. * src/PeerMessageUtil.h
  992. * src/RangeBtMessage.cc
  993. * src/RangeBtMessage.h
  994. * src/RangeBtMessageValidator.h
  995. * src/SimpleBtMessage.cc
  996. * src/SimpleBtMessage.h
  997. * src/ZeroBtMessage.cc
  998. * src/ZeroBtMessage.h
  999. * test/BtRequestMessageTest.cc
  1000. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1001. Reverted usage_text.h to r1093 to avoid to lose translated
  1002. messages.
  1003. * src/usage_text.h
  1004. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1005. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  1006. declared as non-const previously is now const and defined in class
  1007. definition.
  1008. * src/AbstractBtMessage.cc
  1009. * src/AbstractBtMessage.h
  1010. * src/BtAllowedFastMessage.cc
  1011. * src/BtAllowedFastMessage.h
  1012. * src/BtBitfieldMessage.h
  1013. * src/BtCancelMessage.cc
  1014. * src/BtCancelMessage.h
  1015. * src/BtChokeMessage.cc
  1016. * src/BtChokeMessage.h
  1017. * src/BtExtendedMessage.cc
  1018. * src/BtExtendedMessage.h
  1019. * src/BtHandshakeMessage.cc
  1020. * src/BtHandshakeMessage.h
  1021. * src/BtHaveAllMessage.cc
  1022. * src/BtHaveAllMessage.h
  1023. * src/BtHaveMessage.cc
  1024. * src/BtHaveMessage.h
  1025. * src/BtHaveNoneMessage.cc
  1026. * src/BtHaveNoneMessage.h
  1027. * src/BtInterestedMessage.cc
  1028. * src/BtInterestedMessage.h
  1029. * src/BtKeepAliveMessage.cc
  1030. * src/BtKeepAliveMessage.h
  1031. * src/BtMessage.h
  1032. * src/BtNotInterestedMessage.cc
  1033. * src/BtNotInterestedMessage.h
  1034. * src/BtPieceMessage.h
  1035. * src/BtPortMessage.cc
  1036. * src/BtPortMessage.h
  1037. * src/BtRejectMessage.cc
  1038. * src/BtRejectMessage.h
  1039. * src/BtRequestMessage.cc
  1040. * src/BtRequestMessage.h
  1041. * src/BtSuggestPieceMessage.cc
  1042. * src/BtSuggestPieceMessage.h
  1043. * src/BtUnchokeMessage.cc
  1044. * src/BtUnchokeMessage.h
  1045. * src/SimpleBtMessage.cc
  1046. * src/SimpleBtMessage.h
  1047. * test/MockBtMessage.h
  1048. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1049. Use FileEntry::exists()
  1050. * src/MultiDiskAdaptor.cc
  1051. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1052. Added exists()
  1053. * src/FileEntry.cc
  1054. * src/FileEntry.h
  1055. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1056. Added missing prefix dir.
  1057. * src/download_helper.cc
  1058. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1059. Removed --direct-file-mapping option and CopyDiskAdaptor.
  1060. * src/CopyDiskAdaptor.cc: Removed
  1061. * src/CopyDiskAdaptor.h: Removed
  1062. * src/DefaultPieceStorage.cc
  1063. * src/Makefile.am
  1064. * src/OptionHandlerFactory.cc
  1065. * src/prefs.cc
  1066. * src/prefs.h
  1067. * src/usage_text.h
  1068. * test/CopyDiskAdaptorTest.cc: Removed
  1069. * test/Makefile.am
  1070. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1071. Rewritten isSameFileBeingDownloaded()
  1072. * src/RequestGroupMan.cc
  1073. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1074. Removed getName() from DownloadContext. getName() is declared in
  1075. BtContext.
  1076. * src/BtContext.h
  1077. * src/DownloadContext.h
  1078. * src/SingleFileDownloadContext.cc
  1079. * src/SingleFileDownloadContext.h
  1080. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  1081. in AbstractSingleDiskAdaptor.
  1082. * src/AbstractSingleDiskAdaptor.h
  1083. * src/DiskAdaptor.h
  1084. * src/MultiDiskAdaptor.h
  1085. * src/RequestGroup.cc
  1086. Removed setTopDir() and getTopDir() and getTopDirPath() from
  1087. MultiDiskAdaptor.
  1088. * src/DefaultPieceStorage.cc
  1089. * src/MultiDiskAdaptor.cc
  1090. * src/MultiDiskAdaptor.h
  1091. * test/MultiDiskAdaptorTest.cc
  1092. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1093. FileEntry::getPath() contains store(top level) directory to
  1094. simplify path handling operation. In the previous implementation,
  1095. store directory is concatenated to FileEntry::getPath() in
  1096. DownloadContext.
  1097. * src/BtDependency.cc
  1098. * src/BtPostDownloadHandler.cc
  1099. * src/CopyDiskAdaptor.cc
  1100. * src/DefaultBtContext.cc
  1101. * src/DirectDiskAdaptor.cc
  1102. * src/FileEntry.cc
  1103. * src/FileEntry.h
  1104. * src/FtpNegotiationCommand.cc
  1105. * src/HttpResponse.cc
  1106. * src/HttpResponseCommand.cc
  1107. * src/Metalink2RequestGroup.cc
  1108. * src/MultiDiskAdaptor.cc
  1109. * src/MultiDiskAdaptor.h
  1110. * src/MultiFileAllocationIterator.cc
  1111. * src/RequestGroup.cc
  1112. * src/SingleFileDownloadContext.cc
  1113. * src/SingleFileDownloadContext.h
  1114. * src/download_helper.cc
  1115. * test/BtDependencyTest.cc
  1116. * test/CopyDiskAdaptorTest.cc
  1117. * test/DefaultBtContextTest.cc
  1118. * test/DefaultBtProgressInfoFileTest.cc
  1119. * test/DirectDiskAdaptorTest.cc
  1120. * test/DownloadHelperTest.cc
  1121. * test/FileEntryTest.cc
  1122. * test/MultiDiskAdaptorTest.cc
  1123. * test/MultiFileAllocationIteratorTest.cc
  1124. * test/RequestGroupTest.cc
  1125. * test/SingleFileDownloadContextTest.cc
  1126. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1127. Fixed compiler warning
  1128. * src/download_helper.cc
  1129. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1130. Throw exception if same infohash torrent is now downloading.
  1131. * src/RequestGroup.cc
  1132. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1133. Added --dry-run option. In this mode, aria2 just checks whether
  1134. the remote file is available and doesn't download data. This
  1135. option has effect on HTTP/FTP downloads and BitTorrent downloads
  1136. are canceled in this mode.
  1137. * src/FtpNegotiationCommand.cc
  1138. * src/HttpResponseCommand.cc
  1139. * src/HttpResponseCommand.h
  1140. * src/OptionHandlerFactory.cc
  1141. * src/RequestGroup.cc
  1142. * src/RequestGroupMan.cc
  1143. * src/prefs.cc
  1144. * src/prefs.h
  1145. * src/usage_text.h
  1146. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1147. Fixed compiler waring
  1148. * test/UriListParserTest.cc
  1149. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1150. Parse options in -i list using OptionParser.
  1151. * src/UriListParser.cc
  1152. * src/UriListParser.h
  1153. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1154. Don't reset URI in retry to avoid additional round trips because
  1155. of redirects.
  1156. * src/AbstractCommand.cc
  1157. * src/OptionHandlerFactory.cc
  1158. * src/prefs.cc
  1159. * src/prefs.h
  1160. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1161. Declared hide() in OptionHandler.
  1162. * src/NameMatchOptionHandler.h
  1163. * src/OptionHandler.h
  1164. * src/OptionHandlerImpl.h
  1165. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1166. Updated doc
  1167. * src/Peer.h
  1168. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1169. Added log message in setStatusInternal()
  1170. * src/ServerStat.cc
  1171. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1172. Call ServerStat::setError() in AbstractCommand::onAbort() to
  1173. effectively exclude failed server.
  1174. * src/AbstractCommand.cc
  1175. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1176. Added --index-out option to specify each file path for torrent.
  1177. Here index shown in --show-files option is used to specify which
  1178. file path should be altered. For example, to change the file path
  1179. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  1180. option multiple times: --index-out=1=aria2.tar.bz2
  1181. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  1182. available. This option can be specified in -i list.
  1183. * src/DefaultBtContext.cc
  1184. * src/DefaultBtContext.h
  1185. * src/MultiDiskAdaptor.cc
  1186. * src/MultiDiskAdaptor.h
  1187. * src/MultiFileAllocationIterator.cc
  1188. * src/OptionHandlerFactory.cc
  1189. * src/OptionHandlerImpl.h
  1190. * src/Util.cc
  1191. * src/Util.h
  1192. * src/download_helper.cc
  1193. * src/prefs.cc
  1194. * src/prefs.h
  1195. * src/usage_text.h
  1196. * test/DefaultBtContextTest.cc
  1197. * test/MultiDiskAdaptorTest.cc
  1198. * test/MultiFileAllocationIteratorTest.cc
  1199. * test/UtilTest.cc
  1200. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1201. Use Util::pathJoin()
  1202. * src/MetalinkParserController.cc
  1203. * test/test.xml
  1204. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1205. Use Util::pathJoin()
  1206. * src/DefaultBtContext.cc
  1207. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1208. Added Util::pathJoin()
  1209. * src/Util.h
  1210. * test/UtilTest.cc
  1211. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1212. Applied basename function to remove directory element in
  1213. content-disposition value.
  1214. Return empty string if content-disposition value is ".." or ".".
  1215. * src/Util.cc
  1216. * test/UtilTest.cc
  1217. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1218. Added --max-overall-download-limit in man page.
  1219. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  1220. * doc/aria2c.1.txt
  1221. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1222. Added --max-overall-download-limit option. Now --max-upload-limit
  1223. option is not ignored when --max-overall-upload-limit option has
  1224. non-zero value. aria2 checks download(upload) speed in the order:
  1225. first checks overall speed limit and if it is not exceeded, then
  1226. checks speed limit per download. Thus you can specify both
  1227. value. For example, set --max-overall-download-limit=1M and
  1228. --max-download-limit=500K to prevent from one download from eating
  1229. all overall speed limit.
  1230. * src/DefaultBtInteractive.cc
  1231. * src/DefaultBtInteractive.h
  1232. * src/DefaultBtMessageDispatcher.cc
  1233. * src/DefaultBtMessageDispatcher.h
  1234. * src/DownloadCommand.cc
  1235. * src/DownloadCommand.h
  1236. * src/FtpNegotiationCommand.cc
  1237. * src/HttpResponseCommand.cc
  1238. * src/OptionHandlerFactory.cc
  1239. * src/PeerInteractionCommand.cc
  1240. * src/RequestGroup.cc
  1241. * src/RequestGroup.h
  1242. * src/RequestGroupMan.cc
  1243. * src/RequestGroupMan.h
  1244. * src/prefs.cc
  1245. * src/prefs.h
  1246. * src/usage_text.h
  1247. * test/DefaultBtMessageDispatcherTest.cc
  1248. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1249. Documented select-file option in Input File section.
  1250. Documented --http-auth-challenge option.
  1251. * doc/aria2c.1.txt
  1252. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1253. Now select-file can be specified in the uri list(-i list).
  1254. * src/BtContext.cc
  1255. * src/BtContext.h
  1256. * src/RequestGroup.cc
  1257. * src/Sequence.h
  1258. * src/download_helper.cc
  1259. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1260. Made the upper value of --max-concurrent-downloads options unlimited.
  1261. * src/OptionHandlerFactory.cc
  1262. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1263. Fixed the bug that disk writer is not created even if it shares
  1264. same piece with the preceding file if the length of previous file
  1265. is 0.
  1266. * src/MultiDiskAdaptor.cc
  1267. * test/MultiDiskAdaptorTest.cc
  1268. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1269. In BitTorrent, Open files in read-only mode for hash check. After
  1270. that, re-open file in read/write mode only when the download is
  1271. not finished.
  1272. * src/AbstractDiskWriter.cc
  1273. * src/AbstractDiskWriter.h
  1274. * src/AbstractSingleDiskAdaptor.cc
  1275. * src/AbstractSingleDiskAdaptor.h
  1276. * src/BtCheckIntegrityEntry.cc
  1277. * src/DiskAdaptor.h
  1278. * src/DiskWriter.h
  1279. * src/MultiDiskAdaptor.cc
  1280. * src/MultiDiskAdaptor.h
  1281. * src/RequestGroup.cc
  1282. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1283. Added --http-auth-challenge option. If it is set to true(by
  1284. default), aria2 sends HTTP authorization header only when it is
  1285. requested by the server. If false is set, then authorization
  1286. header is always sent to the server. This is useful for servers
  1287. that don't respond 401 code when authentication is required.
  1288. There is an exception: if username and password are embedded in
  1289. URI, authorization header is always sent to the server regardless
  1290. of this option.
  1291. * src/AuthConfigFactory.cc
  1292. * src/HttpSkipResponseCommand.cc
  1293. * src/OptionHandlerFactory.cc
  1294. * src/prefs.cc
  1295. * src/prefs.h
  1296. * src/usage_text.h
  1297. * test/AuthConfigFactoryTest.cc
  1298. * test/HttpRequestTest.cc
  1299. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1300. * Release 1.2.0
  1301. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1302. Updated Spanish, Ukrainian, Russian and Japanese translations.
  1303. Thanks to all translators.
  1304. * po/es.po
  1305. * po/ja.po
  1306. * po/ru.po
  1307. * po/uk.po
  1308. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1309. Call deleteSocketForReadCheck() before socket is closed.
  1310. * src/HttpListenCommand.cc
  1311. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1312. Defined virtual destructor for BObject.
  1313. * src/bencode.h
  1314. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1315. Rewritten BDE to make it efficient.
  1316. * src/bencode.cc
  1317. * src/bencode.h
  1318. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1319. Removed function throw list.
  1320. * src/bencode.cc
  1321. * src/bencode.h
  1322. * test/BencodeTest.cc
  1323. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1324. Enclosed all URLs in double quotes in command-line examples.
  1325. * doc/aria2c.1.txt
  1326. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1327. Updated reference/see also section.
  1328. * README
  1329. * doc/aria2c.1.txt
  1330. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1331. Reorganized man page based on man man-pages.
  1332. * doc/aria2c.1.txt
  1333. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1334. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  1335. because same documents are available in man page. Added
  1336. References section.
  1337. * README
  1338. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1339. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  1340. PERFORMANCE PROFILE section.
  1341. * doc/aria2c.1.txt
  1342. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1343. Rewritten the section for configuration file.
  1344. * README
  1345. * doc/aria2c.1.txt
  1346. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1347. Fixed the segmentation fault during execution of choking algorithm
  1348. in leecher state because of broken compare operator
  1349. implementation.
  1350. * src/BtLeecherStateChoke.cc
  1351. * src/BtLeecherStateChoke.h
  1352. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1353. Open file in binary mode.
  1354. * src/CookieStorage.cc
  1355. * src/DHTSetup.cc
  1356. * src/DHTUtil.cc
  1357. * src/Netrc.cc
  1358. * src/NsCookieParser.cc
  1359. * src/ProtocolDetector.cc
  1360. * src/RequestGroupMan.cc
  1361. * src/Signature.cc
  1362. * src/bencode.cc
  1363. * src/download_helper.cc
  1364. * src/option_processing.cc
  1365. * test/CookieParserTest.cc
  1366. * test/DefaultBtProgressInfoFileTest.cc
  1367. * test/FileTest.cc
  1368. * test/GZipDecoderTest.cc
  1369. * test/RequestGroupManTest.cc
  1370. * test/SignatureTest.cc
  1371. * test/SingleFileAllocationIteratorTest.cc
  1372. * test/UriListParserTest.cc
  1373. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1374. Removed operator[] because it is ambiguous with built-in []
  1375. operator.
  1376. * src/array_fun.h
  1377. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1378. Fixed compile error
  1379. * src/OptionParser.cc
  1380. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1381. Added missing call to arrayWrapperConst
  1382. * test/array_funTest.cc
  1383. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1384. Use array_wrapper instead of array_ptr.
  1385. * src/DHTRoutingTableDeserializer.cc
  1386. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1387. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  1388. * src/array_fun.h
  1389. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1390. Added array_wrapper template.
  1391. * src/array_fun.h
  1392. * test/array_funTest.cc
  1393. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1394. Use operator T* of array_ptr.
  1395. * src/OptionParser.cc
  1396. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1397. Use localhost instead of 127.0.0.1
  1398. * test/FtpConnectionTest.cc
  1399. * test/MSEHandshakeTest.cc
  1400. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1401. Added operator T*
  1402. * src/array_fun.h
  1403. * test/array_funTest.cc
  1404. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1405. Use dynamically allocated char array to detect memory access
  1406. violation.
  1407. * src/DHTRoutingTableDeserializer.cc
  1408. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1409. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  1410. defined.
  1411. * src/PeerMessageUtil.cc
  1412. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1413. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  1414. * configure.ac
  1415. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1416. Added a check to see struct sockaddr_in has sin_len member.
  1417. * configure.ac
  1418. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1419. Fixed buffer overrun.
  1420. * src/DHTRoutingTableDeserializer.cc
  1421. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1422. Added LL for long long int constant.
  1423. * test/FtpConnectionTest.cc
  1424. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1425. Casted to unsigned int to suppress compiler warning on netbsd.
  1426. * src/BtRuntime.h
  1427. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1428. Assign the value of tv.tv_sec to time_t timesec instead of giving
  1429. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  1430. type time_t.
  1431. * src/SimpleLogger.cc
  1432. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1433. Added test for FtpConnection::receiveSizeResponse().
  1434. * test/FtpConnectionTest.cc
  1435. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1436. Fix epoll error on the old kernel 2.6.8 or ealier.
  1437. * src/EpollEventPoll.cc
  1438. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1439. Use Util::parseLLInt instead of sscanf for portability. The
  1440. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  1441. * src/FtpConnection.cc
  1442. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1443. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  1444. block. It should not filter anything.
  1445. * src/BitfieldMan.cc
  1446. * src/ConsoleStatCalc.cc
  1447. * test/BitfieldManTest.cc
  1448. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1449. Fixed the bug that the boolean options that don't take arguments
  1450. don't work.
  1451. * src/OptionHandlerImpl.h
  1452. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1453. Fixed broken selected file BitTorrent download.
  1454. * src/MultiDiskAdaptor.cc
  1455. * test/MultiDiskAdaptorTest.cc
  1456. * test/MultiFileAllocationIteratorTest.cc
  1457. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1458. Fixed #define guard for EpollEventPoll
  1459. * src/EpollEventPoll.h
  1460. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1461. Wait 2 seconds. 1 second is sometimes not enough.
  1462. * test/TimeSeedCriteriaTest.cc
  1463. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1464. Use localhost instead of 127.0.0.1.
  1465. * test/DHTConnectionImplTest.cc
  1466. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1467. Suppressed compiler warning.
  1468. * src/AdaptiveURISelector.cc
  1469. * src/DefaultPieceStorage.cc
  1470. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1471. Defined virtual destructor.
  1472. * src/MetalinkParserState.h
  1473. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1474. Give NULL for second argument of getaddrinfo instead of "0".
  1475. * src/NameResolver.cc
  1476. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1477. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  1478. included strptime doesn't parse data for this format.
  1479. * src/FtpConnection.cc
  1480. * test/FtpConnectionTest.cc
  1481. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1482. Removed tests giving -1 for unsigned argument.
  1483. * test/SingleFileDownloadContextTest.cc
  1484. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1485. Don't use sha256 in tests because it might not be supported by the
  1486. SSL library.
  1487. * test/MetalinkProcessorTest.cc
  1488. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1489. Removed tests giving -1 for unsigned argument.
  1490. * test/AlphaNumberDecoratorTest
  1491. * test/BitfieldManTest.cc
  1492. * test/DefaultBtContextTest.cc
  1493. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1494. Fixed compile error without libcares when epoll is available.
  1495. * src/EpollEventPoll.cc
  1496. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1497. Included fstream instead of iostream.
  1498. * test/SignatureTest.cc
  1499. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1500. Removed #include <algorithm>
  1501. * test/RequestGroupTest.cc
  1502. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1503. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  1504. using RequestGroup::extractURIResult().
  1505. * src/AdaptiveURISelector.cc
  1506. * src/RequestGroup.cc
  1507. * src/RequestGroup.h
  1508. * test/RequestGroupTest.cc
  1509. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1510. Added tests for array_ptr.
  1511. * test/array_funTest.cc
  1512. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1513. Don't send ip parameter to a tracker if ip parameter is empty
  1514. string.
  1515. * src/DefaultBtAnnounce.cc
  1516. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1517. Adjusted line feed.
  1518. * src/version_usage.cc
  1519. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1520. Print tags, possible values when OptionHandlerException is caught.
  1521. * src/option_processing.cc
  1522. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1523. Changed the message for FatalException.
  1524. * src/OptionParser.cc
  1525. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1526. Documented --bt-external-ip option in man page. Updated man pages
  1527. for --proxy-method option.
  1528. * doc/aria2c.1.txt
  1529. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1530. Use GET method for FTP via HTTP proxy.
  1531. * src/FtpInitiateConnectionCommand.cc
  1532. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1533. Changed the default value of --proxy-method option from 'tunnel'
  1534. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  1535. option.
  1536. * src/AbstractCommand.cc
  1537. * src/AbstractCommand.h
  1538. * src/FtpInitiateConnectionCommand.cc
  1539. * src/HttpDownloadCommand.cc
  1540. * src/HttpInitiateConnectionCommand.cc
  1541. * src/HttpInitiateConnectionCommand.h
  1542. * src/OptionHandlerFactory.cc
  1543. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1544. Initialized _logger
  1545. * src/SelectEventPoll.cc
  1546. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1547. Defined a copy constructor for the same type.
  1548. * src/SharedHandle.h
  1549. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1550. Added OptionParser::parseArg() which internally uses getopt_long
  1551. to parse command-line options. All command-line options are now
  1552. configured by OptionHandler. No manual editing of struct option*
  1553. is required any more.
  1554. * src/NameMatchOptionHandler.h
  1555. * src/OptionHandler.h
  1556. * src/OptionHandlerFactory.cc
  1557. * src/OptionHandlerImpl.h
  1558. * src/OptionParser.cc
  1559. * src/OptionParser.h
  1560. * src/array_fun.h
  1561. * src/main.cc
  1562. * src/option_processing.cc
  1563. * test/OptionHandlerTest.cc
  1564. * test/OptionParserTest.cc
  1565. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1566. Fixed configure error with --disable-epoll
  1567. * configure.ac
  1568. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1569. Fixed compile error when HAVE_EPOLL is not defined.
  1570. Fixed linker error on bigendian systems.
  1571. * src/SocketCore.cc
  1572. * src/SocketCore.h
  1573. * test/DefaultBtProgressInfoFileTest.cc
  1574. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1575. Added --bt-external-ip option. You can specify the external IP
  1576. address to report to a BitTorrent tracker. Although this function
  1577. is named 'external', it can accept any kind of IP addresses.
  1578. * src/DefaultBtAnnounce.cc
  1579. * src/OptionHandlerFactory.cc
  1580. * src/option_processing.cc
  1581. * src/prefs.cc
  1582. * src/prefs.h
  1583. * src/usage_text.h
  1584. * test/DefaultBtAnnounceTest.cc
  1585. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1586. Extracted the algorithm to find the longest incremental sequence
  1587. as max_sequence template.
  1588. * src/LongestSequencePieceSelector.cc
  1589. * src/a2algo.h
  1590. * test/Makefile.am
  1591. * test/a2algoTest.cc
  1592. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1593. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  1594. * src/usage_text.h
  1595. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1596. Updated doc for --uri-selector, --http-server-listen-port and
  1597. --enable-http-server option. Documented --event-poll option.
  1598. * doc/aria2c.1.txt
  1599. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1600. Updated doc for --enable-http-server.
  1601. * src/usage_text.h
  1602. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1603. Documented --http-server-listen-port and --enable-http-server in
  1604. man page.
  1605. * doc/aria2c.1.txt
  1606. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1607. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  1608. translations. Thanks to all translators.
  1609. * po/es.po
  1610. * po/id.po
  1611. * po/it.po
  1612. * po/ru.po
  1613. * po/uk.po
  1614. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1615. Bump up version number to 1.2.0
  1616. * configure.ac
  1617. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1618. BtContext::getAnnounceTiers() now returns const reference.
  1619. * src/BtContext.h
  1620. * src/DefaultBtContext.cc
  1621. * src/DefaultBtContext.h
  1622. * test/MockBtContext.h
  1623. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1624. Change the number of retries for tracker request based on the
  1625. number of available tracker in a torrent file.
  1626. * src/TrackerWatcherCommand.cc
  1627. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1628. Added _maxTries property to RequestGroup and assign the option
  1629. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  1630. RequestGroup::getMaxTries() instead of
  1631. Option::getAsInt(PREF_MAX_TRIES).
  1632. * src/AbstractCommand.cc
  1633. * src/RequestGroup.cc
  1634. * src/RequestGroup.h
  1635. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1636. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  1637. Mandriva. I modified the patch: make RequestGroup have the
  1638. timeout value and AdaptiveURISelector directly modifies that
  1639. value.
  1640. * src/AbstractCommand.cc
  1641. * src/AdaptiveURISelector.cc
  1642. * src/AdaptiveURISelector.h
  1643. * src/FtpNegotiationCommand.cc
  1644. * src/RequestGroup.cc
  1645. * src/RequestGroup.h
  1646. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1647. Fixed compiler warning
  1648. * test/IteratableChecksumValidatorTest.cc
  1649. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1650. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  1651. integrated downloads. This PieceSelector subclass finds the
  1652. longest continuous sequence in the available missing pieces and
  1653. selects the last index of such sequence. This makes HTTP/FTP
  1654. connections less interrupted by the pieces obtained by BitTorrent
  1655. peers.
  1656. * src/DefaultPieceStorage.cc
  1657. * src/DefaultPieceStorage.h
  1658. * src/LongestSequencePieceSelector.cc
  1659. * src/LongestSequencePieceSelector.h
  1660. * src/Makefile.am
  1661. * src/PieceSelector.h
  1662. * src/RarestPieceSelector.h
  1663. * src/RequestGroup.cc
  1664. * test/BtDependencyTest.cc
  1665. * test/DefaultPieceStorageTest.cc
  1666. * test/IteratableChecksumValidatorTest.cc
  1667. * test/LongestSequencePieceSelectorTest.cc
  1668. * test/Makefile.am
  1669. * test/SegmentManTest.cc
  1670. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1671. Fixed the bug that the average speed is wrong in
  1672. http/ftp/BitTorrent integrated download. Only the download bytes
  1673. in BitTorrent were considered.
  1674. * src/RequestGroup.cc
  1675. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1676. Choose port for BitTorrent/DHT randomly from the specified range.
  1677. * src/DHTConnectionImpl.cc
  1678. * src/PeerListenCommand.cc
  1679. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1680. Send HTTP Authorization header only if it is requested by the
  1681. server(response 401). There are some exceptions. The authorization
  1682. header for proxy is always sent if it is available without request
  1683. by the server. If username/password is specified in the URI, it
  1684. is immediately sent to the server without request by the server.
  1685. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  1686. SharedHandle<AuthConfig>().
  1687. NetrcAuthResolver::resolveAuthConfig() returns
  1688. SharedHandle<AuthConfig>() if no AuthConfig is available.
  1689. * src/AbstractAuthResolver.cc
  1690. * src/AbstractProxyRequestCommand.cc
  1691. * src/AuthConfigFactory.cc
  1692. * src/AuthConfigFactory.h
  1693. * src/HttpConnection.cc
  1694. * src/HttpRequest.cc
  1695. * src/HttpRequest.h
  1696. * src/HttpResponse.cc
  1697. * src/HttpResponseCommand.cc
  1698. * src/HttpSkipResponseCommand.cc
  1699. * test/AuthConfigFactoryTest.cc
  1700. * test/HttpRequestTest.cc
  1701. * test/HttpResponseTest.cc
  1702. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1703. Remove leading "--" from help keyword and a substring after "="
  1704. from help keyword, so that one can query options by '-h--max-' or
  1705. '-hmax-peers=10'.
  1706. * src/option_processing.cc
  1707. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1708. Rewritten PStringVisitor and its implementation.
  1709. * src/PStringBuildVisitor.cc
  1710. * src/PStringBuildVisitor.h
  1711. * src/PStringDatum.h
  1712. * src/PStringNumLoop.h
  1713. * src/PStringSegment.cc
  1714. * src/PStringSegment.h
  1715. * src/PStringSelect.h
  1716. * src/PStringVisitor.h
  1717. * src/download_helper.cc
  1718. * test/PStringBuildVisitorTest.cc
  1719. * test/ParameterizedStringParserTest.cc
  1720. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1721. Persist connection between the built-in HTTP server and a client
  1722. if a client supports keep-alive. Fixed the bug that aria2 exits
  1723. when the HTTP server receives EOF from a client.
  1724. * src/HttpServer.cc
  1725. * src/HttpServer.h
  1726. * src/HttpServerCommand.cc
  1727. * src/HttpServerCommand.h
  1728. * src/HttpServerResponseCommand.cc
  1729. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1730. Added experimental built-in HTTP server. Currently, when a client
  1731. accesses to the server, it responds with the current download
  1732. progress. By default, it is disabled. To enable the server, give
  1733. --enable-http-server option. To change the default port number
  1734. for the server to listen to, use --http-server-listen-port option.
  1735. The response HTML is very simple and refreshes it self each 1
  1736. second. Because of this refresh, you see flicker in normal web
  1737. browser such as Firefox. I recommend to use console-based browser
  1738. such as elinks, w3m. To connect to the server, run 'elinks
  1739. http://localhost:6800/' while running aria2. Please replace port
  1740. number '6800'(which is default) with your preference.
  1741. * src/DownloadEngineFactory.cc
  1742. * src/HttpHeader.cc
  1743. * src/HttpHeader.h
  1744. * src/HttpHeaderProcessor.cc
  1745. * src/HttpHeaderProcessor.h
  1746. * src/HttpListenCommand.cc
  1747. * src/HttpListenCommand.h
  1748. * src/HttpServer.cc
  1749. * src/HttpServer.h
  1750. * src/HttpServerCommand.cc
  1751. * src/HttpServerCommand.h
  1752. * src/HttpServerResponseCommand.cc
  1753. * src/HttpServerResponseCommand.h
  1754. * src/Makefile.am
  1755. * src/OptionHandlerFactory.cc
  1756. * src/Util.cc
  1757. * src/Util.h
  1758. * src/help_tags.h
  1759. * src/option_processing.cc
  1760. * src/prefs.cc
  1761. * src/prefs.h
  1762. * src/usage_text.h
  1763. * test/HttpHeaderProcessorTest.cc
  1764. * test/UtilTest.cc
  1765. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1766. Removed.
  1767. * src/CheckIntegrityMan.cc
  1768. * src/FileAllocationMan.cc
  1769. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1770. Made (piece) hash check sequential for each RequestGroup because
  1771. simultaneous hash check is slower than sequential execution.
  1772. * src/CheckIntegrityCommand.cc
  1773. * src/CheckIntegrityDispatcherCommand.cc
  1774. * src/CheckIntegrityDispatcherCommand.h
  1775. * src/CheckIntegrityMan.h
  1776. * src/ConsoleStatCalc.cc
  1777. * src/DownloadCommand.cc
  1778. * src/DownloadEngine.cc
  1779. * src/DownloadEngine.h
  1780. * src/DownloadEngineFactory.cc
  1781. * src/Makefile.am
  1782. * src/Makefile.in
  1783. * src/RequestGroup.cc
  1784. * src/StatCalc.h
  1785. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1786. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  1787. SequentialDispatcherCommand.
  1788. * src/FileAllocationDispatcherCommand.cc
  1789. * src/SequentialDispatcherCommand.h
  1790. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1791. Rewritten FileAllocationDispatcherCommand using brand new
  1792. SequentialDispatcherCommand.
  1793. * src/DownloadEngineFactory.cc
  1794. * src/FileAllocationCommand.cc
  1795. * src/FileAllocationDispatcherCommand.cc
  1796. * src/FileAllocationDispatcherCommand.h
  1797. * src/Makefile.am
  1798. * src/SequentialDispatcherCommand.h
  1799. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1800. Replaced FileAllocationMan with
  1801. SequentialPicker<FileAllocationEntry>.
  1802. * src/BtCheckIntegrityEntry.cc
  1803. * src/ConsoleStatCalc.cc
  1804. * src/DownloadEngine.cc
  1805. * src/DownloadEngine.h
  1806. * src/DownloadEngineFactory.cc
  1807. * src/FileAllocationCommand.cc
  1808. * src/FileAllocationDispatcherCommand.cc
  1809. * src/FileAllocationMan.h
  1810. * src/Makefile.am
  1811. * src/SequentialPicker.h
  1812. * src/StatCalc.h
  1813. * src/StreamCheckIntegrityEntry.cc
  1814. * test/Makefile.am
  1815. * test/SequentialPickerTest.cc
  1816. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1817. Added doc for adaptive URI selector.
  1818. * doc/aria2c.1.txt
  1819. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1820. Added doc for adaptive URI selector.
  1821. * src/usage_text.h
  1822. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1823. Added doc for --bt-max-peers option.
  1824. * doc/aria2c.1.txt
  1825. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1826. Added doc for --bt-hash-check-seed option.
  1827. * doc/aria2c.1.txt
  1828. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1829. Documented exit codes.
  1830. * doc/aria2c.1.txt
  1831. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1832. Added --bt-max-peers option to specify the maximum number of peers
  1833. per torrent. 0 means unlimited number of peers.
  1834. * src/ActivePeerConnectionCommand.cc
  1835. * src/BtRuntime.h
  1836. * src/DefaultPeerStorage.cc
  1837. * src/DefaultPeerStorage.h
  1838. * src/OptionHandlerFactory.cc
  1839. * src/RequestGroup.cc
  1840. * src/option_processing.cc
  1841. * src/prefs.cc
  1842. * src/prefs.h
  1843. * src/usage_text.h
  1844. * test/DefaultPeerStorageTest.cc
  1845. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1846. Added --bt-hash-check-seed option. If true is given to this
  1847. option, after hash check using --check-integrity option and file
  1848. is complete, continue to seed file. If you want to check file and
  1849. download it only when it is damaged or incomplete, set this option
  1850. to false. This option has effect only on BitTorrent download.
  1851. The default value is true(This is the same behavior with the
  1852. previous release).
  1853. * src/BtCheckIntegrityEntry.cc
  1854. * src/OptionHandlerFactory.cc
  1855. * src/option_processing.cc
  1856. * src/prefs.cc
  1857. * src/prefs.h
  1858. * src/usage_text.h
  1859. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1860. Updated copyright year.
  1861. * src/version_usage.cc
  1862. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1863. Rewritten the usage text for --bt-request-peer-speed-limit option.
  1864. * doc/aria2c.1.txt
  1865. * src/usage_text.h
  1866. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1867. Made the max value of split option unlimited.
  1868. * doc/aria2c.1.txt
  1869. * src/OptionHandlerFactory.cc
  1870. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1871. Fixed compile warning/error.
  1872. * src/DownloadResult.h
  1873. * src/HttpDownloadCommand.cc
  1874. * src/ServerStat.cc
  1875. * test/RequestGroupTest.cc
  1876. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1877. Added --event-poll option to select the method for polling events.
  1878. The available methods are "select" and "epoll". "epoll" is
  1879. available on Linux only. The earlier release has the compile
  1880. option to choose from these methods.
  1881. * configure.ac
  1882. * src/RequestGroupMan.cc
  1883. * src/OptionHandlerFactory.cc
  1884. * src/EpollEventPoll.h
  1885. * src/StreamFileAllocationEntry.cc
  1886. * src/a2io.h
  1887. * src/SelectEventPoll.h
  1888. * src/option_processing.cc
  1889. * src/prefs.h
  1890. * src/EpollEventPoll.cc
  1891. * src/EventPoll.h
  1892. * src/SocketCore.h
  1893. * src/Makefile.am
  1894. * src/main.cc
  1895. * src/DownloadEngine.h
  1896. * src/SelectEventPoll.cc
  1897. * src/DownloadEngine.cc
  1898. * src/SocketCore.cc
  1899. * src/DownloadEngineFactory.cc
  1900. * src/Makefile.in
  1901. * src/prefs.cc
  1902. * src/usage_text.h
  1903. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1904. Included RecoverableException.h from main.cc
  1905. * src/main.cc
  1906. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1907. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  1908. now returns last error encountered in the HTTP/FTP downloads as a
  1909. exit status value. If all downloads finished successfully, aria2
  1910. returns 0. The error code is defined in src/DownloadResult.h.
  1911. The error occurred in the download currently in progress is not
  1912. reported as a last error. If no error has encountered but there
  1913. are in progress or waiting downloads, aria2 returns 7.
  1914. * src/AbstractCommand.cc
  1915. * src/DlAbortEx.h
  1916. * src/DlRetryEx.h
  1917. * src/DownloadCommand.cc
  1918. * src/DownloadFailureException.h
  1919. * src/DownloadResult.h
  1920. * src/FtpNegotiationCommand.cc
  1921. * src/HttpSkipResponseCommand.cc
  1922. * src/Makefile.am
  1923. * src/MultiUrlRequestInfo.cc
  1924. * src/MultiUrlRequestInfo.h
  1925. * src/RecoverableException.h
  1926. * src/RequestGroup.cc
  1927. * src/RequestGroup.h
  1928. * src/RequestGroupMan.cc
  1929. * src/RequestGroupMan.h
  1930. * src/URIResult.cc
  1931. * src/URIResult.h
  1932. * src/main.cc
  1933. * src/option_processing.cc
  1934. * test/RequestGroupTest.cc
  1935. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1936. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  1937. patch adds AdaptiveURISelector, which selects one of the bests
  1938. mirrors for first and reserved connections. For supplementary
  1939. ones, it returns mirrors which has not been tested yet, and if
  1940. each of them already tested, returns mirrors which has to be
  1941. tested again. Otherwise, it doesn't return anymore mirrors.
  1942. * src/AdaptiveURISelector.cc
  1943. * src/AdaptiveURISelector.h
  1944. * src/FtpNegotiationCommand.cc
  1945. * src/HttpResponseCommand.cc
  1946. * src/Makefile.am
  1947. * src/Makefile.in
  1948. * src/OptionHandlerFactory.cc
  1949. * src/RequestGroup.cc
  1950. * src/RequestGroup.h
  1951. * src/RequestGroupMan.cc
  1952. * src/ServerStat.cc
  1953. * src/ServerStat.h
  1954. * src/ServerStatMan.cc
  1955. * src/SpeedCalc.cc
  1956. * src/URISelector.h
  1957. * src/prefs.cc
  1958. * src/prefs.h
  1959. * test/RequestGroupManTest.cc
  1960. * test/ServerStatManTest.cc
  1961. * test/ServerStatTest.cc
  1962. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1963. Fixed unit test error.
  1964. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  1965. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1966. * Release 1.1.2
  1967. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1968. Updated Russian translation. Thanks to the translators.
  1969. * po/ru.po
  1970. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1971. Added the description of --use-head option to man page.
  1972. * doc/aria2c.1.txt
  1973. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1974. Bump up version number to 1.1.2
  1975. * configure.ac
  1976. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1977. Added --use-head option to toggle whether HEAD method should be
  1978. used in the first HTTP request. By default aria2 uses HEAD method
  1979. as the first request. When the server doesn't recognize HEAD, then
  1980. give aria2 --use-head=false to force aria2 to use GET method
  1981. instead.
  1982. * src/OptionHandlerFactory.cc
  1983. * src/RequestGroupMan.cc
  1984. * src/option_processing.cc
  1985. * src/prefs.cc
  1986. * src/prefs.h
  1987. * src/usage_text.h
  1988. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1989. Fixed the bug that BitTorrent download doesn't finish when REJECT
  1990. message is received before CHOKE message. The old implementation
  1991. doen't clear the use-bit of the piece when recieved REJECT
  1992. message.
  1993. * src/DefaultBtMessageDispatcher.cc
  1994. * test/DefaultBtMessageDispatcherTest.cc
  1995. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1996. * Release 1.1.1
  1997. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1998. Bump up version number to 1.1.1.
  1999. * configure.ac
  2000. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2001. Fixed the bug that --summary-interval=0 doesn't work. The summary
  2002. is printed repeatedly.
  2003. * src/ConsoleStatCalc.cc
  2004. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2005. * Release 1.1.0
  2006. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2007. Added ifdef clause for conditional compilation.
  2008. * src/main.cc
  2009. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2010. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  2011. translations. Thanks to all translators.
  2012. * po/ja.po
  2013. * po/ru.po
  2014. * po/uk.po
  2015. * po/zh_CN.po
  2016. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2017. Added the preceding ">>> " before the message "Printing the
  2018. contents of file..." to make the output more readable.
  2019. * src/main.cc
  2020. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2021. Added try-catch block in the loop in showFiles() to continue the
  2022. operation even if the exception occurred in one file.
  2023. * src/main.cc (showFiles)
  2024. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2025. Made messages in showFiles() translatable.
  2026. * po/aria2.pot
  2027. * src/main.cc
  2028. * src/message.h
  2029. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2030. Print the contents of Torrent/Metalink files are printed without
  2031. -T/-M options.
  2032. * src/main.cc
  2033. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2034. Escaped '--' with '\--'
  2035. * README
  2036. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2037. Updated "How to build" section in README. Mentioned about
  2038. --with-ca-bundle compile option.
  2039. * README
  2040. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2041. Bump up version number to 1.1.0.
  2042. * configure.ac
  2043. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2044. Added a note for --dht-listen-port option.
  2045. * doc/aria2c.1.txt
  2046. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2047. Update doc for --realtime-chunk-checksum option.
  2048. * doc/aria2c.1.txt
  2049. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2050. Update doc for --realtime-chunk-checksum option.
  2051. * src/usage_text.h
  2052. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2053. Updated French, Japanese, Russian and Ukrainian translations.
  2054. Thanks to all translators.
  2055. * po/fr.po
  2056. * po/ja.po
  2057. * po/ru.po
  2058. * po/uk.po
  2059. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2060. Renamed aria2c.pot to aria2.pot
  2061. * po/aria2.pot
  2062. * po/aria2c.pot: Removed.
  2063. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2064. Removed MetaEntry.h
  2065. * src/Makefile.am
  2066. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2067. Rename file by appending digits if a local file exists and its
  2068. file size is larger than that of remote file with --continue
  2069. option. The old implementation just throws exception in such case.
  2070. * src/RequestGroup.cc
  2071. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2072. Fixed the bug that download progress summary is not printed in the
  2073. interval specified by the option.
  2074. * src/ConsoleStatCalc.cc
  2075. * src/ConsoleStatCalc.h
  2076. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2077. Fixed compiler warning
  2078. * src/Cookie.cc
  2079. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2080. Fixed the cookie implementation based on RFC2965.
  2081. Now if a value in domain field is not started with dot, then
  2082. prepend dot. That means a cookie with domain=sf.net is sent to
  2083. wiki.sf.net.
  2084. * src/Cookie.cc
  2085. * test/CookieParserTest.cc
  2086. * test/CookieStorageTest.cc
  2087. * test/CookieTest.cc
  2088. * test/NsCookieParserTest.cc
  2089. * test/Sqlite3MozCookieParserTest.cc
  2090. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2091. Fixed the bug that causes corrupted downloads if HTTP pipelining
  2092. is enabled and the server doesn't support keep-alive.
  2093. * src/AbstractCommand.cc
  2094. * src/DownloadCommand.cc
  2095. * src/HttpDownloadCommand.cc
  2096. * src/HttpDownloadCommand.h
  2097. * src/HttpResponseCommand.cc
  2098. * src/Request.cc
  2099. * src/Request.h
  2100. * test/RequestTest.cc
  2101. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2102. Removed Dictionary/List/Data and its related classes.
  2103. * src/BencodeVisitor.cc: Removed.
  2104. * src/BencodeVisitor.h: Removed.
  2105. * src/Data.cc: Removed.
  2106. * src/Data.h: Removed.
  2107. * src/Dictionary.cc: Removed.
  2108. * src/Dictionary.h: Removed.
  2109. * src/List.cc: Removed.
  2110. * src/List.h: Removed.
  2111. * src/Makefile.am
  2112. * src/MetaEntry.h: Removed.
  2113. * src/MetaEntryVisitor.h: Removed.
  2114. * src/MetaFileUtil.cc: Removed.
  2115. * src/MetaFileUtil.h: Removed.
  2116. * test/BencodeVisitorTest.cc: Removed.
  2117. * test/DataTest.cc: Removed.
  2118. * test/DictionaryTest.cc: Removed.
  2119. * test/ListTest.cc: Removed.
  2120. * test/Makefile.am
  2121. * test/MetaFileUtilTest.cc: Removed.
  2122. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2123. Removed include of MetaEntry.h
  2124. * test/DHTMessageTrackerEntryTest.cc
  2125. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2126. Use BDE instead of Dictionary/List/Data.
  2127. * src/AnnounceList.cc
  2128. * src/AnnounceList.h
  2129. * test/AnnounceListTest.cc
  2130. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2131. Use BDE instead of Dictionary/List/Data.
  2132. * src/DHTAbstractMessage.cc
  2133. * src/DHTAbstractMessage.h
  2134. * src/DHTAnnouncePeerMessage.cc
  2135. * src/DHTAnnouncePeerMessage.h
  2136. * src/DHTAnnouncePeerReplyMessage.cc
  2137. * src/DHTAnnouncePeerReplyMessage.h
  2138. * src/DHTFindNodeMessage.cc
  2139. * src/DHTFindNodeMessage.h
  2140. * src/DHTFindNodeReplyMessage.cc
  2141. * src/DHTFindNodeReplyMessage.h
  2142. * src/DHTGetPeersMessage.cc
  2143. * src/DHTGetPeersMessage.h
  2144. * src/DHTGetPeersReplyMessage.cc
  2145. * src/DHTGetPeersReplyMessage.h
  2146. * src/DHTMessageFactory.h
  2147. * src/DHTMessageFactoryImpl.cc
  2148. * src/DHTMessageFactoryImpl.h
  2149. * src/DHTMessageReceiver.cc
  2150. * src/DHTMessageTracker.cc
  2151. * src/DHTMessageTracker.h
  2152. * src/DHTPingMessage.cc
  2153. * src/DHTPingMessage.h
  2154. * src/DHTPingReplyMessage.cc
  2155. * src/DHTPingReplyMessage.h
  2156. * src/DHTQueryMessage.cc
  2157. * src/DHTQueryMessage.h
  2158. * src/DHTResponseMessage.cc
  2159. * src/DHTResponseMessage.h
  2160. * test/DHTAnnouncePeerMessageTest.cc
  2161. * test/DHTAnnouncePeerReplyMessageTest.cc
  2162. * test/DHTFindNodeMessageTest.cc
  2163. * test/DHTFindNodeReplyMessageTest.cc
  2164. * test/DHTGetPeersMessageTest.cc
  2165. * test/DHTGetPeersReplyMessageTest.cc
  2166. * test/DHTMessageFactoryImplTest.cc
  2167. * test/DHTMessageTrackerTest.cc
  2168. * test/DHTPingMessageTest.cc
  2169. * test/DHTPingReplyMessageTest.cc
  2170. * test/MockDHTMessageFactory.h
  2171. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2172. Added tests the case where length < 0 is specified.
  2173. * test/BencodeTest.cc
  2174. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2175. Fixed memory leak in decoderawstring()
  2176. * src/bencode.cc
  2177. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2178. Added missing #ifdef guard. Added uc() function for String and
  2179. removeKey() for Dict.
  2180. * src/bencode.cc
  2181. * src/bencode.h
  2182. * test/BencodeTest.cc
  2183. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2184. Use BDE instead of Dictionary/List/Data.
  2185. * src/HandshakeExtensionMessage.cc
  2186. * src/HandshakeExtensionMessage.h
  2187. * test/HandshakeExtensionMessageTest.cc
  2188. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2189. Added --max-overall-upload-limit option. This option limits the
  2190. overall upload speed. Stated in help message that the existing
  2191. --max-upload-limit option limits the upload speed per each
  2192. torrent. Man page is also updated.
  2193. * doc/aria2c.1.txt
  2194. * src/DefaultBtMessageDispatcher.cc
  2195. * src/DefaultBtMessageDispatcher.h
  2196. * src/OptionHandlerFactory.cc
  2197. * src/PeerInteractionCommand.cc
  2198. * src/option_processing.cc
  2199. * src/prefs.cc
  2200. * src/prefs.h
  2201. * src/usage_text.h
  2202. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2203. Use BDE instead of Dictionary/List/Data classes.
  2204. * src/CompactPeerListProcessor.cc
  2205. * src/CompactPeerListProcessor.h
  2206. * src/DefaultBtAnnounce.cc
  2207. * src/DefaultBtContext.cc
  2208. * src/DefaultBtContext.h
  2209. * src/DefaultPeerListProcessor.cc
  2210. * src/DefaultPeerListProcessor.h
  2211. * src/DelegatingPeerListProcessor.cc
  2212. * src/DelegatingPeerListProcessor.h
  2213. * src/PeerListProcessor.h
  2214. * src/UTPexExtensionMessage.cc
  2215. * src/Util.h
  2216. * src/message.h
  2217. * test/DefaultBtContextTest.cc
  2218. * test/DefaultPeerListProcessorTest.cc
  2219. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2220. Added bencode helper functions and BDE class.
  2221. They will replace MetaFileUtil and Dictionary/List/Data classes.
  2222. * src/Makefile.am
  2223. * src/bencode.cc
  2224. * src/bencode.h
  2225. * test/BencodeTest.cc
  2226. * test/Makefile.am
  2227. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2228. Fixed the bug that bad URI is sent to the tracker when the announe
  2229. URI in torrent file includes query.
  2230. * src/DefaultBtAnnounce.cc
  2231. * test/DefaultBtAnnounceTest.cc
  2232. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2233. Added Option::blank().
  2234. Use !Option::blank(name) instead of Option::defined(name) for
  2235. the options that take filename.
  2236. * src/MultiUrlRequestInfo.cc
  2237. * src/Option.cc
  2238. * src/Option.h
  2239. * src/main.cc
  2240. * src/option_processing.cc
  2241. * test/OptionTest.cc
  2242. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2243. Documented the default value of --check-certificate option in man
  2244. page.
  2245. * doc/aria2c.1.txt
  2246. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2247. Enabled --check-certificate by default. Added compile
  2248. time(configure) option --with-ca-bundle to specify CA bundle.
  2249. Warn if --check-certificate=true and --ca-certificate is not
  2250. specified or loading CA certificate is failed.
  2251. * configure.ac
  2252. * src/MultiUrlRequestInfo.cc
  2253. * src/OptionHandlerFactory.cc
  2254. * src/message.h
  2255. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2256. Mentioned https tag in help option.
  2257. * doc/aria2c.1.txt
  2258. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2259. Added `https' tag to help option category. Added https tag to
  2260. --ca-certificate, --certificate, --check-certificate and
  2261. --private-key option.
  2262. * src/OptionHandlerFactory.cc
  2263. * src/help_tags.h
  2264. * src/option_processing.cc
  2265. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2266. Changed the package name from `aria2c' to `aria2' in order to fix
  2267. the packaging issue in Debian and Fedora. The name of the
  2268. executable is not changed.
  2269. * configure.ac
  2270. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2271. Fixed typos
  2272. * src/usage_text.h
  2273. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2274. Fixed typos and updated doc.
  2275. * README
  2276. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2277. Fixed typos
  2278. * doc/aria2c.1.txt
  2279. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2280. Fixed typos
  2281. * src/usage_text.h
  2282. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2283. Print a message when no files to download.
  2284. * src/download_helper.cc
  2285. * src/main.cc
  2286. * src/message.h
  2287. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2288. RFC3986 complied Percent-Encoding(urlencode).
  2289. Use uppercase hexadecimal digits for encoded text instead of lowercase
  2290. ones.
  2291. * src/Request.cc
  2292. * src/Util.cc
  2293. * src/Util.h
  2294. * test/BtHandshakeMessageTest.cc
  2295. * test/DefaultBtAnnounceTest.cc
  2296. * test/DefaultBtContextTest.cc
  2297. * test/RequestTest.cc
  2298. * test/UtilTest.cc
  2299. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2300. Fixed the bug that prevents aria2 from downloading 0-length files
  2301. via HTTP/FTP.
  2302. * src/DefaultBtContext.cc
  2303. * src/DefaultBtContext.h
  2304. * src/DownloadContext.h
  2305. * src/FtpNegotiationCommand.cc
  2306. * src/HttpResponseCommand.cc
  2307. * src/HttpResponseCommand.h
  2308. * src/RequestGroup.cc
  2309. * src/SingleFileDownloadContext.cc
  2310. * src/SingleFileDownloadContext.h
  2311. * test/BtPostDownloadHandlerTest.cc
  2312. * test/MetalinkPostDownloadHandlerTest.cc
  2313. * test/MockBtContext.h
  2314. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2315. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  2316. * src/option_processing.cc
  2317. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2318. Applied aria2-1.0.1-mingw.patch.
  2319. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  2320. mingw.
  2321. Collected 4th and 5th argument types for getsockopt and setsockopt.
  2322. * src/SocketCore.cc
  2323. * src/a2netcompat.h
  2324. * test/SocketCoreTest.cc
  2325. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2326. * Release 1.0.1
  2327. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2328. Updated Ukrainian and Norwegian Nynorsk translations.
  2329. Thanks to all translators.
  2330. * po/nn.po
  2331. * po/uk.po
  2332. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2333. Don't show download result when -S option is used.
  2334. * src/main.cc
  2335. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2336. Bump up version number to 1.0.1
  2337. * configure.ac
  2338. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2339. Closed files after the test cases in MultiDiskWriterTest::
  2340. testResetDiskWriterEntries(). This will fix the unit test error
  2341. in mingw32 build.
  2342. * test/MultiDiskWriterTest.cc
  2343. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2344. Use HEAD method to get file size from HTTP server for segmented
  2345. downloading.
  2346. The request to the BitTorrent Tracker always uses GET method because
  2347. the response of the tracker is small and it doesn't need segmented
  2348. download.
  2349. * src/FtpNegotiationCommand.cc
  2350. * src/HttpRequest.cc
  2351. * src/HttpResponseCommand.cc
  2352. * src/HttpSkipResponseCommand.cc
  2353. * src/RequestGroup.cc
  2354. * src/RequestGroup.h
  2355. * src/TrackerWatcherCommand.cc
  2356. * test/HttpRequestTest.cc
  2357. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2358. Fixed the bug that causes floating exception when -T option is used and
  2359. no URIs are given.
  2360. * src/download_helper.cc
  2361. * test/DownloadHelperTest.cc
  2362. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  2363. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  2364. errors in MinGW:
  2365. Closed file after saving server stats (RequestGroupMan.cc)
  2366. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  2367. Ignored case & handled 2-digit years (strptime.c)
  2368. Added missing suseconds_t definition (a2time.h)
  2369. Fixed socket CLOSE() define (SocketCore.cc)
  2370. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  2371. Changed utime() test values from x000 to x00000 as MinGW failed on
  2372. values less than timezone offset from Unix epoch
  2373. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  2374. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  2375. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  2376. handle negative dates (CookieParserTest.cc)
  2377. * src/a2time.h
  2378. * src/FtpConnection.cc
  2379. * src/RequestGroupMan.cc
  2380. * src/SocketCore.cc
  2381. * src/strptime.c
  2382. * test/CookieParserTest.cc
  2383. * test/CopyDiskAdaptorTest.cc
  2384. * test/FileTest.cc
  2385. * test/FtpConnectionTest.cc
  2386. * test/MultiDiskAdaptorTest.cc
  2387. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2388. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  2389. * doc/aria2c.1.txt
  2390. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2391. * Release 1.0.0
  2392. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2393. Added '~' to reserved characters.
  2394. * src/Util.cc
  2395. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2396. Do not urlencode Request::url in setUrl() because we want unmodified
  2397. URL using Request::getUrl()
  2398. * src/Request.cc
  2399. * src/Request.h
  2400. * test/RequestTest.cc
  2401. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2402. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  2403. Thanks to all translators.
  2404. * po/bg.po
  2405. * po/fr.po
  2406. * po/ja.po
  2407. * po/ru.po
  2408. * po/uk.po
  2409. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2410. Bump up version number to 1.0.0
  2411. * configure.ac
  2412. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2413. Added nosqlite3 build to build_test.sh.
  2414. Renamed noxml as expat.
  2415. * build_test.sh
  2416. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2417. Updated INPUT FILE section.
  2418. * doc/aria2c.1.txt
  2419. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2420. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  2421. on big endian systems because test .aria2 files are made for little
  2422. endian systems.
  2423. * test/DefaultBtProgressInfoFileTest.cc
  2424. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2425. Dropped ares support.
  2426. * README
  2427. * configure.ac
  2428. * m4/libares.m4: Removed.
  2429. * src/AsyncNameResolver.cc
  2430. * src/Makefile.am
  2431. * test/Makefile.am
  2432. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2433. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  2434. Removed const qualifier from DiskWriter::size().
  2435. * src/AbstractDiskWriter.cc
  2436. * src/AbstractDiskWriter.h
  2437. * src/ByteArrayDiskWriter.cc
  2438. * src/ByteArrayDiskWriter.h
  2439. * src/DiskWriter.h
  2440. * test/ByteArrayDiskWriterTest.cc
  2441. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2442. Fixed the bug that causes segmentation fault/bus error during executing
  2443. choking algorithm while seeding. This is caused by improper
  2444. implementation of compare function which returns inconsistent results
  2445. depending on the timing of last unchoke.
  2446. * src/BtSeederStateChoke.cc
  2447. * src/BtSeederStateChoke.h
  2448. * src/DefaultPeerStorage.cc
  2449. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2450. Removed TODO
  2451. * TODO
  2452. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2453. Added a section that explains how to pass argument to options that
  2454. takes optional arguments with its short form.
  2455. * doc/aria2c.1.txt
  2456. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2457. Added -u for the short form of --max-upload-limit option.
  2458. * doc/aria2c.1.txt
  2459. * src/option_processing.cc
  2460. * src/usage_text.h
  2461. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2462. Added -V for the short form of --check-integrity option.
  2463. Now the argument of --check-integrity option is optional:
  2464. if it is omitted, it is evaluated as true.
  2465. * doc/aria2c.1.txt
  2466. * src/option_processing.cc
  2467. * src/usage_text.h
  2468. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2469. Made the default value of --ftp-pasv option set to true and it can take
  2470. true/false values.
  2471. * src/OptionHandlerFactory.cc
  2472. * src/option_processing.cc
  2473. * src/usage_text.h
  2474. * doc/aria2c.1.txt
  2475. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2476. Given custom random number generator to std::random_shuffle.
  2477. * src/AnnounceList.cc
  2478. * src/BtLeecherStateChoke.cc
  2479. * src/BtSeederStateChoke.cc
  2480. * src/DefaultBtRequestFactory.cc
  2481. * src/MetalinkEntry.cc
  2482. * src/RarestPieceSelector.cc
  2483. * src/SimpleRandomizer.cc
  2484. * src/SimpleRandomizer.h
  2485. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2486. Now the default value of --enable-direct-io is true.
  2487. * src/OptionHandlerFactory.cc
  2488. * doc/aria2c.1.txt
  2489. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2490. Erase peer before executing onReturningPeer and onErasingPeer
  2491. because choking algorithm called from onReturningPeer doesn't
  2492. like erasing peer in the active peer list.
  2493. * src/DefaultPeerStorage.cc
  2494. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2495. Instead of creating special filename in createDownloadResult() if
  2496. inMemoryDownload() is true, now it is done in getFilePath().
  2497. * src/RequestGroup.cc
  2498. * test/RequestGroupTest.cc
  2499. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2500. Print "[MEMORY]" and filename if a file is not saved in disk and just
  2501. processed in memory. This is the fix for previous comment out.
  2502. * src/MemoryBufferPreDownloadHandler.cc
  2503. * src/RequestGroup.cc
  2504. * src/RequestGroup.h
  2505. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2506. Commented out the code which sets virtual directory path "[MEMORY]"
  2507. propagate directory to store to following RequestGroup.
  2508. * src/MemoryBufferPreDownloadHandler.cc
  2509. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2510. Bump up version number to 1.0.0b
  2511. * configure.ac
  2512. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2513. Added input_uris.txt to EXTRA_DIST
  2514. * test/Makefile.am
  2515. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2516. Removed PeerObject.h from Makefile.am
  2517. * src/Makefile.am
  2518. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2519. Avoid slow seeding
  2520. * src/PeerInteractionCommand.cc
  2521. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2522. Updated usage for -i option.
  2523. * src/usage_text.h (TEXT_INPUT_FILE)
  2524. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2525. Added INPUT FILE section to man page.
  2526. Escaped fake URLs.
  2527. * doc/aria2c.1.txt
  2528. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2529. Fixed wrong note position for -o option.
  2530. * doc/aria2c.1.txt
  2531. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2532. Fixed compile error without SSL/XML library.
  2533. * src/DefaultBtProgressInfoFile.cc
  2534. * src/DefaultBtProgressInfoFile.h
  2535. * src/FileMetalinkParserState.cc
  2536. * src/RequestGroup.h
  2537. * src/SocketCore.cc
  2538. * src/SocketCore.h
  2539. * src/VerificationMetalinkParserState.cc
  2540. * src/download_helper.h
  2541. * src/main.cc
  2542. * test/DefaultBtProgressInfoFileTest.cc
  2543. * test/DownloadHelperTest.cc
  2544. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2545. Rewritten URI handling functions. They are now provided as a testable
  2546. functions.
  2547. * src/Makefile.am
  2548. * src/RequestGroup.cc
  2549. * src/RequestGroup.h
  2550. * src/download_helper.cc
  2551. * src/download_helper.h
  2552. * src/main.cc
  2553. * test/DownloadHelperTest.cc
  2554. * test/Makefile.am
  2555. * test/input_uris.txt
  2556. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2557. Quickly terminate commands when ctrl-c is pressed.
  2558. * src/DownloadEngine.cc
  2559. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2560. Quickly terminate idle commands when download finished.
  2561. * src/AbstractCommand.cc
  2562. * src/DownloadCommand.cc
  2563. * src/DownloadEngine.cc
  2564. * src/DownloadEngine.h
  2565. * src/SleepCommand.cc
  2566. * src/SleepCommand.h
  2567. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2568. Added the ability to specify output filename and directory in input
  2569. file.
  2570. Additional parameters are added in the following line of URIs
  2571. with proceeding white space(s), 1 parameter in 1 line.
  2572. The parameter names are the same with the command-line option name
  2573. without proceeding "--". Not all the options are available here:
  2574. at the moment, 'dir' and 'out' options are avialable.
  2575. Please note that out option has no effect against Metalink or BitTorrent
  2576. downloads.
  2577. Example input file:
  2578. http://host/foo-1.1.tar.bz2
  2579. out=foo.tar.bz2
  2580. dir=/tmp/downloads
  2581. http://host/thundermonkey-2.0.tar.bz2
  2582. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  2583. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  2584. thundermonkey-2.0.tar.bz2 is saved as
  2585. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  2586. * src/BtPostDownloadHandler.cc
  2587. * src/Metalink2RequestGroup.cc
  2588. * src/Metalink2RequestGroup.h
  2589. * src/MetalinkPostDownloadHandler.cc
  2590. * src/UriListParser.cc
  2591. * src/UriListParser.h
  2592. * src/main.cc
  2593. * test/Metalink2RequestGroupTest.cc
  2594. * test/UriListParserTest.cc
  2595. * test/filelist1.txt
  2596. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2597. Fixed error when SSL library is not found.
  2598. * configure.ac
  2599. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2600. Cross referenced among -s, -C and -j options.
  2601. Updated usage of -C and -s options.
  2602. * src/usage_text.h
  2603. * doc/aria2c.1.txt
  2604. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2605. Fixed bad cast in 32bit platforms.
  2606. * test/DefaultPieceStorageTest.cc
  2607. (DefaultPieceStorageTest::testGetCompletedLength)
  2608. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2609. Fixed unit test fails on 32bit platforms.
  2610. * test/CookieParserTest.cc
  2611. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2612. Show an average download speed in Download results.
  2613. * src/BtFileAllocationEntry.cc
  2614. * src/DefaultPieceStorage.cc
  2615. * src/DownloadContext.cc
  2616. * src/DownloadContext.h
  2617. * src/DownloadResult.h
  2618. * src/RequestGroup.cc
  2619. * src/RequestGroupMan.cc
  2620. * src/StreamFileAllocationEntry.cc
  2621. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2622. Fixed the bug that metalink file is not processed if Content-Type
  2623. field has a paramter.
  2624. * src/HttpResponse.cc
  2625. * src/HttpResponse.h
  2626. * test/HttpResponseTest.cc
  2627. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2628. Removed unused code.
  2629. * src/DefaultBtAnnounce.cc
  2630. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2631. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  2632. the value larger than DefaultPieceStorage::getTotalLength() when
  2633. in flight pieces are involved.
  2634. * src/DefaultPieceStorage.cc
  2635. * test/DefaultPieceStorageTest.cc
  2636. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2637. Bump up version number to 1.0.0a.
  2638. * configure.ac
  2639. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2640. Updated configure.ac
  2641. * configure.ac
  2642. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2643. Added usege for proxy.
  2644. * doc/aria2c.1.txt
  2645. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2646. Added usage for --ca-certificate, --certificate, --private-key and
  2647. --check-certificate options.
  2648. * doc/aria2c.1.txt
  2649. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2650. Updated man page
  2651. * doc/aria2c.1.txt
  2652. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2653. Added --no-proxy option. It receives comman separated hostname or
  2654. domains to which proxy should not be used.
  2655. aria2 honors the environment variable no_proxy to override no-proxy
  2656. value in configuration file. The user can override the environment
  2657. variable no_proxy with --no-proxy command-line option.
  2658. * src/AbstractCommand.cc
  2659. * src/OptionHandlerFactory.cc
  2660. * src/option_processing.cc
  2661. * src/prefs.cc
  2662. * src/prefs.h
  2663. * src/usage_text.h
  2664. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2665. Added the ability to verify peer in SSL/TLS using given CA certificates.
  2666. The CA certificates are specified in --ca-certificate option.
  2667. By default, the verification is disabled. Use --check-certificate
  2668. option to enable it.
  2669. * src/HttpRequestCommand.cc
  2670. * src/LibgnutlsTLSContext.cc
  2671. * src/LibgnutlsTLSContext.h
  2672. * src/LibsslTLSContext.cc
  2673. * src/LibsslTLSContext.h
  2674. * src/MultiUrlRequestInfo.cc
  2675. * src/OptionHandlerFactory.cc
  2676. * src/SocketCore.cc
  2677. * src/SocketCore.h
  2678. * src/a2functional.h
  2679. * src/message.h
  2680. * src/option_processing.cc
  2681. * src/prefs.cc
  2682. * src/prefs.h
  2683. * src/usage_text.h
  2684. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2685. Added client certificate authentication for SSL/TLS.
  2686. Currently a private key must be decrypted for use with aria2.
  2687. If a user accidentally gives encrypted file to aria2 then following
  2688. thing happens:
  2689. If encrypted private key is given to aria2, it behaves differently
  2690. depending on the ssl library it uses. If aria2 built with openssl then
  2691. openssl prompts the user for password. If aria2 build with gnutls then
  2692. aria2 exists with error at start up.
  2693. * src/DownloadEngineFactory.cc
  2694. * src/MultiUrlRequestInfo.cc
  2695. * src/OptionHandlerFactory.cc
  2696. * src/option_processing.cc
  2697. * src/prefs.cc
  2698. * src/prefs.h
  2699. * src/usage_text.h
  2700. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2701. Introduced TLSContext that holds TLS related data that can be shared
  2702. with multiple SSL connections.
  2703. * src/DownloadEngineFactory.cc
  2704. * src/LibgnutlsTLSContext.cc
  2705. * src/LibgnutlsTLSContext.h
  2706. * src/LibsslTLSContext.cc
  2707. * src/LibsslTLSContext.h
  2708. * src/Makefile.am
  2709. * src/SocketCore.cc
  2710. * src/SocketCore.h
  2711. * src/TLSContext.h
  2712. * src/message.h
  2713. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2714. Fixed the bug that the DiskWriter of the first FileEntry whose
  2715. `needsFileAllocation' property is false is not created
  2716. even if it shares a piece with next FileEntry which `requested' property
  2717. is true.
  2718. Fixed the bug that zero-length file is not created if pre file
  2719. allocation is not done.
  2720. * src/MultiDiskAdaptor.cc
  2721. * src/MultiDiskAdaptor.h
  2722. * test/MultiDiskAdaptorTest.cc
  2723. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2724. Added the ability to pool proxy connection.
  2725. The conneciton in FTP with proxy-method=GET is not pooled.
  2726. Proxy-Connection header will not be sent when sending CONNECT method.
  2727. * src/DownloadEngine.cc
  2728. * src/DownloadEngine.h
  2729. * src/FtpFinishDownloadCommand.cc
  2730. * src/FtpInitiateConnectionCommand.cc
  2731. * src/FtpNegotiationCommand.cc
  2732. * src/HttpDownloadCommand.cc
  2733. * src/HttpInitiateConnectionCommand.cc
  2734. * src/HttpRequest.cc
  2735. * src/HttpRequest.h
  2736. * src/HttpResponse.cc
  2737. * src/HttpSkipResponseCommand.cc
  2738. * test/HttpRequestTest.cc
  2739. * test/HttpResponseTest.cc
  2740. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2741. Handle date before epoch.
  2742. To create *bad* Time object, call Time::null().
  2743. * src/CookieParser.cc
  2744. * src/FtpConnection.cc
  2745. * src/FtpConnection.h
  2746. * src/FtpNegotiationCommand.cc
  2747. * src/RequestGroup.cc
  2748. * src/TimeA2.cc
  2749. * src/TimeA2.h
  2750. * test/CookieParserTest.cc
  2751. * test/FtpConnectionTest.cc
  2752. * test/TimeTest.cc
  2753. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2754. Added support for following envrionment variables: http_proxy,
  2755. https_proxy, ftp_proxy and all_proxy.
  2756. Each variable is equivalent to the aria2 option whose name is the
  2757. variable name with '_' replaced with '-'.
  2758. They overrides options specified in aria2.conf file.
  2759. The envrionment variables can be overrode using command-line option.
  2760. * src/option_processing.cc
  2761. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2762. Renamed --http-proxy-method as --proxy-method.
  2763. * src/AbstractCommand.cc
  2764. * src/FtpInitiateConnectionCommand.cc
  2765. * src/HttpInitiateConnectionCommand.cc
  2766. * src/OptionHandlerFactory.cc
  2767. * src/option_processing.cc
  2768. * src/prefs.cc
  2769. * src/prefs.h
  2770. * src/usage_text.h
  2771. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2772. Deprecated --http-proxy-user and --http-proxy-passwd options.
  2773. Added --https-proxy, --ftp-proxy and --all-proxy options.
  2774. Above 3 options and --http-proxy option can handle proxy in URL format
  2775. like: http://user:passwd@host:port.
  2776. If a proxy requires user/password, they must be specified in a URL.
  2777. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  2778. instead.
  2779. * src/AbstractCommand.cc
  2780. * src/AbstractCommand.h
  2781. * src/AbstractProxyRequestCommand.cc
  2782. * src/AbstractProxyRequestCommand.h
  2783. * src/AuthConfigFactory.cc
  2784. * src/AuthConfigFactory.h
  2785. * src/FtpFinishDownloadCommand.cc
  2786. * src/FtpInitiateConnectionCommand.cc
  2787. * src/FtpInitiateConnectionCommand.h
  2788. * src/FtpNegotiationCommand.cc
  2789. * src/FtpTunnelRequestCommand.cc
  2790. * src/FtpTunnelRequestCommand.h
  2791. * src/HttpDownloadCommand.cc
  2792. * src/HttpInitiateConnectionCommand.cc
  2793. * src/HttpInitiateConnectionCommand.h
  2794. * src/HttpProxyRequestCommand.cc
  2795. * src/HttpProxyRequestCommand.h
  2796. * src/HttpRequest.cc
  2797. * src/HttpRequest.h
  2798. * src/HttpRequestCommand.cc
  2799. * src/HttpRequestCommand.h
  2800. * src/HttpSkipResponseCommand.cc
  2801. * src/InitiateConnectionCommand.cc
  2802. * src/InitiateConnectionCommand.h
  2803. * src/OptionHandlerFactory.cc
  2804. * src/OptionHandlerImpl.h
  2805. * src/Request.cc
  2806. * src/option_processing.cc
  2807. * src/prefs.cc
  2808. * src/prefs.h
  2809. * src/usage_text.h
  2810. * test/AuthConfigFactoryTest.cc
  2811. * test/HttpRequestTest.cc
  2812. * test/OptionHandlerTest.cc
  2813. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2814. Execute choking algorithm when unchoked and interested peer is
  2815. disconected.
  2816. * src/DefaultPeerStorage.cc
  2817. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2818. Added testcase for BtNotInterestedMessage from unchoked peer.
  2819. * test/BtNotInterestedMessageTest.cc
  2820. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2821. Execute choking algorithm when BtInterestedMessage arrives from
  2822. unchoked peer.
  2823. * src/BtInterestedMessage.cc
  2824. * src/BtInterestedMessage.h
  2825. * src/DefaultBtMessageFactory.cc
  2826. * test/BtInterestedMessageTest.cc
  2827. * test/MockPeerStorage.h
  2828. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2829. AuthConfigFactory is now part of DownloadEngine.
  2830. * src/AbstractProxyRequestCommand.cc
  2831. * src/AuthConfigFactory.h
  2832. * src/DownloadEngine.cc
  2833. * src/DownloadEngine.h
  2834. * src/FtpConnection.cc
  2835. * src/FtpConnection.h
  2836. * src/FtpNegotiationCommand.cc
  2837. * src/HttpConnection.cc
  2838. * src/HttpRequest.cc
  2839. * src/HttpRequest.h
  2840. * src/HttpRequestCommand.cc
  2841. * src/HttpResponse.cc
  2842. * src/HttpResponseCommand.cc
  2843. * src/HttpSkipResponseCommand.cc
  2844. * src/MultiUrlRequestInfo.cc
  2845. * src/main.cc
  2846. * test/FtpConnectionTest.cc
  2847. * test/HttpRequestTest.cc
  2848. * test/HttpResponseTest.cc
  2849. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2850. Corrected catched exception type.
  2851. * src/ServerStatMan.cc
  2852. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2853. DNSCache is now part of DownloadEngine.
  2854. * src/DNSCache.h
  2855. * src/DownloadEngine.cc
  2856. * src/DownloadEngine.h
  2857. * src/InitiateConnectionCommand.cc
  2858. * src/MultiUrlRequestInfo.cc
  2859. * test/Makefile.am
  2860. * test/Makefile.in
  2861. * test/SimpleDNSCacheTest.cc
  2862. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2863. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  2864. DownloadEngine.
  2865. * src/ActivePeerConnectionCommand.cc
  2866. * src/BtSetup.cc
  2867. * src/CUIDCounter.h
  2868. * src/DHTSetup.cc
  2869. * src/DownloadCommand.cc
  2870. * src/DownloadEngine.cc
  2871. * src/DownloadEngine.h
  2872. * src/DownloadEngineFactory.cc
  2873. * src/FileAllocationDispatcherCommand.cc
  2874. * src/InitiatorMSEHandshakeCommand.cc
  2875. * src/PeerInitiateConnectionCommand.cc
  2876. * src/PeerInteractionCommand.cc
  2877. * src/PeerListenCommand.cc
  2878. * src/RequestGroup.cc
  2879. * src/StreamFileAllocationEntry.cc
  2880. * src/TrackerWatcherCommand.cc
  2881. * src/main.cc
  2882. * test/RequestGroupManTest.cc
  2883. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2884. Implemented commented code in BtSeederStateChoke
  2885. * src/BtSeederStateChoke.cc
  2886. * src/Peer.cc
  2887. * src/Peer.h
  2888. * src/PeerInteractionCommand.cc
  2889. * src/PeerSessionResource.cc
  2890. * src/PeerSessionResource.h
  2891. * test/MockBtMessageDispatcher.h
  2892. * test/PeerSessionResourceTest.cc
  2893. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2894. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  2895. its object.
  2896. * src/AbstractBtMessage.cc
  2897. * src/ActivePeerConnectionCommand.cc
  2898. * src/ActivePeerConnectionCommand.h
  2899. * src/BtContextAwareCommand.cc
  2900. * src/BtContextAwareCommand.h
  2901. * src/BtExtendedMessage.cc
  2902. * src/BtExtendedMessage.h
  2903. * src/BtInterestedMessage.cc
  2904. * src/BtInterestedMessage.h
  2905. * src/BtNotInterestedMessage.cc
  2906. * src/BtNotInterestedMessage.h
  2907. * src/BtRegistry.cc
  2908. * src/BtRegistry.h
  2909. * src/BtSeederStateChoke.cc
  2910. * src/BtSetup.cc
  2911. * src/DHTGetPeersCommand.cc
  2912. * src/DHTGetPeersCommand.h
  2913. * src/DHTPeerAnnounceEntry.cc
  2914. * src/DHTPeerAnnounceEntry.h
  2915. * src/DHTPeerAnnounceStorage.cc
  2916. * src/DHTPeerAnnounceStorage.h
  2917. * src/DHTPeerLookupTask.cc
  2918. * src/DHTPeerLookupTask.h
  2919. * src/DHTSetup.cc
  2920. * src/DHTSetup.h
  2921. * src/DHTTaskFactory.h
  2922. * src/DHTTaskFactoryImpl.cc
  2923. * src/DHTTaskFactoryImpl.h
  2924. * src/DefaultBtAnnounce.cc
  2925. * src/DefaultBtInteractive.cc
  2926. * src/DefaultBtInteractive.h
  2927. * src/DefaultBtMessageDispatcher.cc
  2928. * src/DefaultBtMessageDispatcher.h
  2929. * src/DefaultBtMessageFactory.cc
  2930. * src/DefaultBtMessageFactory.h
  2931. * src/DefaultBtMessageReceiver.cc
  2932. * src/DefaultBtProgressInfoFile.cc
  2933. * src/DefaultBtProgressInfoFile.h
  2934. * src/DefaultBtRequestFactory.cc
  2935. * src/DefaultBtRequestFactory.h
  2936. * src/DefaultExtensionMessageFactory.cc
  2937. * src/DefaultExtensionMessageFactory.h
  2938. * src/DefaultPeerStorage.cc
  2939. * src/DefaultPeerStorage.h
  2940. * src/DownloadEngine.cc
  2941. * src/DownloadEngine.h
  2942. * src/InitiatorMSEHandshakeCommand.cc
  2943. * src/InitiatorMSEHandshakeCommand.h
  2944. * src/MSEHandshake.cc
  2945. * src/MSEHandshake.h
  2946. * src/Makefile.am
  2947. * src/Makefile.in
  2948. * src/PeerChokeCommand.cc
  2949. * src/PeerChokeCommand.h
  2950. * src/PeerInitiateConnectionCommand.cc
  2951. * src/PeerInitiateConnectionCommand.h
  2952. * src/PeerInteractionCommand.cc
  2953. * src/PeerInteractionCommand.h
  2954. * src/PeerObject.h
  2955. * src/PeerReceiveHandshakeCommand.cc
  2956. * src/PeerReceiveHandshakeCommand.h
  2957. * src/ReceiverMSEHandshakeCommand.cc
  2958. * src/RequestGroup.cc
  2959. * src/RequestGroup.h
  2960. * src/RequestGroupMan.cc
  2961. * src/RequestGroupMan.h
  2962. * src/SeedCheckCommand.cc
  2963. * src/SeedCheckCommand.h
  2964. * src/ShareRatioSeedCriteria.h
  2965. * src/SimpleBtMessage.cc
  2966. * src/TrackerWatcherCommand.cc
  2967. * src/TrackerWatcherCommand.h
  2968. * src/UTPexExtensionMessage.cc
  2969. * src/UTPexExtensionMessage.h
  2970. * test/BtCancelMessageTest.cc
  2971. * test/BtChokeMessageTest.cc
  2972. * test/BtExtendedMessageTest.cc
  2973. * test/BtInterestedMessageTest.cc
  2974. * test/BtNotInterestedMessageTest.cc
  2975. * test/BtPieceMessageTest.cc
  2976. * test/BtPortMessageTest.cc
  2977. * test/BtRegistryTest.cc
  2978. * test/BtRejectMessageTest.cc
  2979. * test/BtRequestMessageTest.cc
  2980. * test/DHTPeerAnnounceEntryTest.cc
  2981. * test/DHTPeerAnnounceStorageTest.cc
  2982. * test/DefaultBtMessageDispatcherTest.cc
  2983. * test/DefaultBtMessageFactoryTest.cc
  2984. * test/DefaultBtProgressInfoFileTest.cc
  2985. * test/DefaultBtRequestFactoryTest.cc
  2986. * test/DefaultExtensionMessageFactoryTest.cc
  2987. * test/MSEHandshakeTest.cc
  2988. * test/MockDHTTaskFactory.h
  2989. * test/ShareRatioSeedCriteriaTest.cc
  2990. * test/UTPexExtensionMessageTest.cc
  2991. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2992. Fixed compiler warning.
  2993. * test/UtilTest.cc
  2994. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2995. Treat Cookie object as session cookie if expiry = 0 is given.
  2996. With this change, you can specify session scoped cookies in an external
  2997. file setting expiry value to 0.
  2998. * src/Cookie.cc
  2999. * src/Cookie.h
  3000. * test/CookieParserTest.cc
  3001. * test/CookieStorageTest.cc
  3002. * test/CookieTest.cc
  3003. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3004. Changed signature of DHTMessageFactory::createResponseMessage().
  3005. Removed unused validateIDMatch.
  3006. * src/DHTMessageFactory.h
  3007. * src/DHTMessageFactoryImpl.cc
  3008. * src/DHTMessageFactoryImpl.h
  3009. * src/DHTMessageTracker.cc
  3010. * test/DHTMessageFactoryImplTest.cc
  3011. * test/MockDHTMessageFactory.h
  3012. Dropped DHT message coming from same ID of localhost.
  3013. * src/DHTMessageReceiver.cc
  3014. Rejected adding node whose ID is the same as localhost's.
  3015. * src/DHTRoutingTable.cc
  3016. * test/BtPortMessageTest.cc
  3017. * test/DHTRoutingTableTest.cc
  3018. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3019. Pool connection when redirection occurs with Content-Length = 0.
  3020. * src/HttpSkipResponseCommand.cc
  3021. * src/HttpSkipResponseCommand.h
  3022. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3023. Fixed the bug that causes time out when redirection occurs with
  3024. content-length 0.
  3025. * src/HttpResponseCommand.cc
  3026. * src/HttpSkipResponseCommand.cc
  3027. * src/HttpSkipResponseCommand.h
  3028. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3029. Now each status legends is shown only when it appears in Download
  3030. Result. If Download Result has no item, then status legend will not
  3031. be printed.
  3032. * src/RequestGroupMan.cc
  3033. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3034. Removed duplicate creation of OptionHandlers.
  3035. * src/option_processing.cc
  3036. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3037. Fixed the bug that causes segmentation fault when accessing files which
  3038. don't exist or are not included in --select-file option while
  3039. validating chunk checksum.
  3040. * src/MultiDiskAdaptor.cc
  3041. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3042. Fixed compiler warning.
  3043. * test/UtilTest.cc
  3044. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3045. Included cstdlib. This fixed the compile error with g++-4.3.2.
  3046. * src/IteratableChecksumValidator.cc
  3047. * src/IteratableChunkChecksumValidator.cc
  3048. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3049. * Release 0.16.2
  3050. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3051. Added Serbian translation. Updated Ukrainian translation.
  3052. Thanks to all translators.
  3053. * po/sr.po
  3054. * po/uk.po
  3055. * po/LINGUAS
  3056. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3057. Bump up version number to 0.16.2
  3058. * configure.ac
  3059. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3060. Added length equality test to operator== to drop a piece message
  3061. whose length does not match to the requested one.
  3062. * src/RequestSlot.cc
  3063. * test/DefaultBtMessageDispatcherTest.cc
  3064. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3065. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  3066. recieved.
  3067. In this fix, if a request larger than 16KiB length is received, aria2
  3068. disconnects the peer.
  3069. * src/BtConstants.h
  3070. * src/PeerMessageUtil.cc
  3071. * src/PeerMessageUtil.h
  3072. * test/BtRequestMessageTest.cc
  3073. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3074. * Release 0.16.1
  3075. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3076. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  3077. * doc/aria2c.1.txt
  3078. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3079. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  3080. Updated French, Simplified Chinese and Japanese translations.
  3081. Thanks to all translators.
  3082. en@quot and en@boldquot are also added.
  3083. * po/LINGUAS
  3084. * po/fr.po
  3085. * po/ja.po
  3086. * po/uk.po
  3087. * po/vi.po
  3088. * po/zh_CN.po
  3089. * po/zh_TW.po
  3090. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3091. Bump up version number to 0.16.1.
  3092. * configure.ac
  3093. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3094. Updated README.
  3095. * README
  3096. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3097. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  3098. not to replace '--' with em dash character.
  3099. * doc/aria2c.1.txt
  3100. * doc/makeman
  3101. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3102. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  3103. every SEC seconds.
  3104. * src/DownloadEngineFactory.cc
  3105. * src/OptionHandlerFactory.cc
  3106. * src/option_processing.cc
  3107. * src/usage_text.h
  3108. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3109. Fixed compile warning on linux-amd64
  3110. * src/FtpConnection.cc
  3111. * src/IteratableChunkChecksumValidator.cc
  3112. * src/MultiDiskAdaptor.cc
  3113. Fixed the bug that unit test fails on linux-amd64
  3114. * test/UtilTest.cc
  3115. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3116. Added --dht-file-path option to change the path to dht.dat, which is a
  3117. serialized DHT routing table.
  3118. * src/OptionHandlerFactory.cc
  3119. * src/option_processing.cc
  3120. * src/usage_text.h
  3121. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3122. Fixed possible underflow.
  3123. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  3124. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3125. Fixed the bug that last character in URI is not encoded.
  3126. * src/Request.cc
  3127. * test/RequestTest.cc
  3128. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3129. Fixed the bug that referer header field contains fragment.
  3130. Now Request class removes fragment part of URI and encodes it
  3131. in Request::setUri() and setReferer().
  3132. * src/Request.h
  3133. * src/Request.cc
  3134. * test/RequestTest.cc
  3135. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3136. Added missing m4 macros.
  3137. * m4/cppunit.m4
  3138. * m4/libgcrypt.m4
  3139. * m4/libgnutls-extra.m4
  3140. * m4/libgnutls.m4
  3141. * m4/libxml2.m4
  3142. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3143. Fixed compile error with gcc-4.4(snapshot)
  3144. * src/File.cc
  3145. * src/FtpConnection.cc
  3146. * src/OptionHandlerImpl.h
  3147. * src/Util.cc
  3148. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3149. Removed assert()
  3150. * src/SocketBuffer.cc (SocketBuffer::send)
  3151. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3152. Changed the type of _numNewConnection to unsigned int.
  3153. * src/ActivePeerConnectionCommand.cc
  3154. * src/ActivePeerConnectionCommand.h
  3155. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3156. * Release 0.16.0
  3157. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3158. Updated doc
  3159. * README
  3160. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3161. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  3162. translations. Thanks to all translators.
  3163. * po/bg.po
  3164. * po/de.po
  3165. * po/fr.po
  3166. * po/ja.po
  3167. * po/zh_CN.po
  3168. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3169. Bump up version number to 0.16.0.
  3170. * configure.ac
  3171. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3172. Casted entry->maxConnections to int32_t for std::min<T> with T =
  3173. int32_t.
  3174. Changed the type of count to int32_t.
  3175. * src/Metalink2RequestGroup.cc
  3176. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3177. Added test for Time::elapsed(time_t).
  3178. * test/TimeTest.cc
  3179. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3180. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  3181. Util::difftv() should be used instead.
  3182. * src/TimeA2.cc
  3183. * src/TimeA2.h
  3184. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3185. Made socket for dht connections non-blocking
  3186. * src/DHTAbstractMessage.cc
  3187. * src/DHTAbstractMessage.h
  3188. * src/DHTConnection.h
  3189. * src/DHTConnectionImpl.cc
  3190. * src/DHTConnectionImpl.h
  3191. * src/DHTMessage.h
  3192. * src/DHTMessageDispatcherImpl.cc
  3193. * src/DHTMessageDispatcherImpl.h
  3194. * src/DHTUnknownMessage.cc
  3195. * src/DHTUnknownMessage.h
  3196. * src/SocketCore.cc
  3197. * src/SocketCore.h
  3198. * test/MockDHTMessage.h
  3199. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3200. Changed the type of offset to int.
  3201. * src/ParameterizedStringParser.cc
  3202. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3203. Made getAsInt() return int32_t
  3204. * src/Option.h
  3205. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3206. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  3207. build.
  3208. * configure.ac
  3209. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3210. Use sqlite3_open if sqlite3_open_v2 is not available.
  3211. * src/Sqlite3MozCookieParser.cc
  3212. * src/Sqlite3MozCookieParser.h
  3213. * m4/sqlite3.m4
  3214. * test/Sqlite3MozCookieParserTest.cc
  3215. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3216. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  3217. * src/BtPieceMessage.cc
  3218. * src/DHTPeerAnnounceStorage.cc
  3219. * src/DefaultPieceStorage.cc
  3220. * src/DownloadCommand.cc
  3221. * src/DownloadEngine.cc
  3222. * src/FtpConnection.cc
  3223. * src/PeerConnection.cc
  3224. * src/PeerMessageUtil.cc
  3225. * src/RequestGroup.cc
  3226. * src/RequestGroupMan.cc
  3227. * src/SimpleBtMessage.cc
  3228. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3229. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  3230. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  3231. * src/AbstractDiskWriter.cc
  3232. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3233. Don't set Request::supportsPersistentConnection() in HttpConnection
  3234. since this code is also used in AbstractProxyResponseCommand.
  3235. Moved those code to HttpResponse.
  3236. * src/HttpResponse.cc
  3237. * src/HttpResponse.h
  3238. * src/HttpConnection.cc
  3239. * src/HttpConnection.h
  3240. * src/HttpResponseCommand.cc
  3241. * test/HttpResponseTest.cc
  3242. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3243. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  3244. The configuration is minimum: no torrent, no metalink, so there may be
  3245. other compile error on their code.
  3246. * src/a2netcompat.h
  3247. * src/File.cc
  3248. * src/File.h
  3249. * src/SocketCore.cc
  3250. * src/SocketCore.h
  3251. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3252. Made a socket of incoming peer non-blocking.
  3253. * src/PeerListenCommand.cc
  3254. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3255. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  3256. whole message data is not sent in one send() call.
  3257. * src/BtPieceMessage.cc
  3258. * src/BtPieceMessage.h
  3259. * src/PeerConnection.cc
  3260. * src/PeerConnection.h
  3261. * src/SimpleBtMessage.cc
  3262. * src/SimpleBtMessage.h
  3263. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3264. Fixed the bug that aria2 downloads faster than max-download-limit when
  3265. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  3266. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  3267. , instead of sum of them.
  3268. * src/ActivePeerConnectionCommand.cc
  3269. * src/DefaultBtInteractive.cc
  3270. * src/DownloadCommand.cc
  3271. * src/PeerInteractionCommand.cc
  3272. * src/PeerReceiveHandshakeCommand.cc
  3273. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3274. Fixed the bug that HTTPS download fails.
  3275. * src/AbstractCommand.cc
  3276. * src/AbstractCommand.h
  3277. * src/DownloadCommand.cc
  3278. * src/FtpConnection.cc
  3279. * src/HttpConnection.cc
  3280. * src/HttpRequestCommand.cc
  3281. * src/HttpResponseCommand.cc
  3282. * src/HttpSkipResponseCommand.cc
  3283. * src/MSEHandshake.cc
  3284. * src/PeerConnection.cc
  3285. * src/SocketCore.cc
  3286. * src/SocketCore.h
  3287. Fixed the bug that aria2 doesn't download whole content body and cannot
  3288. reuse connection if chunked transfer encoding and gzip content encoding
  3289. are set.
  3290. * src/DownloadCommand.cc
  3291. * src/HttpSkipResponseCommand.cc
  3292. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3293. Updated man page.
  3294. * doc/aria2c.1.txt
  3295. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3296. When error occurred while aria2 was parsing an .aria2.conf file, print
  3297. the usage of the option that caused error.
  3298. * src/option_processing.cc
  3299. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3300. Fixed compile error on OptionHandlerException
  3301. * src/Makefile.am
  3302. * src/OptionHandlerException.cc
  3303. * src/OptionHandlerException.h
  3304. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3305. Moved message of the error to OptionHandlerException.h
  3306. * src/NameMatchOptionHandler.h
  3307. * src/OptionHandlerException.h
  3308. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3309. When error occurs while aria2 is parsing an command-line option, print
  3310. the usage of the option.
  3311. * src/Makefile.am
  3312. * src/NameMatchOptionHandler.h
  3313. * src/OptionHandlerException.h
  3314. * src/option_processing.cc
  3315. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3316. Reverted previous change.
  3317. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  3318. username is not in URI.
  3319. * src/HttpRequest.cc
  3320. * src/Request.cc
  3321. * test/HttpRequestTest.cc
  3322. * test/RequestTest.cc
  3323. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3324. Now colon is required for username and password in FTP URL, like:
  3325. ftp://username:password@host.
  3326. If colon is not there, aria2 don't parse it as a username. For example,
  3327. aria2 don't retrieve username from ftp://username@host.
  3328. This fix was made in order to login FTP server via non-transparent ftp
  3329. proxy.
  3330. * src/Request.cc
  3331. * test/RequestTest.cc
  3332. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3333. Use netrc for HTTP.
  3334. Now FTP user/password is sent in Authorization header when
  3335. --ftp-via-http-proxy=get is given.
  3336. * src/AuthConfigFactory.cc
  3337. * src/HttpRequest.cc
  3338. * src/HttpRequest.h
  3339. * src/NetrcAuthResolver.cc
  3340. * src/NetrcAuthResolver.h
  3341. * src/OptionHandlerFactory.cc
  3342. * src/option_processing.cc
  3343. * src/prefs.cc
  3344. * src/prefs.h
  3345. * test/AuthConfigFactoryTest.cc
  3346. * test/HttpRequestTest.cc
  3347. * test/NetrcAuthResolverTest.cc
  3348. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3349. Issue PWD command first and get working directory and use it as a prefix
  3350. for CWD command.
  3351. * src/DownloadEngine.cc
  3352. * src/DownloadEngine.h
  3353. * src/FtpConnection.cc
  3354. * src/FtpConnection.h
  3355. * src/FtpFinishDownloadCommand.cc
  3356. * src/FtpInitiateConnectionCommand.cc
  3357. * src/FtpNegotiationCommand.cc
  3358. * src/FtpNegotiationCommand.h
  3359. * test/FtpConnectionTest.cc
  3360. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3361. Removed default user/pass for FTP user/pass, since it should not have
  3362. precedence over netrc configuration by default.
  3363. * src/OptionHandlerFactory.cc
  3364. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3365. Added debug log for socket event.
  3366. * src/AbstractCommand.cc
  3367. * src/PeerAbstractCommand.cc
  3368. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3369. Log microseconds.
  3370. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  3371. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3372. Replaced HelpItem.cc with OptionHandler.cc.
  3373. * po/POTFILES.in
  3374. Updated po files with 'make update-po'
  3375. * po/aria2c.pot
  3376. * po/*.po
  3377. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3378. Removed possible values from the text.
  3379. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  3380. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3381. Removed unused preferences:
  3382. PREF_NO_PREALLOCATION
  3383. PREF_STDOUT_LOG
  3384. PREF_TRACKER_MAX_TRIES
  3385. PREF_DIRECT_DOWNLOAD_TIMEOUT
  3386. PREF_MIN_SEGMENT_SIZE
  3387. * src/option_processing.cc
  3388. * src/prefs.cc
  3389. * src/prefs.h
  3390. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3391. Integrated HelpItem into OptionParser to ease the workload for adding
  3392. new options. Removed default value from usage text.
  3393. * src/HelpItem.cc: Removed.
  3394. * src/HelpItem.h: Removed.
  3395. * src/HelpItemFactory.cc: Removed.
  3396. * src/HelpItemFactory.h: Removed.
  3397. * src/Makefile.am
  3398. * src/Makefile.in
  3399. * src/NameMatchOptionHandler.h
  3400. * src/OptionHandler.cc
  3401. * src/OptionHandler.h
  3402. * src/OptionHandlerFactory.cc
  3403. * src/OptionHandlerImpl.h
  3404. * src/OptionParser.cc
  3405. * src/OptionParser.h
  3406. * src/TagContainer.cc: Removed.
  3407. * src/TagContainer.h: Removed.
  3408. * src/TaggedItem.cc: Removed.
  3409. * src/TaggedItem.h: Removed.
  3410. * src/main.cc
  3411. * src/option_processing.cc
  3412. * src/usage_text.h
  3413. * src/version_usage.cc
  3414. * test/HelpItemTest.cc: Removed.
  3415. * test/Makefile.am
  3416. * test/Makefile.in
  3417. * test/OptionHandlerTest.cc
  3418. * test/OptionParserTest.cc
  3419. * test/TagContainerTest.cc: Removed.
  3420. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3421. Moved `TransferStat stat = ...' to inside the `if' clause.
  3422. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  3423. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3424. Fixed the bug that a block in a piece is requested when same block is
  3425. already requested to the same peer in end game mode.
  3426. * src/BtRequestFactory.h
  3427. * src/DefaultBtInteractive.cc
  3428. * src/DefaultBtRequestFactory.cc
  3429. * src/DefaultBtRequestFactory.h
  3430. * src/DefaultPieceStorage.cc
  3431. * src/DefaultPieceStorage.h
  3432. * src/PieceStorage.h
  3433. * src/UnknownLengthPieceStorage.cc
  3434. * src/UnknownLengthPieceStorage.h
  3435. * test/DefaultBtRequestFactoryTest.cc
  3436. * test/DefaultPieceStorageTest.cc
  3437. * test/MockBtRequestFactory.h
  3438. * test/MockPieceStorage.h
  3439. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3440. Removed _uploadLength and _downloadLength from PeerSessionResource
  3441. and use PeerStat::_sessionUploadLength and
  3442. PeerStat::_sessionDownloadLength.
  3443. * src/PeerSessionResource.cc
  3444. * src/PeerSessionResource.h
  3445. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3446. Fixed the bug that prefixLength of split bucket which doesn't include
  3447. local node ID is incremented.
  3448. * src/DHTBucket.cc
  3449. * src/DHTBucket.h
  3450. * test/DHTBucketTest.cc
  3451. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3452. Added cookies.sqlite to EXTRA_DIST
  3453. * test/Makefile.am
  3454. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3455. Added Turkish translation. Updated French, German, Russian and
  3456. Simplified Chinese translations. Thanks to all translators.
  3457. * po/LINGUAS
  3458. * po/de.po
  3459. * po/fr.po
  3460. * po/ru.po
  3461. * po/tr.po
  3462. * po/zh_CN.po
  3463. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3464. Added deliminating text to the beginning of the log so that one can find
  3465. where the log starts easily.
  3466. * src/main.cc
  3467. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3468. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  3469. to fix compile error when async DNS is not enabled by configuration.
  3470. * src/AbstractCommand.cc
  3471. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3472. If establishing conneciton to a server is failed, then mark error on
  3473. its ServerStat.
  3474. Added the cause of error to log when error event occurred.
  3475. Moved message string to message.h for translation.
  3476. * src/AbstractCommand.cc
  3477. * src/AbstractCommand.h
  3478. * src/FtpNegotiationCommand.cc
  3479. * src/HttpRequestCommand.cc
  3480. * src/PeerAbstractCommand.cc
  3481. * src/message.h
  3482. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3483. Added the function to get error message from socket.
  3484. * src/SocketCore.cc
  3485. * src/SocketCore.h
  3486. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3487. Added convenient method RequestGroupMan::getOrCreateServerStat()
  3488. * src/RequestGroupMan.cc
  3489. * src/RequestGroupMan.h
  3490. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3491. If error event is received in epoll, then abort download immediately.
  3492. * src/AbstractCommand.cc
  3493. * src/Command.cc
  3494. * src/Command.h
  3495. * src/DownloadEngine.cc
  3496. * src/PeerAbstractCommand.cc
  3497. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3498. Added usage message for --uri-selector, --server-stat-of,
  3499. --server-stat-in, --server-stat-timeout options.
  3500. * src/HelpItemFactory.cc
  3501. * src/usage_text.h
  3502. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3503. Added upper limit of FTP response buffer. The current implementation
  3504. uses 4096bytes as a limit.
  3505. * src/FtpConnection.cc
  3506. * src/FtpConnection.h
  3507. * test/FtpConnectionTest.cc
  3508. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3509. Use non-blocking socket for TCP communication to avoid possible
  3510. blocking due to buffer full.
  3511. * src/AbstractProxyRequestCommand.cc
  3512. * src/FtpConnection.cc
  3513. * src/FtpConnection.h
  3514. * src/FtpNegotiationCommand.cc
  3515. * src/FtpNegotiationCommand.h
  3516. * src/HttpConnection.cc
  3517. * src/HttpConnection.h
  3518. * src/HttpRequestCommand.cc
  3519. * src/InitiatorMSEHandshakeCommand.cc
  3520. * src/InitiatorMSEHandshakeCommand.h
  3521. * src/MSEHandshake.cc
  3522. * src/MSEHandshake.h
  3523. * src/Makefile.am
  3524. * src/PeerConnection.cc
  3525. * src/PeerConnection.h
  3526. * src/PeerInteractionCommand.cc
  3527. * src/PeerListenCommand.cc
  3528. * src/ReceiverMSEHandshakeCommand.cc
  3529. * src/ReceiverMSEHandshakeCommand.h
  3530. * src/SocketBuffer.cc
  3531. * src/SocketBuffer.h
  3532. * src/SocketCore.cc
  3533. * src/SocketCore.h
  3534. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3535. Call setStatusRealtime() in constructor.
  3536. * src/RealtimeCommand.cc
  3537. * src/RealtimeCommand.h
  3538. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3539. Call Download::setNoWait(true) to execute newly created command without
  3540. a pause.
  3541. * src/AbstractCommand.cc
  3542. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3543. Added --max-file-not-found=NUM option. If aria2 receives `file not
  3544. found' error from HTTP/FTP server NUM times without getting single
  3545. bytes of data, then force the download to fail.
  3546. Basically aria2 tris all URIs available. So if long list of URIs are
  3547. specified in Metalink, then aria2 will take a long time to fail
  3548. eventually if all URIs are outdated. This option eases this situation
  3549. to limit the number of servers to try.
  3550. * src/FtpNegotiationCommand.cc
  3551. * src/HelpItemFactory.cc
  3552. * src/HttpResponseCommand.cc
  3553. * src/OptionHandlerFactory.cc
  3554. * src/PeerStat.h
  3555. * src/RequestGroup.cc
  3556. * src/RequestGroup.h
  3557. * src/SegmentMan.cc
  3558. * src/SegmentMan.h
  3559. * src/option_processing.cc
  3560. * src/prefs.cc
  3561. * src/prefs.h
  3562. * src/usage_text.h
  3563. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3564. Fixed the bug that bulkReceiveResponse() reads all received data as a
  3565. response even if more than one response is in it.
  3566. * src/FtpConnection.cc
  3567. * src/FtpConnection.h
  3568. * test/FtpConnectionTest.cc
  3569. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3570. Merged from stable-0.15
  3571. * m4/libcares.m4
  3572. Use pkg-config
  3573. * m4/sqlite3.m4
  3574. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3575. Removed unnecessary if statement.
  3576. * src/DefaultPieceStorage.cc (initPieceStorage)
  3577. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3578. Added --connect-timeout option to specify connect timeout in seconds.
  3579. This option is in effect for HTTP/FTP/proxy server. The timeout for
  3580. connecting to BitTorrent peer is not controlled by this option.
  3581. * src/AbstractProxyRequestCommand.cc
  3582. * src/FtpNegotiationCommand.cc
  3583. * src/HelpItemFactory.cc
  3584. * src/HttpRequestCommand.cc
  3585. * src/OptionHandlerFactory.cc
  3586. * src/option_processing.cc
  3587. * src/prefs.cc
  3588. * src/prefs.h
  3589. * src/usage_text.h
  3590. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3591. Added help message for -R option.
  3592. * src/HelpItemFactory.cc
  3593. * src/usage_text.h
  3594. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3595. Added the message that the time is in local time zone.
  3596. * src/RequestGroup.cc
  3597. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3598. Implemented the ability to get timestamp from remote FTP server using
  3599. MDTM command described in RFC3659.
  3600. * src/FtpConnection.cc
  3601. * src/FtpConnection.h
  3602. * src/FtpNegotiationCommand.cc
  3603. * src/FtpNegotiationCommand.h
  3604. * test/FtpConnectionTest.cc
  3605. * test/Makefile.am
  3606. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3607. Implemented the ability to get timestamp from remote HTTP server and
  3608. apply it to local file. To enable this feature, --remote-time option
  3609. is added. No usage text has been written yet.
  3610. If several servers returns difference timestamp, then aria2 uses latest
  3611. one.
  3612. * src/CopyDiskAdaptor.cc
  3613. * src/CopyDiskAdaptor.h
  3614. * src/DirectDiskAdaptor.cc
  3615. * src/DirectDiskAdaptor.h
  3616. * src/DiskAdaptor.h
  3617. * src/File.cc
  3618. * src/File.h
  3619. * src/HttpHeader.cc
  3620. * src/HttpHeader.h
  3621. * src/HttpResponse.cc
  3622. * src/HttpResponse.h
  3623. * src/HttpResponseCommand.cc
  3624. * src/HttpResponseCommand.h
  3625. * src/MultiDiskAdaptor.cc
  3626. * src/MultiDiskAdaptor.h
  3627. * src/OptionHandlerFactory.cc
  3628. * src/RequestGroup.cc
  3629. * src/RequestGroup.h
  3630. * src/RequestGroupMan.cc
  3631. * src/option_processing.cc
  3632. * src/prefs.cc
  3633. * src/prefs.h
  3634. * test/CopyDiskAdaptorTest.cc
  3635. * test/FileTest.cc
  3636. * test/Makefile.am
  3637. * test/Makefile.in
  3638. * test/MultiDiskAdaptorTest.cc
  3639. * test/TestUtil.cc
  3640. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3641. Fixed the bug that DiskWriterEntry is not created when its
  3642. FileEntry.isRequested() is false and it doesn't share a piece with
  3643. other FileEntries that are requested. This bug causes segmentation fault
  3644. in the end.
  3645. * src/MultiDiskAdaptor.cc
  3646. * src/MultiDiskAdaptor.h
  3647. * src/MultiFileAllocationIterator.cc
  3648. * test/MultiDiskAdaptorTest.cc
  3649. * test/MultiFileAllocationIteratorTest.cc
  3650. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3651. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  3652. called if the number of file entries are greater than max open files.
  3653. * src/AbstractSingleDiskAdaptor.cc
  3654. * src/AbstractSingleDiskAdaptor.h
  3655. * src/DiskAdaptor.h
  3656. * src/MultiDiskAdaptor.cc
  3657. * src/MultiDiskAdaptor.h
  3658. * test/MultiDiskAdaptorTest.cc
  3659. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3660. Added a constuctor that receives struct timeval.
  3661. Added operator<.
  3662. * src/TimeA2.cc
  3663. * src/TimeA2.h
  3664. * test/TimeTest.cc
  3665. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3666. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  3667. * src/CookieParser.cc
  3668. * test/CookieParserTest.cc
  3669. * test/HttpResponseTest.cc
  3670. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3671. Implmented the functions to parse date.
  3672. * src/TimeA2.cc
  3673. * src/TimeA2.h
  3674. * test/TimeTest.cc
  3675. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3676. Added "Firefox3 Cookie" feature to FeatureConfig
  3677. * src/FeatureConfig.cc
  3678. * src/FeatureConfig.h
  3679. * test/FeatureConfigTest.cc
  3680. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3681. Bump up version number to 0.16.0b
  3682. * configure.ac
  3683. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3684. Use pkg-config if is is available.
  3685. * m4/openssl.m4
  3686. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3687. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  3688. * src/BtAnnounce.h
  3689. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3690. If an error occurred with a URI, remove identical URI from remaining
  3691. URI list because it is likely that same error occurred in the end and it
  3692. is waste of time.
  3693. * src/AbstractCommand.cc
  3694. * src/RequestGroup.cc
  3695. * src/RequestGroup.h
  3696. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3697. Removed wrong comment.
  3698. * src/DefaultPeerStorage.cc
  3699. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3700. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  3701. Added return value of getpid() to argument of srand() to achieve more
  3702. randomized value.
  3703. * src/SimpleRandomizer.cc
  3704. * src/SimpleRandomizer.h
  3705. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3706. Contact tracker frequently when the number of connections are 0 and
  3707. download is not finished yet.
  3708. * src/ActivePeerConnectionCommand.cc
  3709. * src/BtAnnounce.h
  3710. * src/DefaultBtAnnounce.cc
  3711. * src/DefaultBtAnnounce.h
  3712. * test/MockBtAnnounce.h
  3713. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3714. Moved threshold values to UTPexExtensionMessage.
  3715. * src/DefaultBtInteractive.cc
  3716. * src/Peer.cc
  3717. * src/Peer.h
  3718. * src/UTPexExtensionMessage.cc
  3719. * src/UTPexExtensionMessage.h
  3720. * test/UTPexExtensionMessageTest.cc
  3721. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3722. Added _incoming member to Peer class and made it true if the peer
  3723. initiated connection. Don't add those peer to UTPex message.
  3724. If extended handshake is received, assign _incoming to false.
  3725. * src/DefaultBtInteractive.cc
  3726. * src/HandshakeExtensionMessage.cc
  3727. * src/Peer.cc
  3728. * src/Peer.h
  3729. * src/PeerListenCommand.cc
  3730. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3731. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  3732. Encoding Decoder. Removed size threshold for turning off on the fly
  3733. inflation because resulting file may or may not be inflated depending
  3734. on the file size and I think it is not expected by users.
  3735. This change fixes segmentation fault when Metalink file contains gzipped
  3736. file and its filesize is provided.
  3737. * src/HttpResponseCommand.cc
  3738. * src/HttpResponseCommand.h
  3739. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3740. Made Cookie immutable.
  3741. * src/Cookie.cc
  3742. * src/Cookie.h
  3743. * src/CookieParser.cc
  3744. * src/CookieParser.h
  3745. * src/CookieStorage.cc
  3746. * test/CookieParserTest.cc
  3747. * test/CookieStorageTest.cc
  3748. * test/NsCookieParserTest.cc
  3749. * test/Sqlite3MozCookieParserTest.cc
  3750. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3751. Removed CookieBox, CookieBoxFactory.
  3752. * src/CookieBox.cc
  3753. * src/CookieBox.h
  3754. * src/CookieBoxFactory.cc
  3755. * src/CookieBoxFactory.h
  3756. * src/Makefile.am
  3757. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3758. Use CookieStorage class instead of CookieBox class.
  3759. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  3760. * src/AbstractProxyRequestCommand.cc
  3761. * src/CookieStorage.cc
  3762. * src/DownloadEngine.cc
  3763. * src/DownloadEngine.h
  3764. * src/HttpConnection.cc
  3765. * src/HttpConnection.h
  3766. * src/HttpRequest.cc
  3767. * src/HttpRequest.h
  3768. * src/HttpRequestCommand.cc
  3769. * src/HttpResponse.cc
  3770. * src/HttpResponseCommand.cc
  3771. * src/HttpSkipResponseCommand.cc
  3772. * src/Makefile.am
  3773. * src/MultiUrlRequestInfo.cc
  3774. * src/Request.cc
  3775. * src/Request.h
  3776. * src/main.cc
  3777. * test/AllTest.cc
  3778. * test/CookieStorageTest.cc
  3779. * test/CookieTest.cc
  3780. * test/HttpRequestTest.cc
  3781. * test/HttpResponseTest.cc
  3782. * test/Makefile.am
  3783. * test/NsCookieParserTest.cc
  3784. * test/Sqlite3MozCookieParserTest.cc
  3785. * test/nscookietest.txt
  3786. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3787. Updated
  3788. * test/Cookies.sqlite
  3789. * test/nscookietest.txt
  3790. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3791. Added tests for CookieStorage::load()
  3792. * test/CookieStorageTest.cc
  3793. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3794. Added CookieStorage class which is based on RFC2109 and manages cookies
  3795. more strictly than CookieBox and CookieBoxFactory class.
  3796. * src/CookieStorage.cc
  3797. * src/CookieStorage.h
  3798. * src/Cookie.cc
  3799. * src/Cookie.h
  3800. * test/CookieStorageTest.cc
  3801. * test/CookieTest.cc
  3802. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3803. Fixed the bug that commands are created more than the number of pieces.
  3804. * src/RequestGroup.cc
  3805. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3806. Fixed infinite loop bug in FTP when SIZE command failed.
  3807. * src/FtpNegotiationCommand.cc
  3808. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3809. Removed DirectDiskAdaptorTest.h
  3810. * test/Makefile.am
  3811. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3812. Fixed chunk checksum validation cannot detect trailing garbage data.
  3813. BUG#2074141
  3814. * src/AbstractSingleDiskAdaptor.cc
  3815. * src/AbstractSingleDiskAdaptor.h
  3816. * src/CheckIntegrityEntry.cc
  3817. * src/CheckIntegrityEntry.h
  3818. * src/DiskAdaptor.h
  3819. * src/MultiDiskAdaptor.cc
  3820. * src/MultiDiskAdaptor.h
  3821. * src/RequestGroup.cc
  3822. * test/DirectDiskAdaptorTest.cc
  3823. * test/MultiDiskAdaptorTest.cc
  3824. * test/TestUtil.cc
  3825. * test/TestUtil.h
  3826. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3827. Bump up version number of dht.dat file to 3. In version 3 format, time
  3828. is stored in 64bit, network byte order.
  3829. New build can load old format(version 2) but it saves the file in new
  3830. format. It means once you used new build, your dht.dat becomes
  3831. incompatible with older build.
  3832. * src/DHTRoutingTableDeserializer.cc
  3833. * src/DHTRoutingTableSerializer.cc
  3834. * test/DHTRoutingTableSerializerTest.cc
  3835. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3836. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  3837. * test/Makefile.am
  3838. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3839. Bump up version number of .aria2 control file to 0001.
  3840. New aria2 can still load version 0000 file but it saves the file in
  3841. version 0001 format. It means that new aria2 can resume download
  3842. started by old aria2 but the opposite is not true.
  3843. * src/DefaultBtProgressInfoFile.cc
  3844. * src/DefaultBtProgressInfoFile.h
  3845. * test/DefaultBtProgressInfoFileTest.cc
  3846. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3847. Added ntoh64 and hton64 as inline functions.
  3848. * src/Util.cc
  3849. * test/UtilTest.cc
  3850. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3851. Added sqlite3 depenency and Firefox3 cookie support.
  3852. * README
  3853. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3854. State that firefox3 cookie is supported explicitly in the usage.
  3855. * src/usage_text.h
  3856. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3857. Externalized message.
  3858. * src/RequestGroupMan.cc
  3859. * src/message.h
  3860. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3861. Save temporary file first and rename to the destination on success.
  3862. Added test cases.
  3863. * src/RequestGroupMan.cc
  3864. * test/RequestGroupManTest.cc
  3865. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3866. Fixed the bug that the number of connected peer is exceeding the limit
  3867. (55 by default) in seeding mode.
  3868. Multiplied 0.8 to _maxUploadSpeedLimit.
  3869. * src/ActivePeerConnectionCommand.cc
  3870. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3871. Clear table item.
  3872. * src/Dictionary.cc
  3873. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3874. Fixed error handling of lseek.
  3875. * src/AbstractDiskWriter.cc
  3876. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3877. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  3878. style cookie file.
  3879. * src/usage_text.h
  3880. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3881. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  3882. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  3883. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  3884. * src/Util.cc
  3885. * src/Util.h
  3886. * src/CookieParser.cc
  3887. * test/UtilTest.cc
  3888. * test/CookieParserTest.cc
  3889. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3890. Separate the implementation to load old mozilla format of cookie to
  3891. NsCookieParser class.
  3892. * src/CookieBoxFactory.cc
  3893. * src/CookieBoxFactory.h
  3894. * src/NsCookieParser.cc
  3895. * src/NsCookieParser.h
  3896. * test/NsCookieParserTest.cc
  3897. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3898. Made parse() const
  3899. * src/Sqlite3MozCookieParser.cc
  3900. * src/Sqlite3MozCookieParser.h
  3901. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3902. Added firefox3 cookie support based on the patch submitted by
  3903. tizianomueller.
  3904. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  3905. this functionality.
  3906. * configure.ac
  3907. * m4/sqlite3.m4
  3908. * src/CookieBoxFactory.cc
  3909. * src/CookieBoxFactory.h
  3910. * src/Makefile.am
  3911. * src/Makefile.in
  3912. * src/Sqlite3MozCookieParser.cc
  3913. * src/Sqlite3MozCookieParser.h
  3914. * src/main.cc
  3915. * test/CookieBoxFactoryTest.cc
  3916. * test/Makefile.am
  3917. * test/Makefile.in
  3918. * test/Sqlite3MozCookieParserTest.cc
  3919. * test/badcookies.sqlite
  3920. * test/cookies.sqlite
  3921. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3922. Added Danish and Greek translations.
  3923. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  3924. Great thanks to all translators.
  3925. * po/LINGUAS
  3926. * po/el.po
  3927. * po/da.po
  3928. * po/es.po
  3929. * po/ca.po
  3930. * po/nn.po
  3931. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3932. Fixed man page: --follow-bittorrent should be --follow-torrent
  3933. * doc/aria2c.1.txt
  3934. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3935. Fixed: numCommand is less than the value specified in -C option.
  3936. * src/RequestGroup.cc
  3937. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3938. Fixed occasional assertion failure in PieceSegment.
  3939. Calling PieceStorage::getMissingPiece(size_t) was missing after
  3940. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  3941. creation of duplicate segments and one of the segment was finished then
  3942. assertion failure was caused.
  3943. * src/SegmentMan.cc
  3944. * test/SegmentManTest.cc
  3945. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3946. Added options to load/save the server's performance/status to a file
  3947. and the timeout to drop their data.
  3948. --server-stat-of=FILE specifies the file to which performance data
  3949. is saved.
  3950. --server-stat-if=FILE specifies the file to read previously saved
  3951. by --server-stat-of option. Might be used with --uri-selector=feedback.
  3952. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  3953. TIMEOUT is specified in seconds and the default value is 24hours.
  3954. * src/MultiUrlRequestInfo.cc
  3955. * src/OptionHandlerFactory.cc
  3956. * src/RequestGroupMan.cc
  3957. * src/RequestGroupMan.h
  3958. * src/ServerStatMan.cc
  3959. * src/ServerStatMan.h
  3960. * src/option_processing.cc
  3961. * src/prefs.cc
  3962. * src/prefs.h
  3963. * test/ServerStatManTest.cc
  3964. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3965. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  3966. * src/ServerStatMan.cc
  3967. * src/ServerStatMan.h
  3968. * test/ServerStatManTest.cc
  3969. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3970. Implemented ServerStatMan::load(...) function and its test case.
  3971. * src/ServerStat.cc
  3972. * src/ServerStat.h
  3973. * src/ServerStatMan.cc
  3974. * test/ServerStatManTest.cc
  3975. * test/ServerStatTest.cc
  3976. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3977. Use time_t instead of int32_t. Use int64_t where milli second is
  3978. expected.
  3979. * src/TimeA2.cc
  3980. * src/TimeA2.h
  3981. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3982. Implemented ServerStatMan::save(...) function and its test case.
  3983. * src/ServerStat.cc
  3984. * src/ServerStat.h
  3985. * src/ServerStatMan.cc
  3986. * src/ServerStatMan.h
  3987. * test/ServerStatManTest.cc
  3988. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3989. Now aria2 uses name attribute in Metalink as local filename in
  3990. BitTorrent downloads. BUG#2033999
  3991. * src/BtContext.h
  3992. * src/BtDependency.cc
  3993. * src/DefaultBtContext.cc
  3994. * src/DefaultBtContext.h
  3995. * src/SingleFileDownloadContext.cc
  3996. * src/SingleFileDownloadContext.h
  3997. * test/BtDependencyTest.cc
  3998. * test/DefaultBtContextTest.cc
  3999. * test/MockBtContext.h
  4000. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4001. Added AC_C_BIGENDIAN
  4002. * src/configure.ac
  4003. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4004. Limited numCommand less than or equal to the number of piece.
  4005. * src/RequestGroup.cc
  4006. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4007. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  4008. directive.
  4009. * test/DefaultPieceStorageTest.cc
  4010. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4011. Fixed memory leak in test code
  4012. * test/AnnounceListTest.cc
  4013. * test/DefaultPeerListProcessorTest.cc
  4014. * test/DefaultPeerStorageTest.cc
  4015. * test/MetaFileUtilTest.cc
  4016. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4017. Fixed wrong argument passing to BitfieldMan::isBitSet()
  4018. * src/DefaultPieceStorage.cc
  4019. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4020. Initialized _directIOAllowed
  4021. * src/MultiDiskAdaptor.cc
  4022. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4023. Fixed memory leak
  4024. * src/GZipDecoder.cc
  4025. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4026. Fixed memory leak
  4027. * src/MetalinkParserStateMachine.cc
  4028. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4029. Fixed memory leak
  4030. * src/Dictionary.cc
  4031. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4032. Fixed memory leak
  4033. * src/IteratableChunkChecksumValidator.h
  4034. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4035. Fixed unmatched malloc/free.
  4036. * src/IteratableChunkChecksumValidator.cc
  4037. * src/IteratableChecksumValidator.cc
  4038. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4039. Removed max chunk size check. This change fixes BUG#2040169
  4040. * src/ChunkedDecoder.cc
  4041. * src/ChunkedDecoder.h
  4042. * test/ChunkedDecoderTest.cc
  4043. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4044. Implemented download speed based URI selection algorithm.
  4045. Introduced new option --uri-selector.
  4046. If --uri-selector=feedback is given, aria2 uses download speed observed
  4047. in the previous downloads and chooses fastest server in the URI list.
  4048. Currently at most 10 URIs are considered to introduce randomeness for
  4049. finding better servers. The speed is average download speed in the
  4050. downloads.
  4051. On the other hand, if --uri-selector=inorder is given, which is default,
  4052. URI is tried in order in URI list.
  4053. The usage text for the new option has not been written yet.
  4054. * src/AbstractCommand.cc
  4055. * src/DownloadCommand.cc
  4056. * src/DownloadEngine.cc
  4057. * src/DownloadEngineFactory.cc
  4058. * src/InOrderURISelector.cc
  4059. * src/InOrderURISelector.h
  4060. * src/OptionHandlerFactory.cc
  4061. * src/PeerStat.h
  4062. * src/RequestGroup.cc
  4063. * src/RequestGroup.h
  4064. * src/RequestGroupMan.cc
  4065. * src/RequestGroupMan.h
  4066. * src/SegmentMan.cc
  4067. * src/SegmentMan.h
  4068. * src/ServerStat.cc
  4069. * src/ServerStat.h
  4070. * src/ServerStatMan.cc
  4071. * src/ServerStatMan.h
  4072. * src/ServerStatURISelector.cc
  4073. * src/ServerStatURISelector.h
  4074. * src/URISelector.h
  4075. * src/option_processing.cc
  4076. * src/prefs.cc
  4077. * src/prefs.h
  4078. * test/InOrderURISelectorTest.cc
  4079. * test/RequestGroupManTest.cc
  4080. * test/ServerStatManTest.cc
  4081. * test/ServerStatURISelectorTest.cc
  4082. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4083. * Release 0.15.1+2
  4084. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4085. Bump up version number to 0.15.1+2
  4086. * configure.ac
  4087. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4088. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  4089. * m4/aria2_arg.m4
  4090. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4091. * Release 0.15.1+1
  4092. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4093. Bump up version number to 0.15.1+1
  4094. * configure.ac
  4095. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4096. Fixed the bug that causes segmentaion fault when resuming download
  4097. using metalink without size tag. Reproducible only using HTTP URI.
  4098. * src/HttpResponseCommand.cc
  4099. * src/FtpNegotiationCommand.cc
  4100. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4101. * Release 0.15.1
  4102. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4103. Updated Bulgarian and French translations, thanks to all translators.
  4104. * po/bg.po
  4105. * po/fr.po
  4106. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4107. Bump up version number to 0.15.1
  4108. * configure.ac
  4109. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4110. Avoid repeated call of gettimeofday() when calculating speed.
  4111. * src/SpeedCalc.cc
  4112. * src/SpeedCalc.h
  4113. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4114. Removed writable check when socket's send buffer is full in BitTorrent
  4115. downloads to lower CPU usage.
  4116. * src/PeerInteractionCommand.cc
  4117. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4118. Fixed broken gzip inflation.
  4119. Turn off segmented downloading if gzip content is smaller than or equal
  4120. to 1MiB and inflate the data on the fly, because HTTP response header
  4121. doesn't contain the length of inflated file we can't determin where
  4122. the chunk of data should be written.
  4123. On the other hand, if gzip content is larger than 1MB, then turn off
  4124. on the fly inflation, because some servers returns "content-type: gzip"
  4125. for *.tgz, *.gz files.
  4126. * src/DownloadCommand.cc
  4127. * src/HttpResponseCommand.cc
  4128. * src/HttpResponseCommand.h
  4129. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4130. Applied tizianomueller's patch to fix compile error.
  4131. * test/BitfieldManTest.cc
  4132. * test/BtRequestMessageTest.cc
  4133. * test/DefaultBtContextTest.cc
  4134. * test/DefaultDiskWriterTest.cc
  4135. * test/DefaultPieceStorageTest.cc
  4136. * test/HttpHeaderProcessorTest.cc
  4137. * test/HttpResponseTest.cc
  4138. * test/Metalink2RequestGroupTest.cc
  4139. * test/MetalinkParserControllerTest.cc
  4140. * test/MetalinkProcessorTest.cc
  4141. * test/PeerSessionResourceTest.cc
  4142. * test/UtilTest.cc
  4143. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4144. * Release 0.15.0
  4145. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4146. Reordered src files in POTFILES.in so that usage text appears first.
  4147. * po/POTFILES.in
  4148. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4149. Bump up version number to 0.15.0
  4150. * configure.ac
  4151. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4152. Added Bulgarian translation.
  4153. Updated Catalan, Spanish, French and Japanese translations.
  4154. Thanks to all translators.
  4155. * po/LINGUAS
  4156. * po/bg.po
  4157. * po/ca.po
  4158. * po/es.po
  4159. * po/fr.po
  4160. * po/ja.po
  4161. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4162. Updated feature list. Added libz for dependency section.
  4163. Added a description about unit testing using CppUnit.
  4164. * README
  4165. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4166. Added a test for libz. Quoted where it is necessary.
  4167. * build_test.sh
  4168. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4169. Added GZip to `Enabled Features' list.
  4170. * src/FeatureConfig.cc
  4171. * src/FeatureConfig.h
  4172. * test/FeatureConfigTest.cc
  4173. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4174. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  4175. the transfer has not yet started.
  4176. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  4177. * src/SegmentMan.cc
  4178. * src/SegmentMan.h
  4179. * test/SegmentManTest.cc
  4180. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4181. Cache last calculated average download/upload speed.
  4182. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  4183. cached value.
  4184. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  4185. * src/PeerStat.h
  4186. * src/SpeedCalc.cc
  4187. * src/SpeedCalc.h
  4188. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4189. Call parseUrl directly.
  4190. * src/Request.cc (resetUrl)
  4191. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4192. Supported absolute/relative path in Location header field.
  4193. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  4194. * src/HttpHeader.cc
  4195. * src/HttpHeader.h
  4196. * src/HttpResponse.cc
  4197. * src/HttpSkipResponseCommand.cc
  4198. * src/Request.cc
  4199. * test/HttpHeaderTest.cc
  4200. * test/HttpResponseTest.cc
  4201. * test/RequestTest.cc
  4202. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4203. Changed help text for --load-cookie option.
  4204. * doc/aria2c.1.txt
  4205. * src/usage_text.h
  4206. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4207. Regenerated test/Makefile.in to remove stale ChangeLog.
  4208. * test/Makefile.in
  4209. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4210. Updated po files.
  4211. * po/aria2c.pot
  4212. * po/*.po
  4213. * po/*.gmo
  4214. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4215. Bump up version number to 0.15.0b
  4216. * configure.ac
  4217. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4218. Externalize messages.
  4219. * src/RequestGroupMan.cc
  4220. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  4221. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4222. Use File::exists() instead of File::isFile() to allow non-regular file
  4223. such as block special files.
  4224. * src/AbstractDiskWriter.cc
  4225. * src/MultiDiskWriter.cc
  4226. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4227. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  4228. * src/gai_strerror.h
  4229. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4230. Fixed compile error. Thanks gknauf for the patch.
  4231. * src/asctime_r.c
  4232. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4233. Included asctime_r.h from a2time.h.
  4234. * src/a2time.h
  4235. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4236. Added a message "aria2 doesn't verify signature" to log message when
  4237. signature file is saved.
  4238. * src/RequestGroupMan.cc
  4239. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4240. Added the ability to save signature when download is completed if
  4241. signature is available. The filename of signature file is the path to
  4242. download file followed by ".sig". If it already exists, then signature
  4243. will not be saved.
  4244. * src/RequestGroupMan.cc
  4245. * src/Signature.cc
  4246. * test/SignatureTest.cc
  4247. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4248. Updated the descriptions for --bt-seed-unverified.
  4249. * doc/aria2c.1
  4250. * doc/aria2c.1.html
  4251. * doc/aria2c.1.txt
  4252. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4253. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  4254. that this is not going to verify files using piece hashes.
  4255. * src/HelpItemFactory.cc
  4256. * src/OptionHandlerFactory.cc
  4257. * src/RequestGroup.cc
  4258. * src/option_processing.cc
  4259. * src/prefs.cc
  4260. * src/prefs.h
  4261. * src/usage_text.h
  4262. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4263. Added the ability to retrieve signature from Metalink file.
  4264. A retrieved signature is stored in Signature class and it is held by
  4265. DownloadContext class. Note that aria2 doesn't verify signature.
  4266. * src/DownloadContext.cc
  4267. * src/DownloadContext.h
  4268. * src/Makefile.am
  4269. * src/Makefile.in
  4270. * src/Metalink2RequestGroup.cc
  4271. * src/MetalinkEntry.cc
  4272. * src/MetalinkEntry.h
  4273. * src/MetalinkParserController.cc
  4274. * src/MetalinkParserController.h
  4275. * src/MetalinkParserStateMachine.cc
  4276. * src/MetalinkParserStateMachine.h
  4277. * src/Signature.cc
  4278. * src/Signature.h
  4279. * src/SignatureMetalinkParserState.cc
  4280. * src/SignatureMetalinkParserState.h
  4281. * src/VerificationMetalinkParserState.cc
  4282. * src/VerificationMetalinkParserState.h
  4283. * test/Metalink2RequestGroupTest.cc
  4284. * test/MetalinkParserControllerTest.cc
  4285. * test/MetalinkProcessorTest.cc
  4286. * test/test.xml
  4287. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4288. Close DiskAdaptor after renaming file.
  4289. * src/RequestGroup.cc
  4290. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4291. Corrected indentation
  4292. * src/DefaultBtProgressInfoFile.cc
  4293. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4294. Moved the calls of std::ios::exceptions() inside of try-catch block
  4295. because if an error occurred in constructor of std::fstream, then
  4296. exception is thrown immediately when std::ios::exceptions() is called
  4297. which results unhandled exception and aria2c aborts.
  4298. * src/DefaultBtProgressInfoFile.cc
  4299. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4300. Added the test for the previous change in DefaultBtContext.cc
  4301. * test/DefaultBtContextTest.cc
  4302. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4303. Fixed the bug that causes infinite loop when the number of pieces are
  4304. fewer than allowed fast set size which is 10 by default.
  4305. * src/DefaultBtContext.cc
  4306. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4307. Updated the descriptions for -j, -s. Added --bt-seed.
  4308. * doc/aria2c.1
  4309. * doc/aria2c.1.html
  4310. * doc/aria2c.1.txt
  4311. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4312. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  4313. aria2 seeds previously downloaded files without validating piece hashs.
  4314. * src/HelpItemFactory.cc
  4315. * src/OptionHandlerFactory.cc
  4316. * src/RequestGroup.cc
  4317. * src/option_processing.cc
  4318. * src/prefs.cc
  4319. * src/prefs.h
  4320. * src/usage_text.h
  4321. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4322. Updated DESCRIPTION of man page.
  4323. * doc/aria2c.1
  4324. * doc/aria2c.1.html
  4325. * doc/aria2c.1.txt
  4326. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4327. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  4328. Don't define `struct addrinfo' when __sun is defined.
  4329. * src/getaddrinfo.h
  4330. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4331. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  4332. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  4333. second argument is of type `struct _stati64'. Otherwise it is defined as
  4334. `struct stat'.
  4335. * src/AbstractDiskWriter.cc
  4336. * src/File.cc
  4337. * src/File.h
  4338. * src/a2io.h
  4339. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4340. Fixed the compile error in hurd-i386
  4341. See the original bug report:
  4342. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  4343. * src/a2io.h
  4344. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4345. Code cleanup.
  4346. * src/PeerAbstractCommand.cc
  4347. * src/PeerAbstractCommand.h
  4348. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4349. Removed TransferEncoding.
  4350. * src/DownloadCommand.cc
  4351. * src/DownloadCommand.h
  4352. * src/HttpResponseCommand.cc
  4353. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4354. Updated po files.
  4355. * po/aria2c.pot
  4356. * po/*.po
  4357. * po/*.gmo
  4358. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4359. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  4360. * src/A2STR.cc
  4361. * src/A2STR.h
  4362. * src/ChunkedDecoder.cc
  4363. * src/ChunkedDecoder.h
  4364. * src/ChunkedEncoding.cc: Removed
  4365. * src/ChunkedEncoding.h: Removed
  4366. * src/DownloadCommand.cc
  4367. * src/DownloadCommand.h
  4368. * src/HttpDownloadCommand.cc
  4369. * src/HttpResponse.cc
  4370. * src/HttpResponse.h
  4371. * src/HttpResponseCommand.cc
  4372. * src/HttpSkipResponseCommand.cc
  4373. * src/HttpSkipResponseCommand.h
  4374. * src/Makefile.am
  4375. * src/TransferEncoding.h: Removed
  4376. * test/ChunkedDecoderTest.cc
  4377. * test/ChunkedEncodingTest.cc: Removed
  4378. * test/HttpResponseTest.cc
  4379. * test/Makefile.am
  4380. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4381. Use append instead of insert.
  4382. * src/GZipDecoder.cc
  4383. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4384. Updated doc
  4385. * src/Decoder.h
  4386. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4387. Updated usage text for -s option.
  4388. * src/usage_text.h
  4389. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4390. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  4391. * src/Request.cc
  4392. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4393. Cleaned up configure.ac.
  4394. * configure.ac
  4395. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4396. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  4397. AC_ARG_ENABLE.
  4398. * configure.ac
  4399. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4400. Added gzip, deflate decoding support in HTTP using libz. If compiled
  4401. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  4402. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  4403. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  4404. fly and writes decoded data to a local disk.
  4405. * README
  4406. * README.html
  4407. * configure.ac
  4408. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  4409. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  4410. * m4/libz.m4
  4411. * src/Decoder.h
  4412. * src/DownloadCommand.cc
  4413. * src/DownloadCommand.h
  4414. * src/Exception.h
  4415. * src/GZipDecoder.cc
  4416. * src/GZipDecoder.h
  4417. * src/HttpHeader.cc
  4418. * src/HttpHeader.h
  4419. * src/HttpRequest.cc
  4420. * src/HttpRequest.h
  4421. * src/HttpResponse.cc
  4422. * src/HttpResponse.h
  4423. * src/HttpResponseCommand.cc
  4424. * src/Makefile.am
  4425. * test/GZipDecoderTest.cc
  4426. * test/HttpRequestTest.cc
  4427. * test/HttpResponseTest.cc
  4428. * test/Makefile.am
  4429. * test/Makefile.in
  4430. * test/gzip_decode_test.gz
  4431. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4432. Clarified usage of -j option.
  4433. * src/usage_text.h
  4434. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4435. Disabled getting size from the response of RETR.
  4436. If SIZE command failed, then disable resuming and segmented downloading.
  4437. * src/FtpConnection.cc
  4438. * src/FtpConnection.h
  4439. * src/FtpNegotiationCommand.cc
  4440. * src/FtpNegotiationCommand.h
  4441. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4442. Use digits to find first byte of file size, which makes the intention
  4443. of the code clearer.
  4444. * src/FtpConnection.cc
  4445. Don't call validateTotalLength() when size is 0.
  4446. * src/FtpNegotiationCommand.cc
  4447. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4448. Updated po files.
  4449. * po/aria2c.pot
  4450. * po/*.gmo
  4451. * po/*.po
  4452. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4453. Clarified usage text for --split option.
  4454. * src/usage_text.h
  4455. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4456. Bump up version number to 0.15.0dev. "dev" means "development"
  4457. version, which means I started the development of the next release!
  4458. * src/configure.ac
  4459. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4460. If FTP server returns negative response with REST raw command and
  4461. requested range is not 0, throw exception. If requested range is 0,
  4462. continue download a file from 0 byte.
  4463. * src/FtpNegotiationCommand.cc
  4464. * src/FtpNegotiationCommand.h
  4465. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4466. Supported FTP server which don't recognize SIZE raw command.
  4467. If SIZE raw command is failed, aria2 will try to get file size
  4468. from the response of RETR raw command. If both attempts are failed,
  4469. then resuming and segmented downloading are disabled.
  4470. * src/FtpConnection.cc
  4471. * src/FtpConnection.h
  4472. * src/FtpNegotiationCommand.cc
  4473. * src/FtpNegotiationCommand.h
  4474. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4475. * Release 0.14.0+1
  4476. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4477. Bump up version number to 0.14.0+1
  4478. * src/configure.ac
  4479. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4480. Fixed the code that refers static member variable from non-static
  4481. context.
  4482. * src/DefaultPeerStorage.cc
  4483. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4484. * Release 0.14.0
  4485. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4486. Added build test script
  4487. * build_test.sh
  4488. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4489. Updated ja.po
  4490. * src/ja.po
  4491. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4492. Bump up version number to 0.14.0
  4493. * src/configure.ac
  4494. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4495. Updated ja.po and fr.po. Great thanks for french translators and
  4496. Sebastien WILLEMIJNS.
  4497. * po/fr.po
  4498. * po/ja.po
  4499. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4500. Added configure option to enable/disable epoll support.
  4501. * configure.ac
  4502. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4503. Updated man page.
  4504. * doc/aria2c.1.txt
  4505. * doc/aria2c.1
  4506. * doc/aria2c.1.html
  4507. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4508. Added missing default value '5' to the usage of --split option.
  4509. * src/HelpItemFactory.cc
  4510. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4511. Filled up pieces based on the number of missing blocks, rather than
  4512. simplay the number of piece * block length.
  4513. * src/BtRequestFactory.h
  4514. * src/DefaultBtInteractive.cc
  4515. * src/DefaultBtInteractive.h
  4516. * src/DefaultBtRequestFactory.cc
  4517. * src/DefaultBtRequestFactory.h
  4518. * src/Piece.cc
  4519. * src/Piece.h
  4520. * test/BitfieldManTest.cc
  4521. * test/DefaultBtRequestFactoryTest.cc
  4522. * test/MockBtRequestFactory.h
  4523. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4524. Made _epEvents a member variable.
  4525. * src/DownloadEngine.cc
  4526. * src/DownloadEngine.h
  4527. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4528. Cancel download if http redirect is bounded more than 20 times.
  4529. * src/AbstractCommand.cc
  4530. * src/HttpSkipResponseCommand.cc
  4531. * src/Request.cc
  4532. * src/Request.h
  4533. * test/RequestTest.cc
  4534. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4535. Fixed unhandled exception(removed keyword `new').
  4536. * src/SocketCore.cc (initEPOLL)
  4537. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4538. Removed visit(const MetaEntry*)
  4539. * src/MetaEntryVisitor.h:
  4540. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  4541. and made them virtual.
  4542. * src/BencodeVisitor.h
  4543. * src/BencodeVisitor.cc
  4544. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4545. Updated po files.
  4546. * po/aria2c.pot
  4547. * po/*.po
  4548. * po/*.gmo
  4549. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4550. Moved the call setWriteCheckSocket inside the previous clause to reduce
  4551. the number of socket to watch out.
  4552. * src/PeerInteractionCommand.cc
  4553. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4554. When there is not enough space in disk when writing a chunk of data,
  4555. aria2 now prints the message to the console to warn user and aborts
  4556. its download. Not all downloads are canceled because some downloads
  4557. may use another disk or partition. BUG#1640332
  4558. * src/AbstractDiskWriter.cc
  4559. * src/PeerAbstractCommand.cc
  4560. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  4561. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  4562. setHaltRequested(true) to cancel download.
  4563. * src/PeerInteractionCommand.h
  4564. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4565. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  4566. socket from int to sock_t as sockets are unsigned in Windows.
  4567. For AsyncNameResolver, DownloadEngine, I did additional modification
  4568. for the portion of the code changed according to epoll support.
  4569. I defined sock_t in a2netcompat.h to use sock_t without including
  4570. SocketCore.h.
  4571. * src/AsyncNameResolver.cc
  4572. * src/AsyncNameResolver.h
  4573. * src/DownloadEngine.cc
  4574. * src/DownloadEngine.h
  4575. * src/SocketCore.cc
  4576. * src/SocketCore.h
  4577. * src/a2netcompat.h
  4578. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4579. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  4580. changes in the patch were applied.
  4581. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  4582. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  4583. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  4584. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4585. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  4586. a2io.h and common.h were modified.
  4587. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  4588. MinGW.
  4589. * src/common.h: Changed off_t to 64 bit in MinGW.
  4590. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4591. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  4592. only a2netcompat.h is modified.
  4593. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  4594. directives.
  4595. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4596. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  4597. only gai_strerror.h is modified.
  4598. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  4599. winsock errors in MinGW.
  4600. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4601. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  4602. follow sources are applied.
  4603. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  4604. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  4605. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  4606. I included locale.h from Platform.cc.
  4607. * src/main.cc: Moved common setup/teardown code to Platform class.
  4608. * test/AllTest.cc: Use Platform class.
  4609. Set locale to C in AllTest.cc to prevent the messages to be localized.
  4610. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4611. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  4612. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  4613. * test/HttpRequestTest.cc: Casted to off_t where it should.
  4614. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4615. Applied Ross's aria2-0.13.2+1-mingw.patch and
  4616. aria2-0.13.2+1-mingw-2.patch.
  4617. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  4618. systems which don't have termious.h. I moved the directive inside of
  4619. if(isTTY) { ... clause so that line is wiped out without termious.h.
  4620. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  4621. anyway.
  4622. * src/asctime_r.h
  4623. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  4624. I added 2nd argument to the prototype declaration.
  4625. * src/StringFormat.cc: Get rid of vasprintf.
  4626. * src/getaddrinfo.h: Fixed constants.
  4627. * configure.ac: Added the check for asctime_r function.
  4628. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  4629. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4630. Added writable test for Socket when the sending message is in progress.
  4631. Usually the sending message is piece message. Without wriable check,
  4632. upload latency is dropped to more than 1sec.
  4633. * src/PeerInteractionCommand.cc
  4634. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4635. Create only requested files and files which shares a piece with
  4636. requested file in multi-torrent downloads. Directory structures are
  4637. also created in the same rule.
  4638. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  4639. DiskWriterEntry as in the previous implementation.
  4640. * src/MultiDiskWriter.cc
  4641. * src/MultiFileAllocationIterator.cc
  4642. * src/MultiFileAllocationIterator.h
  4643. * test/MultiFileAllocationIteratorTest.cc
  4644. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4645. Commented out -lprofiler
  4646. * src/Makefile.am
  4647. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4648. Bump up version number to 0.14.0b.
  4649. * src/configure.ac
  4650. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4651. Actively establish connection to peers in seeding, when peer cache
  4652. is not full and max upload speed limit is not reached.
  4653. * src/ActivePeerConnectionCommand.cc
  4654. * src/ActivePeerConnectionCommand.h
  4655. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4656. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  4657. to make room more fleshy, recently found peers.
  4658. Peer::_badConditionStartTime is not used anymore. Consider to remove
  4659. it.
  4660. * src/DefaultPeerStorage.cc
  4661. * test/DefaultPeerStorageTest.cc
  4662. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4663. Returns cached data only when the previous receiveHandshake() is called
  4664. with peek = true.
  4665. * src/PeerConnection.cc (receiveHandshake)
  4666. * src/PeerConnection.h (receiveHandshake)
  4667. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4668. Changed default value of -s option from 1 to 5.
  4669. Also max value of -s option is changed from 5 to 16.
  4670. * src/HelpItemFactory.cc
  4671. * src/OptionHandlerFactory.cc
  4672. * src/option_processing.cc
  4673. * src/usage_text.h
  4674. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4675. Changed -s options behavior. Now it means the number of connections
  4676. made simultaneously in each http/ftp download.
  4677. If 1 URL is specified, the behavior is the same with old implementation.
  4678. If -s N is given and more than N URLs are specified, first N URLs are
  4679. used and remaining URLs are used for backup. If less than N URLs are
  4680. specified, some of URLs are used more than once so that totally N
  4681. connections are made simultaneously.
  4682. * src/main.cc
  4683. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4684. Included missing iosfwd or ostream header.
  4685. * src/RequestGroupMan.cc
  4686. * src/TaggedItem.cc
  4687. * src/TaggedItem.h
  4688. * src/Util.cc
  4689. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4690. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  4691. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  4692. * src/HttpConnection.cc: Included missing sstream.
  4693. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4694. Added --bt-max-open-files option.
  4695. * src/DefaultPieceStorage.cc
  4696. * src/HelpItemFactory.cc
  4697. * src/MultiDiskAdaptor.cc
  4698. * src/MultiDiskAdaptor.h
  4699. * src/OptionHandlerFactory.cc
  4700. * src/option_processing.cc
  4701. * src/prefs.cc
  4702. * src/prefs.h
  4703. * src/usage_text.h
  4704. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4705. Fixed the bug that aria2 aborts when a path to a directory is given
  4706. in command-line.
  4707. * src/ProtocolDetector.cc
  4708. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4709. Limited the number files opened in each BitTorrent download. The default
  4710. value is 100. The option to change this value will be added.
  4711. * src/MultiDiskAdaptor.cc
  4712. * src/MultiDiskAdaptor.h
  4713. * src/MultiFileAllocationIterator.cc
  4714. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4715. Fixed the bug that HTTP downloads don't start with old libraries.
  4716. * src/HttpHeaderProcessor.cc
  4717. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4718. Use empty() instead of size() > 0.
  4719. * src/HttpConnection.cc
  4720. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4721. Drop connection if the incoming peer ID is the same with localhost's
  4722. one. The previous implementation drops connection when incoming peer's
  4723. IP address is the same with localhost's one.
  4724. * src/PeerListenCommand.cc
  4725. * src/DefaultBtInteractive.cc
  4726. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4727. Returns cached data without checking whether socket is readable
  4728. if the cache is available.
  4729. * src/PeerConnection.cc (receiveHandshake)
  4730. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4731. Included stdint.h
  4732. * src/common.h
  4733. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4734. Removed duplicate HAVE_GETTIMEOFDAY
  4735. * src/Makefile.am
  4736. * src/Makefile.in
  4737. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4738. Use interval as a minInterval when minInterval is not supplied.
  4739. * src/DefaultBtAnnounce.cc
  4740. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4741. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  4742. attempt is failed, then 2nd attempt get kicked out more quickly.
  4743. And it is now static const member of DefaultBtAnnounce.
  4744. * src/DefaultBtAnnounce.h
  4745. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4746. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  4747. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  4748. * src/ActivePeerConnectionCommand.cc
  4749. * src/BtConstants.h
  4750. * src/BtRuntime.h
  4751. * src/DHTGetPeersCommand.cc
  4752. * src/DefaultBtAnnounce.cc
  4753. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  4754. BtRuntime::MAX_PEERS.
  4755. * src/DefaultPeerStorage.h
  4756. * src/InitiatorMSEHandshakeCommand.cc
  4757. * src/PeerInitiateConnectionCommand.cc
  4758. * src/PeerInteractionCommand.cc
  4759. * src/PeerReceiveHandshakeCommand.cc
  4760. * src/TrackerWatcherCommand.cc
  4761. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4762. Always Connect to _numNewConnection
  4763. * src/ActivePeerConnectionCommand.cc
  4764. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4765. Made `begin' unsigned int.
  4766. * src/GrowSegment.h
  4767. * src/Piece.cc
  4768. * src/Piece.h
  4769. * src/PiecedSegment.cc
  4770. * src/PiecedSegment.h
  4771. * src/Segment.h
  4772. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4773. Calculate piece hash when data is arrived if the data is arrived in
  4774. order. This removes additional read operation for hash calculation.
  4775. If the data is arrived in out of order, the hash is calucated when the
  4776. piece is completed. This is the same behavior as the old implementation.
  4777. * src/BtPieceMessage.cc
  4778. * src/DefaultBtProgressInfoFile.cc
  4779. * src/DefaultPieceStorage.cc
  4780. * src/DownloadCommand.cc
  4781. * src/DownloadCommand.h
  4782. * src/DownloadEngine.cc
  4783. * src/GrowSegment.cc
  4784. * src/GrowSegment.h
  4785. * src/Piece.cc
  4786. * src/Piece.h
  4787. * src/PiecedSegment.cc
  4788. * src/PiecedSegment.h
  4789. * src/Segment.h
  4790. * test/PieceTest.cc
  4791. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4792. Try to keep the ordering of outgoing piece message.
  4793. * src/DefaultBtMessageDispatcher.cc
  4794. (DefaultBtMessageDispatcher::sendMessages)
  4795. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4796. Fixed busy loop when error/hup epoll events occur.
  4797. * src/AbstractCommand.cc
  4798. * src/PeerAbstractCommand.cc
  4799. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4800. Added --bt-request-peer-speed-limit option, which was a constant
  4801. SLOW_SPEED_THRESHOLD.
  4802. * src/ActivePeerConnectionCommand.cc
  4803. * src/ActivePeerConnectionCommand.h
  4804. * src/BtConstants.h
  4805. * src/HelpItemFactory.cc
  4806. * src/OptionHandlerFactory.cc
  4807. * src/PeerReceiveHandshakeCommand.cc
  4808. * src/option_processing.cc
  4809. * src/prefs.cc
  4810. * src/prefs.h
  4811. * src/usage_text.h
  4812. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4813. Removed repeated call of getTopDirPath(). Instead, call it once and
  4814. cache the result.
  4815. * src/MultiDiskAdaptor.cc
  4816. * src/MultiDiskAdaptor.h
  4817. (mkdir, openFile, initAndOpenFile, openExistingFile)
  4818. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4819. Fixed compile error on debian etch.
  4820. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  4821. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  4822. it is undefined.
  4823. * src/Util.cc (ULLONG_MAX)
  4824. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4825. Added epoll support. Use epoll if it is available. If not, use select.
  4826. When async dns is enabled in compile time, epoll support is enabled
  4827. only when aria2 is built with c-ares. This condition statement is
  4828. defined in a2io.h.
  4829. Currently aria2 supports both c-ares and ares, but ares is maintained
  4830. for quite a while and debian already has c-ares package, ares support
  4831. will be dropped in the future version.
  4832. * configure.ac
  4833. * src/AbstractCommand.cc
  4834. * src/AsyncNameResolver.cc
  4835. * src/AsyncNameResolver.h
  4836. * src/Command.cc
  4837. * src/Command.h
  4838. * src/DownloadEngine.cc
  4839. * src/DownloadEngine.h
  4840. * src/PeerAbstractCommand.cc
  4841. * src/SocketCore.cc
  4842. * src/SocketCore.h
  4843. * src/a2io.h
  4844. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4845. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  4846. directive.
  4847. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4848. Do not do write operation to /dev/null file.
  4849. * src/LogFactory.cc
  4850. * src/SimpleLogger.cc
  4851. Replaced vasprintf with vsnprintf
  4852. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  4853. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4854. * src/BtRequestMessage.cc
  4855. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  4856. for segmentation fault caused by previous commit.
  4857. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4858. Reduced the usage of gettimeofday().
  4859. * src/DefaultBtMessageDispatcher.cc
  4860. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  4861. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4862. * src/RequestSlot.cc
  4863. * src/RequestSlot.h
  4864. (RequestSlot::isTimeout)
  4865. Made RequestSlot have a reference to Piece object to avoid find
  4866. Piece repeatedly.
  4867. * src/DefaultBtMessageDispatcher.cc
  4868. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4869. * src/RequestSlot.cc
  4870. * src/RequestSlot.h
  4871. (RequestSlot::getPiece)
  4872. * test/DefaultBtMessageDispatcherTest.cc
  4873. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4874. * src/TimeA2.cc
  4875. * src/TimeA2.h
  4876. (Time::difference): New function.
  4877. (Time::elapsed): Done optimization.
  4878. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4879. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  4880. directive.
  4881. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4882. * src/option_processing.cc: Added missing `defined' keyword to #if
  4883. directive.
  4884. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4885. Bump up version number to 0.13.2+1
  4886. * src/configure.ac
  4887. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4888. Refactored broken outstanding piece handling.
  4889. * src/DefaultPieceStorage.cc
  4890. * src/DefaultPieceStorage.h
  4891. * src/Piece.cc
  4892. * src/Piece.h
  4893. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4894. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  4895. name collision of static variable and predefined macro.
  4896. * src/BtContext.cc
  4897. * src/BtContext.h
  4898. * src/CookieBoxFactory.cc
  4899. * src/CookieBoxFactory.h
  4900. * src/CookieParser.cc
  4901. * src/CookieParser.h
  4902. * src/DefaultBtContext.cc
  4903. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4904. * src/RequestGroup.cc
  4905. (RequestGroup::createInitialCommand): Use empty() instead of size().
  4906. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4907. * Release 0.13.2
  4908. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4909. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  4910. * po/fr.po
  4911. * po/ja.po
  4912. * po/aria2c.pot
  4913. * po/*.po
  4914. * po/*.gmo
  4915. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4916. Bump up version number to 0.13.2
  4917. * src/configure.ac
  4918. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4919. Refactord.
  4920. * src/RequestGroupMan.cc
  4921. (removeStoppedGroup)
  4922. (fillRequestGroupFromReserver)
  4923. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4924. Fixed compile error on Ubuntu.
  4925. * src/BtPieceMessage.cc
  4926. * src/MessageDigestHelper.cc
  4927. * src/Util.cc
  4928. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4929. Fixed compile error when configured with --disable-bittorrent
  4930. * test/DownloadHandlerFactoryTest.cc
  4931. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4932. Done make update-po
  4933. * po/aria2c.pot
  4934. * po/*.po
  4935. * po/*.gmo
  4936. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4937. Bump up version number to 0.13.2rc.
  4938. * src/configure.ac
  4939. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4940. Made option name bold. Updated SYNOPSIS to make it more readable.
  4941. * doc/aria2c.1.txt
  4942. * doc/aria2c.1
  4943. * doc/aria2c.1.html
  4944. * src/version_usage.cc
  4945. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4946. Refactored. Use std::string instead of size and char*.
  4947. * Data.cc
  4948. * Data.h
  4949. * test/Data.cc
  4950. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4951. Added trimSelf(). Rewritten trim() to use trimSelf().
  4952. * Util.cc
  4953. * Util.h
  4954. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4955. * src/ChunkChecksum.h (getChecksum): Return const reference.
  4956. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4957. Fixed compile error when configured with --disable-metalink.
  4958. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  4959. * test/FeatureConfigTest.cc
  4960. * test/DownloadHandlerFactoryTest.cc
  4961. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4962. Fixed compile error when configured with --without-gnutls
  4963. --without-openssl
  4964. * src/main.cc
  4965. * test/DefaultBtProgressInfoFileTest.cc
  4966. * test/SegmentManTest.cc
  4967. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4968. Fixed compile error with OpenSSL.
  4969. * src/IteratableChunkChecksumValidator.cc
  4970. * src/LibsslDHKeyExchange.h
  4971. * src/MessageDigestHelper.cc
  4972. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4973. Revert the default value of --max-concurrent-downloads to 5.
  4974. Revert the default value of --metalink-servers to 5.
  4975. Man pages was also updated.
  4976. * src/option_processing.cc
  4977. * doc/aria2c.1.txt
  4978. * doc/aria2c.1.html
  4979. * doc/aria2c.1
  4980. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4981. Returns const reference:
  4982. DownloadContext::getPieceHash, DownloadContext::getName,
  4983. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  4984. BtContext::getInfoHashAsString,
  4985. * src/BtContext.h
  4986. * src/DefaultBtContext.cc
  4987. * src/DefaultBtContext.h
  4988. * src/DownloadContext.h
  4989. * src/SingleFileDownloadContext.h
  4990. * test/MockBtContext.h
  4991. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4992. * src/RequestGroup.h (getDir): Removed.
  4993. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4994. Returns const reference. The internal urlencode function was optimized
  4995. a little bit.
  4996. * src/Request.cc
  4997. * src/Request.h
  4998. * src/HttpRequest.cc
  4999. * src/HttpRequest.h
  5000. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5001. Defined option name and possible values as std::string to reduce
  5002. temporary string object creation in runtime.
  5003. * src/HelpItemFactory.cc
  5004. * src/LogFactory.cc
  5005. * src/Option.cc
  5006. * src/OptionHandlerFactory.cc
  5007. * src/option_processing.cc
  5008. * src/prefs.cc
  5009. * src/prefs.h
  5010. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5011. Return const reference.
  5012. * src/DownloadHandlerConstants.cc
  5013. * src/DownloadHandlerConstants.h
  5014. (getMetalinkExtensions)
  5015. (getMetalinkContentTypes)
  5016. (getBtExtensions)
  5017. (getBtContentTypes)
  5018. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5019. * src/HttpHeader.cc (get): Rewritten.
  5020. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5021. Make HttpHeader::getFirst(...) return const reference.
  5022. * src/HttpHeader.cc
  5023. * src/HttpHeader.h
  5024. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5025. Use Option::getAsBool(...) instead of Option::get(...) and compare
  5026. it with V_TRUE.
  5027. * src/DefaultPieceStorage.cc
  5028. * src/DownloadCommand.cc
  5029. * src/FtpNegotiationCommand.cc
  5030. * src/HttpRequest.cc
  5031. * src/InitiateConnectionCommand.cc
  5032. * src/RequestGroup.cc
  5033. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5034. Made Option::get(...) return const reference of std::string.
  5035. * src/Option.cc
  5036. * src/Option.h
  5037. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5038. Replaced std:copy with insert.
  5039. * src/DefaultBtMessageDispatcher.cc
  5040. * src/DefaultPieceStorage.cc
  5041. * src/DownloadEngineFactory.cc
  5042. * src/RequestGroup.cc
  5043. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5044. Included SocketCore.h to fix compiler warning.
  5045. * src/InitiateConnectionCommand.cc
  5046. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5047. Put piece selection strategy algorithm to RarestPieceSelector class,
  5048. Added a switch to choose whether randomized selection so that unit
  5049. tests emit same results in, possibly, win32.
  5050. * src/DefaultPieceStorage.cc
  5051. * src/DefaultPieceStorage.h
  5052. * src/RarestPieceSelector.cc
  5053. * src/RarestPieceSelector.h
  5054. * test/DefaultPieceStorageTest.cc
  5055. * test/RarestPieceSelectorTest.cc
  5056. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5057. Don't pool connection if HTTP proxy is enabled.
  5058. * src/FtpFinishDownloadCommand.cc
  5059. * src/FtpNegotiationCommand.cc
  5060. * src/HttpSkipResponseCommand.cc
  5061. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5062. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  5063. * src/AbstractCommand.cc
  5064. * src/AbstractCommand.h
  5065. * src/ActivePeerConnectionCommand.cc
  5066. * src/FtpInitiateConnectionCommand.cc
  5067. * src/HttpInitiateConnectionCommand.cc
  5068. * src/InitiateConnectionCommandFactory.cc
  5069. * src/PeerAbstractCommand.cc
  5070. * src/PeerAbstractCommand.h
  5071. * src/PeerInitiateConnectionCommand.cc
  5072. * src/TrackerWatcherCommand.cc
  5073. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5074. Sort RequestSlot in ascending order and manipulate them using
  5075. lower_bound.
  5076. * src/DefaultBtMessageDispatcher.cc
  5077. * src/DefaultBtMessageDispatcher.h
  5078. (getMessageQueue): Added const qualifier.
  5079. (getRequestSlots): Added const qualifier.
  5080. (sendMessages): Use empty() instead of size().
  5081. (doCancelSendingPieceAction): Use HandleEvent object.
  5082. (doAbortOutstandingRequestAction): Rewritten.
  5083. (doChokedAction): Rewritten.
  5084. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  5085. (isOutstandingRequest): Rewritten.
  5086. (getOutstandingRequest): Rewritten.
  5087. (removeOutstandingRequest): Rewritten.
  5088. (addOutstandingRequest): Rewritten.
  5089. * src/RequestSlot.cc
  5090. * src/RequestSlot.h
  5091. (operator=): Rewritten.
  5092. (operator!=): New function.
  5093. (operator<): New function.
  5094. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5095. * src/DefaultBtRequestFactory.cc
  5096. (doChokedAction): Rewritten.
  5097. (removeCompletedPiece): Rewritten.
  5098. (removeTargetPiece): Rewritten.
  5099. (createRequestMessages): Added the debug log.
  5100. (createRequestMessagesOnEndGame: Added the debug log.
  5101. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5102. Added the debug log message.
  5103. * src/BtPieceMessage.cc (doReceivedAction)
  5104. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5105. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  5106. used lower_bound to process them rather than linear search.
  5107. * src/DHTPeerAnnounceStorage.cc
  5108. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5109. Call subtractPieceStats from ~PeerInteractionCommand only when the
  5110. peer has at least one completed piece.
  5111. * src/Peer.cc
  5112. * src/Peer.h
  5113. * src/PeerInteractionCommand.cc
  5114. * src/PeerSessionResource.cc
  5115. * src/PeerSessionResource.h
  5116. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5117. Removed unnecessary sorting
  5118. * src/DefaultPieceStorage (DefaultPieceStorage)
  5119. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5120. Rewritten the portion of the code that mangaes allowed fast indexes.
  5121. * src/PeerSessionResource.cc
  5122. * src/PeerSessionResource.h
  5123. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5124. Removed the invalid string including '\r' from ru.po and
  5125. did make update-po.
  5126. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5127. Added --log-level and --summary-interval to man page.
  5128. * doc/aria2c.1.txt
  5129. * doc/aria2c.1.html
  5130. * doc/aria2c.1
  5131. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5132. Added --log-level option to specify log level. Log messages under
  5133. the specified level are not output. Default value is `debug'.
  5134. * src/HelpItemFactory.cc
  5135. * src/LogFactory.cc
  5136. * src/LogFactory.h
  5137. * src/Logger.h
  5138. * src/OptionHandlerFactory.cc
  5139. * src/SimpleLogger.cc
  5140. * src/SimpleLogger.h
  5141. * src/main.cc
  5142. * src/option_processing.cc
  5143. * src/prefs.h
  5144. * src/usage_text.h
  5145. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5146. Print download progress summary of all parallel downloads in specified
  5147. interval, default 60 secs. While aria2 could download several files
  5148. in parallel (see -j option), it displayed just first download progress,
  5149. and the other downloads are hidden from the users. This new feature
  5150. prints all downloads currently in-progress to the console so that you
  5151. can check the status of all downloads. The interval can be adjusted
  5152. by --summary-interval option.
  5153. The progress readout is now cut so that all fits in the one line of
  5154. console.
  5155. * src/ConsoleStatCalc.cc
  5156. * src/ConsoleStatCalc.h
  5157. * src/HelpItemFactory.cc
  5158. * src/OptionHandlerFactory.cc
  5159. * src/RequestGroupMan.cc
  5160. * src/RequestGroupMan.h
  5161. * src/main.cc
  5162. * src/option_processing.cc
  5163. * src/prefs.h
  5164. * src/usage_text.h
  5165. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5166. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  5167. * src/DownloadEngine.cc (DownloadEngine)
  5168. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5169. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  5170. defined.
  5171. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  5172. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5173. Use erase+lower_bound+insert instead of sort.
  5174. * src/DefaultPieceStorage.cc (addPieceStats)
  5175. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5176. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  5177. * src/A2STR.cc
  5178. * src/A2STR.h
  5179. * src/OptionParser.cc (parse)
  5180. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5181. Defined fake filename `[tracker.announce]' as static const std::string.
  5182. * src/TrackerWatcherCommand.cc (createRequestGroup)
  5183. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5184. Defined default filename `index.html' as static const std::string
  5185. * src/SingleFileDownloadContext.cc
  5186. * src/SingleFileDownloadContext.h
  5187. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5188. Defined "[MEMORY]" as static const std::string.
  5189. * src/MemoryBufferPreDownloadHandler.cc (execute)
  5190. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5191. Defined control file's version number as static const std::string.
  5192. * src/DefaultBtProgressInfoFile.cc
  5193. * src/DefaultBtProgressInfoFile.h
  5194. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5195. Use Request::METHOD_GET
  5196. * src/RequestGroup.cc (createNextCommandWithAdj)
  5197. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5198. Defined "OK", "ERR", "INPR" as static const std::string
  5199. * src/RequestGroupMan.cc (showDownloadResults)
  5200. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5201. Defined default client used in extended handshake as static const
  5202. std::string
  5203. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  5204. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5205. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  5206. * src/HttpConnection.cc (eraseConfidentialInfo)
  5207. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5208. Defined default ftp user and password as static const std::string
  5209. * src/AuthConfigFactory.cc
  5210. * src/AuthConfigFactory.h
  5211. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5212. Defined strings used in netrc as static const std::string
  5213. * src/Netrc.cc
  5214. * src/Netrc.h
  5215. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5216. Defined HTTP status as static const std::string
  5217. * src/AbstractProxyResponseCommand.cc
  5218. * src/HttpHeader.cc
  5219. * src/HttpHeader.h
  5220. * src/HttpResponse.cc
  5221. * src/HttpResponseCommand.cc
  5222. * src/HttpSkipResponseCommand.cc
  5223. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5224. Defined "\r\n", "A", "I" as static const std::string
  5225. * src/A2STR.cc
  5226. * src/A2STR.h
  5227. * src/FtpConnection.cc
  5228. * src/FtpConnection.h
  5229. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5230. Added COLON_C(".") and used it in Request::parseUrl()
  5231. * src/A2STR.cc
  5232. * src/A2STR.h
  5233. * src/Request.cc (parseUrl)
  5234. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5235. Changed the type of padName from `const std::string&' to `const char*'.
  5236. * src/MSEHandshake.cc (verifyPadLength)
  5237. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5238. Defined "sha1" as static const std::string.
  5239. * src/MetalinkParserController.cc
  5240. * src/MetalinkParserController.h
  5241. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5242. Defined message digest algorithm name as static const std::string
  5243. * src/DHTTokenTracker.cc
  5244. * src/DHTUtil.cc
  5245. * src/DefaultBtContext.cc
  5246. * src/MSEHandshake.cc
  5247. * src/MessageDigestHelper.cc
  5248. * src/Peer.cc
  5249. * src/messageDigest.cc
  5250. * src/messageDigest.h
  5251. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5252. Made string literals used in SAX parser static const std::string.
  5253. * src/FileMetalinkParserState.cc
  5254. * src/FileMetalinkParserState.h
  5255. * src/FilesMetalinkParserState.cc
  5256. * src/FilesMetalinkParserState.h
  5257. * src/InitialMetalinkParserState.cc
  5258. * src/InitialMetalinkParserState.h
  5259. * src/MetalinkMetalinkParserState.cc
  5260. * src/MetalinkMetalinkParserState.h
  5261. * src/PiecesMetalinkParserState.cc
  5262. * src/PiecesMetalinkParserState.h
  5263. * src/ResourcesMetalinkParserState.cc
  5264. * src/ResourcesMetalinkParserState.h
  5265. * src/VerificationMetalinkParserState.cc
  5266. * src/VerificationMetalinkParserState.h
  5267. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5268. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  5269. * src/A2STR.cc
  5270. * src/A2STR.h
  5271. * src/File.cc
  5272. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5273. Defined static const std::string IP("ip"), PORT("port") and use them
  5274. instead of string literals.
  5275. * src/DefaultPeerListProcessor.cc
  5276. * src/DefaultPeerListProcessor.h
  5277. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5278. Made string literals for torrent file processing static const
  5279. std::string.
  5280. * src/BtContext.cc
  5281. * src/BtContext.h
  5282. * src/DefaultBtContext.cc
  5283. * src/DefaultBtContext.h
  5284. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5285. Made string literal for tracker response static const std::string
  5286. * src/BtAnnounce.cc
  5287. * src/BtAnnounce.h
  5288. * src/DefaultBtAnnounce.cc
  5289. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5290. Use DHTMessage::T instead of "t".
  5291. * src/DHTMessageTracker.cc (messageArrived)
  5292. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5293. Made keyName static const. Made trimmed charset static const
  5294. std::string.
  5295. * src/Util.cc (getContentDispositionFilename)
  5296. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5297. Made USER_AGENT const. Made "/" static const std::string.
  5298. * src/A2STR.cc
  5299. * src/A2STR.h
  5300. * src/HttpRequest.cc
  5301. * src/HttpRequest.h
  5302. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5303. Made string listeral to static const std::string:
  5304. "Content-Range", "Content-Length"
  5305. * src/HttpHeader.cc
  5306. * src/HttpHeader.h
  5307. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5308. Made string listeral to static const std::string.
  5309. * src/HttpConnection.cc
  5310. * src/HttpHeader.cc
  5311. * src/HttpHeader.h
  5312. * src/HttpResponse.cc
  5313. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5314. Made string listeral to static const std::string.
  5315. * src/A2STR.cc
  5316. * src/A2STR.h
  5317. * src/SimpleLogger.cc
  5318. * src/SimpleLogger.h
  5319. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5320. Made string literal to static const std::string.
  5321. Rewritten CookieParser::setField.
  5322. * src/A2STR.cc
  5323. * src/A2STR.h
  5324. * src/CookieBoxFactory.cc
  5325. * src/CookieBoxFactory.h
  5326. * src/CookieParser.cc
  5327. * src/CookieParser.h
  5328. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5329. Made string literal to static const std::string
  5330. * src/DHTAbstractMessage.cc
  5331. * src/DHTAnnouncePeerMessage.cc
  5332. * src/DHTAnnouncePeerMessage.h
  5333. * src/DHTAnnouncePeerReplyMessage.cc
  5334. * src/DHTAnnouncePeerReplyMessage.h
  5335. * src/DHTFindNodeMessage.cc
  5336. * src/DHTFindNodeMessage.h
  5337. * src/DHTFindNodeReplyMessage.cc
  5338. * src/DHTFindNodeReplyMessage.h
  5339. * src/DHTGetPeersMessage.cc
  5340. * src/DHTGetPeersMessage.h
  5341. * src/DHTGetPeersReplyMessage.cc
  5342. * src/DHTGetPeersReplyMessage.h
  5343. * src/DHTMessage.cc
  5344. * src/DHTMessage.h
  5345. * src/DHTMessageFactoryImpl.cc
  5346. * src/DHTMessageReceiver.cc
  5347. * src/DHTPingMessage.cc
  5348. * src/DHTPingMessage.h
  5349. * src/DHTPingReplyMessage.cc
  5350. * src/DHTPingReplyMessage.h
  5351. * src/DHTQueryMessage.cc
  5352. * src/DHTQueryMessage.h
  5353. * src/DHTResponseMessage.cc
  5354. * src/DHTResponseMessage.h
  5355. * src/DHTUnknownMessage.cc
  5356. * src/DHTUnknownMessage.h
  5357. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5358. Made string literal to static const std::string
  5359. * src/BtChokeMessage.cc (toString)
  5360. * src/BtHaveAllMessage.cc (toString)
  5361. * src/BtHaveNoneMessage.cc (toString)
  5362. * src/BtInterestedMessage.cc (toString)
  5363. * src/BtNotInterestedMessage.cc (toString)
  5364. * src/BtUnchokeMessage.cc (toString)
  5365. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5366. Replaced "" with static const variable A2STR::NIL.
  5367. Replaced string comparison against "" with std::string::empty().
  5368. Added PROTO_* to Request class and use them as a protocol string
  5369. constant.
  5370. Made "started", "stopped", "completed" static const variable in
  5371. AnnounceList class.
  5372. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5373. Updated translations. Great thanks to translators.
  5374. * po/ca.po
  5375. * po/de.po
  5376. * po/fr.po
  5377. * po/it.po
  5378. * po/ja.po
  5379. * po/ru.po
  5380. * po/zh_CN.po
  5381. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5382. Updated man page; categorized options and fixed typo.
  5383. * doc/aria2c.1.txt
  5384. * doc/aria2c.1.html
  5385. * doc/aria2c.1
  5386. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5387. Removed const ref
  5388. * src/MetalinkEntry.cc (AddProtocolPreference)
  5389. * src/RequestGroup.cc (FindServerHostByHostname)
  5390. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5391. Rewritten Accept-Features handling.
  5392. * src/HttpRequestCommand.cc (createHttpRequest)
  5393. * src/a2functional.h
  5394. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5395. Changed method signature:
  5396. DHTAbstractNodeLookupTask::toEntries
  5397. * src/DHTAbstractNodeLookupTask.cc
  5398. * src/DHTAbstractNodeLookupTask.h
  5399. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5400. Changed method signature:
  5401. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  5402. * src/BtContext.h
  5403. * src/DefaultBtContext.cc
  5404. * src/DefaultBtContext.h
  5405. * src/DefaultBtInteractive.cc
  5406. * test/DefaultBtContextTest.cc
  5407. * test/MockBtContext.h
  5408. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5409. Changed method signature:
  5410. MultiFileAllocationIterator::makeDiskWriterEntries
  5411. * src/MultiFileAllocationIterator.cc
  5412. * src/MultiFileAllocationIterator.h
  5413. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5414. Changed method sinature:
  5415. MetalinkEntry::toFileEntry,
  5416. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  5417. Metalinker::queryEntry
  5418. * src/Metalink2RequestGroup.cc
  5419. * src/MetalinkEntry.cc
  5420. * src/MetalinkEntry.h
  5421. * src/MetalinkHelper.cc
  5422. * src/MetalinkHelper.h
  5423. * src/Metalinker.cc
  5424. * src/Metalinker.h
  5425. * src/main.cc
  5426. * test/MetalinkHelperTest.cc
  5427. * test/MetalinkerTest.cc
  5428. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5429. Changed method sinature:
  5430. RequestGroup::getURIs
  5431. * src/RequestGroup.cc
  5432. * src/RequestGroup.h
  5433. * test/Metalink2RequestGroupTest.cc
  5434. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5435. Changed method signature:
  5436. PeerListProcessor::extractPeer
  5437. * src/CompactPeerListProcessor.cc
  5438. * src/CompactPeerListProcessor.h
  5439. * src/DefaultBtAnnounce.cc
  5440. * src/DefaultPeerListProcessor.cc
  5441. * src/DefaultPeerListProcessor.h
  5442. * src/DelegatingPeerListProcessor.cc
  5443. * src/DelegatingPeerListProcessor.h
  5444. * src/PeerListProcessor.h
  5445. * src/UTPexExtensionMessage.cc
  5446. * test/DefaultPeerListProcessorTest.cc
  5447. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5448. Changed method signature:
  5449. BtRequestFactory::createRequestMessages,
  5450. BtRequestFactory::createRequestMessagesOnEndGame
  5451. * src/BtRequestFactory.h
  5452. * src/DefaultBtInteractive.cc
  5453. * src/DefaultBtRequestFactory.cc
  5454. * src/DefaultBtRequestFactory.h
  5455. * test/DefaultBtRequestFactoryTest.cc
  5456. * test/MockBtRequestFactory.h
  5457. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5458. Changed method signature:
  5459. PieceStorage::getInFlightPieces
  5460. * src/DefaultBtProgressInfoFile.cc
  5461. * src/DefaultPieceStorage.cc
  5462. * src/DefaultPieceStorage.h
  5463. * src/PieceStorage.h
  5464. * src/UnknownLengthPieceStorage.cc
  5465. * src/UnknownLengthPieceStorage.h
  5466. * test/DefaultBtProgressInfoFileTest.cc
  5467. * test/MockPieceStorage.h
  5468. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5469. Changed method signature:
  5470. PostDownloadHandler::getNextRequestGroups
  5471. Metalink2RequestGroup::generate
  5472. RequestGroup::postDownloadProcessing
  5473. * src/BtPostDownloadHandler.cc
  5474. * src/BtPostDownloadHandler.h
  5475. * src/Metalink2RequestGroup.cc
  5476. * src/Metalink2RequestGroup.h
  5477. * src/MetalinkPostDownloadHandler.cc
  5478. * src/MetalinkPostDownloadHandler.h
  5479. * src/PostDownloadHandler.h
  5480. * src/RequestGroup.cc
  5481. * src/RequestGroup.h
  5482. * src/RequestGroupMan.cc
  5483. * src/main.cc
  5484. * test/BtPostDownloadHandlerTest.cc
  5485. * test/Metalink2RequestGroupTest.cc
  5486. * test/MetalinkPostDownloadHandlerTest.cc
  5487. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5488. Rewritten AccRequestGroup
  5489. * src/main.cc
  5490. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5491. Rewritten.
  5492. * src/TaggedItem.cc (toTagString)
  5493. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5494. Rewritten Accept-Features handling.
  5495. * src/HttpRequestCommand.cc (createHttpRequest)
  5496. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5497. Rewritten accept types handling.
  5498. * HttpRequest.cc (createRequest)
  5499. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5500. Rewritten
  5501. * src/FeatureConfig.cc (featureSummary)
  5502. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5503. Changed method signature:
  5504. PeerStorage::getActivePeers
  5505. * src/DHTPeerAnnounceEntry.cc
  5506. * src/DefaultPeerStorage.cc
  5507. * src/DefaultPeerStorage.h
  5508. * src/PeerStorage.h
  5509. * test/DefaultPeerStorageTest.cc
  5510. * test/MockPeerStorage.h
  5511. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5512. Changed method signature:
  5513. DHTPeerAnnounceStorage::getPeers,
  5514. DHTPeerAnnounceEntry::getPeers
  5515. * src/DHTGetPeersMessage.cc
  5516. * src/DHTPeerAnnounceEntry.cc
  5517. * src/DHTPeerAnnounceEntry.h
  5518. * src/DHTPeerAnnounceStorage.cc
  5519. * src/DHTPeerAnnounceStorage.h
  5520. * test/DHTAnnouncePeerMessageTest.cc
  5521. * test/DHTPeerAnnounceEntryTest.cc
  5522. * test/DHTPeerAnnounceStorageTest.cc
  5523. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5524. Changed method signature:
  5525. NameResolver::resolve
  5526. * src/DHTEntryPointNameResolveCommand.cc
  5527. * src/InitiateConnectionCommand.cc
  5528. * src/NameResolver.cc
  5529. * src/NameResolver.h
  5530. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5531. Changed method signature:
  5532. PieceStorage::getAdvertisedPieceIndexes
  5533. * src/DefaultBtInteractive.cc
  5534. * src/DefaultPieceStorage.cc
  5535. * src/DefaultPieceStorage.h
  5536. * src/PieceStorage.h
  5537. * src/UnknownLengthPieceStorage.h
  5538. * test/MockPieceStorage.h
  5539. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5540. Changed method signature:
  5541. SegmentMan::getInFlightSegment
  5542. * src/AbstractCommand.cc
  5543. * src/SegmentMan.cc
  5544. * src/SegmentMan.h
  5545. * test/SegmentManTest.cc
  5546. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5547. Changed method signature:
  5548. DHTAbstractNodeLookupTask::getNodesFromMessage
  5549. * src/DHTAbstractNodeLookupTask.cc
  5550. * src/DHTAbstractNodeLookupTask.h
  5551. * src/DHTNodeLookupTask.cc
  5552. * src/DHTNodeLookupTask.h
  5553. * src/DHTPeerLookupTask.cc
  5554. * src/DHTPeerLookupTask.h
  5555. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5556. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  5557. * src/AbstractCommand.cc
  5558. * src/BtCheckIntegrityEntry.cc
  5559. * src/BtCheckIntegrityEntry.h
  5560. * src/BtFileAllocationEntry.cc
  5561. * src/BtFileAllocationEntry.h
  5562. * src/BtSetup.cc
  5563. * src/BtSetup.h
  5564. * src/CheckIntegrityCommand.cc
  5565. * src/CheckIntegrityEntry.h
  5566. * src/ChecksumCheckIntegrityEntry.cc
  5567. * src/ChecksumCheckIntegrityEntry.h
  5568. * src/DHTSetup.cc
  5569. * src/DHTSetup.h
  5570. * src/DownloadEngine.cc
  5571. * src/FileAllocationCommand.cc
  5572. * src/FileAllocationEntry.h
  5573. * src/RequestGroup.cc
  5574. * src/RequestGroup.h
  5575. * src/RequestGroupMan.cc
  5576. * src/RequestGroupMan.h
  5577. * src/StreamCheckIntegrityEntry.cc
  5578. * src/StreamCheckIntegrityEntry.h
  5579. * src/StreamFileAllocationEntry.cc
  5580. * src/StreamFileAllocationEntry.h
  5581. * src/TrackerWatcherCommand.cc
  5582. * src/a2functional.h
  5583. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5584. Changed method signature:
  5585. BNode::findClosestKNodes, BNode:: enumerateBucket,
  5586. DHTBucket::getGoodNodes,
  5587. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  5588. * src/BNode.cc
  5589. * src/BNode.h
  5590. * src/DHTAbstractNodeLookupTask.cc
  5591. * src/DHTAutoSaveCommand.cc
  5592. * src/DHTBucket.cc
  5593. * src/DHTBucket.h
  5594. * src/DHTBucketRefreshTask.cc
  5595. * src/DHTFindNodeMessage.cc
  5596. * src/DHTGetPeersMessage.cc
  5597. * src/DHTRoutingTable.cc
  5598. * src/DHTRoutingTable.h
  5599. * test/BNodeTest.cc
  5600. * test/DHTBucketTest.cc
  5601. * test/DHTRoutingTableTest.cc
  5602. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5603. In piece selection functions, Pass std::deque<...> by reference rather
  5604. than returning it.
  5605. * src/BitfieldMan.cc
  5606. * src/BitfieldMan.h
  5607. * src/DefaultBtRequestFactory.cc
  5608. * src/DefaultPieceStorage.cc
  5609. * src/Piece.cc
  5610. * src/Piece.h
  5611. * test/BitfieldManTest.cc
  5612. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5613. Implemented rarest piece first piece selection strategy.
  5614. * src/AbstractBtMessage.cc
  5615. * src/AbstractBtMessage.h
  5616. * src/BitfieldMan.cc
  5617. * src/BitfieldMan.h
  5618. * src/BtBitfieldMessage.cc
  5619. * src/BtHaveAllMessage.cc
  5620. * src/BtHaveMessage.cc
  5621. * src/DefaultPieceStorage.cc
  5622. * src/DefaultPieceStorage.h
  5623. * src/PeerInteractionCommand.cc
  5624. * src/PieceStorage.h
  5625. * src/UnknownLengthPieceStorage.h
  5626. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5627. Rewritten readData and writeData.
  5628. * src/MultiDiskAdaptor.cc
  5629. * src/MultiDiskAdaptor.h
  5630. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5631. Move \n out of the message "Usage: ...".
  5632. * src/version_usage.cc
  5633. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5634. Bump up version number to 0.13.2b.
  5635. * configure.ac
  5636. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5637. Added const qualifier to argument Exception& e.
  5638. * src/Logger.h
  5639. * src/SimpleLogger.cc
  5640. * src/SimpleLogger.h
  5641. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5642. Pool connection when CWD, SIZE command fails.
  5643. * src/FtpNegotiationCommand.cc
  5644. * src/FtpNegotiationCommand.h
  5645. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5646. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  5647. * src/HttpResponseCommand.cc
  5648. * src/HttpSkipResponseCommand.cc
  5649. * src/HttpSkipResponseCommand.h
  5650. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5651. Pool connection when a server returns 4xx, 5xx responses.
  5652. * src/HttpNullDownloadCommand.cc
  5653. * src/HttpNullDownloadCommand.h
  5654. * src/HttpResponse.cc
  5655. * src/HttpResponse.h
  5656. * src/HttpResponseCommand.cc
  5657. * src/HttpResponseCommand.h
  5658. * test/HttpResponseTest.cc
  5659. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5660. Print usage when no URL is specifed or bad command-line option is
  5661. specified.
  5662. * src/HelpItemFactory.cc
  5663. * src/help_tags.h
  5664. * src/option_processing.cc
  5665. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5666. Removed duplicate log message.
  5667. * src/AbstractCommand.cc (asyncResolveHostname)
  5668. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5669. Updated man page: --async-dns and --ftp-reuse-connection were added.
  5670. Changed -j option's default value from 5 to 1.
  5671. Added new examples using protocol auto detection feature.
  5672. Removed -T, -M usage where it can be omitted.
  5673. * doc/aria2c.1.txt
  5674. * doc/aria2c.1.html
  5675. * doc/aria2c.1.txt
  5676. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5677. Updated command-line usage text, so that it tells users that they
  5678. can specify any number of torrent files and metalink files in
  5679. command-line.
  5680. * src/version_usage.cc
  5681. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5682. Changed the default value of -j option to 1.
  5683. * src/HelpItemFactory.cc
  5684. * src/option_processing.cc
  5685. * src/usage_text.h
  5686. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5687. Added the ability to reuse connection in FTP and it is enabled by
  5688. default. It can be disabled by --ftp-reuse-connection=false option.
  5689. * src/Command.cc
  5690. * src/DownloadCommand.cc
  5691. * src/FtpDownloadCommand.cc
  5692. * src/FtpDownloadCommand.h
  5693. * src/FtpFinishDownloadCommand.cc
  5694. * src/FtpFinishDownloadCommand.h
  5695. * src/FtpInitiateConnectionCommand.cc
  5696. * src/FtpNegotiationCommand.cc
  5697. * src/FtpNegotiationCommand.h
  5698. * src/HelpItemFactory.cc
  5699. * src/Makefile.am
  5700. * src/Makefile.in
  5701. * src/OptionHandlerFactory.cc
  5702. * src/option_processing.cc
  5703. * src/prefs.h
  5704. * src/usage_text.h
  5705. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5706. Call Command::transitStatus() before calling Command::execute(),
  5707. so that the status change made in execute() is not cleared.
  5708. * src/DownloadEngine.cc
  5709. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5710. Removed forward declaration of SocketCore class.
  5711. * src/HttpDownloadCommand.h
  5712. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5713. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  5714. in InitiateConnectionCommandFactory. They should be set only when
  5715. the protocol is HTTP or HTTPS.
  5716. * src/InitiateConnectionCommandFactory.cc
  5717. * src/RequestGroup.cc
  5718. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5719. Fixed infinite loop in checksum checking.
  5720. * src/IteratableChecksumValidator.cc
  5721. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5722. Set _supportsPersistentConnection to true by default.
  5723. * src/Request.cc
  5724. * src/RequestGroup.cc
  5725. * test/HttpRequestTest.cc
  5726. * test/RequestTest.cc
  5727. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5728. Added timeout to socket pool. The default timeout is 15 seconds,
  5729. which is the same value Apache uses.
  5730. * src/DownloadEngine.cc
  5731. * src/DownloadEngine.h
  5732. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5733. Fixed misuse of multimap::find()
  5734. * src/HttpHeader.cc
  5735. * test/HttpHeaderTest.cc
  5736. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5737. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  5738. option.
  5739. The asynchronous DNS is not capable of IPv6 yet.
  5740. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  5741. least for HTTP download.
  5742. * src/AbstractCommand.cc
  5743. * src/AbstractCommand.h
  5744. * src/AsyncNameResolver.cc
  5745. * src/AsyncNameResolver.h
  5746. * src/DHTEntryPointNameResolveCommand.cc
  5747. * src/DHTEntryPointNameResolveCommand.h
  5748. * src/DownloadEngine.cc
  5749. * src/DownloadEngine.h
  5750. * src/FtpInitiateConnectionCommand.cc
  5751. * src/FtpInitiateConnectionCommand.h
  5752. * src/HelpItemFactory.cc
  5753. * src/HttpInitiateConnectionCommand.cc
  5754. * src/HttpInitiateConnectionCommand.h
  5755. * src/InitiateConnectionCommand.cc
  5756. * src/InitiateConnectionCommand.h
  5757. * src/Makefile.am
  5758. * src/Makefile.in
  5759. * src/NameResolver.cc
  5760. * src/NameResolver.h
  5761. * src/OptionHandlerFactory.cc
  5762. * src/SocketCore.cc
  5763. * src/SocketCore.h
  5764. * src/Util.cc
  5765. * src/Util.h
  5766. * src/option_processing.cc
  5767. * src/prefs.h
  5768. * src/usage_text.h
  5769. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5770. Updated man page: --quiet, --header were added.
  5771. --metalink-servers and --enable-http-keep-alive option were updated.
  5772. * doc/aria2c.1
  5773. * doc/aria2c.1.html
  5774. * doc/aria2c.1.txt
  5775. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5776. Enable HTTP keep-alive by default.
  5777. * src/HelpItemFactory.cc
  5778. * src/option_processing.cc
  5779. * src/usage_text.h
  5780. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5781. Disable http keep-alive if the remote server is not HTTP/1.1.
  5782. * src/HttpConnection.cc
  5783. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5784. Receive content body of 302 response so that the connection can be
  5785. reused later when http keep-alive is enabled.
  5786. * src/HttpNullDownloadCommand.cc
  5787. * src/HttpNullDownloadCommand.h
  5788. * src/HttpResponseCommand.cc
  5789. * src/HttpResponseCommand.h
  5790. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5791. const SharedHandle<Request> -> const SharedHandle<Request>&
  5792. * src/FtpDowndloadCommand.cc
  5793. * src/FtpDowndloadCommand.h
  5794. * src/HttpDownloadCommand.cc
  5795. * src/HttpDownloadCommand.h
  5796. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5797. Fixed the bug that the control file(.aria2 file) is not renamed
  5798. according to tryAutoFileRenaming().
  5799. tryAutoFileRenaming() was rewritten so that if both renamed file and
  5800. its control file exist, use them and continue download.
  5801. The old implementation didn't take into account of control file's
  5802. existence, so basically you couldn't continue download of renamed file.
  5803. * src/BtProgressInfoFile.h
  5804. * src/DefaultBtProgressInfoFile.cc
  5805. * src/DefaultBtProgressInfoFile.h
  5806. * src/NullProgressInfoFile.h
  5807. * src/RequestGroup.cc
  5808. * test/DefaultBtProgressInfoFileTest.cc
  5809. * test/MockBtProgressInfoFile.h
  5810. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5811. Change the default value of --metalink-servers option from `5' to `1'.
  5812. * src/HelpItemFactory.cc
  5813. * src/option_processing.cc
  5814. * src/usage_text.h
  5815. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5816. Reimplemented transparent metalink using Accept request header.
  5817. * src/HttpRequest.cc
  5818. * src/HttpRequest.h
  5819. * src/HttpRequestCommand.cc
  5820. * src/Metalink2RequestGroup.cc
  5821. * src/RequestGroup.cc
  5822. * src/RequestGroup.h
  5823. * test/HttpRequestTest.cc
  5824. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5825. Bump up version number to 0.13.2a
  5826. * configure.ac
  5827. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5828. Updated configure.ac using the result of autoscan.
  5829. * configure.ac
  5830. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5831. Fixed compilation error without gcrypt/openssl.
  5832. * src/DownloadCommand.cc
  5833. * src/DownloadCommand.h
  5834. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5835. Reorganized version information so that it can be displayed in a
  5836. standard terminal screen without scrolling.
  5837. Removed http, ftp from Configuration section, because they are always
  5838. enabled.
  5839. * src/FeatureConfig.cc
  5840. * src/FeatureConfig.h
  5841. * src/main.cc
  5842. * src/messageDigest.cc
  5843. * src/messageDigest.h
  5844. * src/version_usage.cc
  5845. * test/FeatureConfigTest.cc
  5846. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5847. Masked user ID in log.
  5848. * src/FtpConnection.cc (sendUser)
  5849. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5850. Removed query part from filename in HTTP download. The query part means
  5851. the substring after "?" in URL. Firefox seems do the same thing.
  5852. A query part is sometimes very long and not suitable to filename,
  5853. so I think it is better to remove it from filename.
  5854. * src/HttpRequest.cc
  5855. * src/HttpRequest.h
  5856. * src/Request.cc
  5857. * src/Request.h
  5858. * test/HttpRequestTest.cc
  5859. * test/RequestTest.cc
  5860. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5861. Rewritten Exception class. Throw exception object, not its pointer and
  5862. catch by reference, so that remove problematic delete operator for
  5863. catched exception.
  5864. * src/Exception.cc
  5865. * src/Exception.h
  5866. * test/ExceptionTest.cc
  5867. * src/*: All files throwing/catching exception.
  5868. * test/*: All files throwing/catching exception.
  5869. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5870. Now auto protocol detection is enabled without -Z option.
  5871. But there is a important difference between with/without -Z optoin.
  5872. For example, if you type:
  5873. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  5874. then, aria2 interprets there are 3 request groups:
  5875. (1) http://host/file, http://mirror/file <-- multi-source download
  5876. (2) file1.torrent
  5877. (3) file2.metalink
  5878. On the other hand, if you invoke above command with -Z option, it is
  5879. interpreted as 4 request groups:
  5880. (1) http://host/file
  5881. (2) file1.torrent
  5882. (3) file2.metalink
  5883. (4) http://mirror/file
  5884. I think usually user don't mix multi-source URLs and torrent files, so
  5885. there is no big problem here.
  5886. * src/main.cc
  5887. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5888. Fixed the bug that causes segmentaion fault when reading XML containing
  5889. unescapsed character like '&'.
  5890. Also a modification was made which avoids adding unnecessary
  5891. characters stack and appending unused string.
  5892. * src/ExpatMetalinkProcessor.cc
  5893. * src/FileMetalinkParserState.h
  5894. * src/FilesMetalinkParserState.h
  5895. * src/FinMetalinkParserState.h
  5896. * src/HashMetalinkParserState.h
  5897. * src/InitialMetalinkParserState.h
  5898. * src/LanguageMetalinkParserState.h
  5899. * src/MetalinkMetalinkParserState.h
  5900. * src/MetalinkParserState.h
  5901. * src/MetalinkParserStateMachine.cc
  5902. * src/MetalinkParserStateMachine.h
  5903. * src/OSMetalinkParserState.h
  5904. * src/PieceHashMetalinkParserState.h
  5905. * src/PiecesMetalinkParserState.h
  5906. * src/ResourcesMetalinkParserState.h
  5907. * src/SizeMetalinkParserState.h
  5908. * src/SkipTagMetalinkParserState.h
  5909. * src/URLMetalinkParserState.h
  5910. * src/VerificationMetalinkParserState.h
  5911. * src/VersionMetalinkParserState.h
  5912. * src/XML2SAXMetalinkProcessor.cc
  5913. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5914. Added StringFormat class, which internally calls vasprintf.
  5915. operator<< is defined for this class, so it can be used with iostream
  5916. classes nicely. SimpleLogger and following functions are rewritten
  5917. using StringFormat class.
  5918. Besides, now Logger class's methods are non-const, many classes
  5919. that has a const Logger* as a member variable are modified to remove
  5920. const qualifier from the variable declaration.
  5921. * src/HelpItemFactory.cc
  5922. * src/Request.cc
  5923. * src/SimpleLogger.cc
  5924. * src/StringFormat.cc
  5925. * src/StringFormat.h
  5926. * src/Util.cc
  5927. * src/option_processing.cc
  5928. * src/version_usage.cc
  5929. * test/StringFormatTest.cc
  5930. * src/*.h: The classes that has const Logger* as a member variable.
  5931. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5932. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  5933. failed. Also fixed memory link when exception is thrown there.
  5934. * src/main.cc (AccRequestGroup)
  5935. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5936. Added build-in "Accept-Features" support. For now only "metalink" is
  5937. used in this header field.
  5938. This "metalink" value is removed from the list when connecting URLs
  5939. fed by metalink file to avoid loop in "transparent" metlaink.
  5940. * src/HttpRequest.cc
  5941. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  5942. header is also held in this variable. Also renamed setUserHeaders as
  5943. addHeader and it was rewritten to add header not just to clear the old
  5944. value.
  5945. * src/HttpRequestCommand.cc
  5946. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  5947. from "Accept-Features" list.
  5948. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  5949. default.
  5950. * src/RequestGroup.h
  5951. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  5952. * src/a2functional.h: Included <string> because Concat class depends on
  5953. it.
  5954. * test/HttpRequestTest.cc
  5955. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5956. Added comment
  5957. * src/RequestGroup.cc (createNextCommand)
  5958. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5959. Capitalized METHOD_GET and METHOD_HEAD
  5960. * src/Request.cc
  5961. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5962. Added getDownloadResults() method
  5963. * src/RequestGroupMan.cc
  5964. * src/RequestGroupMan.h
  5965. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5966. Fixed the bug that aria2 exits when commands is empty() but
  5967. _routineCommands are not.
  5968. * src/DownloadEngine.cc
  5969. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5970. Use the default value pulled from Option object in HelpItemFactory.
  5971. except options whose defualt value is embedded in a usage text.
  5972. * src/HelpItemFactory.cc
  5973. * src/HelpItemFactory.h
  5974. * src/option_processing.cc
  5975. * src/version_usage.cc
  5976. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5977. Added --quiet option to make aria2 quiet (no console output).
  5978. --quiet option is tagged with ADVANCED.
  5979. * src/HelpItemFactory.cc
  5980. * src/LogFactory.cc
  5981. * src/LogFactory.h
  5982. * src/MultiUrlRequestInfo.cc
  5983. * src/MultiUrlRequestInfo.h
  5984. * src/NullStatCalc.h: New class. This class prints nothing.
  5985. * src/OptionHandlerFactory.cc
  5986. * src/main.cc
  5987. * src/option_processing.cc
  5988. * src/prefs.h
  5989. * src/usage_text.h
  5990. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5991. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  5992. * src/HelpItemFactory.cc (createHelpItems):
  5993. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5994. Fixed compilation error in ExpatMetalinkProcessor.cc
  5995. * src/ExpatMetalinkProcessor.cc
  5996. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5997. Reuse socket if the origin server supports HTTP keep-alive and
  5998. --enable-http-keep-alive or --enable-http-pipelining is given.
  5999. The current implementation doesn't reuse the connections established
  6000. against proxy server.
  6001. * src/AbstractCommand.cc
  6002. * src/DownloadEngine.cc
  6003. * src/DownloadEngine.h
  6004. * src/HttpDownloadCommand.cc
  6005. * src/HttpInitiateConnectionCommand.cc
  6006. * src/HttpResponseCommand.cc
  6007. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6008. Rewritten HTTP keep-alive and pipelining routine.
  6009. * src/AbstractCommand.cc
  6010. * src/HttpConnection.cc
  6011. * src/HttpDownloadCommand.cc
  6012. * src/HttpRequest.cc
  6013. * src/HttpRequestCommand.cc
  6014. * src/HttpResponseCommand.cc
  6015. * src/Request.cc
  6016. * src/Request.h
  6017. * src/RequestGroup.cc
  6018. * test/HttpRequestTest.cc
  6019. * test/HttpResponseTest.cc
  6020. * test/RequestTest.cc
  6021. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6022. Added missing setUserHeaders call
  6023. * src/HttpRequestCommand.cc
  6024. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6025. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  6026. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  6027. waste of time because it is more likey false.
  6028. * src/FileAllocationDispatcherCommand.cc (execute)
  6029. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6030. Now HTTP status and version are a member variable of HttpHeader.
  6031. HTTP status is processed as a string, not integer.
  6032. * src/AbstractProxyResponseCommand.cc
  6033. * src/HttpConnection.cc
  6034. * src/HttpHeader.cc
  6035. * src/HttpHeader.h
  6036. * src/HttpHeaderProcessor.cc
  6037. * src/HttpHeaderProcessor.h
  6038. * src/HttpResponse.cc
  6039. * src/HttpResponse.h
  6040. * test/HttpHeaderProcessorTest.cc
  6041. * test/HttpResponseTest.cc
  6042. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6043. Added --header option. You can specify any number of additional HTTP headers
  6044. like:
  6045. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  6046. Unlike other commad-line option, you can use --header option multiple times.
  6047. * src/HelpItemFactory.cc
  6048. * src/HttpRequest.{cc, h}
  6049. * src/HttpRequestCommand.cc
  6050. * src/OptionHandlerFactory.cc
  6051. * src/OptionHandlerImpl.h
  6052. * src/option_processing.cc
  6053. * src/prefs.h
  6054. * src/usage_text.h
  6055. * test/HttpRequestTest.cc (testUserHeaders)
  6056. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6057. Eliminates the time lag between sequential downloads and commands in
  6058. the same RequestGroup.
  6059. In old implementation, aria2 occasionally waits 1 seconds before
  6060. executing next command or RequestGroup.
  6061. This is really a waste of time, and new implementation eliminates
  6062. this unnecessary time lag.
  6063. * src/AbstractCommand.cc
  6064. * src/AutoSaveCommand.cc
  6065. * src/CheckIntegrityCommand.cc
  6066. * src/Command.{cc, h}
  6067. * src/DownloadEngine.{cc, h}
  6068. * src/DownloadEngineFactory.cc
  6069. * src/FileAllocationCommand.cc
  6070. * src/FileAllocationDispatcherCommand.cc
  6071. * src/FillRequestGroupCommand.cc
  6072. * src/FtpInitiateConnectionCommand.cc
  6073. * src/HaveEraseCommand.cc
  6074. * src/HttpInitiateConnectionCommand.cc
  6075. * src/HttpResponseCommand.cc
  6076. * src/RealtimeCommand.cc
  6077. * src/RequestGroup.cc
  6078. * src/RequestGroupMan.cc
  6079. * src/StreamFileAllocationEntry.cc
  6080. * src/TimeBasedCommand.{cc, h}
  6081. * src/TimedHaltCommand.cc
  6082. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6083. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  6084. keyword explicit and SharedHandle's default constructor initializes
  6085. its internal obj to null, old implementation initializes it using
  6086. obj's default constructor.
  6087. To assign null, write SharedHandle<T> x(...); x.reset();
  6088. TODO: test/SharedHandleTest.cc needs more tests.
  6089. * src/SharedHandle.h
  6090. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6091. Fixed type in man page.
  6092. * doc/aria2c.1.txt
  6093. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6094. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  6095. * src/SimpleLogger.{cc, h}
  6096. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6097. Implemented auto protocol detection.
  6098. Now you can do:
  6099. aria2c -Z http://host/file file1.torrent file2.metalink
  6100. (Note: -Z option is required for auto protcol detection.)
  6101. Then aria2c downloads 3 files simultaneously:
  6102. 1. http://host/file
  6103. 2. file1.torrent <-- read local torrent file
  6104. 3. file2.metalink <-- read local Metalink file.
  6105. Same thing goes with -i option. Assume your uris.txt contans:
  6106. http://host/file
  6107. file1.torrent
  6108. file2.metalink
  6109. Then you can do: aria2c -i uris.txt
  6110. (Note: -Z option is not needed if -i option is given.)
  6111. * src/main.cc
  6112. * src/ProtocolDetector.{cc, h}
  6113. * test/ProtocolDetectorTest.cc
  6114. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6115. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  6116. installed
  6117. * src/ARC4Encryptor.h
  6118. * src/ARC4Decryptor.h
  6119. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6120. Renamed argument from 'errno' to 'err', since errno is confused with
  6121. errno defined in errno.h.
  6122. * src/LibgcryptARC4Decryptor.h
  6123. * src/LibgcryptARC4Context.h
  6124. * src/LibgcryptDHKeyExchange.h
  6125. * src/LibgcryptARC4Encryptor.h
  6126. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6127. Rewritten choking algorithm.
  6128. * src/PeerChokeCommand.{cc, h}
  6129. * src/BtInterestedMessage.cc
  6130. * src/PeerSessionResource.{cc, h}
  6131. * src/DefaultPeerStorage.{cc, h}
  6132. * src/BtNotInterestedMessage.cc
  6133. * src/DefaultBtMessageDispatcher.{cc, h}
  6134. * src/BtMessageDispatcher.h
  6135. * src/Peer.{cc, h}
  6136. * src/BtLeecherStateChoke.{cc, h}
  6137. * src/BtSetup.cc
  6138. * src/BtSeederStateChoke.{cc, h}
  6139. * src/PeerStorage.h
  6140. * test/MockPeerStorage.h
  6141. * test/MockBtMessageDispatcher.h
  6142. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6143. Fixed compilation error on x84-64 platform.
  6144. * src/AuthConfig.cc: Included ostream.
  6145. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6146. Rewritten getBasename() and getDirname(), without standard library
  6147. basename(), dirname().
  6148. * src/File.cc
  6149. * test/FileTest.cc
  6150. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6151. Added Simplified Chinese translation. Also updated the following
  6152. translations: Polish, Dutch, German. Great thanks to all translators.
  6153. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6154. Suppress content-range error when 'Content-Range' response header
  6155. doesn't contains bytes-unit specifier 'bytes'
  6156. * src/HttpHeader.cc (getRange)
  6157. * test/HttpHeaderTest.cc
  6158. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6159. Fixed compilation error with g++-4.3
  6160. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6161. Added missing include files for MinGW
  6162. * test/HttpHeaderProcessorTest.cc
  6163. * test/DHTRoutingTableSerializerTest.cc
  6164. * test/DHTRoutingTableDeserializerTest.cc
  6165. * test/UriListParserTest.cc
  6166. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6167. Now download line is printed nicely with no garbage at the end of
  6168. line. I use ioctl to get the columns of terminal.
  6169. If stdout is redirected to another device, instead of carriage return,
  6170. end of line '\n' character is used. This is feature request#1909659
  6171. * src/ConsoleStatCalc.cc (calculateStat)
  6172. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6173. Included a2time.h
  6174. * src/DHTMessageDispatcher.h
  6175. * src/DHTMessageEntry.h
  6176. * src/DHTReplaceNodeTask.h
  6177. * src/DHTMessageTracker.h
  6178. * src/Util.h
  6179. * src/CookieBox.h
  6180. * src/SocketCore.h
  6181. * src/DefaultBtMessageDispatcher.h
  6182. * src/SocketCore.cc
  6183. * src/Util.cc
  6184. * src/DHTPingTask.h
  6185. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6186. Fixed high memory footprint when DHT is enabled.
  6187. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  6188. queued than it is processed and the queue is getting longer. As a
  6189. consequence, momory usage is increased.
  6190. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  6191. replacement cache in DHTBucket which is described in Kademlia paper.
  6192. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  6193. DHTReplaceNodeTask.
  6194. * src/DHTBucket.{h, cc}
  6195. (cacheNode): New function.
  6196. (getCachedNodes): New function.
  6197. (dropNode): Push back cached node to _nodes.
  6198. * test/DHTBucketTest.cc
  6199. (testCacheNode): New test
  6200. (testDropNode): New test
  6201. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6202. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  6203. the unused 4KB memory when ssl is not used.
  6204. * src/SocketCore.cc
  6205. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6206. Added summary log for peer announce storage.
  6207. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  6208. Removed cast
  6209. * src/DefaultPeerStorage.cc (addPeer)
  6210. Log exception message
  6211. * src/DHTMessageTracker.cc (handleTimeout)
  6212. Fixed casting
  6213. * test/HttpRequestTest.cc
  6214. * test/MetalinkProcessorTest.cc
  6215. * test/PieceTest.cc
  6216. * test/MetalinkEntryTest.cc
  6217. * test/SequenceTest.cc
  6218. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6219. * src/ParameterizedStringParser.cc (createLoop):
  6220. Removed unused variable sstep.
  6221. * src/AlphaNumberDecorator.h (decode): Rewritten.
  6222. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6223. * src/Util.{h, cc}
  6224. (parseUInt): New function.
  6225. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  6226. The actual range is uint32_t.
  6227. * test/UtilTest.cc
  6228. * src/ParameterizedStringParser.cc:
  6229. Use Util::parseUInt() for loop variables.
  6230. * test/ParameterizedStringParserTest.cc
  6231. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  6232. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6233. Rewritten the functions for binding port.
  6234. * src/DHTConnectionImpl.{h, cc}
  6235. * src/PeerListenCommand.{h, cc}
  6236. * src/DHTSetup.cc
  6237. * src/BtSetup.cc
  6238. * test/DHTConnectionImplTest.cc
  6239. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6240. type cleanup for allmost all remaining files.
  6241. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6242. Type clarification
  6243. * src/PeerSessionResource.{h, cc}
  6244. * src/DefaultPieceStorage.{h, cc}
  6245. * src/Peer.{h, cc}
  6246. * test/PeerSessionResourceTest.cc
  6247. Use div function
  6248. * src/BtPieceMessage.cc (erasePieceOnDisk)
  6249. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6250. Type clarification
  6251. * src/DefaultPeerStorage.{h, cc}
  6252. * test/DefaultPeerStorageTest.cc
  6253. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6254. Type clarification: size_t for length or size, uint64_t for file
  6255. length, off_t for file offset.
  6256. * src/DefaultBtProgressInfoFile.cc
  6257. * src/DefaultBtContext.{h, cc}
  6258. * src/DefaultBtInteractive.cc
  6259. * src/DownloadCommand.{h, cc}
  6260. * src/IteratableChunkChecksumValidator.{h, cc}
  6261. * src/SegmentMan.{h, cc}
  6262. * src/SingleFileDownloadContext.{h, cc}
  6263. * src/IteratableChecksumValidator.{h, cc}
  6264. * src/BtContext.h
  6265. * src/IteratableValidator.h
  6266. * src/DownloadContext.h
  6267. * test/SingleFileDownloadContextTest.cc
  6268. * test/DefaultBtContextTest.cc
  6269. * test/MockBtContext.h
  6270. * test/Metalink2RequestGroupTest.cc
  6271. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6272. Type clarification: size_t for length or size, uint64_t for file
  6273. length, off_t for file offset.
  6274. * src/PiecedSegment.cc
  6275. * src/GrowSegment.h
  6276. * src/DefaultBtRequestFactory.h
  6277. * src/DefaultBtProgressInfoFile.cc
  6278. * src/UnknownLengthPieceStorage.h
  6279. * src/DefaultPieceStorage.cc
  6280. * src/UnknownLengthPieceStorage.cc
  6281. * src/DefaultBtInteractive.cc
  6282. * src/GrowSegment.cc
  6283. * src/BitfieldMan.h
  6284. * src/DownloadCommand.cc
  6285. * src/BtRequestFactory.h
  6286. * src/PiecedSegment.h
  6287. * src/DefaultPieceStorage.h
  6288. * src/Piece.cc
  6289. * src/DefaultBtRequestFactory.cc
  6290. * src/PieceStorage.h
  6291. * src/Segment.h
  6292. * src/Piece.h
  6293. * src/BitfieldMan.cc
  6294. * src/Util.cc
  6295. * test/DefaultBtProgressInfoFileTest.cc
  6296. * test/DefaultPieceStorageTest.cc
  6297. * test/MockPieceStorage.h
  6298. * test/BtRequestMessageTest.cc
  6299. * test/DefaultBtMessageDispatcherTest.cc
  6300. * test/BitfieldManTest.cc
  6301. * test/GrowSegmentTest.cc
  6302. * test/PieceTest.cc
  6303. * test/SegmentTest.cc
  6304. * test/SegmentManTest.cc
  6305. * test/DefaultBtRequestFactoryTest.cc
  6306. * test/MockBtRequestFactory.h
  6307. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6308. Fixed compilation error with --disable-nls
  6309. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  6310. in gettext.h causes the problem.
  6311. * src/common.h
  6312. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6313. Removed subPiece related functions.
  6314. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  6315. * src/DefaultPieceStorage.{h, cc}
  6316. * test/PieceTest.cc
  6317. * test/DefaultPieceStorageTest.cc
  6318. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6319. Use unsigned char for data store.
  6320. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6321. Bump up version number to 0.13.0+1
  6322. * configure.ac
  6323. * Release 0.13.0+1
  6324. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6325. Changed inactive connection timeout to 120.
  6326. To accept more mulually interested peers, disconnect peer when there
  6327. is no interest between us after certain time passed.
  6328. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  6329. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6330. Fixed the bug that aria2 only uses first dns server in resolv.conf
  6331. when compiled with async DNS support.
  6332. * src/DownloadEngine.cc
  6333. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  6334. value '10' will be a little bit short when some DNS servers are
  6335. offline and several DNS servers are tried. It should be configured
  6336. by command-line option.
  6337. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6338. Merged Ross's mingw patch.
  6339. * src/DHTRoutingTableDeserializer.cc
  6340. * src/DHTRoutingTableSerializer.cc
  6341. * src/Platform.{h, cc}
  6342. * src/timegm.h
  6343. * src/gettimeofday.h
  6344. * src/getaddrinfo.h
  6345. * src/SocketCore.h
  6346. * src/common.h
  6347. * src/inet_aton.h
  6348. * src/DownloadEngine.h
  6349. * src/gai_strerror.h
  6350. * src/a2netcompat.h
  6351. * configure.ac
  6352. * configure
  6353. * aclocal.m4
  6354. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6355. Included missing iostream.
  6356. * test/AllTest.cc
  6357. * test/BtDependencyTest.cc
  6358. * test/BtExtendedMessageTest.cc
  6359. * test/DHTConnectionImplTest.cc
  6360. * test/DHTMessageFactoryImplTest.cc
  6361. * test/DHTMessageTrackerEntryTest.cc
  6362. * test/DHTNodeTest.cc
  6363. * test/DHTRoutingTableSerializerTest.cc
  6364. * test/DefaultBtAnnounceTest.cc
  6365. * test/DefaultBtContextTest.cc
  6366. * test/DefaultBtMessageFactoryTest.cc
  6367. * test/DefaultExtensionMessageFactoryTest.cc
  6368. * test/HandshakeExtensionMessageTest.cc
  6369. * test/HttpResponseTest.cc
  6370. * test/MetalinkProcessorTest.cc
  6371. * test/MultiFileAllocationIteratorTest.cc
  6372. * test/SocketCoreTest.cc
  6373. * test/UTPexExtensionMessageTest.cc
  6374. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6375. Reorganized includes.
  6376. * src/NameResolver.cc
  6377. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6378. Fixed compilation error without ares/c-ares
  6379. * src/NameResolver.h:
  6380. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6381. Added a test for large file.
  6382. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  6383. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6384. Fixed the bug that file size is ignored if size > INT32_MAX
  6385. * src/SizeMetalinkParserState.cc (endElement):
  6386. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6387. Bump up version number to 0.13.0
  6388. * configure.ac
  6389. * Release 0.13.0
  6390. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6391. Updated Makfefile.am to make 'make dist' work.
  6392. Now packaged filename is aria2c-VERSION.tar.bz2.
  6393. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  6394. Added LICENSE.OpenSSL to dist_noinst_DATA.
  6395. Large file support is now configured by configure script.
  6396. * configure.ac
  6397. Removed unsused source files
  6398. * src/
  6399. * test/
  6400. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  6401. Peer.h and BtContext.h respectively.
  6402. * src/Peer.h
  6403. * src/BtContext.h
  6404. Updated translations.
  6405. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  6406. translations. Great thanks to all translators!;)
  6407. * po/*.{po, gmo}
  6408. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6409. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  6410. statically declared sha1 MessageDigestContext.
  6411. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  6412. initialization of short-lived MessageDigestContext.
  6413. * src/MessageDigestHelper.{h, cc}
  6414. * src/main.cc
  6415. Now DownloadCommand has a reference to MessageDigestContext to avoid
  6416. the initialization of MessageDigestContext every time in validating
  6417. chunk checksum.
  6418. * src/DownloadCommand.{h, cc}
  6419. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6420. Add a file descriptor which connected to fast peer(latency<1500) to
  6421. select(). This change reduced CPU load.
  6422. * src/PeerInteractionCommand.cc
  6423. * src/DefaultBtInteractive.{h, cc}
  6424. * src/BtInteractive.h
  6425. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6426. Fixed the previous insufficient fix for possible busy loop.
  6427. * src/MSEHandshake.cc (identifyHandshakeType)
  6428. Removed unused functions.
  6429. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  6430. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6431. Fixed possible busy loop if first 20 bytes are not received for a few
  6432. minutes.
  6433. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  6434. * src/ReceiverMSEHandshakeCommand.cc
  6435. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6436. Fixed compilation error
  6437. * src/ExpatMetalinkProcessor.cc
  6438. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6439. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  6440. * src/DHTBucket.cc
  6441. Removed unnecessary cast.
  6442. * src/HandshakeExtensionMessage.cc
  6443. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6444. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  6445. is missing.
  6446. * src/OptionHandlerFactory.cc
  6447. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6448. Fixed the bug that HAVE message is not sent for a piece they are
  6449. downloaded fom http/ftp server before any BitTorrent handshake is done
  6450. with peers.
  6451. * src/DefaultBtInteractive.cc
  6452. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6453. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  6454. * src/Makefile.am
  6455. * src/Makefile.in
  6456. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6457. Updated README. Added html version of README and man page.
  6458. * README
  6459. * README.html
  6460. * readme2html: Shell script to generate README.html from README using
  6461. asciidoc.
  6462. * doc/aria2c.1.html
  6463. * doc/makeman: Added the line to generate aria2c.1.html
  6464. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6465. Fixed offset calculation.
  6466. * src/LibgcryptDHKeyExchange.h (computeSecret)
  6467. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6468. Rewritten itos and uitos using template. llitos and ullitos are
  6469. replaced with itos and uitos respectively.
  6470. * src/Util.{h, cc}
  6471. * test/UtilTest.cc
  6472. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6473. Fixed the bug that DH key exchange sometimes fails due to bad handling
  6474. of the number of bytes required for storing public key and shared
  6475. secret.
  6476. * src/LibgcryptDHKeyExchange.h
  6477. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  6478. * src/MSEHandshake.cc
  6479. * test/DHKeyExchangeTest.cc
  6480. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6481. Removed since they are not used.
  6482. * src/Xml2MetalinkProcessor.{h, cc}
  6483. * src/Socket.cc
  6484. * src/SegmentSplitter.{h, cc}
  6485. * test/Xml2MetalinkProcessorTest.cc
  6486. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6487. Fixed the bug that prevents aria2 from stopping other than by pressing
  6488. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  6489. option. aria2 doesn't stop even after --seed-time is satisfied and
  6490. continues to output blank lines in the console.
  6491. * src/ReceiverMSEHandshakeCommand.cc
  6492. * src/PeerReceiveHandshakeCommand.cc
  6493. * src/PeerListenCommand.cc
  6494. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6495. Bump up version number to 0.13.0rc
  6496. * configure.ac
  6497. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6498. Updated man page and some usage text.
  6499. * doc/aria2c.1.txt
  6500. * src/usage_text.h
  6501. * po/*.{po, gmo}
  6502. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6503. Updated translations. Added Finnish and Hebrew translations.
  6504. Great thanks to all translators!
  6505. * po/*.{po, gmo}
  6506. * po/LINGUAS
  6507. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6508. Log more detailed information about each message.
  6509. * src/DHTQueryMessage.{h, cc}
  6510. * src/DHTGetPeersMessage.{h, cc}
  6511. * src/DHTFindNodeReplyMessage.{h, cc}
  6512. * src/DHTGetPeersReplyMessage.{h, cc}
  6513. * src/DHTAnnouncePeerMessage.{h, cc}
  6514. * src/DHTResponseMessage.{h, cc}
  6515. * src/DHTFindNodeMessage.{h, cc}
  6516. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6517. Use constants defined in prefs.h
  6518. * src/option_processing.cc
  6519. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6520. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  6521. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6522. Make room for future enchancements for IPv6 addresses.
  6523. Bump up version number of dht.dat file format to 2.
  6524. Not compatible with previous version.
  6525. * src/DHTRoutingTableSerializer.cc
  6526. * src/DHTRoutingTableDeserializer.cc
  6527. * test/DHTRoutingTableSerializerTest.cc
  6528. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6529. Added handling for the return values from
  6530. PeerMessageUtil::createcompact().
  6531. * src/DefaultBtContext.cc (computeFastSet):
  6532. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6533. Fixed abort when peer's ip address is IPv4-mapped address.
  6534. * src/DefaultBtContext.cc (computeFastSet)
  6535. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  6536. cannot handle IPv4-mapped addresses.
  6537. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  6538. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6539. Proper return value handling for OpenSSL functions.
  6540. * src/LibsslDHKeyExchange.h
  6541. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6542. Random bytes generation using libgcrypt and OpenSSL.
  6543. * src/DHTUtil.{h, cc}
  6544. * test/DHTUtilTest.cc
  6545. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6546. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  6547. received.
  6548. * src/DHTMessageReceiver.cc (receiveMessage)
  6549. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6550. Fixed the bug that a return code is always 0. BUG#1897704
  6551. If error occurred during the download or there exist unfinished
  6552. downloads, aria2 returns with code 1.
  6553. * src/RequestGroupMan.{h, cc}
  6554. * src/MultiUrlRequestInfo.{h, cc}
  6555. * src/main.cc
  6556. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6557. IPv6 support for SocketCore class.
  6558. TODO: In SocketCore::establishConnection(), this is insufficient to
  6559. determin the failure of connect() here because the socket is
  6560. non-blocking state. The next addresses should be tried after select().
  6561. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  6562. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  6563. instead which address family independent.
  6564. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  6565. information in a compact peer format which is for IPv4 only.
  6566. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  6567. this is a spec of BitTorrent protocol.
  6568. * src/SocketCore.{h, cc}
  6569. * src/PeerMessageUtil.cc
  6570. * test/SocketCoreTest.cc
  6571. * test/PeerMessageUtilTest.cc
  6572. * test/DHTConnectionImplTest.cc
  6573. Handle IPv4-mapped addresses.
  6574. * src/DHTNode.cc: Now identity is determined by node id.
  6575. * src/DHTMessageTrackerEntry.cc
  6576. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  6577. should handle it.
  6578. * src/DHTRoutingTableDeserializer.cc
  6579. * src/DHTMessageFactoryImpl.cc
  6580. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6581. Change the unit of --stop option from a minute to a second.
  6582. * src/usage_text.h
  6583. * src/DownloadEngineFactory.cc
  6584. * src/OptionHandlerFactory.cc
  6585. * src/message.h
  6586. * src/TimedHaltCommand.cc
  6587. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6588. Make listening socket non-block mode.
  6589. * src/FtpConnection.cc
  6590. * src/FtpNegotiationCommand.{h, cc}
  6591. * src/PeerListenCommand.cc
  6592. Fixed the bug that cause slow ftp negotiation.
  6593. * src/FtpNegotiationCommand.{h, cc}
  6594. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6595. Added basic tag to --enable-dht, --dht-listen-port option.
  6596. * src/HelpItemFactory.cc (createHelpItems)
  6597. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6598. Updated text.
  6599. * src/usage_text.h
  6600. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6601. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  6602. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6603. Determin _threadtholdSpeed in each constructor for
  6604. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  6605. * src/ActivePeerConnectionCommand.{h, cc}
  6606. * src/PeerReceiveHandshakeCommand.{h, cc}
  6607. * src/BtSetup.cc
  6608. * src/BtConstants.h
  6609. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6610. Added --bt-min-crypto-level and --bt-require-crypto options.
  6611. * src/OptionHandlerFactory.cc
  6612. * src/MSEHandshake.cc
  6613. * src/HelpItemFactory.cc
  6614. * src/option_processing.cc
  6615. * src/ReceiverMSEHandshakeCommand.cc
  6616. * src/prefs.h
  6617. * src/DefaultBtAnnounce.cc
  6618. * src/InitiatorMSEHandshakeCommand.cc
  6619. * src/usage_text.h
  6620. * test/MSEHandshakeTest.cc
  6621. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6622. Bump version number to 0.13.0b
  6623. * configure.ac
  6624. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6625. Updated doc.
  6626. * src/MessageDigestHelper.h:
  6627. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6628. Use raw message digest as a token instead of its hexadecimal
  6629. representation.
  6630. * src/DHTTokenTracker.cc (generateToken)
  6631. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6632. Added Message Stream Encryption(MSE) support.
  6633. Currently, aria2 accepts incoming connections with Obfuscation Header
  6634. and legacy BitTorrent Header and establishes connections with
  6635. Obfuscation Header first and if failed then retry with legacy
  6636. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  6637. choose ARC4. The new option to change the default behavior is planned.
  6638. For tracker extension, "supportcrypto=1" is added statically.
  6639. * src/PeerInitiateConnectionCommand.{h, cc}
  6640. * src/PeerConnection.{h, cc}
  6641. * src/HandleRegistry.h
  6642. * src/SocketCore.h
  6643. * src/PeerReceiveHandshakeCommand.{h, cc}
  6644. * src/BtRegistry.{h, cc}
  6645. * src/PeerListenCommand.cc
  6646. * src/InitiatorMSEHandshakeCommand.{h, cc}
  6647. * src/ReceiverMSEHandshakeCommand.{h, cc}
  6648. * src/MSEHandshake.{h, cc}
  6649. * src/ARC4Encryptor.h
  6650. * src/ARC4Decryptor.h
  6651. * src/LibgcryptARC4Encryptor.h
  6652. * src/LibgcryptARC4Decryptor.h
  6653. * src/LibgcryptARC4Context.h
  6654. * src/LibsslARC4Encryptor.h
  6655. * src/LibsslARC4Decryptor.h
  6656. * src/LibsslARC4Context.h
  6657. * src/DHKeyExchange.h
  6658. * src/LibgcryptDHKeyExchange.h
  6659. * src/LibsslDHKeyExchange.h
  6660. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  6661. * test/DefaultBtAnnounceTest.cc
  6662. * test/ARC4Test.cc
  6663. * test/DHKeyExchangeTest.cc
  6664. Removed prepareForRetry() because it is not used.
  6665. * src/PeerAbstractCommand.{h, cc}
  6666. * src/PeerInteractionCommand.{h, cc}
  6667. * src/PeerInitiateConnectionCommand.{h, cc}
  6668. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6669. Added the ability to load nodes from torrent file. These nodes are
  6670. added to the routing table when downloading that torrent.
  6671. * src/BtContext.h
  6672. * src/DefaultBtContext.{h, cc}
  6673. * src/DHTSetup.cc
  6674. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  6675. hostname and port pair, and resolves all of them.
  6676. * src/NameResolver.{h, cc}: Added reset().
  6677. * src/RequestGroup.cc
  6678. * test/DefaultBtContextTest.cc
  6679. * test/MockBtContext.h
  6680. Removed assert() from DefaultBtContext and throw exception instead.
  6681. * src/DefaultBtContext.cc
  6682. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6683. Fixed segmentation fault bug when exiting if dht is disabled.
  6684. * src/RequestGroup.cc
  6685. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6686. Fixed typo in log message and define the message in message.h
  6687. * src/TimedHaltCommand.cc
  6688. * src/message.h
  6689. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6690. Included RecoverableException.h to fix compilation error.
  6691. * test/DHTMessageFactoryImplTest.cc
  6692. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6693. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  6694. * test/DHTPingMessageTest.cc
  6695. * test/DHTGetPeersMessageTest.cc
  6696. * test/DHTFindNodeMessageTest.cc
  6697. * test/DHTAnnouncePeerMessageTest.cc
  6698. * test/MockDHTMessage.h
  6699. * test/MockDHTMessageFactory.h
  6700. * test/MockDHTMessageDispatcher.h: New class.
  6701. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6702. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  6703. virtual.
  6704. * src/DHTMessageDispatcher.h
  6705. * src/DHTMessageDispatcherImpl.{h, cc}
  6706. * src/DHTSetup.cc
  6707. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6708. Adding handling of DHT error message. Just log error message and
  6709. throw exception.
  6710. * src/DHTMessageFactoryImpl.cc
  6711. * test/DHTMessageFactoryImplTest.cc
  6712. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6713. Added handling of dynamic cast failure.
  6714. * src/DHTNodeLookupTask.cc
  6715. * src/DHTPeerLookupTask.cc
  6716. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6717. Added the ability to stop aria2 itself when given time has passed
  6718. from start. Use --stop option to specify time in minutes.
  6719. When 0 is given, this feature is disabled.
  6720. * src/OptionHandlerFactory.cc
  6721. * src/TimeBasedCommand.h: Make _interval protected scope.
  6722. * src/HelpItemFactory.cc
  6723. * src/option_processing.cc
  6724. * src/prefs.h
  6725. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  6726. before calling RequestGroupMan::fillRequestGroupFromReserver().
  6727. Without this modification, the result list shows "ERR" when aria2 is
  6728. stopped by --stop option. It should be "INPR".
  6729. * src/DownloadEngine.{h, cc}
  6730. * src/DownloadEngineFactory.cc
  6731. * src/usage_text.h
  6732. * src/TimedHaltCommand.{h, cc}: New class.
  6733. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6734. Bootstrap through node added by port message.
  6735. Currently bootstrap is executed if the number of buckets in routing
  6736. table is 1.
  6737. * src/BtPortMessage.{h, cc}
  6738. * src/DefaultBtMessageFactory.{h, cc}
  6739. * src/PeerInteractionCommand.cc
  6740. * test/BtPortMessageTest.cc
  6741. * test/MockDHTTask.h
  6742. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6743. Extract the Peer class's member variables, which are only needed after
  6744. PeerInteractionCommand, into PeerSessionResource class.
  6745. This class is instantiated in PeerInteractionCommand class's ctor and
  6746. released in its dtor.
  6747. This will make Peer class lightweight and uses less memory for peers
  6748. which are not connected and wait in the queue.
  6749. * src/PeerChokeCommand.cc
  6750. * src/PeerSessionResource.{h, cc}
  6751. * src/PeerInteractionCommand.cc
  6752. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  6753. * src/DefaultBtInteractive.cc
  6754. * src/BtPieceMessage.cc
  6755. * src/BtInterestedMessage.cc
  6756. * src/BtUnchokeMessage.cc
  6757. * src/DefaultPeerStorage.{h, cc}
  6758. * src/PeerInitiateConnectionCommand.cc
  6759. * src/ActivePeerConnectionCommand.cc
  6760. * src/BtNotInterestedMessage.cc
  6761. * src/DefaultBtMessageDispatcher.cc
  6762. * src/BtChokeMessage.cc
  6763. * src/BtRequestMessage.cc
  6764. * src/Peer.{h, cc}
  6765. * src/BtRegistry.h
  6766. * src/TrackerWatcherCommand.cc
  6767. * src/PeerReceiveHandshakeCommand.cc
  6768. * test/BtExtendedMessageTest.cc
  6769. * test/BtAllowedFastMessageTest.cc
  6770. * test/BtCancelMessageTest.cc
  6771. * test/DefaultPieceStorageTest.cc
  6772. * test/BtBitfieldMessageTest.cc
  6773. * test/BtHaveMessageTest.cc
  6774. * test/BtNotInterestedMessageTest.cc
  6775. * test/BtRequestMessageTest.cc
  6776. * test/PeerSessionResourceTest.cc
  6777. * test/DefaultBtMessageDispatcherTest.cc
  6778. * test/PeerTest.cc
  6779. * test/BtInterestedMessageTest.cc
  6780. * test/BtRejectMessageTest.cc
  6781. * test/BtChokeMessageTest.cc
  6782. * test/DefaultPeerStorageTest.cc
  6783. * test/BtHaveNoneMessageTest.cc
  6784. * test/BtHaveAllMessageTest.cc
  6785. * test/DefaultExtensionMessageFactoryTest.cc
  6786. * test/BtUnchokeMessageTest.cc
  6787. * test/DefaultBtMessageFactoryTest.cc
  6788. * test/HandshakeExtensionMessageTest.cc
  6789. * test/UTPexExtensionMessageTest.cc
  6790. * test/DefaultBtRequestFactoryTest.cc
  6791. * test/BtPieceMessageTest.cc
  6792. Removed typedef PeerStats.
  6793. * src/PeerStat.h
  6794. * src/SegmentMan.cc
  6795. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6796. Added std namespace to copy, remove_copy, back_inserter,
  6797. front_inserter.
  6798. * src/RequestGroupMan.cc
  6799. * src/DefaultPieceStorage.cc
  6800. * src/StreamFileAllocationEntry.cc
  6801. * src/BtFileAllocationEntry.cc
  6802. * src/RequestGroup.cc
  6803. * src/MetalinkEntry.cc
  6804. * src/DelegatingPeerListProcessor.cc
  6805. * src/DefaultBtRequestFactory.cc
  6806. * src/DefaultBtMessageDispatcher.cc
  6807. * src/version_usage.cc: Included <algorithm>
  6808. * src/main.cc
  6809. * src/MetalinkParserController.cc
  6810. * src/DefaultBtContext.cc
  6811. * src/DownloadEngineFactory.cc
  6812. * src/a2algo.h
  6813. Removed.
  6814. * test/StreamUriListParserTest.cc
  6815. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6816. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  6817. ActivePeerConnectionCommand when it is given and
  6818. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  6819. * src/ActivePeerConnectionCommand.{h, cc}
  6820. * src/BtSetup.cc
  6821. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6822. Only add socket to DownloadEngine's select routine when peer or
  6823. localhost is unchoked and interested. This lowers CPU usage a
  6824. little bit.
  6825. * src/PeerInteractionCommand.cc
  6826. * src/PeerAbstractCommand.{h, cc}
  6827. * src/BtInteractive.h
  6828. * src/DefaultBtInteractive.{h, cc}
  6829. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6830. Revert previous change because get_peers message is needed for
  6831. announce_peer anyway.
  6832. * src/DHTGetPeersCommand.cc
  6833. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6834. Request peers thought DHT only when download hasn't finished.
  6835. * src/DHTGetPeersCommand.cc
  6836. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6837. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  6838. * src/DHTBucketRefreshTask.{h, cc}
  6839. * src/DHTSetup.cc
  6840. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6841. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  6842. standard classes.
  6843. Included string.h where mem* function are used.
  6844. Added namespace aria2.
  6845. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6846. Create directory before saving DHT routing table.
  6847. Now ios::failure is now handled properly.
  6848. * src/DHTAutoSaveCommand.cc
  6849. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6850. Removed unnecessary cerr.
  6851. * src/DownloadEngine.cc
  6852. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6853. Catch exception inside DHTMessageReceiver::receiveMessage().
  6854. Log unknown message.
  6855. * src/DHTMessageReceiver.{h, cc}
  6856. * src/DHTMessageFactory.h
  6857. * src/DHTMessageFactoryImpl.{h, cc}
  6858. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  6859. * src/DHTInteractionCommand.cc
  6860. * src/DHTUnknownMessage.{h, cc}
  6861. * test/DHTUnknownMessageTest.cc
  6862. * test/MockDHTMessageFactory.h
  6863. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6864. Commented out ip address comparison because a host can have multiple
  6865. ip addresses and it is hard to predict the hostname is resolved into
  6866. which one.
  6867. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  6868. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6869. * po/Makefile.in: Removed since this is generated by configure.
  6870. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6871. Fixed compiler warning about redefinition of SIZE_MAX.
  6872. Use common.h instead of config.h directly here.
  6873. * src/Platform.{h, cc}
  6874. The check of ENABLE_NLS is made in gettext.h, so it is not required
  6875. here.
  6876. * common.h
  6877. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  6878. Updated gettext related files.
  6879. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  6880. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  6881. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6882. Added DHT functionality, compatible with mainline.
  6883. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  6884. You may need to specify entry point to DHT network using
  6885. --dht-entry-point. DHT uses UDP port to listen incoming message.
  6886. Use --dht-listen-port to specify port number. Make sure that your
  6887. firewall configuration can pass through UDP traffic to the port.
  6888. The routing table is saved in $HOME/.aria2/dht.dat.
  6889. * src/DHT*
  6890. * src/BNode.{h, cc}
  6891. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  6892. particular torrent.
  6893. * src/Data.cc: Rewritten ctor.
  6894. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  6895. --dht-entry-point.
  6896. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  6897. * src/RequestGroup.cc: Initialize DHT functionality. When download
  6898. ends, remove BtContext from DHTPeerAnnounceStorage.
  6899. * src/BtPortMessage.{h, cc}: Rewritten.
  6900. * src/message.h
  6901. * src/OptionHandlerImpl.cc
  6902. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  6903. --dht-entry-point.
  6904. * src/Dictionary.{h, cc} (remove): New function.
  6905. * src/prefs.h
  6906. * src/DefaultBtMessageFactory.h
  6907. * src/BtHandshakeMessage.cc
  6908. * src/ActivePeerConnectionCommand.cc
  6909. * src/SocketCore.{h, cc}: Added datagram socket support.
  6910. * src/DefaultBtMessageFactory.cc
  6911. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  6912. Create DHT commands.
  6913. * src/BtMessageFactory.h
  6914. * src/PeerMessageUtil.{h, cc}
  6915. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6916. Fixed the bug that log file is not written when configuration file doesn't exist.
  6917. This is caused by using Logger class before LogFactory is not configured.
  6918. BUG #1875079
  6919. * src/option_processing.cc
  6920. Warning message "configuration doesn't exist" is only printed when --conf is
  6921. given.
  6922. * src/option_processing.cc
  6923. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6924. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  6925. ShaVisitor is now deprecated and slated to be removed.
  6926. * src/DefaultBtContext.cc
  6927. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6928. Externalize message to message.h
  6929. * src/Platform.cc
  6930. * src/message.h
  6931. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6932. Set default domain and default path to cookie.
  6933. * src/HttpResponse.cc
  6934. * src/CookieBox.{h, cc}
  6935. * src/CookieParser.{h, cc}
  6936. * test/CookieParserTest.cc
  6937. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6938. Added --no-conf and --conf-path command-line option.
  6939. --no-conf option disables loading aria2.conf file.
  6940. --conf-path option changes the configuration file path. The default
  6941. file path is $HOME/.aria2/aria2.conf
  6942. Added a warning message when the configuration file is not found.
  6943. * src/HelpItemFactory.cc
  6944. * src/option_processing.cc
  6945. * src/prefs.h
  6946. * src/usage_text.h
  6947. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6948. Added the message to inform users that other help categories are
  6949. available in -h option.
  6950. * src/version_usage.cc
  6951. * src/TagContainer.{h, cc}
  6952. * test/TagContainerTest.cc
  6953. * src/TaggedItem.{h, cc}
  6954. * test/TaggedItemTest.cc
  6955. * src/HelpItem.h
  6956. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6957. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  6958. from PiecedSegment's ctor.
  6959. Previously Piece::getAllMissingBlockIndexes() is called from
  6960. PiecedSegment() but it is rather expensive since only first element is
  6961. used.
  6962. * src/PiecedSegment.cc
  6963. * src/Piece.{h, cc}
  6964. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6965. Rewritten get*Missing*Index functions. Now no need to allocate memory
  6966. each time these functions are called.
  6967. * src/BitfieldMan.{h, cc}
  6968. * test/BitfieldManTest.cc
  6969. * src/array_fun.h
  6970. * test/array_funTest.cc
  6971. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  6972. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  6973. filtered. Removed unnecessary cast to int32_t.
  6974. * src/BitfieldMan.{h, cc}
  6975. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6976. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  6977. payload length(4bytes) are received. This happens because lenbufLength
  6978. is not updated in this particular case and successive call of
  6979. receiveMessage() overwrites payload length with bytes recieved which
  6980. are payload body.
  6981. * src/PeerConnection.{h, cc}
  6982. * src/message.h
  6983. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6984. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  6985. peer if there are peers that have same ipaddr and port.
  6986. I've experiened segmentation fault and "pure virtual function was
  6987. called" error.
  6988. * src/Peer.h
  6989. * test/PeerTest.cc
  6990. * src/DefaultPeerStorage.cc
  6991. * test/DefaultPeerStorageTest.cc
  6992. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6993. Removed a call to isPowerOf() because it is no longer necessary here
  6994. and a request block is not always power of 2.
  6995. BUG#1866924
  6996. * src/PeerMessageUtil.cc (checkLength)
  6997. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6998. Fixed the bug that always first found Segment is removed from
  6999. usedSegmentEntries. Removed unused functions.
  7000. * src/SegmentMan.{h, cc}
  7001. * test/SegmentManTest.cc
  7002. Fixed the bug that ServerHost is not removed.
  7003. * src/RequestGroup.cc
  7004. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7005. Fixed the bug that SegmentMan::completeSegment() is not called
  7006. even if Segment is complete when --lowest-speed-limit is enabled.
  7007. BUG#1864525
  7008. * src/DownloadCommand.{h, cc}
  7009. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7010. Fixed: hash algorithm 'sha1' is always used.
  7011. * src/DownloadCommand.cc (validatePieceHash)
  7012. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7013. Added --enable-peer-exchange command-line option.
  7014. * src/OptionHandlerFactory.cc
  7015. * src/HelpItemFactory.cc
  7016. * src/option_processing.cc
  7017. * src/usage_text.h
  7018. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7019. Move extension from BtRuntime to ExtensionMessageFactory, because
  7020. extension can be specified per peer, not per torrent.
  7021. * src/DefaultBtInteractive.cc
  7022. * src/BtRuntime.h
  7023. * src/ExtendedMessagingAware.h
  7024. * src/ExtensionMessageFactory.h
  7025. * src/DefaultExtensionMessageFactory.cc
  7026. * test/DefaultExtensionMessageFactoryTest.cc
  7027. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7028. Added categorized option help. Specify category using --help option.
  7029. Also added the ability to search options in forward match.
  7030. * src/HelpItem.{h, cc}
  7031. * test/HelpItemTest.cc
  7032. * src/HelpItemFactory.{h, cc}
  7033. * src/TagContainer.{h, cc}
  7034. * test/TagContainerTest.cc
  7035. * src/option_processing.cc
  7036. * src/prefs.h
  7037. * src/TaggedItem.{h, cc}
  7038. * test/TaggedItemTest.cc
  7039. * src/version_usage.cc
  7040. * src/help_tags.h
  7041. * src/usage_text.h
  7042. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7043. Fixed segmentation fault when bad torrent metainfo is parsed.
  7044. Added dynamic_cast properly to detect the misconfiguration of metainfo
  7045. and then throw exception or skip it.
  7046. * src/DefaultBtContext.{h, cc}
  7047. * test/DefaultBtContextTest.cc
  7048. * src/AnnounceList.cc
  7049. * src/CompactPeerListProcessor.cc
  7050. * src/message.h
  7051. * src/DefaultBtAnnounce.{h, cc}
  7052. * test/DefaultBtAnnounceTest.cc
  7053. * src/BencodeVisitor.cc
  7054. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7055. Added missing "B"(=Byte). So now the message looks like this:
  7056. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  7057. * src/message.h (MSG_SHARE_RATIO_REPORT)
  7058. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7059. Show the seed ratio after torrent downloads.
  7060. For example, after torrent download completed and --seed-time and
  7061. --seed-ratio conditions are fulfilled, following message is printed
  7062. right after "Download complete: .....":
  7063. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  7064. * src/RequestGroupMan.cc
  7065. * src/RequestGroup.{h, cc}
  7066. * src/message.h
  7067. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7068. Remove a defunct control file. A defunct control file means that while
  7069. it exists, but the corresponding download file is missing.
  7070. After its removal, a download restarts from the beginning.
  7071. * src/RequestGroup.cc
  7072. * src/message.h
  7073. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7074. Allocate bitfield in Peer when it is really used. More specifically,
  7075. bitfield in Peer is allocated after the connection is established and
  7076. deallocated when the connection is dropped.
  7077. Since 2 parameters(piece length and total length) was removed from the
  7078. constructor of Peer class, many test classes were modified accordingly.
  7079. See svn log for more detailed information.
  7080. * src/PeerInteractionCommand.cc
  7081. * src/CompactPeerListProcessor.cc
  7082. * src/Peer.cc
  7083. * src/DefaultPeerListProcessor.cc
  7084. * src/PeerListenCommand.cc
  7085. * src/PeerReceiveHandshakeCommand.cc
  7086. Fixed memory leak
  7087. * src/Piece.cc
  7088. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7089. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  7090. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  7091. command-line options.
  7092. * src/option_processing.cc
  7093. * src/ActivePeerConnectionCommand.cc
  7094. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7095. Send have message to peer if it already has the piece.
  7096. * src/BtHaveMessage.{h, cc}
  7097. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7098. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  7099. port.
  7100. * src/DefaultPeerStorage.{h, cc}
  7101. * test/DefaultPeerStorageTest.cc
  7102. * src/HandshakeExtensionMessage.cc
  7103. * test/HandshakeExtensionMessageTest.cc
  7104. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  7105. * src/PeerStorage.h
  7106. * test/MockPeerStorage.h
  7107. * src/PeerListenCommand.cc
  7108. * src/PeerReceiveHandshakeCommand.cc
  7109. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7110. Added --metalink-enable-unique-protocol option.
  7111. * src/Metalink2RequestGroup.cc
  7112. * src/option_processing.cc
  7113. * src/prefs.h
  7114. * src/version_usage.cc
  7115. * doc/aria2c.1.txt
  7116. * doc/aria2c.1
  7117. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7118. Allow a peer in incomingPeer to be added peers.
  7119. * src/DefaultPeerStorage.cc
  7120. * test/DefaultPeerStorageTest.cc
  7121. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7122. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  7123. I could reproduce this bug in following procedure:
  7124. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  7125. 2. Restart aria2.
  7126. 3. You see the download stopped around 99%.
  7127. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  7128. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  7129. If timeout is reached, then _nextCommand is unused and it may contains
  7130. segments and they won't be canceled. Actually, timeout is not needed
  7131. here because if the server dropped connection, then retry is made.
  7132. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7133. Added uTorrent compatible Peer Exchange.
  7134. * src/BencodeVisitor.{h, cc}
  7135. * test/BencodeVisitorTest.cc
  7136. * src/BtConstants.h
  7137. * src/BtContext.h: Added 'private' flag.
  7138. * src/BtExtendedMessage.{h, cc}
  7139. * test/BtExtendedMessageTest.cc
  7140. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  7141. reserved field.
  7142. * test/BtHandshakeMessageTest.cc
  7143. * src/BtMessageFactory.h
  7144. * src/BtRegistry.h
  7145. * src/BtRuntime.h: This class holds default extension message IDs for
  7146. aria2. By default, aria2 uses ID 8 for ut_pex.
  7147. * src/DefaultBtContext.cc
  7148. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  7149. When it is true, aria2 enables ut_pex. This value is set by
  7150. PeerInteractionCommand.
  7151. * src/DefaultBtMessageFactory.{h, cc}
  7152. * test/DefaultBtMessageFactoryTest.cc
  7153. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  7154. handling to DefaultBtInteractive class.
  7155. * src/DefaultExtensionMessageFactory.{h, cc}
  7156. * test/DefaultExtensionMessageFactoryTest.cc
  7157. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  7158. the container(peers and incomingPeers. The equality is determined by
  7159. Peer::id).
  7160. * test/DefaultPeerStorageTest.cc
  7161. * src/ExtensionMessage.h
  7162. * test/MockExtensionMessage.h
  7163. * src/ExtensionMessageFactory.h
  7164. * test/MockExtensionMessageFactory.h
  7165. * src/HandshakeExtensionMessage.{h, cc}
  7166. * test/HandshakeExtensionMessageTest.cc
  7167. * src/MetaEntry.h
  7168. * src/Peer.{h, cc}
  7169. * src/PeerInteractionCommand.cc
  7170. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  7171. addIncomingPeer.
  7172. * src/PeerMessageUtil.{h, cc}
  7173. * src/PeerObject.h
  7174. * src/UTPexExtensionMessage.{h, cc}
  7175. * test/UTPexExtensionMessageTest.cc
  7176. * src/message.h
  7177. * src/prefs.h
  7178. Fixed the bug that returns incomplete data when it contains null
  7179. character. A convenient constructor was also added.
  7180. * src/Data.{h, cc}
  7181. Rewritten.
  7182. * src/CompactPeerListProcessor.cc
  7183. Fixed typos.
  7184. * src/message.h
  7185. * src/MetaFileUtil.cc
  7186. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7187. Added "Status Legend" label to the explanation text of 'stat' in
  7188. download result and moved it to the last. BUG#1848214
  7189. * src/RequestGroupMan.cc
  7190. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7191. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  7192. * src/Makefie.am
  7193. * test/Makefile.am
  7194. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7195. Fixed the bug that prevents aria2 from loading cookie file when expire
  7196. value is greater than 2^31-1. BUG#1851066
  7197. * src/CookieBoxFactory.cc
  7198. * test/CookieBoxFactoryTest.cc
  7199. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7200. Fixed possible memory leak when an exception is thrown.
  7201. * src/XML2SAXMetalinkProcessor.cc
  7202. Added Expat support. If both libxml2 and Expat are installed, then
  7203. libxml2 is used by default.
  7204. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  7205. ExpatMetalinkProcessor according to the configuration.
  7206. * src/ExpatMetalinkProcessor.{h, cc}
  7207. * src/main.cc: Removed libxml2 specific header and init/free function.
  7208. * src/MetalinkProcessorFactory.{h, cc}
  7209. * src/MetalinkHelper.cc
  7210. * src/Metalinker.h: Removed unnecessary libxml2 header.
  7211. * src/MetalinkProcessor.h
  7212. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  7213. MetalinkProcessorTest is used instead.
  7214. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  7215. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  7216. MetalinkProcessorFactory::newInstance().
  7217. * m4/libexpat.m4
  7218. * configure.ac: Added configuration options for libexpat.
  7219. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7220. Disabled -s option in metalink download.
  7221. * src/Metalink2RequestGroup.cc
  7222. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7223. If several protocols are available for a mirror in metalink file,
  7224. aria2 now use one of them. --metalink-preferred-protocol option was
  7225. added to specify the preference of protocol.
  7226. * src/AbstractCommand.cc
  7227. * src/OptionHandlerFactory.cc
  7228. * src/ServerHost.{h, cc}
  7229. * src/Metalink2RequestGroup.cc
  7230. * src/RequestGroup.{h, cc}
  7231. * test/RequestGroupTest.cc
  7232. * src/option_processing.cc
  7233. * src/prefs.h
  7234. * src/HttpResponseCommand.cc
  7235. * src/MetalinkResource.{h, cc}
  7236. * src/FtpNegotiationCommand.cc
  7237. * src/MetalinkEntry.{h, cc}
  7238. * src/MetalinkEntryTest.cc
  7239. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7240. Code cleanup and added debug log.
  7241. * src/PeerConnection.cc
  7242. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7243. Compiler error fix: applied the patch by Tiziano Mueller
  7244. * src/RequestGroup.cc
  7245. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7246. Fixed the bug: only first announce URL is tried in AnnounceTier,
  7247. in stopped and completed event.
  7248. * src/AnnounceList.{h, cc}
  7249. * test/AnnounceListTest.cc
  7250. * src/DefaultBtAnnounce.cc
  7251. * test/DefaultBtAnnounceTest.cc
  7252. Sorted URLs.
  7253. * test/Metalink2RequestGroupTest.cc
  7254. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7255. Removed unnecessary string copy. Updated doc and corrected indentation.
  7256. * src/Base64.cc
  7257. Fixed compilation warnings
  7258. * test/DataTest.cc
  7259. * test/HttpRequestTest.cc
  7260. * test/MetaFileUtilTest.cc
  7261. * test/RequestTest.cc
  7262. * Release 0.12.0
  7263. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7264. Updated translations
  7265. * po/{de,fr,ja,nl,ru}.po
  7266. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  7267. translations. Many thanks to translators.
  7268. * po/{ca,es,it,pt_BR,sv}.po
  7269. * po/LINGUAS
  7270. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7271. Added a notice about URL
  7272. * src/version_usage.cc
  7273. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  7274. Fixed the bug#1845750; CTRL+C does not stop torrent.
  7275. aria2 repeatedly sends stopped request when tracker returns error code.
  7276. * src/AnnounceList.cc
  7277. * test/AnnounceListTest.cc
  7278. * src/AnnounceTier.h
  7279. Added a message when ctrl-c is hit.
  7280. Now second ctrl-c is also handled in signal handler.
  7281. * src/RequestGroupMan.{h, cc}
  7282. * src/RequestGroup.{h, cc}
  7283. * src/MultiUrlRequestInfo.cc
  7284. * src/DownloadEngine.cc
  7285. * src/TrackerWatcherCommand.cc
  7286. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7287. Code cleanup
  7288. * src/Base64.cc (encode)
  7289. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7290. Changed Direct/IO enable/disable procesure in file allocation routine.
  7291. * src/SingleFileAllocationIterator.cc
  7292. (SingleFileAllocationIterator):
  7293. Disable directIO if offset is not multiple of 512.
  7294. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  7295. * src/MultiFileAllocationIterator.cc (allocateChunk):
  7296. Enable created SingleFileAllocationIterator's directIO.
  7297. * src/FileAllocationEntry.cc
  7298. (FileAllocationEntry): Enable directIO here.
  7299. (~FileAllocationEntry): Disable directIO here.
  7300. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7301. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  7302. * src/Peer.{h, cc}
  7303. * src/DefaultPieceStorage.cc
  7304. * test/DefaultPieceStorageTest.cc
  7305. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7306. Rewritten direct I/O support routine
  7307. * src/SingleFileAllocationIterator.cc
  7308. * src/MultiDiskAdaptor.{h, cc}
  7309. * src/ByteArrayDiskWriter.h
  7310. * src/AbstractSingleDiskAdaptor.h
  7311. * src/AbstractDiskWriter.cc
  7312. * src/DefaultPieceStorage.cc
  7313. * src/DiskWriter.h
  7314. * src/BinaryStream.h
  7315. * src/IteratableChunkChecksumValidator.cc
  7316. * src/IteratableChecksumValidator.cc
  7317. * src/CheckIntegrityEntry.cc
  7318. * src/FileAllocationEntry.cc
  7319. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7320. Fixed typo
  7321. * src/version_usage.cc
  7322. Updated doc
  7323. * doc/aria2c.1.txt
  7324. * doc/aria2c.1
  7325. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7326. Fixed compile error without message digest support.
  7327. * src/FileMetalinkParserState.cc
  7328. * src/MetalinkParserController.{h, cc}
  7329. * test/XML2SAXMetalinkProcessorTest.cc
  7330. * test/MetalinkParserControllerTest.cc
  7331. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7332. Enable direct I/O support in checksum checking.
  7333. * src/IteratableChunkChecksumValidator.{h, cc}
  7334. * test/IteratableChunkChecksumValidatorTest.cc
  7335. * src/CheckIntegrityEntry.cc
  7336. * src/PieceHashCheckIntegrityEntry.cc
  7337. * src/IteratableChecksumValidator.{h, cc}
  7338. * src/BtCheckIntegrityEntry.cc: Added doc.
  7339. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7340. Added --allow-piece-length-change option.
  7341. * src/DefaultBtProgressInfoFile.cc
  7342. * test/DefaultBtProgressInfoFileTest.cc
  7343. * src/OptionHandlerFactory.cc
  7344. * src/option_processing.cc
  7345. * src/prefs.h
  7346. * src/version_usage.cc
  7347. * doc/aria2c.1.txt
  7348. * doc/aria2c.1
  7349. Fixed: duplicated result entry appears when exception is thrown in
  7350. RequestGroup::createInitiateConnectionCommand().
  7351. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  7352. Add RequestGroup to _requestGroup after RequetGroup::
  7353. createInitiateConnectionCommand() succeeds.
  7354. Externalized message
  7355. * src/XML2SAXMetalinkProcessor.cc
  7356. * src/message.h
  7357. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7358. Forced download abort when received negative response from http/ftp
  7359. server.
  7360. * src/HttpResponseCommand.cc
  7361. * src/FtpNegotiationCommand.cc
  7362. * src/HttpResponse.cc
  7363. * src/FtpConnection.cc
  7364. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7365. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  7366. the predecessor, Xml2MetalinkParser class.
  7367. I tested them against 94KB metalink file with 1234 chunk checksums.
  7368. The new one parsed it in 22msec, while it took 6000msec with old one.
  7369. * src/XML2SAXMetalinkProcessor.{h, cc}
  7370. * test/XML2SAXMetalinkProcessorTest.cc
  7371. * src/MetalinkParserController.{h, cc}
  7372. * test/MetalinkParserControllerTest.cc
  7373. * src/MetalinkParserState.h: Also added 16 subclasses.
  7374. * src/main.cc
  7375. * src/Metalink2RequestGroup.cc
  7376. * src/MetalinkHelper.cc
  7377. * src/MetalinkEntry.cc
  7378. * src/ChunkChecksum.h
  7379. Rewritten Base64 class for better performance.
  7380. * src/Base64.{h, cc}
  7381. * test/Base64Test.cc
  7382. * src/HttpRequest.cc
  7383. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7384. Fixed the bug#1841757: aria2 will connect to server to only get
  7385. file size.
  7386. * src/StreamFileAllocationEntry.cc
  7387. * src/option_processing.cc
  7388. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  7389. downloads.
  7390. * src/FtpNegotiationCommand.cc
  7391. Suppressed wrong message when finding PreDownloadHandler
  7392. * src/RequestGroup.cc
  7393. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7394. Updated usage
  7395. * src/version_usage.cc
  7396. Updated man page
  7397. * doc/aria2c.1.txt
  7398. * doc/aria2c.1
  7399. Updated po files
  7400. * po/aria2c.pot
  7401. * po/*.po
  7402. * po/*.gmo
  7403. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7404. Eliminated g++-4.2 warning
  7405. * src/DownloadHandlerConstants.{h, cc}
  7406. * src/Util.cc
  7407. * test/MetaFileUtilTest.cc
  7408. * test/PStringBuildVisitorTest.cc
  7409. Fixed bug: --check-integrity doesn't work for multi file torrent.
  7410. * src/RequestGroup.cc
  7411. * src/BtCheckIntegrityEntry.cc
  7412. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7413. Fixed a2io.h
  7414. * src/a2io.h
  7415. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7416. Added direct I/O support. The current implementation uses O_DIRECT,
  7417. which is not posix standard and is tested on linux 2.6.21.
  7418. Currently only file allocation uses direct I/O.
  7419. * src/SingleFileAllocationIterator.{h, cc}
  7420. * test/SingleFileAllocationIteratorTest.cc
  7421. * src/MultiFileAllocationIterator.{h, cc}
  7422. * test/MultiFileAllocationIteratorTest.cc
  7423. * src/BinaryStream.h
  7424. * src/DiskWriter.h
  7425. * src/AbstractDiskWriter.{h, cc}
  7426. * src/ByteArrayDiskWriter.h
  7427. * src/DiskAdaptor.h
  7428. * src/AbstractSingleDiskAdaptor.{h, cc}
  7429. * src/MultiDiskAdaptor.{h, cc}
  7430. * src/FileAllocationEntry.cc
  7431. * src/Util.{h, cc}
  7432. * src/OptionHandlerFactory.cc
  7433. * src/prefs.h
  7434. * src/version_usage.cc
  7435. * src/option_processing.cc
  7436. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  7437. handleException.
  7438. * src/MultiFileAllocationIterator.cc
  7439. Added EINTR handling
  7440. * src/SocketCore.cc
  7441. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7442. Updated usage
  7443. * src/version_usage.cc
  7444. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7445. Applied Ross's patch for MinGW port.
  7446. * src/DownloadEngine.h
  7447. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7448. Set Content-Type to SingleFileDownloadContext when http response is
  7449. received.
  7450. * src/HttpResponseCommand.cc
  7451. * src/HttpResponse.{h, cc}
  7452. * test/HttpResponseTest.cc
  7453. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7454. Rewritten to add content-type support.
  7455. * src/DownloadHandler.{h, cc}
  7456. * src/BtPostDownloadHandler.{h, cc}
  7457. * test/BtPostDownloadHandlerTest.cc
  7458. * src/MetalinkPostDownloadHandler.{h, cc}
  7459. * test/MetalinkPostDownloadHandlerTest.cc
  7460. * src/PostDownloadHandler.{h, cc}
  7461. * src/DownloadHandlerConstants.{h, cc}
  7462. * src/RequestGroup.cc
  7463. * src/HttpResponseCommand.cc
  7464. * src/FtpNegotiationCommand.cc
  7465. * src/SingleFileDownloadContext.{h, cc}
  7466. * src/RequestGroup.h
  7467. * src/RequestGroupCriteria.h
  7468. * src/ContentTypeRequestGroupCriteria.h
  7469. Added 'mem' option value for --follow-metalink, --follow-torrent.
  7470. If it is give, metalink/torrent file is not written to the disk, but
  7471. just is kept in memory. Parsing is occurred on memory.
  7472. * src/MetalinkHelper.{h, cc}
  7473. * src/MetalinkProcessor.h
  7474. * src/Xml2MetalinkProcessor.{h, cc}
  7475. * test/Xml2MetalinkProcessorTest.cc
  7476. * src/DownloadHandlerFactory.{h, cc}
  7477. * test/DownloadHandlerFactoryTest.cc
  7478. * src/PreDownloadHandler.{h, cc}
  7479. * src/OptionHandlerFactory.cc
  7480. * src/DefaultBtContext.{h, cc}
  7481. * test/DefaultBtContextTest.cc
  7482. * src/version_usage.cc
  7483. * src/Metalink2RequestGroup.{h, cc}
  7484. * src/RequestGroup.{h, cc}
  7485. * src/a2functional.h
  7486. * test/a2functionalTest.cc
  7487. * src/MemoryBufferPreDownloadHandler.{h, cc}
  7488. * src/OptionHandlerImpl.h
  7489. * src/prefs.h
  7490. * src/Util.{h, cc}
  7491. * test/UtilTest.cc
  7492. Keep DownloadResult rather than RequestGroup after downloads to reduce
  7493. memory usage.
  7494. * src/RequestGroupMan.{h, cc}
  7495. * src/DownloadEngine.cc
  7496. * src/BtDependency.{h, cc}: Changed the type of dependee from
  7497. WeakHandle to SharedHandle because WeakHandle could be null.
  7498. * src/RequestGroup.{h, cc}
  7499. * src/DownloadEngineFactory.cc
  7500. * src/DownloadResult.h
  7501. Set totalLength after download finished
  7502. * src/UnknownLengthPieceStorage.{h, cc}
  7503. Keep torrent file specified in metalink in memory.
  7504. * src/Metalink2RequestGroup.cc
  7505. * src/BtDependency.cc
  7506. * src/TrueRequestGroupCriteria.h
  7507. Fixed the bug: seekg is used where seekp should be used.
  7508. * src/ByteArrayDiskWriter.cc
  7509. * test/ByteArraydiskWriterTest.cc
  7510. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7511. Fixed syntax error
  7512. * test/SequenceTest.cc
  7513. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7514. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7515. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  7516. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7517. * src/RequestGroup.cc (downloadFinishedByFileLength)
  7518. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7519. Added the check to see whether ares_host_callback accepts timeouts
  7520. with c-ares; only c-ares 1.5.0 or newer accepts it.
  7521. * src/NameResolver.{h, cc}
  7522. * m4/libcares.m4
  7523. * configure.ac: Set C++ for language choice.
  7524. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7525. Fixed: compilation fails without c-ares/ares
  7526. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  7527. Generate http/ftp commands only when download is incomplete.
  7528. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  7529. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7530. Corrected typo. Examples are removed since they are available in man
  7531. page.
  7532. * src/version_usage.cc
  7533. Updated man page.
  7534. * doc/aria2c.1
  7535. * doc/aria2c.1.txt
  7536. * doc/makeman: Commented out sed command.
  7537. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7538. Throw DlAbortEx when a remote file is not found.
  7539. * src/HttpResponse.cc
  7540. * src/FtpNegotiationCommand.cc
  7541. * src/message.h
  7542. Overwrite an existing file if --allow-overwrite=true is given.
  7543. * src/RequestGroup.cc
  7544. Removed unused functions
  7545. * src/AbstractCommand.h
  7546. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7547. Removed 'extern' from 'extern typedef ...' in src/*.h
  7548. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7549. Updated usage
  7550. * src/version_usage.cc
  7551. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7552. Trim announce URL
  7553. * src/DefaultBtContext.cc
  7554. * test/ShaVisitorTest.cc
  7555. Trim argument s. Give trimed s to exception constructor.
  7556. * src/Util.cc (parseInt)(parseLLInt)
  7557. * test/UtilTest.cc
  7558. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7559. Set precision back to 1.
  7560. * src/ConsoleStatCalc.cc (calculateStat)
  7561. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7562. Replaced strtol with Util::parseInt
  7563. * src/ChunkedEncoding.cc
  7564. * src/HttpConnection.cc
  7565. * src/CookieBoxFactory.cc
  7566. * src/ParameterizedStringParser.cc
  7567. * src/Util.cc
  7568. * test/UtilTest.cc
  7569. * test/OptionHandlerTest.cc
  7570. * src/Request.cc
  7571. Throw exception when empty string is given. The message for exception
  7572. changed.
  7573. * src/Util.cc (parseInt)(parseLLInt)
  7574. * src/message.h
  7575. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7576. Set precision to 2 because share ratio is rounded into 1.0 if precision
  7577. set to 1.
  7578. * src/ConsoleStatCalc.cc (calculateStat)
  7579. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7580. Preallocate non-requested file which is adjacent forward to requested
  7581. file('requested' files means the files given in --select-file option)
  7582. if they share a same piece.
  7583. This fixes long pause in the file system which doesn't support sparse
  7584. files like FAT32 while downloading.
  7585. * src/MultiFileAllocationIterator.{h, cc}
  7586. * test/MultiFileAllocationIteratorTest.cc
  7587. * src/FileEntry.{h, cc}
  7588. Removed unused _option.
  7589. * src/MultiDiskAdaptor.h
  7590. * test/MultiDiskAdaptorTest.cc
  7591. * src/DefaultPieceStorage.cc
  7592. Set the default value of --seed-ratio to 1.0.
  7593. If 0.0 is given, then seeding continues regardless of share ratio.
  7594. * src/version_usage.cc
  7595. * src/option_processing.cc
  7596. * src/BtSetup.cc
  7597. * doc/aria2c.1.txt
  7598. * doc/aria2c.1
  7599. Fixed: Selective download is not working in BitTorrent
  7600. * src/RequestGroup.cc
  7601. Introduced Sequence class. Use this instead of Util::unfoldRange()
  7602. * src/PieceStorage.h
  7603. * test/MockPieceStorage.h
  7604. * src/UnknownLengthPieceStorage.h
  7605. * src/DefaultPieceStorage.{h, cc}
  7606. * src/Metalink2RequestGroup.cc
  7607. * src/RequestGroup.cc
  7608. * src/Sequence.h
  7609. * test/SequenceTest.cc
  7610. * src/IntSequence.h
  7611. * src/message.h
  7612. * src/Util.{h, cc}
  7613. * test/UtilTest.cc
  7614. Added new function 'parse' to catch exception thrown by subclass's
  7615. parseArg
  7616. * src/OptionHandler.h
  7617. * src/OptionParser.cc
  7618. * src/NameMatchOptionHandler.h
  7619. * src/OptionHandlerImpl.h
  7620. * test/OptionHandlerTest.cc
  7621. Added IntegerRangeOptionHandler. Used for --listen-port and
  7622. --select-file. Now --listen-port accepts range of port.
  7623. * src/OptionHandlerFactory.cc
  7624. * src/version_usage.cc
  7625. * src/OptionHandlerImpl.h
  7626. * src/option_processing.cc
  7627. * src/BtSetup.cc
  7628. * src/PeerListenCommand.{h, cc}
  7629. * doc/aria2c.1.txt
  7630. * doc/aria2c.1
  7631. Implemented operator< for Exception class to provide easy way to print
  7632. exception stack trace.
  7633. * src/Exception.{h, cc}
  7634. * src/main.cc
  7635. * src/option_processing.cc
  7636. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7637. * src/version_usage.cc
  7638. (showVersion): Reworked.
  7639. (showUsage): Added examples.
  7640. Removed Hint for total length and file name.
  7641. * src/Metalink2RequestGroup.cc
  7642. * src/RequestGroup.{h, cc}
  7643. * src/HttpResponseCommand.cc
  7644. * src/FtpNegotiationCommand.cc
  7645. Now --follow-torrent and --follow-metalink option work properly.
  7646. * src/RequestGroup.cc
  7647. Updated man page
  7648. * doc/aria2c.1.txt
  7649. * doc/aria2c.1
  7650. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7651. Removed.
  7652. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  7653. Use Segment::operator==()
  7654. * src/HttpConnection.cc
  7655. * src/Segment.h
  7656. Updated usage
  7657. * src/version_usage.cc
  7658. Added EINTR treatment.
  7659. * src/SocketCore.cc
  7660. * src/AbstractDiskWriter.cc
  7661. Rewritten.
  7662. * src/Util.cc (rangedFileCopy)
  7663. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7664. Fixed typo.
  7665. * src/version_usage.cc
  7666. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7667. Implemented. Now -c option works fine.
  7668. * src/DefaultPieceStorage.cc (markPiecesDone)
  7669. * test/DefaultPieceStorageTest.cc
  7670. Removed.
  7671. * src/SegmentMan.{h, cc}
  7672. (markAllPiecesDone)
  7673. (markPieceDone)
  7674. Synchronized po files with
  7675. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  7676. * src/fr.po
  7677. * src/ru.po
  7678. * src/de.po
  7679. * src/ja.po
  7680. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7681. Added ifdef and some modifications to compile without BitTorrent,
  7682. Metalink, MessageDigest
  7683. support.
  7684. * src/PieceHashCheckIntegrityEntry.cc
  7685. * src/MetalinkEntry.h
  7686. * src/version_usage.cc
  7687. * src/main.cc
  7688. * src/DownloadEngine.{h, cc}
  7689. * src/Metalink2RequestGroup.cc
  7690. * src/Peer.cc
  7691. * src/RequestGroup.cc
  7692. * src/MetalinkHelper.cc
  7693. * test/DefaultPieceStorageTest.cc
  7694. * test/MetalinkPostDownloadHandlerTest.cc
  7695. * test/Metalink2RequestGroupTest.cc
  7696. Hide TOTAL SPD when all downloads complete.
  7697. * src/ConsoleStatCalc.cc
  7698. Log target system information.
  7699. * src/main.cc
  7700. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7701. Now --metalink-location accepts a comma-deliminated list of locations.
  7702. * src/MetalinkEntry.{h, cc}
  7703. * test/MetalinkEntryTest.cc
  7704. * src/version_usage.cc
  7705. * src/Metalink2RequestGroup.cc
  7706. * src/Xml2MetalinkProcessor.cc
  7707. * test/Xml2MetalinkProcessorTest.cc
  7708. * doc/aria2c.1.txt
  7709. * doc/aria2c.1
  7710. * src/Util.cc (toUpper)(toLower): Rewritten.
  7711. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7712. Added the ability to detect duplicate download entry which is about to
  7713. download the same file other RequestGroup is downloading.
  7714. * src/RequestGroup.cc
  7715. * src/HttpResponseCommand.cc
  7716. * src/FtpNegotiationCommand.cc
  7717. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7718. Recalculates download progress when loading a control file,
  7719. if the piece length of DownloadContext is different from the one saved
  7720. in the control file. Currently in-flight pieces are ignored.
  7721. * src/DefaultBtProgressInfoFile.cc
  7722. * test/DefaultBtProgressInfoFileTest.cc
  7723. * src/Util.{h, cc}
  7724. * test/UtilTest.cc
  7725. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7726. Do not rotate tiers in announce-list.
  7727. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  7728. AnnounceList::allTiersFailed() used instead to detect whether all
  7729. tiers are tried and failed.
  7730. * test/DefaultBtAnnounceTest.cc
  7731. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  7732. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  7733. * test/AnnounceListTest.cc
  7734. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  7735. clause. Catch RecoverableException instead of DlRetryEx instead.
  7736. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7737. Implemented checksum validation feature(1 checksum for each file)
  7738. The validation takes place after the download.
  7739. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  7740. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  7741. * src/CheckIntegrityCommand.cc: Changed log message.
  7742. * src/Metalink2RequestGroup.cc: Set checksum to
  7743. SingleFileDownloadContext.
  7744. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  7745. PieceHashCheckIntegrity class.
  7746. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  7747. PieceHashCheckIntegrity class.
  7748. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  7749. * src/IteratableValidator.h: New class.
  7750. * src/message.h
  7751. * src/CheckIntegrityEntry.{h, cc}
  7752. * src/IteratableChunkChecksumValidator.{h, cc}
  7753. * src/SingleFileDownloadContext.h
  7754. * src/DownloadCommand.cc
  7755. --allow-overwrite=true is no longer needed to check file integrity
  7756. before download in BitTorrent download.
  7757. * src/RequestGroup.cc (getInitialCommand)
  7758. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  7759. throws exception.
  7760. * src/RequestGroupMan.cc (getInitialCommands)
  7761. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7762. urlencode the given url inside Request::parseUrl(...)
  7763. * src/Request.{h, cc}
  7764. * src/Util.{h, cc}
  7765. * test/RequestTest.cc
  7766. Removed #!metalink3! notation support because it is deleted from
  7767. the metalink specification.
  7768. * src/Request.{h, cc}
  7769. * test/RequestTest.cc
  7770. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7771. Don't connect server before checking file integrity at startup, if
  7772. filesize and output file path are known.
  7773. * src/AbstractCommand.cc
  7774. * src/StreamFileAllocationEntry.cc
  7775. * src/Metalink2RequestGroup.cc
  7776. * src/RequestGroup.{h, cc}
  7777. * src/HttpResponseCommand.cc
  7778. * src/FtpNegotiationCommand.cc
  7779. Added DownloadFailureException. If it is thrown, RequestGroup should
  7780. halt.
  7781. * src/AbstractCommand.cc
  7782. * src/DownloadFailureException.h
  7783. * src/RequestGroup.cc
  7784. Catch RecoverableException, instead of DlAbortEx.
  7785. * src/RequestGroupMan.cc
  7786. * src/FillRequestGroupCommand.cc
  7787. * src/MetaFileUtil.cc
  7788. * src/IteratableChunkChecksumValidator.cc
  7789. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  7790. getGID())
  7791. * src/CheckIntegrityCommand.cc
  7792. * src/message.h
  7793. Print gid instead of idx.
  7794. * src/RequestGroupMan.cc
  7795. Removed exception throwers declaration.
  7796. * src/DirectDiskAdaptor.{h, cc}
  7797. * src/SocketCore.{h, cc}
  7798. * src/MultiDiskAdaptor.{h, cc}
  7799. * src/HttpConnection.{h, cc}
  7800. * src/HttpResponse.{h, cc}
  7801. * src/DiskAdaptor.{h, cc}
  7802. * src/CopyDiskAdaptor.{h, cc}
  7803. * src/MultiDiskAdaptor.{h, cc}
  7804. * src/HttpHeaderProcessor.{h, cc}
  7805. * src/AbstractSingleDiskAdaptor.{h, cc}
  7806. * src/Util.{h, cc}
  7807. * test/UtilTest.cc
  7808. * src/DefaultDiskWriter.{h, cc}
  7809. * src/FtpConnection.{h, cc}
  7810. * src/AbstractDiskWriter.{h, cc}
  7811. Removed duplicate code.
  7812. * src/StreamCheckIntegrityEntry.cc
  7813. Removed unnecessary include.
  7814. * src/DiskWriter.h
  7815. Included Exception.h
  7816. * src/option_processing.cc
  7817. Included 2 files and added doc
  7818. * src/TrackerWatcherCommand.cc
  7819. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  7820. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7821. Changed CheckIntegrityEntry interface so that it can define
  7822. the action when all the chunk checksums are valid.
  7823. * src/CheckIntegrityEntry.h
  7824. * src/StreamCheckIntegrityEntry.{h, cc}
  7825. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  7826. are valid, then aira2 goes to seeding mode. Sometimes it is better
  7827. to exit rather than doing seeding. So, it would be good to toggle this
  7828. behavior.
  7829. * src/CheckIntegrityCommand.cc
  7830. * src/AbstractCommand.cc
  7831. * src/RequestGroup.cc
  7832. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7833. Reflect the download length of in-flight pieces.
  7834. It makes the download length readout more precise.
  7835. * src/DefaultPieceStorage.{h, cc}
  7836. * test/DefaultPieceStorageTest.cc
  7837. * src/a2functional.h
  7838. * test/a2functionalTest.cc
  7839. Lower CPU load when --max-download-limit is used.
  7840. There is up and down in speed indicator when enabling
  7841. http-pipelining but a download goes well. I think the problem is that
  7842. because http-pipelining is enabled, DownloadCommand is created for
  7843. each segment and in its constructor, PeerStat::downloadStart() is
  7844. called. In PeerStat::downloadStart(), speed calculation object is
  7845. reseted, which makes download speed zero.
  7846. * src/DownloadCommand.cc
  7847. Rewritten using accumulate.
  7848. * src/RequestGroupMan.cc (calculateStat)
  7849. Code clearnup.
  7850. * src/FtpNegotiationCommand.cc
  7851. * src/HttpResponseCommand.cc
  7852. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7853. Fixed: Can not resume: aria2 reports download already finished.
  7854. * src/AbstractCommand.{h, cc}
  7855. * src/HttpResponseCommand.cc
  7856. * src/FtpNegotiateCommand.cc
  7857. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7858. Now a file is stored in the directory specified in .metalnk file
  7859. (file[@name]).
  7860. * src/Metalink2RequestGroup.cc
  7861. Create the directory structure when opening the file if it doesn't
  7862. exist.
  7863. * src/AbstractDiskWriter.cc
  7864. * src/Util.{h, cc}
  7865. * src/File.h
  7866. * test/UtilTest.cc
  7867. Removed file name comparison
  7868. * src/Metalink2RequestGroup.cc
  7869. * src/HttpResponseCommand.cc
  7870. Rewritten using Util::mkdirs()
  7871. * src/FileEntry.cc (setupDir)
  7872. * test/FileEntryTest.cc
  7873. Updated doc
  7874. * src/SingleFileDownloadContext.h
  7875. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7876. Now SleepCommand dispatches nextCommand when halt is requested.
  7877. It avoids a possible long wait after hitting CTRL-C.
  7878. * src/SleepCommand.{h, cc}
  7879. * src/RequestGroupAware.{h, cc}
  7880. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7881. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  7882. to open listen port, then remove the port number from the tracker
  7883. request.
  7884. * src/DefaultBtAnnounce.cc
  7885. * test/DefaultBtAnnounceTest.cc
  7886. * test/MockPieceStorage.h
  7887. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  7888. them more testable.
  7889. * src/DefaultBtAnnounce.{h, cc}
  7890. * src/DefaultBtContext.{h, cc}
  7891. * src/Util.{h, cc}
  7892. * test/DefaultBtAnnounceTest.cc
  7893. * test/DefaultBtContextTest.cc
  7894. * test/UtilTest.cc
  7895. Added 'B' to upload bytes readout.
  7896. * src/ConsoleStatCalc.cc
  7897. Now the listen port for BitTorrent download is opened when it is
  7898. needed.
  7899. * src/DownloadEngineFactory.cc
  7900. * src/BtSetup.{h, cc}
  7901. * src/PeerListenCommand.{h, cc}
  7902. Now an exception thrown while parsing tracker response is now logged.
  7903. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  7904. called, which means no retry is made in this case, assuming a tracker
  7905. has a problem.
  7906. * src/TrackerWatcherCommand.cc
  7907. Fixed: downloading a file whose length is unkown fails.
  7908. * src/DownloadCommand.cc
  7909. Simplified prepareForNextSegment()
  7910. * src/DownloadCommand.cc
  7911. Updated
  7912. * po/POTFILES.in
  7913. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7914. Re-implemented a file listing for Metalink, which was dropped while
  7915. http/ftp/torrent integration was being implemented.
  7916. * src/MetalinkHelper.{h, cc}: New class.
  7917. * test/MetalinkHelperTest.cc
  7918. * src/main.cc
  7919. * src/Metalink2RequestGroup.cc
  7920. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7921. Added the ability to display the detailed torrent file information.
  7922. Now -S option gives not only a file listing, but also total download
  7923. length, info hash, announce URI, piece length, the number of pieces,
  7924. and mode(single or multi-torrent).
  7925. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  7926. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  7927. KiB)
  7928. * test/UtilTest.cc
  7929. * src/main.cc
  7930. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7931. Added ftp://USER:PASSWD@Servername automatic parsing.
  7932. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  7933. _password. Recognize username and password in URI.
  7934. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  7935. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  7936. * src/RequestFactory.{h, cc}: Removed.
  7937. * src/AuthConfigFactory.{h, cc}: New class.
  7938. * src/FtpConnection.cc: Use AuthConfigFactory.
  7939. * src/HttpRequest.cc: Use AuthConfigFactory.
  7940. * test/HttpRequestTest.cc: Updated.
  7941. * test/RequestTest.cc: Updated.
  7942. * test/AuthConfigFactoryTest.cc: New class.
  7943. * test/RequestFactoryTest.cc: Removed.
  7944. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7945. Use RequestGroup::allDownloadFinished() to decide whether the control
  7946. file should be removed or saved.
  7947. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  7948. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  7949. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7950. Use File::renameTo()
  7951. * src/DefaultBtProgressInfoFile.cc
  7952. Added --no-file-allocation-limit command-line option.
  7953. * src/version_usage.cc
  7954. * src/option_processing.cc
  7955. * src/OptionHandlerFactory.cc
  7956. * src/RequestGroup.{h, cc}
  7957. * src/BtCheckIntegrityEntry.cc
  7958. * src/StreamCheckIntegrityEntry.cc
  7959. * src/prefs.h
  7960. * doc/aria2c.1.txt
  7961. * doc/aria2c.1
  7962. Now prealloc is the default value for --file-allocation option.
  7963. * src/version_usage.cc
  7964. * src/option_processing.cc
  7965. * doc/aria2c.1.txt
  7966. * doc/aria2c.1
  7967. Don't URL-encode user-agent.
  7968. * src/HttpRequest.cc
  7969. Updated translations
  7970. * po/LINGUAS: Added nl for Dutch translation.
  7971. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  7972. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  7973. * po/POTFILES.in: Updated.
  7974. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7975. Added the ability to recognize url-list in a torrent file.
  7976. The retrieved URLs are attached to the corresponding FileEntry.
  7977. * src/DefaultBtContext.{h, cc}
  7978. * src/FileEntry.{h, cc}
  7979. * test/DefaultBtContextTest.cc
  7980. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7981. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  7982. after the download finishes.
  7983. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7984. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  7985. the data smaller than block length.
  7986. A block length can be specified by constructor's argument.
  7987. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  7988. Get a missing piece in the range of given FileEntry. This function is
  7989. not used in the program yet.
  7990. * src/Util.h: Added some macros.
  7991. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7992. Added HTTP/1.1 keep alive and pipelining support.
  7993. See --enable-http-keep-alive and --enable-http-pipelining option.
  7994. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  7995. Segment.
  7996. * src/HttpDownloadCommand.{h, cc}
  7997. * src/OptionHandlerFactory.cc
  7998. * src/HttpConnection.{h, cc}
  7999. * src/version_usage.cc
  8000. * src/HttpInitiateConnectionCommand.cc
  8001. * src/FtpInitiateConnectionCommand.cc
  8002. * src/Segment.h
  8003. * src/HttpRequestCommand.{h, cc}
  8004. * src/option_processing.cc
  8005. * src/prefs.h
  8006. * src/HttpResponseCommand.cc
  8007. * src/SegmentMan.{h, cc}
  8008. * src/FtpNegotiateCommand.cc
  8009. * src/HttpProxyResponseCommand.cc
  8010. * src/Request.cc
  8011. * src/HttpRequest.cc
  8012. * src/DownloadCommand.cc
  8013. * test/HttpRequestTest.cc
  8014. * test/RequestTest.cc
  8015. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8016. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  8017. finished.
  8018. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8019. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  8020. catching it inside the method.
  8021. When no file entry is found in a metalink without querying user
  8022. preferences, throw the exception with the error message that suggests
  8023. metalink file is probably broken.
  8024. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  8025. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8026. Fixed the bug that prevents remote Metalink/Torrent file from begin
  8027. processed.
  8028. * src/RequestGroupMan.cc (removeStoppedGroup)
  8029. Added debug message.
  8030. * src/BtPostDownloadHandler.cc
  8031. * src/MetalinkPostDownloadHandler.cc
  8032. * src/PostDownloadHandler.{h, cc}
  8033. * src/RequestGroup.cc
  8034. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8035. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  8036. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8037. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  8038. stops and there are any unfinished or in-progress downloads.
  8039. Added the legend of "stat".
  8040. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8041. Throw exception when chunck checksum verification fails.
  8042. * src/DownloadCommand.cc (validatePieceHash): New function.
  8043. * src/PiecedSegment.{h, cc} (clear): New function.
  8044. * src/GrowSegment.{h, cc} (clear): New function.
  8045. * src/Segment.h (clear): New function.
  8046. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  8047. * test/SegmentTest.cc
  8048. * test/GrowSegmentTest.cc
  8049. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8050. Do not send referer when redirected.
  8051. * src/Request.cc (redirectUrl)
  8052. * test/RequestTest.cc
  8053. * test/HttpRequestTest.cc
  8054. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8055. Implemented BitTorrent/http/ftp integrated download.
  8056. I've rewritten lots of files and now some headers have forward
  8057. class declarations to reduce compile time.
  8058. The implementation is extremely alpha stage, I recommend to use this
  8059. for testing purpose only.
  8060. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8061. Fixed the compilation error on 64bit platform.
  8062. * test/HttpHeaderProcessorTest.cc
  8063. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8064. Merged Ross's patch that fixes compilation problem in MinGW
  8065. * test/DefaultBtProgressInfoFileTest.cc
  8066. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8067. Updated fr.po by sebone
  8068. * po/fr.po
  8069. Updated man page.
  8070. * doc/aria2c.1.txt
  8071. * Release 0.11.3
  8072. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8073. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  8074. failure in Metalink.
  8075. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8076. Automatically save *.aria2 control file of http/ftp download in every
  8077. 60 seconds.
  8078. * src/AutoSaveCommand.{h, cc}: New class.
  8079. * src/TimeBasedCommand.{h, cc}: New class.
  8080. * src/DownloadEngineFactory.cc (newConsoleEngine)
  8081. Disable parameterized URI support by default. Added -P option to
  8082. enable the feature.
  8083. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  8084. * src/OptionHandlerFactory.cc
  8085. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  8086. Updated Japanese translation.
  8087. * po/ja.po
  8088. Updated man page.
  8089. * doc/aria2c.1.txt
  8090. * Release 0.11.3-rc
  8091. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8092. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  8093. it is successful, then renamed to *.aria2.
  8094. This prevents *.aria2 file from being truncated or corrupted when
  8095. file system becomes out of space.
  8096. * src/DefaultBtProgressInfoFile.cc (save)
  8097. * src/SegmentMan.cc (save)
  8098. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  8099. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8100. Reduced the fragmentation of bitfield in http/ftp download.
  8101. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  8102. * test/BitfieldManTest.cc
  8103. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8104. Added the ability to disable segmented download in .metalink.
  8105. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  8106. 'url' tag.
  8107. * src/MetalinkEntry.{h, cc}
  8108. * src/RequestResource.{h, cc}
  8109. * src/MetalinkRequestInfo.cc
  8110. * src/Xml2MetalinkProcessor.cc
  8111. * test/Xml2MetalinkProcessorTest.cc
  8112. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8113. Added parameterized URI support.
  8114. * src/main.cc: -Z option added.
  8115. * src/OptionHandlerFactory.cc
  8116. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  8117. * src/PStringDatum.h: New class.
  8118. * src/PStringSegment.{h,cc}: New class.
  8119. * src/PStringNumLoop.h: New class.
  8120. * src/PStringSelect.h: New class.
  8121. * src/NumberDecorator.h: New class.
  8122. * src/FixedWidthNumberDecorator.h: New class.
  8123. * src/AlphaNumberDecorator.h: New class.
  8124. * src/PStringVisitor.h: New class.
  8125. * src/PStringBuildVisitor.{h,cc}: New class.
  8126. * src/ParameterizedStringParser.{h,cc}: New class.
  8127. * src/Util.{h,cc}
  8128. (isNumber): New function.
  8129. (isLowercase): New function.
  8130. (isUppercase): New function.
  8131. (alphaToNum): New function.
  8132. * test/ParameterizedStringParserTest.cc: New class.
  8133. * test/AlphaNumberDecoratorTest.cc: New class.
  8134. * test/PStringBuildVisitorTest.cc: New class.
  8135. * test/UtilTest.cc
  8136. (testIsNumber): New function.
  8137. (testIsLowercase): New function.
  8138. (testIsUppercase): New function.
  8139. (testAlphaToNum): New function.
  8140. Added '\n' after the error message
  8141. * src/RequestInfo.h (printDownloadAbortMessage)
  8142. Added auto file renaming feature in http(s)/ftp download.
  8143. * src/main.cc: Added --auto-file-renaming command-line option.
  8144. * src/OptionHandlerFactory.cc
  8145. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  8146. * src/RequestGroup.{h, cc}
  8147. (shouldCancelDownloadForSafety): Rewritten
  8148. (tryAutoFileRenaming): New function.
  8149. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  8150. * src/HttpResponseCommand.cc
  8151. (executeInternal): Removed the call to RequestGroupMan::
  8152. isSameFileBeingDownloaded()
  8153. * src/FtpNegotiateCommand.cc
  8154. (recvSize): Removed the call to RequestGroupMan::
  8155. isSameFileBeingDownloaded()
  8156. * test/RequestGroupTest.cc: New class.
  8157. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8158. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  8159. IO.
  8160. * src/DefaultBtProgressInfoFile.cc
  8161. * src/MetaFileUtil.cc
  8162. * src/SimpleLogger.cc
  8163. * src/SegmentMan.cc
  8164. * src/Util.cc
  8165. * src/Platform.cc
  8166. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8167. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  8168. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8169. Avoid sparse files if possible, because VFAT32 doesn't support it.
  8170. * src/DefaultDiskWriter.cc (initAndOpenFile)
  8171. Fixed the bug that prevents file allocation is not done when
  8172. dowloading multi-torrent file.
  8173. * src/AbstractDiskWriter.cc (openFile)
  8174. Increase the maximum number of -j option from 15 to 45.
  8175. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8176. Added fr.po, thanks to Charles Landemaine.
  8177. * po/fr.po
  8178. * po/LINGUAS
  8179. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8180. gcc 3.4.4 support:
  8181. * src/DefaultBtContext.cc: int32_t -> int
  8182. * src/main.cc: int -> int32_t, int32_t -> int
  8183. * src/messageDigest.h: uint32_t -> unsigned int
  8184. * src/NameResolver.h: int32_t -> int
  8185. * src/PeerConnection.cc: int -> int32_t
  8186. * src/SpeedCalc.cc: int32_t -> int
  8187. * src/TrackerUpdateCommand.h: int -> int32_t
  8188. * src/Util.cc: int32_t -> int
  8189. * src/Util.h: int32_t -> int
  8190. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  8191. * test/AnnounceListTest.cc: int -> int32_t
  8192. * test/ChunkedEncodingTest.cc: int -> int32_t
  8193. * test/DataTest.cc: int -> int32_t
  8194. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  8195. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  8196. * test/DefaultPieceStorageTest.cc: int -> int32_t
  8197. * test/FeatureConfigTest.cc: int -> int32_t
  8198. * test/MetalinkEntryTest.cc: int -> int32_t
  8199. * test/MockBtRequestFactory.h: int -> int32_t
  8200. * test/MockPieceStorage.h: int -> int32_t
  8201. * test/OptionTest.cc: int -> int32_t
  8202. * test/RequestTest.cc: int -> int32_t
  8203. * test/SegmentManTest.cc: int -> int32_t
  8204. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  8205. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8206. Move sleep functions to Util class:
  8207. * src/Util.cc
  8208. (sleep): New function.
  8209. (usleep): New function.
  8210. * src/DownloadCommand.cc: sleep -> Util::sleep
  8211. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  8212. MinGW build enhancements. The following files are added:
  8213. * src/timegm.{c,h}
  8214. Changes to support the above new files:
  8215. * configure.ac
  8216. * src/Makefile.am
  8217. * src/a2time.h
  8218. * src/Util.cc:
  8219. * src/strptime.c: Added support for %Z option.
  8220. Fixed MinGW non-blocking bug.
  8221. * src/SocketCore.cc
  8222. * src/HttpRequestCommand.cc
  8223. Miscellenous build fixes/enhancements.
  8224. * configure.ac: Added summary report.
  8225. * src/Platform.h: Tweaked #include's.
  8226. * src/a2netcompat.h: Tweaked #include's.
  8227. * src/strptime.h: Tweaked #include's.
  8228. * src/gai_strerror.c: Tweaked #include's.
  8229. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  8230. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  8231. * src/gettimeofday.h: Added HAVE_CONFIG_H
  8232. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8233. Increased the initial connection size in BitTorrent download to 40.
  8234. * src/BtRuntime.h
  8235. Added the usage message of --peer-id-prefix option.
  8236. * src/main.cc
  8237. * Release 0.11.2
  8238. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8239. MessageDigestHelper is introduced in order to simplify the use
  8240. of message digest. Removed repeated code.
  8241. The message digest algorithm is now specified by string, like "sha1",
  8242. "md5".
  8243. * src/messageDigest.{h, cc}
  8244. * src/MessageDigestHelper.{h, cc}: New class.
  8245. * src/DefaultPieceStorage.cc
  8246. * src/DefaultBtContext.{h, cc}
  8247. (computeFastSet): New function.
  8248. (setInfoHash): Added for unit testing.
  8249. (setNumPieces): Added for unit testing.
  8250. * src/DefaultBtInteractive.cc
  8251. * src/BtPieceMessage.cc
  8252. * src/Peer.cc
  8253. * src/Checksum.h
  8254. * src/message.h
  8255. * src/IteratableChecksumValidator.h
  8256. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  8257. inside it.
  8258. * src/SegmentMan.{h, cc}
  8259. (checkIntegrity): Removed.
  8260. * src/IteratableChunkChecksumValidator.{h, cc}
  8261. * src/Util.h
  8262. (sha1Sum): Removed.
  8263. (simpleMessageDigest): Removed.
  8264. (fileChecksum): Removed.
  8265. (computeFastSet): Removed.
  8266. * src/ShaVisitor.cc
  8267. * src/ChunkChecksum.h
  8268. * src/DownloadCommand.cc
  8269. Removed messageDigest virtual functions.
  8270. * src/MultiDiskAdaptor.{h, cc}
  8271. * src/DiskAdaptor.h
  8272. * src/ByteArrayDiskWriter.h
  8273. * src/DiskWriter.h
  8274. * src/DiskAdaptorWriter.h
  8275. * src/AbstractSingleDiskAdaptor.{h, cc}
  8276. * src/AbstractDiskWriter.{h, cc}
  8277. Fixed comilation error when message digest is disabled.
  8278. * src/MetalinkEntry.{h, cc}
  8279. * src/MetalinkRequestInfo.cc
  8280. Removed srandom and random.
  8281. * src/SimpleRandomizer.h
  8282. Added size() virtual function to DiskAdaptor
  8283. * src/MultiDiskAdaptor.h
  8284. Fixed the bug that causes that files are not opened correctly in
  8285. multi-file torrent.
  8286. * src/TorrentRequestInfo.cc
  8287. * src/MultiDiskAdaptor.cc
  8288. Added SHA256 support
  8289. * src/messageDigest.cc
  8290. * src/Xml2MetalinkProcessor.cc
  8291. Show supported message digest algorithms
  8292. * src/main.cc
  8293. Updated contact info.
  8294. * src/main.cc
  8295. Applied Ross's patch
  8296. * src/a2netcompat.h
  8297. * src/main.cc
  8298. Fixed the bug that prevents a remote metalink from not being processed
  8299. even if '-o foo.metalink' is specified.
  8300. * src/MetalinkRequestInfo.cc
  8301. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8302. Merged Dan's patch:
  8303. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  8304. Use va_copy to avoid core dump on amd64:
  8305. * src/SimpleLogger.cc
  8306. Updated contact info.
  8307. * src/main.cc
  8308. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  8309. digest is not available.
  8310. * src/MetalinkEntry.h
  8311. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8312. Make a2netcompat.h include a2io.h to fix compilation error:
  8313. * src/a2netcompat.h
  8314. * src/SocketCore.cc: Removed include of a2io.h
  8315. * src/Util.cc: Removed include of a2io.h
  8316. Gather time related functions to a2time.h:
  8317. * src/a2time.h: New file.
  8318. * src/DefaultPeerStorage.cc
  8319. * src/SimpleLogger.cc
  8320. * src/Util.{h, cc}
  8321. * src/SimpleRandomizer.h
  8322. * src/TimeA2.{h,cc}
  8323. * src/DownloadCommand.cc
  8324. * src/main.cc
  8325. Removed #ifdef __MINGW32__ since gai_strerror is included in
  8326. a2netcompat.h:
  8327. * src/NameResolver.cc
  8328. Fixed compilation error without openssl:
  8329. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  8330. Added default block to suppress compiler warnings:
  8331. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  8332. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  8333. MinGW build enhancements. The following files are added:
  8334. * src/gai_strerror.{c,h}
  8335. * src/gettimeofday.{c,h}
  8336. Changes to support the above new files:
  8337. * configure.ac
  8338. * src/Makefile.am
  8339. * src/a2netcompat.h
  8340. * src/TimeA2.cc
  8341. * src/DefaultPeerStorage.cc
  8342. * src/NameResolver.cc: removed mingw_strerror() function.
  8343. * src/SocketCore.cc: removed mingw_strerror() function.
  8344. Miscellaneous MinGW build fixes.
  8345. * src/a2io.h: Use _lseeki64() instead of lseek()
  8346. * src/common.h
  8347. * src/DefaultFileAllocator.cc
  8348. * src/GlowFileAllocator.cc
  8349. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  8350. * src/NameResolver.cc
  8351. (callback): Changed int32_t to int.
  8352. (resolve): Changed int32_t to int.
  8353. * src/Platform.cc
  8354. * src/Platform.h
  8355. * test/MultiDiskWriterTest.cc
  8356. * test/PeerMessageUtilTest.cc
  8357. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  8358. Other enhancements and fixes.
  8359. * src/HttpRequestCommand.cc
  8360. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  8361. * src/SocketCore.cc:
  8362. (error): New function to abstract errno/WSAGetLastError().
  8363. (errorMsg): New function to abstract errno/WSAGetLastError().
  8364. (initiateSecureConnection): Added more detailed error reporting.
  8365. * src/SocketCore.h: Added private variable blocking, to allow
  8366. proper handling of OpenSSL psuedo-errors.
  8367. * src/message.h
  8368. (EX_SSL_INIT_FAILURE)
  8369. (EX_SSL_IO_ERROR)
  8370. (EX_SSL_PROTOCOL_ERROR)
  8371. (EX_SSL_UNKNOWN_ERROR)
  8372. (EX_SSL_CONNECT_ERROR)
  8373. (EX_SOCKET_BLOCKING)
  8374. (EX_SOCKET_NONBLOCKING)
  8375. (EX_SOCKET_UNKNOWN_ERROR)
  8376. * src/Util.cc
  8377. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  8378. reserved name.
  8379. (httpGMT): Fixed typo.
  8380. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8381. Merged Ross's win32 patch(manually)
  8382. In the course of merging, following files are added.
  8383. * src/strptime.{h,c}
  8384. * src/libgen.{h,c}
  8385. * src/inet_aton.{h,c}
  8386. * src/Platform.{h,cc}
  8387. * src/localtime_r.{h,c}
  8388. * src/getaddrinfo.{h,c}
  8389. I've gethered network related things, and put them to following file:
  8390. * src/a2netcompat.h
  8391. Also io related things are put to following file:
  8392. * src/a2io.h
  8393. Changed %lld to %s because mingw32 doesn't recognize %lld.
  8394. * src/message.h
  8395. (MSG_ALLOCATION_COMPLETED)
  8396. (EX_TOO_LARGE_FILE)
  8397. (EX_SIZE_MISMATCH)
  8398. (EX_FILE_OFFSET_OUT_OF_RANGE)
  8399. (EX_INVALID_CHUNK_CHECKSUM)
  8400. (EX_INVALID_RANGE_HEADER)
  8401. * src/FileAllocationCommand.cc
  8402. * src/HttpResponse.cc
  8403. * src/RequestGroup.cc
  8404. * src/MultiDiskAdaptor.cc
  8405. * src/OptionHandlerImpl.h
  8406. * src/HttpResponseCommand.cc
  8407. * src/FtpNegotiateCommand.cc
  8408. * src/IteratableChecksumValidator.cc
  8409. * src/SegmentMan.cc
  8410. * src/ChunkChecksumValidator.cc
  8411. Added Randomizer::getRandomNumber(long int)
  8412. * src/Randomizer.h (getRandomNumber)
  8413. * src/SimpleRandomizer.h (getRandomNumber)
  8414. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  8415. * src/Util.cc (randomAlpha): Use this new function.
  8416. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8417. Converted int's to in32_t. long long int's are also converted to
  8418. int64_t
  8419. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8420. Fixed the bug that prevents cookies from being sent to the server
  8421. if the domain of cookie is FQDN and starts with ".".
  8422. * src/Cookie.cc (match)
  8423. To add the ability to change peer id.
  8424. * src/DefaultBtContext.h
  8425. (_peerIdPrefix): New variable
  8426. (setPeerIdPrefix): New function.
  8427. * src/torrentRequestInfo.cc
  8428. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  8429. DefaultBtContext.
  8430. * src/main.cc (main): Added peer-id-prefix command-line option.
  8431. The usage message is not added yet.
  8432. * src/DefaultBtContext.cc
  8433. (generatePeerId): Use _peerIdPrefix.
  8434. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  8435. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8436. Fixed the bug that prevents filename in content-disposition from
  8437. being retrieved when filename is not quoted.
  8438. * src/Util.cc (getContentDispositionFilename)
  8439. Fixed the bug that causes infinate loop and memory leak when file open
  8440. operation failed.
  8441. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  8442. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8443. Fixed the bug that causes segfault when all URIs specified are
  8444. unsupported.
  8445. * src/RequestGroupMan.cc (getInitialCommands)
  8446. Check if RequestGroup::createNextCommand() returns empty list of
  8447. commands.
  8448. * src/RequestGroup.cc (createNextCommand)
  8449. Change log level from info to error so that users can notice that
  8450. an error occurred.
  8451. Fixed the bug that causes segfault when a zero-sized file is
  8452. downloaded.
  8453. * src/BitfieldMan.cc (isAllBitSet)
  8454. Return true if bitfieldLength is 0.
  8455. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8456. * src/main.cc
  8457. (showUsage): Added 3 usage examples for metalink download.
  8458. Replace MetalinkChunkChecksum with ChunkChecksum.
  8459. * src/MetalinkChunkChecksum.h: Removed.
  8460. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  8461. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  8462. * src/Xml2MetalinkProcessor.cc
  8463. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  8464. * src/MetalinkRequestInfo.cc (execute)
  8465. * Release 0.11.1
  8466. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8467. Reads URIs from stdin when "-i -" is specified.
  8468. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  8469. * src/UriListParser.h, src/UriListParser.cc: New class.
  8470. * src/StreamUriListParser.h: New class.
  8471. * src/FileUriListParser.h: New class.
  8472. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  8473. instead of UriFileListParser.
  8474. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8475. Made console readout more readable.
  8476. * src/ConsoleDownloadEngine.cc (sendStatistics)
  8477. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8478. Fix the bug that causes -s option not to work.
  8479. * src/main.cc (main)
  8480. * src/a2algo.h: New file.
  8481. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8482. Create directory structure specified in metalink file.
  8483. * src/RequestGroup.h, src/RequestGroup.cc
  8484. (initAndOpenFile): Create a directory to store files if it does not
  8485. exist.
  8486. (getDir): New function.
  8487. Added ETA and download speed for an individual file to readout.
  8488. * src/ConsoleDownloadEngine.cc (sendStatistics)
  8489. * src/RequestGroup.h
  8490. (calculateDownloadSpeed): New function.
  8491. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8492. Made -S option work with metalink file and provided selective download
  8493. to metalink.
  8494. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  8495. (filename): Removed.
  8496. (file): New variable.
  8497. (size): Removed.
  8498. (operator=): Updated.
  8499. (getPath): New function.
  8500. (getLength): New function.
  8501. (toFileEntry): New function.
  8502. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  8503. (execute): Use toStream.
  8504. (showFileEntry): Removed.
  8505. * src/MetalinkRequestInfo.h
  8506. (targetFiles): New variable.
  8507. (setTargetFiles): New variable.
  8508. * src/MetalinkRequestInfo.cc
  8509. (execute): Added the ability to print file information included in
  8510. a metalink file.
  8511. Added selective download mode to metalink.
  8512. * src/main.cc
  8513. (showUsage): Updated to denote that -S and --select-file options are
  8514. applicable to metalink.
  8515. * src/FileEntry.h
  8516. (operator=): New function.
  8517. (getBasename): New function.
  8518. (getDirname): New function.
  8519. * src/Util.h, src/Util.cc
  8520. (toStream): New function.
  8521. * src/Xml2MetalinkProcessor.cc: Updated.
  8522. Made aria2 work with metalink with directory structure.
  8523. * src/File.h, src/File.cc
  8524. (getBasename): New function.
  8525. (getDirname): New function.
  8526. * src/RequestGroup.h, src/RequestGroup.cc
  8527. (_topDir): New variable.
  8528. (setTopDir): New function.
  8529. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  8530. Rewrote HTTP header parsing with stringstream.
  8531. * src/HttpConnection.h, src/HttpConnection.cc
  8532. (HttpRequestEntry): New class.
  8533. (headerBuf): Removed.
  8534. (headerBufLength): Removed.
  8535. (outstandingHttpRequests): Now its element type is
  8536. HttpRequestEntryHandle.
  8537. (findEndOfHeader): Removed.
  8538. (receiveResponse): Rewritten.
  8539. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  8540. Updated doc for -j option to notice that it should be used with -i
  8541. option.
  8542. * src/main.cc (showUsage)
  8543. Removed unused classes.
  8544. * src/RequestInfo.h
  8545. (FileInfo): Removed.
  8546. (checksum): Removed.
  8547. (fileInfo): Removed.
  8548. (setChecksum): Removed.
  8549. (getChecksum): Removed.
  8550. (getFileInfo): Removed.
  8551. Use ISO units.
  8552. * src/ConsoleDownloadEngine.cc
  8553. * src/TorrentConsoleDownloadEngine.cc
  8554. * src/Util.cc (abbrevSize)
  8555. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8556. Added the default listening ports to the help message.
  8557. * src/main.cc (showUsage)
  8558. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8559. Reduce the number of calls to gettimeofday to lower CPU load.
  8560. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  8561. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  8562. * src/Peer.h (calculateUploadSpeed): New function.
  8563. (calculateDownloadSpeed): New function.
  8564. * src/DefaultPeerStorage.cc
  8565. (CalculateStat): Added _now variable.
  8566. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  8567. and Peer::calculateUploadSpeed(const struct timeval&)
  8568. Drop connection if no request or piece message is exchanged in
  8569. a certain interval.
  8570. * src/DefaultBtInteractive.h
  8571. (btRuntime): New variable.
  8572. (inactiveCheckPoint): New variable.
  8573. (checkActiveInteraction): New function.
  8574. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  8575. request or piece message is received.
  8576. (checkActiveInteraction): New function.
  8577. (doInteractionProcessing): Call checkActiveInteraction.
  8578. Fixed the bug that causes remote Metalink and Torrent files are not
  8579. processed.
  8580. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  8581. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8582. Changed format of log file.
  8583. * src/SimpleLogger.cc
  8584. * Release 0.11.0
  8585. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8586. * src/AbstractCommand.cc
  8587. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  8588. MSG_MAX_TRY from error to info.
  8589. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  8590. * src/message.h
  8591. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  8592. (MSG_DOWNLOAD_ABORTED): Added %s.
  8593. (MSG_RESTARTING_DOWNLOAD): Added %s.
  8594. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  8595. * src/PeerAbstractCommand.cc
  8596. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  8597. * src/Request.h
  8598. (cookieBox): Made ShardHandle.
  8599. * src/RequestGroup.h, src/RequestGroup.cc
  8600. (createNextCommandWithAdj): New function.
  8601. * src/FileAllocationCommand.cc
  8602. (executeInternal): Use createNextCommandWithAdj().
  8603. * src/CheckIntegrityCommand.cc
  8604. (executeInternal): Use createNextCommandWithAdj().
  8605. Added --load-cookies command-option.
  8606. * src/OptionHandlerFactory.cc
  8607. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  8608. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  8609. Now aria2 can handle cookie's expiration date.
  8610. * src/Cookie.h (expires): Changed its type to time_t.
  8611. * src/main.cc: Added --load-cookies command-line option.
  8612. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  8613. * src/Util.h, src/Util.cc (httpGMT): New function.
  8614. * src/Request.cc (Request): Initialize cookieBox using
  8615. CookieBoxFactory.
  8616. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  8617. * src/CookieParser.h, src/CookieParser.cc: New class.
  8618. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  8619. * src/HttpResponseCommand.cc
  8620. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  8621. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  8622. download.
  8623. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8624. Added -j command-line option.
  8625. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8626. * src/main.cc
  8627. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  8628. Rewritten using stringstream.
  8629. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  8630. Rewritten using stringstream.
  8631. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8632. Make download size shown in MB, KB.
  8633. * src/ConsoleDownloadEngine.h (sendStatistics)
  8634. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  8635. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8636. Accept incoming connections if download rate is low.
  8637. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  8638. (_lowestSpeedLimit): New variable.
  8639. (setLowestSpeedLimit): New function.
  8640. (execute): Accept incoming connections if download rate is low.
  8641. MAX_PEERS is ignored in this case.
  8642. Disable PREF_OUT in multiple concurrent download:
  8643. * src/RequestGroup.h, src/RequestGroup.cc
  8644. (setUserDefinedFilename): New function.
  8645. * src/DownloadEngineFactory.cc
  8646. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  8647. concurrent download.
  8648. * src/DefaultSegmentManFactory.cc
  8649. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  8650. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8651. RequestGroup::getNextCommand() was renamed to createNextCommand().
  8652. Added its overloaded method.
  8653. * src/RequestGroup.h
  8654. (_numConcurrentCommand): New variable.
  8655. (setNumConcurrentCommand): New function.
  8656. * src/RequestGroup.cc
  8657. Abort download if same file is being downloaded concurrently.
  8658. * src/RequestGroup.h, src/RequestGroupMan.cc
  8659. (isSameFileBeingDownloaded): New function.
  8660. * src/HttpResponseCommand.cc (executeInternal)
  8661. * src/FtpNegotiateCommand.cc (recvSize)
  8662. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  8663. * main.cc: Added help message for -i option.
  8664. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8665. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  8666. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  8667. * src/MetalinkEntry.h
  8668. (checksum): Changed to ChecksumHandle
  8669. * src/MetalinkRequestInfo.cc
  8670. (checksum): Changed to ChecksumHandle
  8671. * src/File.cc
  8672. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  8673. * src/common.h
  8674. (DIR_OPEN_MODE): New definition
  8675. * src/RequestGroup.cc
  8676. (prepareForNextAction): Added an argument.
  8677. * src/message.h
  8678. (MSG_GOOD_CHECKSUM): New definition
  8679. (MSG_BAD_CHECKSUM): New definition
  8680. * src/HttpResponseCommand.cc
  8681. (handleDefaultEncoding): Continue download sequence in new
  8682. non-segmented download.
  8683. * src/FileAllocationEntry.h
  8684. (_nextDownloadCommand): New variable.
  8685. * src/DownloadCommand.cc
  8686. (prepareForNextSegment): Create ChecksumCommand if checksum is
  8687. available.
  8688. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  8689. * src/IteratableChecksumValidator.h,
  8690. src/IteratableChecksumValidator.cc: New class.
  8691. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  8692. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8693. Change file mode to 666:
  8694. * src/common.h (OPEN_MODE): New definition.
  8695. * src/File.cc
  8696. * src/Util.cc
  8697. * src/Directry.cc
  8698. * src/AbstractDiskWriter.cc
  8699. Change the level of log message "download aborted" to debug:
  8700. * src/PeerAbstractCommand.cc (execute)
  8701. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  8702. * src/TrackerWatcherCommand.cc
  8703. (createCommand): Sleep some seconds after request failed.
  8704. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  8705. then abort tracker request.
  8706. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8707. * Added the simultaneous download feature.
  8708. * src/main.cc: Print "Exception caught: " when exception is caught.
  8709. Use CUIDCounter instead of BtRuntime::getNewCuid():
  8710. * src/ActivePeerConnectionCommand.cc
  8711. * src/PeerInteractionCommand.cc
  8712. * src/BtRuntime.h
  8713. (cuidCounter): Removed.
  8714. (getNewCuid): Removed.
  8715. * src/DownloadEngineFactory.cc
  8716. * src/PeerListenCommand.cc
  8717. * src/TrackerUpdateCommand.cc
  8718. * src/PeerInitiateConnectionCommand.cc
  8719. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8720. * src/PeerAbstractCommand.cc
  8721. (onAbort): Call PeerStorage::returnPeer()
  8722. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  8723. (incomingPeers): New variable.
  8724. (addIncomingPeer): New function.
  8725. (returnPeer): New function.
  8726. (onErasingPeer): New function.
  8727. (addPeer): push_back -> push_front
  8728. (getActivePeers): Rewritten.
  8729. (calculateStat): Rewritten.
  8730. * src/PeerStorage.h
  8731. (TransferStat::copy): New function.
  8732. (TransferStat::TransferStat): New function.
  8733. (TransferStat::operator=): New function.
  8734. (addIncomingPeer): New function.
  8735. (returnPeer): New function.
  8736. * src/PeerListenCommand.cc
  8737. (execute): Use PeerStorage::addIncomingPeer() instead of
  8738. Peer::addPeer().
  8739. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8740. Connect to a peer actively when download speed is lower than specified
  8741. speed in torrent download:
  8742. * src/ActivePeerConnectionCommand.h: New class.
  8743. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8744. * src/HttpRequest.cc (createRequest): url-encode user-agent
  8745. * src/main.cc: Fixed the bug that prevents download if .netrc
  8746. doesn't exist.
  8747. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8748. To cache resolved hostname:
  8749. * src/AbstractCommand.h, src/AbstractCommand.cc
  8750. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  8751. Added dns cache.
  8752. * src/FtpInitiateConnectionCommand.cc
  8753. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  8754. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  8755. NameResolver working without ares.
  8756. * src/TorrentRequestInfo.cc
  8757. (execute): Don't cache dns in torrent download.
  8758. * src/HttpInitiateConnectionCommand.cc
  8759. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  8760. * src/DNSCache.h: New class.
  8761. * src/UrlRequestInfo.cc
  8762. (execute): Use dns cache.
  8763. In http request, suppress port number in http request header if port
  8764. is 80 or 443:
  8765. * src/HttpRequest.cc (getHostText): Suppress port number in http
  8766. request header if port is 80 or 443.
  8767. (createProxyRequest): Allways send port number.
  8768. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8769. To add the command-line option which disables netrc support:
  8770. * src/OptionHandlerFactory.cc
  8771. (createOptionHandlers): Added PREF_NO_NETRC.
  8772. * src/main.cc: Added -n option.
  8773. * src/prefs.h (PREF_NO_NETRC): New definition.
  8774. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  8775. V_TRUE.
  8776. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  8777. is V_FALSE. This may get configurable in the future release.
  8778. To clear peer's error status by time basis:
  8779. * src/PeerAbstractCommand.cc
  8780. (onAbort): Call Peer::startBadCondition().
  8781. * src/Peer.h, src/Peer.cc
  8782. (error): Removed.
  8783. (_badConditionStartTime): New variable.
  8784. (_badConditionInterval): New variable. Initialized to 10 seconds.
  8785. (startBadCondition): New function.
  8786. (isGood): New function.
  8787. * src/DefaultPeerStorage.cc
  8788. (addPeer): Use Peer::isGood().
  8789. (FindFinePeer): Use Peer::isGood().
  8790. Always include port number in http request header:
  8791. * src/HttpRequest.cc (getHostText): Always include port number in
  8792. http request header.
  8793. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8794. To the ability to read options from a config file:
  8795. * src/main.cc: Command-line parameter validation is delegated to
  8796. OptionHandler class.
  8797. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  8798. * src/Option.h, src/Option.cc (clear): New function.
  8799. * src/OptionParser.h, src/OptionParser.cc: New class.
  8800. * src/OptionHandler.h: New class.
  8801. * src/NameMatchOptionHandler.h: New class.
  8802. * src/OptionHandlerImpl.h: New classes.
  8803. * src/prefs.h: '_' -> '-'
  8804. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  8805. (FTP_PASV): New definition.
  8806. * src/Util.h, src/Util.cc (getRealSize): New function.
  8807. To disable netrc support if .netrc file does not have correct
  8808. permissions:
  8809. * src/File.h, src/File.cc (mode): New function.
  8810. To prevent confidential information to be logged:
  8811. * src/HttpConnection.h, src/HttpConnection.cc
  8812. (eraseConfidentialInfo): New function.
  8813. (sendRequest): Call eraseConfidentialInfo().
  8814. (sendProxyRequest): Call eraseConfidentialInfo().
  8815. * src/main.cc: Validate permissions of .netrc file.
  8816. To add --user-agent command-line option:
  8817. * src/main.cc: Added new command line option: --user-agent
  8818. * src/prefs.h (PREF_USER_AGENT): New definition.
  8819. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  8820. parameter to HttpRequest object.
  8821. * src/AbstractProxyRequestCommand.cc
  8822. (executeInternal): Set user-agent option parameter to HttpRequest
  8823. object.
  8824. Marged the patches from Dan Fandrich.
  8825. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8826. Use filename and size from Metalink file instead of sending HEAD
  8827. request:
  8828. * src/UrlRequestInfo.h
  8829. (_filename): New variable.
  8830. (_totalLength): New variable.
  8831. (setTotalLength): New variable.
  8832. (setFilename): New variable.
  8833. * src/MetalinkRequestInfo.cc
  8834. (execute): Set filename and size to UrlRequestInfo
  8835. * src/UrlRequestInfo.cc
  8836. (execute): Use filename and size from Metalink instead of seding
  8837. HEAD request to servers.
  8838. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8839. To add the ability to resume downloading a partially downloaded file
  8840. which is downloaded from the beginning:
  8841. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  8842. takes this role.
  8843. * src/main.cc: Added -c option.
  8844. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  8845. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  8846. * src/prefs.h (PREF_CONTINUE): New definition.
  8847. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  8848. * src/DefaultDiskWriter.cc
  8849. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  8850. * src/AbstractDiskWriter.h
  8851. (glowFileAllocator): New variable.
  8852. * src/AbstractDiskWriter.cc
  8853. (openExistingFile): Now preallocate file space from the end of the
  8854. existing file if totalLength argument is specified and grater than 0.
  8855. * src/UrlRequestInfo.cc: If -c option is specified and the file
  8856. to download exists in local, continue the download of the file.
  8857. --allow-overwrite=true is assumed in this context.
  8858. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  8859. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  8860. Throw exception if --check-integrity=true is specified but chunk
  8861. checksums are not provided:
  8862. * src/UrlRequestInfo.cc
  8863. Do not print URLs to stdout:
  8864. * src/UrlRequestInfo.cc
  8865. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8866. * src/Request.h: Use AuthResolver to get authentication information.
  8867. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  8868. set to RequestFactory object.
  8869. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  8870. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  8871. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  8872. create Request object.
  8873. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  8874. To integrate Netrc into exsiting classes:
  8875. * src/Request.h
  8876. (_userDefinedAuthConfig): New variable.
  8877. (findNetrcAuthenticator): New function.
  8878. (segment): Removed.
  8879. (setUserDefinedAuthConfig): New function.
  8880. (resolveHttpAuthConfigItem): New function.
  8881. (resolveFtpAuthConfigItem): New function.
  8882. (resolveHttpProxyAuthConfigItem): New function.
  8883. * src/HttpRequest.h
  8884. (authConfig): Removed.
  8885. (proxyAuthConfig): Removed.
  8886. (setAuthConfig): Removed.
  8887. (setProxyAuthConfig): Removed.
  8888. * src/UrlRequest.h
  8889. (getHeadResult): Added a parameter: authConfigHandle
  8890. * src/common.h
  8891. (SingletonHolder.h): New include.
  8892. * src/main.cc
  8893. (Netrc.h): New include.
  8894. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  8895. Added initial value of PREF_NETRC_PATH.
  8896. Added the initialization of netrc.
  8897. * src/AuthConfig.h: New class.
  8898. * src/prefs.h
  8899. (PREF_NETRC_PATH): New definition.
  8900. * src/HttpAuthConfig.h: Removed.
  8901. * src/Netrc.cc
  8902. (getRequiredNextToken): New function.
  8903. (skipMacdef): New function.
  8904. (parse): Rewritten.
  8905. * src/Netrc.h
  8906. (getRequiredNextToken): New function.
  8907. (skipMacdef): New function.
  8908. * src/Util.h, src/Util.cc
  8909. (getHomeDir): New function.
  8910. * src/TrackerWatcherComand.cc
  8911. (createRequestCommand): Use AuthConfig.
  8912. * src/FtpConnection.cc
  8913. (sendUser): Use Request::resolveFtpAuthConfigItem().
  8914. (sendPass): Use Request::resolveFtpAuthConfigItem().
  8915. * src/Request.cc
  8916. (findNetrcAuthenticator): New function.
  8917. (resolveHttpAuthConfigItem): New function.
  8918. (resolveFtpAuthConfigItem): New function.
  8919. (resolveHttpProxyAuthConfigItem): New function.
  8920. * src/UrlRequestInfo.cc: Use AuthConfig.
  8921. * src/HttpRequest.cc
  8922. (createRequest): Use authConfig.
  8923. (getProxyAuthString): Use authConfig.
  8924. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  8925. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  8926. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8927. To reduce overhead to find commands whose socket is either
  8928. readable or writable in the download engine loop:
  8929. * src/Command.h, src/Command.cc
  8930. (STATUS): New enum.
  8931. (status): New variable.
  8932. (statusMatch): New function.
  8933. (setStatusActive): New function.
  8934. (setStatusInactive): New function.
  8935. * src/DownloadEngine.h, src/DownloadEngine.cc
  8936. (executeCommand): New function.
  8937. (run): Simplified.
  8938. (waitData): Call Command::setStatusActive() when command's socket is
  8939. readable or writable.
  8940. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8941. To handle Segment as SegmentHandle:
  8942. * src/AbstractCommand.cc (execute): Rewritten.
  8943. * src/SegmentMan.h: Segment -> SegmentHandle
  8944. Introducded HttpResponse class, HttpRequest class to improve code
  8945. extensiveness and make it clear:
  8946. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  8947. HttpResponse class.
  8948. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  8949. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  8950. * src/HttpConnection.cc: Contruction of http request were moved to
  8951. HttpRequest class.
  8952. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  8953. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  8954. * src/HttpAuthConfig.h: New class.
  8955. * src/Range.h: New class.
  8956. To make FtpTunnel{Request, Response}Command and
  8957. HttpProxy{Request, Response}Command derived from
  8958. AbstractProxy{Request, Response}Command:
  8959. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  8960. Derived from AbstractProxyRequestCommand class.
  8961. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  8962. Derived from AbstractProxyResponseCommand class.
  8963. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  8964. Derived from AbstractProxyRequestCommand class.
  8965. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  8966. Derived from AbstractProxyResponseCommand class.
  8967. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  8968. : New class.
  8969. * src/AbstractProxyResponseCommand.h,
  8970. src/AbstractProxyResponseCommand.cc: New class.
  8971. To add netrc support:
  8972. * src/Netrc.h, src/Netrc.cc: New class.
  8973. * src/Util.h, src/Util.cc (split): New function.
  8974. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  8975. "Content-Range" header instead of "Range" header.
  8976. * src/HttpHeader.h
  8977. (getStatus): Removed.
  8978. (setStatus): Removed.
  8979. * src/Segment.h
  8980. (getPositionToWrite): New function.
  8981. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8982. * src/HttpHeader.h
  8983. (Range.h): New include.
  8984. (status): New variable.
  8985. (HttpHeader): Initialized status with 0.
  8986. (getStatus): New function.
  8987. (setStatus): New function.
  8988. (getRange): New function.
  8989. (HttpHeaderHandle): New function.
  8990. * src/HttpHeader.cc
  8991. (getRange): New function.
  8992. * src/Request.h
  8993. (RequestWeakHandle): New definition.
  8994. * src/HttpConnection.h
  8995. (HttpConnectionHandle): New type definition.
  8996. * src/HttpConnection.cc
  8997. (receiveResponse): Set HTTP status to headers.
  8998. * src/main.cc
  8999. (showUsage): Fixed typo.
  9000. * src/Segment.h
  9001. (SegmentHandle): New type definition.
  9002. * src/BitfieldMan.h
  9003. (getMissingUnusedLength): New function.
  9004. * src/BitfieldMan.cc
  9005. (getMissingUnusedLength): New function.
  9006. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9007. To fix static initialization order problem:
  9008. * src/BitfieldManFactory.h
  9009. (defaultRandomizer): Removed.
  9010. (factory): New variable.
  9011. (getNewFactory): Removed.
  9012. (getFactoryInstance): New function.
  9013. (setDefaultRandomizer): Rewritten.
  9014. (getDefaultRandomizer): Rewritten.
  9015. * src/BitfieldManFactory.cc
  9016. (defaultRandomizer): Removed.
  9017. (factory): Initialized to 0.
  9018. (BitfieldManFactory): Initialized randomizer to 0.
  9019. * src/DefaultPieceStorage.cc
  9020. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  9021. * src/Peer.cc
  9022. (Peer): getNewFactory() -> getFactoryInstance()
  9023. * src/SegmentMan.cc
  9024. (initBitfield): getNewFactory() -> getFactoryInstance()
  9025. * src/Piece.cc
  9026. (Piece): getNewFactory() -> getFactoryInstance()
  9027. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9028. To fix the bug that causes crash on Max OS X:
  9029. * src/SimpleRandomizer.h
  9030. (getInstance): Create new instance if the static variable is null.
  9031. * src/SimpleRandomizer.cc
  9032. (randomizer): Initialized to 0.
  9033. * src/BitfieldManFactory.h
  9034. (getNewFactory): Removed the call to setRandomizer().
  9035. To fix the miscalculation of the range of checksum:
  9036. * src/BitfieldMan.h
  9037. (isBitSetOffsetRange): New function.
  9038. * src/BitfieldMan.cc
  9039. (isBitSetOffsetRange): New function.
  9040. * src/SegmentMan.cc
  9041. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  9042. Use bitfield->getBlockLength() instead of segment.segmentLength.
  9043. * Release 0.10.1
  9044. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9045. To lower CPU usage in BitTorrent download when --max-upload-limit
  9046. command-line option specified:
  9047. * src/DefaultBtMessageDispatcher.cc
  9048. (sendMessages): Calculate uploading speed only when current message
  9049. is uploading data and is not sent yet.
  9050. * src/DefaultPeerStorage.h
  9051. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  9052. * src/HttpResponseCommand.cc
  9053. (handleDefaultEncoding): Added the cast to int32_t to itos.
  9054. This fixes compile error in Soralis 10.
  9055. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9056. To fix segfault in Metalink download:
  9057. * src/UrlRequestInfo.h
  9058. (filename): Removed.
  9059. (totalLength): Removed.
  9060. (setTotalLength): Removed.
  9061. (setFilename): Removed.
  9062. * src/MetalinkRequestInfo.cc
  9063. (execute): Do not set filename and totalLength to reqInfo.
  9064. Set chunk checksum to reqInfo if it is not null.
  9065. * src/HttpResponseCommand.cc
  9066. (executeInternal): Fixed filename in log.
  9067. (handleDefaultEncoding): Removed the call to initBitfield() and
  9068. markAllPiecesDone().
  9069. (handleOtherEncoding): Added HEAD method handling.
  9070. * src/FtpNegotiateCommand.cc
  9071. (executeInternal): Added SEQ_HEAD_OK handling.
  9072. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  9073. return false.
  9074. * src/FtpNegotiateCommand.h
  9075. (SEQ_HEAD_OK): New definition.
  9076. * src/SegmentMan.cc
  9077. (initBitfield): Delete bitfield.
  9078. (isChunkChecksumValidationReady): Fixed the condition.
  9079. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  9080. works fine.
  9081. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9082. * src/Xml2MetalinkProcessor.h
  9083. (xpathExists): New function.
  9084. * src/Xml2MetalinkProcessor.cc
  9085. (xpathExists): New function.
  9086. Not to send HEAD request if filename and size are available in Metalink
  9087. file:
  9088. * src/UrlRequestInfo.h
  9089. (filename): New variable.
  9090. (totalLength): New variable.
  9091. (setTotalLength): New function.
  9092. (setFilename): New function.
  9093. * src/MetalinkRequestInfo.cc
  9094. (execute): Set filename and size to UrlRequestInfo.
  9095. * src/MetalinkEntry.cc
  9096. (MetalinkEntry): Initialize size with 0.
  9097. * src/UrlRequestInfo.cc
  9098. (execute): Set filename and size to SegmentMan.
  9099. Not to download rest of the files after selected files are downloaded
  9100. in BitTorrent:
  9101. * src/PieceStorage.h
  9102. (allDownloadFinished): New function.
  9103. * src/DefaultBtAnnounce.cc
  9104. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  9105. downloadFinished.
  9106. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  9107. * src/DefaultPieceStorage.cc
  9108. (completePiece): Use allDownloadFinished instead of downloadFinished.
  9109. Commented out the call to finishSelectiveDownloadingMode().
  9110. (downloadFinished): Call isFilteredAllBitSet() instead of
  9111. isAllBitSet().
  9112. (allDownloadFinished): New function.
  9113. * src/DefaultBtInteractive.cc
  9114. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  9115. downloadFinished().
  9116. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  9117. * src/TorrentDownloadEngine.cc
  9118. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  9119. * src/BitfieldMan.h
  9120. (isFilteredAllBitSet): New function.
  9121. * src/ShareRatioSeedCriteria.h
  9122. (PieceStorage.h): New include.
  9123. (pieceStorage): New variable.
  9124. (evaluate):
  9125. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  9126. * src/BitfieldMan.cc
  9127. (isFilteredAllBitSet): New function.
  9128. (isAllBitSet): Filter is not took into account.
  9129. Rename --force-truncate as --allow-overwrite:
  9130. * src/TorrentRequestInfo.cc
  9131. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  9132. * src/main.cc
  9133. (showUsage): --force-truncate -> --allow-overwrite
  9134. * src/message.h
  9135. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  9136. * src/prefs.h
  9137. (PREF_FORCE_TRUNCATE): Removed.
  9138. (PREF_ALLOW_OVERWRITE): New definition.
  9139. * src/SegmentMan.cc
  9140. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  9141. * src/MetalinkRequestInfo.cc
  9142. (execute): Queueing message are now logged in info level.
  9143. * src/common.h
  9144. (LONG_LONG_MAX): Removed.
  9145. (LONG_LONG_MIN): Removed.
  9146. * src/HttpResponseCommand.cc
  9147. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  9148. * src/FtpNegotiateCommand.cc
  9149. (recvSize): LONG_LONG_MAX -> INT64_MAX
  9150. * src/main.cc
  9151. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  9152. command-line option.
  9153. (main): Added --check-integriy and --realtime-chunk-checksum
  9154. command-line option.
  9155. --force-truncate -> --allow-overwrite
  9156. Set initial value of --check-integrity option to false.
  9157. Don't show usage when error occurs while persing command-line options.
  9158. Removed deprecated --upload-limit option.
  9159. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9160. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  9161. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  9162. * src/BtAllowedFastMessage.cc:
  9163. * src/BtBitfieldMessage.cc
  9164. * src/BtCancelMessage.cc
  9165. * src/BtChokeMessage.cc
  9166. * src/BtHaveAllMessage.cc
  9167. * src/BtHaveMessage.cc
  9168. * src/BtHaveNoneMessage.cc
  9169. * src/BtInterestedMessage.cc
  9170. * src/BtNotInterestedMessage.cc
  9171. * src/BtPieceMessage.cc
  9172. * src/BtPortMessage.cc
  9173. * src/BtRejectMessage.cc
  9174. * src/BtRequestMessage.cc
  9175. * src/BtSuggestPieceMessage.cc
  9176. * src/BtUnchokeMessage.cc
  9177. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  9178. files are affected.
  9179. * src/ChunkChecksumValidator.cc
  9180. * src/SegmentMan.cc
  9181. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9182. To add chunk checksum validation:
  9183. * src/MetalinkEntry.h
  9184. (MetalinkChunkChecksum.h): New include.
  9185. (chunkChecksum): New variable.
  9186. * src/Request.h
  9187. (method): New variable.
  9188. (setMethod): New function.
  9189. (getMethod): New function.
  9190. (METHOD_GET): New static constant.
  9191. (METHOD_HEAD): New static constant.
  9192. * src/Xml2MetalinkProcessor.h
  9193. (getPieceHash): New function.
  9194. * src/PieceStorage.h
  9195. (markAllPiecesDone): New function.
  9196. (checkIntegrity): New function.
  9197. * src/FileAllocator.h
  9198. (NullFileAllocationMonitor.h): New include.
  9199. (FileAllocator): Initialize fileAllocationMonitor with new
  9200. NullFileAllocationMonitor().
  9201. * src/MultiDiskAdaptor.h
  9202. (messageDigest.h): Remove include.
  9203. (ctx): Removed.
  9204. (hashUpdate): Added ctx.
  9205. (MultiDiskAdaptor): Removed ctx.
  9206. (sha1Sum): Renamed as messageDigest.
  9207. (messageDigest): New function.
  9208. * src/UrlRequestInfo.h
  9209. (HeadResult): New class.
  9210. (digestAlgo): New variable.
  9211. (chunkChecksumLength): New variable.
  9212. (chunkChecksums): New variable.
  9213. (getHeadResult): New function.
  9214. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  9215. (setDigestAlgo): New function.
  9216. (setChunkChecksumLength): New function.
  9217. (setChunkChecksums): New function.
  9218. * src/DefaultPieceStorage.cc
  9219. (DiskAdaptorWriter.h): New include.
  9220. (ChunkChecksumValidator.h): New include.
  9221. (markAllPiecesDone): New function.
  9222. (checkIntegrity): New function.
  9223. * src/DefaultBtContext.h
  9224. (getPieceHashes): New function.
  9225. * src/TorrentRequestInfo.cc
  9226. (execute): Try to validate chunk checksum if file already exists and
  9227. .aria2 file doesn't there and user allows aria2 to overwrite it.
  9228. * src/messageDigest.h
  9229. (~MessageDigestContext): Added digestFree().
  9230. * src/MetalinkRequestInfo.cc
  9231. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  9232. * src/DiskAdaptor.h
  9233. (messageDigest.h): New include.
  9234. (sha1Sum): Renamed as messageDigest.
  9235. (messageDigest): New function.
  9236. * src/DownloadCommand.h
  9237. (PeerStat.h): New include.
  9238. (maxDownloadSpeedLimit): New variable.
  9239. (startupIdleTime): New variable.
  9240. (lowestDownloadSpeedLimit): New variable.
  9241. (peerStat): New variable.
  9242. (setMaxDownloadSpeedLimit): New function.
  9243. (setStartupIdleTime): New function.
  9244. (setLowestDownloadSPeedLimit): New function.
  9245. * src/BtContext.h
  9246. (getPieceHashes): New function.
  9247. * src/main.cc
  9248. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  9249. option to true for testing purpose.
  9250. * src/BtPieceMessage.cc
  9251. (checkPieceHash): Use messageDigest
  9252. * src/DownloadEngine.cc
  9253. (SetDescriptor): Removed.
  9254. (AccumulateActiveCommand): Removed.
  9255. (waitData): Rewritten.
  9256. (updateFdSet): Rewritten.
  9257. * src/MultiDiskAdaptor.cc
  9258. (hashUpdate): Added ctx.
  9259. (sha1Sum): Renamed as messageDigest.
  9260. (messageDigest): New function.
  9261. * src/BitfieldMan.h
  9262. (isBitRangeSet): New function.
  9263. (unsetBitRange): New function.
  9264. * src/ByteArrayDiskWriter.h
  9265. (sha1Sum): Renamed as messageDigest.
  9266. (messageDigest): New function.
  9267. * src/ConsoleDownloadEngine.cc
  9268. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  9269. * src/DiskWriter.h
  9270. (messageDigest.h): New include.
  9271. (sha1Sum): Renamed as messageDigest.
  9272. (messageDigest): New function.
  9273. * src/ChunkChecksumValidator.h: New class.
  9274. * src/DiskAdaptorWriter.h: New class.
  9275. * src/prefs.h
  9276. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  9277. (PREF_CHECK_INTEGRITY): New definition.
  9278. * src/HttpResponseCommand.cc
  9279. (handleDefaultEncoding): Added method "HEAD" handling.
  9280. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  9281. (handleOtherEncoding):
  9282. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  9283. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  9284. startupIdleTime, lowestDownloadSpeedLimit to command.
  9285. * src/SegmentMan.h
  9286. (getSegmentEntryByIndex): New function.
  9287. (getSegmentEntryByCuid): New function.
  9288. (getSegmentEntryIteratorByCuid): New function.
  9289. (diskWriter): DiskWriter -> DiskWriterHandle
  9290. (pieceHashes): New variable.
  9291. (chunkHashLength): New variable.
  9292. (digestAlgo): New variable.
  9293. (FindPeerStat): Removed.
  9294. (getPeerStat): Rewritten.
  9295. (markAllPiecesDone): New function.
  9296. (checkIntegrity): New function.
  9297. (tryChunkChecksumValidation): New function.
  9298. (isChunkChecksumValidationReady): New function.
  9299. * src/BitfieldMan.cc
  9300. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  9301. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  9302. blocks to 0.
  9303. (isBitRangeSet): New function.
  9304. (unsetBitRange): New function.
  9305. * src/FtpNegotiateCommand.cc
  9306. (executeInternal): Set maxDownloadSpeedLimit,
  9307. startupIdleTime, lowestDownloadSpeedLimit to command.
  9308. (recvSize): Added method "HEAD" handling.
  9309. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  9310. * src/AbstractSingleDiskAdaptor.cc
  9311. (sha1Sum): Renamed as messageDigest.
  9312. (messageDigest): New function.
  9313. * src/AbstractSingleDiskAdaptor.h
  9314. (sha1Sum): Renamed as messageDigest.
  9315. (messageDigest): New function.
  9316. * src/Util.h
  9317. (indexRange): New function.
  9318. * src/MetalinkEntry.cc
  9319. (MetalinkEntry): Initialized chunkChecksum to 0.
  9320. * src/ShaVisitor.cc
  9321. (~ShaVisitor): Removed the call to ctx.digestFree().
  9322. * src/SegmentMan.cc
  9323. (ChunkChecksumValidator.h): New include.
  9324. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  9325. to DIGEST_ALGO_SHA1.
  9326. (~SegmentMan): Removed diskWriter.
  9327. (FindSegmentEntryByIndex): Removed.
  9328. (FindSegmentEntryByCuid): Removed.
  9329. (checkoutSegment): Rewritten.
  9330. (findSlowerSegmentEntry): Rewritten.
  9331. (getSegment): Rewritten.
  9332. (updateSegment): Rewritten.
  9333. (completeSegment): Rewritten.
  9334. (markAllPiecesDone): New function.
  9335. (checkIntegrity): New function.
  9336. (isChunkChecksumValidationReady): New function.
  9337. (tryChunkChecksumValidation): New function.
  9338. * src/Xml2MetalinkProcessor.cc
  9339. (getEntry): Get size and set it to entry.
  9340. Get chunk checksum and set it to entry.
  9341. (getPieceHash): New function.
  9342. * src/Util.cc
  9343. (sha1Sum): Removed ctx.digestFree()
  9344. (fileChecksum): Removed ctx.digestFree()
  9345. (indexRange): New function.
  9346. * src/Request.cc
  9347. (METHOD_GET): New variable.
  9348. (METHOD_HEAD): New variable.
  9349. (Request): Added method.
  9350. * src/UrlRequestInfo.cc
  9351. (FatalException.h): New include.
  9352. (message.h): New include.
  9353. (operator<<): Added operator<< for class HeadResult.
  9354. (getHeadResult): New function.
  9355. (execute): Get filename and size in separate download engine.
  9356. * src/ChunkChecksumValidator.cc: New class.
  9357. * src/DownloadCommand.cc:
  9358. (DownloadCommand): Added peerStat.
  9359. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  9360. the value from Option.
  9361. The buffer size is now 16KB.
  9362. Use peerStat member instead of getting it from SegmentMan.
  9363. Use startupIdleTime member instead of gettingit from Option.
  9364. Added chunk checksum validation.
  9365. * src/AbstractDiskWriter.cc
  9366. (AbstractDiskWriter): Removed ctx.
  9367. (~AbstractDiskWriter): Removed ctx.digestFree()
  9368. (writeDataInternal): Returns the return value of write.
  9369. (readDataInternal): Returns the return value of read.
  9370. (sha1Sum): Renamed as messageDigest
  9371. (messageDigest): New function.
  9372. * src/AbstractDiwkWriter.h
  9373. (messageDigest.h): Removed include.
  9374. (ctx): Removed.
  9375. (sha1Sum): Renamed as messageDigest
  9376. (messageDigest): New function.
  9377. * src/DefaultPieceStorage.h
  9378. (markAllPiecesDone): New function.
  9379. (checkIntegrity): New function.
  9380. * src/NullFileAllocationMonitor.h: New class.
  9381. * src/MetalinkChunkChecksum.h: New class.
  9382. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9383. To decrease CPU usage in bittorrent download, calculation results in
  9384. BitfieldMan were cached and realtime fetching PeerObject was removed
  9385. with WeakHandle introduced. Option values are set to the objects
  9386. by setter before download begins.
  9387. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  9388. * src/DefaultBtRequestFactory.h
  9389. (dispatcher): BtMessageDispatcherHandle ->
  9390. BtMessageDispatcherWeakHandle.
  9391. (messageFactory): New variable.
  9392. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  9393. BtMessageDispatcherWeakHandle.
  9394. (setBtMessageFactory): New function.
  9395. * src/DefaultBtMessageDispatcher.cc:
  9396. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  9397. from Option.
  9398. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  9399. feating the value from Option.
  9400. Use messageFactory member.
  9401. * src/PeerInteractionCommand.cc
  9402. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  9403. Add reverse dependencies to factory object.
  9404. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  9405. dispatcher.
  9406. Set messageFactory to receiver.
  9407. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  9408. btInteractive.
  9409. Set receiver to peerObject.
  9410. Set maxDownloadSpeedLimit to this.
  9411. (executeInternal): Use maxDownloadSpeedLimit member.
  9412. * src/BtChokeMessage.cc
  9413. (doReceivedAction): Use dispatcher, requestFactory member.
  9414. (onSendComplete): Use dispatcher member.
  9415. * src/PeerInteractionCommand.h
  9416. (maxDownloadSpeedLimit): New variable.
  9417. * src/DefaultBtMessageReceiver.h
  9418. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9419. (dispatcher):
  9420. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  9421. (messageFactory): New variable.
  9422. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9423. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9424. (setDispatcher):
  9425. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  9426. (setBtMessageFactory): New function.
  9427. * src/DefaultBtInteractive.cc
  9428. (initiateHandshake): Use messageFactory member.
  9429. (addBitfieldMessageToQueue): Use messageFactory member.
  9430. (addAllowedFastMessageToQueue): Use messageFactory member.
  9431. (decideChoking): Use messageFactory member.
  9432. (checkHave): Use messageFactory member.
  9433. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  9434. (receiveMessages): Use maxDownloadSpeedLimit member.
  9435. (decideInterest): Use messageFactory member.
  9436. * src/BtRequestMessage.cc
  9437. (doReceivedAction): Use messageFactory, dispatcher member.
  9438. (onQueued): Use dispatcher member.
  9439. * src/BtPieceMessage.cc
  9440. (doReceivedAction): Use dispatcher member.
  9441. (send): Use peerConnection member.
  9442. (onWrongPiece): Use requestFactory member.
  9443. (handleChokingEvent): Use messageFactory, dispatcher member.
  9444. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  9445. * src/BtMessageDispatcher.h
  9446. (BtMessageDispatcherWeakHandle): New type definition.
  9447. * src/SimpleBtMessage.cc
  9448. (send): Use peerConnection member.
  9449. * src/BtRejectMessage.cc
  9450. (doReceivedAction): Use dispatcher member.
  9451. * src/DefaultBtMessageDispatcher.h
  9452. (Option.h): Removed include.
  9453. (messageFactory): New variable.
  9454. (option): Removed.
  9455. (maxUploadSpeedLimit): New variable.
  9456. (requestTimeout): New variable.
  9457. (DefaultBtMessageDispatcher): Removed option.
  9458. Added maxUploadSpeedLimit, requestTimeout.
  9459. (setOption): Removed.
  9460. (getOption): Removed.
  9461. (setMaxUploadSpeedLimit): New function.
  9462. (setRequestTimeout): New function.
  9463. (setBtMessageFactory): New function.
  9464. * src/DefaultBtInteractive.h
  9465. (btMessageReceiver):
  9466. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  9467. (dispatcher):
  9468. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  9469. (btRequestFactory):
  9470. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  9471. (peerConnection):
  9472. PeerConnectionHandle -> PeerConnectionWeakHandle
  9473. (messageFactory): New variable.
  9474. (option): Removed.
  9475. (keepAliveInterval): New variable.
  9476. (maxDownloadSpeedLimit): New variable.
  9477. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  9478. (setBtMessageReceiver):
  9479. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  9480. (setDispatcher):
  9481. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  9482. (setBtRequestFactory):
  9483. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  9484. (setPeerConnection):
  9485. PeerConnectionHandle -> PeerConnectionWeakHandle
  9486. (setOption): Removed.
  9487. (setKeepAliveInterval): New function.
  9488. (setMaxDownloadSpeedLimit): New function.
  9489. (setBtMessageFactory): New function.
  9490. * src/BitfieldMan.h
  9491. (cachedNumMissingBlock): New variable.
  9492. (cachedNumFilteredBlock): New variable.
  9493. (cachedCompletedLength): New variable.
  9494. (cachedFilteredComletedLength): New variable.
  9495. (cachedFilteredTotalLength): New variable.
  9496. (countMissingBlockNow): New function.
  9497. (countFilteredBlockNow): New function.
  9498. (getFilteredTotalLengthNow): New function.
  9499. (getCompletedLengthNow): New function.
  9500. (getFilteredCompletedLengthNow): New function.
  9501. (updateCache): New function.
  9502. * src/AbstractBtMessage.h
  9503. (BtMessageDispatcher.h): New include.
  9504. (PeerConnection.h): New include.
  9505. (BtRequestFactory.h): New include
  9506. (BtMessageFactory.h): New include.
  9507. (dispatcher): New variable.
  9508. (messageFactory): New variable.
  9509. (peerConnection: New variable.
  9510. (setBtMessageDispatcher): New function.
  9511. (setPeerConnection): New function.
  9512. (setBtMessageFactory): New function.
  9513. (setBtRequestFactory): New function.
  9514. * src/DefaultBtMessageFactory.cc
  9515. (setCommonProperty): Set dispatcher, requestFactory, this,
  9516. peerConnection to msg.
  9517. * src/BtRegistry.h
  9518. (BT_MESSAGE_RECEIVER): New macro.
  9519. * src/PeerConnection.h
  9520. (PeerConnectionWeakHandle): New type definition.
  9521. * src/BtMessageFactory.h
  9522. (BtMessageFactoryWeakHandle): New type definition.
  9523. * src/BitfieldMan.cc
  9524. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  9525. cachedCompletedLength, cachedFilteredComletedLength,
  9526. cachedFilteredTotalLength.
  9527. Call updateCache().
  9528. (countMissingBlock): Return cachedNumMissingBlock.
  9529. (countMissingBlockNow): New function.
  9530. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  9531. (countFilteredBlockNow): New function.
  9532. (setBit): Call updateCache().
  9533. (unsetBit): Call updateCache().
  9534. (setBitfield): Call updateCache().
  9535. (clearAllBit): Call updateCache().
  9536. (setAllBit): Use setBitInternal instead of setBit.
  9537. Call updateCache().
  9538. (addFilter): Call updateCache().
  9539. (enableFilter): Call updateCache().
  9540. (disableFilter): Call updateCache().
  9541. (clearFilter): Call updateCache().
  9542. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  9543. (getFilteredTotalLengthNow): New function.
  9544. (getCompletedLength): Return cachedCompletedLength.
  9545. (getCompletedLengthNow): New function.
  9546. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  9547. (getFilteredCompletedLengthNow): New function.
  9548. (updateCache): New function.
  9549. * src/BtMessageReceiver.h
  9550. (BtMessageReceiverWeakHandle): New type definition.
  9551. * src/DefaultBtMessageReceiver.cc
  9552. (receiveHandshake): Use messageFactory member.
  9553. (sendHandshake): Use messageFactory member.
  9554. (receiveMessage): Use messageFactory member.
  9555. * src/DefaultBtMessageFactory.h
  9556. (dispatcher): New variable.
  9557. (requestFactory): New variable.
  9558. (peerConnection): New variablle.
  9559. (setBtMessageDispatcher): New function.
  9560. (setBtRequestFactory): New function.
  9561. (setPeerConnection): New function.
  9562. * src/SharedHandle.h
  9563. (RefCount): New class.
  9564. (WeakHandle): New class.
  9565. * src/PeerObject.h
  9566. (BtMessageReceiver.h): New include.
  9567. (PeerObject): Added btMessageReceiver.
  9568. (btMessageReceiver): New variable.
  9569. * src/Util.cc
  9570. (countBit): Simplified.
  9571. * src/BtCancelMessage.cc
  9572. (doReceivedAction): Use dispatcher member.
  9573. * src/BtRequestFactory.h
  9574. (BtRequestFactoryWeakHandle): New type definition.
  9575. * src/PeerStorage.h
  9576. (downloadSpeed): int -> uint32_t
  9577. (uploadSpeed): int -> uint32_t
  9578. (sessionDownloadLength): long long int -> uint64_t
  9579. (sessionUploadLength): long long int -> uint64_t
  9580. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9581. To add RecoverableException, FatalException:
  9582. * src/AbstractCommand.cc
  9583. (onAbort): Exception -> RecoverableException
  9584. * src/PeerAbstractCommand.h
  9585. (RecoverableException.h): New include.
  9586. (onAbort): Exception -> RecoverableException.
  9587. * src/PeerInteractionCommand.cc
  9588. (onAbort): Exception -> RecoverableException.
  9589. * src/PeerAbstractCommand.cc
  9590. (execute): Exception -> RecoverableException.
  9591. (onAbort): Exception -> RecoverableException.
  9592. * src/TorrentRequestInfo.cc
  9593. (execute): Exception -> RecoverableException.
  9594. * src/MetalinkRequestInfo.cc
  9595. (execute): Exception -> RecoverableException.
  9596. * src/MetaFileUtil.cc: RecoverableException.
  9597. * src/AbstractCommand.h
  9598. (onAbort): Exception -> RecoverableException.
  9599. * src/DlRetryEx.h: Exception -> RecoverableException.
  9600. * src/DlAbortEx.h: Exception -> RecoverableException.
  9601. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  9602. * src/Util.cc: Exception -> RecoverableException.
  9603. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  9604. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  9605. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  9606. To make ID static const int
  9607. * src/BtInterestedMessage.h
  9608. (ID_t): Removed.
  9609. (ID): New variable.
  9610. (getId): Made non-const.
  9611. * src/BtPieceMessage.h
  9612. (ID_t): Removed.
  9613. (ID): New variable.
  9614. (getId): Made non-const.
  9615. * src/BtChokeMessage.h
  9616. (ID_t): Removed.
  9617. (ID): New variable.
  9618. (getId): Made non-const.
  9619. * src/BtHaveAllMessage.h
  9620. (ID_t): Removed.
  9621. (ID): New variable.
  9622. (getId): Made non-const.
  9623. * src/BtKeepAliveMessage.h
  9624. (ID_t): Removed.
  9625. (ID): New variable.
  9626. (getId): Made non-const.
  9627. * src/BtHandshakeMessage.h
  9628. (ID): New variable.
  9629. (getId): Made non-const.
  9630. * src/BtSuggestPieceMessage.h
  9631. (ID_t): Removed.
  9632. (ID): New variable.
  9633. (getId): Made non-const.
  9634. * src/BtPortMessage.h
  9635. (ID_t): Removed.
  9636. (ID): New variable.
  9637. (getId): Made non-const.
  9638. * src/AbstractBtMessage.h
  9639. (id): Removed.
  9640. (AbstractBtMessage): Removed id.
  9641. (getId): Removed.
  9642. * src/BtHaveMessage.h
  9643. (ID_t): Removed.
  9644. (ID): New variable.
  9645. (getId): Made non-const.
  9646. * src/BtAllowedFastMessage.h
  9647. (ID_t): Removed.
  9648. (ID): New variable.
  9649. (getId): Made non-const.
  9650. * src/BtCancelMessage.h
  9651. (ID_t): Removed.
  9652. (ID): New variable.
  9653. (getId): Made non-const.
  9654. * src/BtNotInterestedMessage.h
  9655. (ID_t): Removed.
  9656. (ID): New variable.
  9657. (getId): Made non-const.
  9658. * src/BtChokeMessage.h
  9659. (ID_t): Removed.
  9660. (ID): New variable.
  9661. (getId): Made non-const.
  9662. * src/BtRejectMessage.h
  9663. (ID_t): Removed.
  9664. (ID): New variable.
  9665. (getId): Made non-const.
  9666. * src/BtBitfieldMessage.h
  9667. (ID_t): Removed.
  9668. (ID): New variable.
  9669. (getId): Made non-const.
  9670. * src/BtUnchokeMessage.h
  9671. (ID_t): Removed.
  9672. (ID): New variable.
  9673. (getId): Made non-const.
  9674. * src/BtRequestMessage.h
  9675. (ID_t): Removed.
  9676. (ID): New variable.
  9677. (getId): Made non-const.
  9678. * src/BtHaveMessage.h
  9679. (ID_t): Removed.
  9680. (ID): New variable.
  9681. (getId): Made non-const.
  9682. To add --force-truncate command-line option and a check whether
  9683. the file already exists:
  9684. * src/DirectDiskAdaptor.h
  9685. (getFilePath): Made virtual public.
  9686. * src/MultiDiskAdaptor.h
  9687. (File.h): New include.
  9688. (DiskWriterEntry::fileEntry): Made private.
  9689. (DiskWriterEntry::fileExists): New function.
  9690. (DiskWriterEntry::getFileEntry): New function.
  9691. (fileExists): New function.
  9692. (getFilePath): New function.
  9693. * src/TorrentRequestInfo.cc
  9694. (FatalException.h): New include.
  9695. (message.h): New include.
  9696. (RecoverableException.h): New include.
  9697. (execute): Added a check whether file is already exists or not.
  9698. * src/DiskAdaptor.h
  9699. (fileExists): New function.
  9700. (getFilePath): New function.
  9701. * src/main.cc
  9702. (showUsage): Added an explanation of --force-truncate command-line
  9703. option.
  9704. (main): Added --force-truncate command-line option.
  9705. * src/Exception.h
  9706. (setMsg): buf[256] -> buf[1024]
  9707. * src/CopyDiskWriter.h
  9708. (getFilePath): Made public virtual.
  9709. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  9710. (fileExists): New function.
  9711. * src/DownloadEngineFactory.cc
  9712. (newTorrentConsoleEngine): Don't open file here.
  9713. * src/message.h
  9714. (EX_FILE_ALREADY_EXISTS): New definition.
  9715. * src/prefs.h
  9716. (PREF_FOECE_TRUNCATE): New definition.
  9717. * src/HttpResponseCommand.cc
  9718. (handleDefaultEncoding): Added a check whether the file already exists.
  9719. * src/SegmentMan.h
  9720. (fileExists): New function.
  9721. (shouldCancelDownloadForSafety): New function.
  9722. * src/FtpNegotiateCommand.cc
  9723. (recvSize): Added a check whether the file already exists.
  9724. * src/AbstractSingleDiskAdaptor.cc
  9725. (File.h): New include.
  9726. (fileExists): New function.
  9727. * src/AbstractSingleDiskAdaptor.h
  9728. (getFilePath): Removed.
  9729. (fileExists): New function.
  9730. * src/SegmentMan.cc
  9731. (fileExists): New function.
  9732. (shouldCancelDownloadForSafety): New function.
  9733. To fix regression bug in torrent downloading:
  9734. * src/DefaultBtRequestFactory.cc
  9735. (doChokedAction): New function.
  9736. * src/DefaultBtRequestFactory.h
  9737. (doChokedAction): New function.
  9738. * src/DefaultBtMessageDispatcher.cc
  9739. (doChokedAction): Do not delete request if its target is in allowed
  9740. fast set.
  9741. * src/DefaultBtInteractive.cc
  9742. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  9743. (sendKeepAlive): Send keep alive message even if the outgoing message
  9744. queue is not empty.
  9745. (decideInterest): Simplified the code.
  9746. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  9747. it is already called when BtChokeMessage is received from a peer.
  9748. * src/BtRequestFactory.h
  9749. (doChokedAction): New function.
  9750. To clean up code:
  9751. * src/PeerInteractionCommand.h
  9752. (executeInternal): Added virtual keyword explicitly.
  9753. (prepareForRetry): Added virtual keyword explicitly.
  9754. (prepareForNextPeer): Added virtual keyword explicitly.
  9755. (onAbort): Added virtual keyword explicitly.
  9756. * src/RequestSlot.cc
  9757. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  9758. * src/BtPieceMessage.cc
  9759. (doReceivedAction): Added a debug log of piece's bitfield.
  9760. * src/Piece.h
  9761. (getBitfieldLength): New function.
  9762. * src/ByteArrayDiskWriter.cc
  9763. (clear): Added buf = 0 to avoid double free corruption.
  9764. * src/FileAllocator.cc
  9765. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  9766. Added cp.reset().
  9767. * src/BitfieldMan.h
  9768. (operator=): Rewritten.
  9769. * src/BitfieldMan.cc
  9770. (BitfieldMan): Initialized bitfield, useBitfield.
  9771. * src/PeerConnection.cc
  9772. (receiveMessage): Added a call to socket->readable() after getting
  9773. message length to avoid possible EOF.
  9774. * src/Util.cc
  9775. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  9776. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9777. To add an ability to pre-allocate file space:
  9778. * src/DirectDiskAdaptor.h: Rewritten.
  9779. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  9780. * src/MultiDiskAdaptor.h: Rewritten.
  9781. * src/DefaultPieceStorage.cc
  9782. (MultiDiskWriter.h): Removed include.
  9783. (PreAllocationDiskWriter.h): Removed include.
  9784. (FileAllocationMonitor.h): New include.
  9785. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  9786. (initStorage): Rewritten.
  9787. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9788. * src/FileAllocator.h: New class.
  9789. * src/FileAllocator.cc: New class.
  9790. * src/FileAllocationMonitor.h: New class.
  9791. * src/FileAllocationMonitor.cc: New class.
  9792. * src/ConsoleFileAllocationMonitor.h: New class.
  9793. * src/ConsoleFileAllocationMonitor.cc: New class.
  9794. * src/AbstractSingleDiskAdaptor.h: New class.
  9795. * src/AbstractSingleDiskAdaptor.cc: New class.
  9796. * src/DiskAdaptor.h
  9797. (Directory.h): Removed include.
  9798. (DiskWriter.h): Removed include.
  9799. (FileEntry.h): Removed include.
  9800. (diskWriter): Removed.
  9801. (DiskAdaptor): Removed diskWriter.
  9802. (openFile): Made pure virtual.
  9803. (closeFile): Made pure virtual.
  9804. (openExistingFile): Made pure virtual.
  9805. (initAndOpenFile): Made pure virtual.
  9806. (writeData): Made pure virtual.
  9807. (readData): Made pure virtual.
  9808. (sha1Sum): Made pure virtual.
  9809. (getStoreDir): Returns const reference of storeDir.
  9810. (DiskAdaptorHandle): New type definition.
  9811. * src/main.cc
  9812. (ConsoleFileAllocationMonitor.h): New include.
  9813. (showUsage): Added default value description of -s option.
  9814. Added the description of --file-allocation option.
  9815. (main): Set default value of --file-allocation option to 'none'.
  9816. Added --file-allocation command-line option.
  9817. Setup FileAllocationMonitorFactory.
  9818. * src/FtpInitiateConnectionCommand.cc
  9819. (executeInternal): Removed diskWriter related processing, which was
  9820. moved to FtpNegotiationCommand.cc.
  9821. * src/DirectDiskAdaptor.cc
  9822. (getFilePath): Made non-const.
  9823. * src/CopyDiskAdaptor.h
  9824. (DiskAdaptor.h): Removed include.
  9825. (DiskWriter.h): Removed include.
  9826. (AbstractSingleDiskAdaptor.h): New include.
  9827. (getFilePath): Made non-const. Added virtual keyword.
  9828. (CopyDiskAdaptor): Removed diskWriter.
  9829. (getTempFile): Returns const reference.
  9830. (CopyDiskAdaptorHandle): New type definition.
  9831. * src/ByteArrayDiskWriter.cc
  9832. (clear): Simplified.
  9833. (initAndOpenFile): Rewritten.
  9834. (openFile): Call initAndOpenFile()
  9835. * src/MultiDiskAdaptor.cc: Rewritten.
  9836. * src/DownloadEngineFactory.cc
  9837. (FileAllocator.h): New include.
  9838. (FileAllocationMonitor.h): New include.
  9839. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  9840. create DefaultDiskWriter with file allocator.
  9841. * src/DiskWriter.h
  9842. (initAndOpenFile): Added totalLength argument.
  9843. (openFile): Added totalLength argument.
  9844. * src/prefs.h
  9845. (PREF_FILE_ALLOCATION): New definition.
  9846. (V_PREALLOC): New definition.
  9847. (V_NONE): New definition.
  9848. * src/HttpResponseCommand.cc
  9849. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  9850. size.
  9851. * src/FtpNegotiateCommand.cc
  9852. (Util.h): New include.
  9853. (recvSize): Open file here.
  9854. * src/Util.h
  9855. (ullitos): New function.
  9856. * src/CopyDiskWriter.h
  9857. (getFilePath): Made non-const.
  9858. * src/DefaultDiskWriter.h
  9859. (Option.h): New include.
  9860. (totalLength): Removed.
  9861. (DefaultDiskWriter): Removed totalLength.
  9862. (initAndOpenFile): Added totalLength argument.
  9863. (DefaultDiskWriterHandle): New type definition.
  9864. (createNewDiskWriter): New function.
  9865. * src/Util.cc
  9866. (ullitos): New function.
  9867. * src/DefaultDiskWriter.cc
  9868. (message.h): New include.
  9869. (FileAllocator.h): New include.
  9870. (prefs.h): New include.
  9871. (Util.h): New include.
  9872. (DefaultDiskWriter): Removed totalLength.
  9873. (initAndOpenFile): Added file allocation.
  9874. (createNewDiskWriter): New function. Just for temporary solution.
  9875. It will be rewritten later.
  9876. * src/DiskAdaptor.cc
  9877. (DiskAdaptor): Removed diskWriter.
  9878. * src/AbstractDiskWriter.cc
  9879. (LogFactory.h): New include.
  9880. (AbstractDiskWriter): Added fileAllocator, logger.
  9881. (openFile): Added totalLength argument.
  9882. * src/AbstractDiskWriter.h
  9883. (FileAllocator.h): New include.
  9884. (Logger.h): New include.
  9885. (fileAllocator): New variable.
  9886. (logger): New variable.
  9887. (openFile): Added totalLength argument. Added virtual keyword
  9888. explicitly.
  9889. (openExistingFile): Added totalLength argument. Added virtual keyword
  9890. explicitly.
  9891. (closeFile): Added virtual keyword explicitly.
  9892. (sha1Sum): Added virtual keyword explicitly.
  9893. (writeData): Added virtual keyword explicitly.
  9894. (readData): Added virtual keyword explicitly.
  9895. (setFileAllocator): New function.
  9896. * src/DefaultPieceStorage.h
  9897. (FileAllocator.h): New include.
  9898. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9899. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9900. * src/FileProgressMonitor.h: New class.
  9901. To compile aria2 on PC-BSD:
  9902. * src/DefaultBtContext.cc
  9903. (libgen.h): New include.
  9904. To fix memory leak:
  9905. * src/Exception.h
  9906. (~Exception): Delete cause. Fixed memory leak.
  9907. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9908. Rewritten a portion of bittorrent implementation:
  9909. * src/BtMessageValidator.h: New class.
  9910. * src/BtBitfieldMessageValidator.h: New class.
  9911. * src/BtHandshakeMessageValidator.h: New class.
  9912. * src/BtRequestMessageValidator.h: New class.
  9913. * src/BtSuggestPieceMessageValidator.h: New class.
  9914. * src/BtAllowedFastMessageValidator.h: New class.
  9915. * src/BtRejectMessageValidator.h: New class.
  9916. * src/BtCancelMessageValidator.h: New class.
  9917. * src/BtPieceMessageValidator.h: New class.
  9918. * src/BtHaveMessageValidator.h: New class.
  9919. * src/BtEventListener.h: New class.
  9920. * src/AbstractBtEventListener.h: New class.
  9921. * src/BtEvent.h: New class.
  9922. * src/BtChokingEvent.h: New class.
  9923. * src/BtChokedEvent.h: New class.
  9924. * src/BtCancelSendingPieceEvent.h: New class.
  9925. * src/BtAbortOutstandingRequestEvent.h: New class.
  9926. * src/Randomizer.h: New class.
  9927. * src/SimpleRandomizer.h: New class.
  9928. * src/BtMessage.h: New class.
  9929. * src/AbstractBtMessage.h: New class.
  9930. * src/SimpleBtMessage.h: New class.
  9931. * src/BtHaveMessage.h: New class.
  9932. * src/BtInterestedMessage.h: New class.
  9933. * src/BtAllowedFastMessage.h: New class.
  9934. * src/BtUnchokeMessage.h: New class.
  9935. * src/BtCancelMessage.h: New class.
  9936. * src/BtNotInterestedMessage.h: New class.
  9937. * src/BtChokeMessage.h: New class.
  9938. * src/BtHaveNoneMessage.h: New class.
  9939. * src/BtHandshakeMessage.h: New class.
  9940. * src/BtSuggestPieceMessage.h: New class.
  9941. * src/BtHaveMessage.h: New class.
  9942. * src/BtPieceMessage.h: New class.
  9943. * src/BtHaveAllMessage.h: New class.
  9944. * src/BtKeepAliveMessage.h: New class.
  9945. * src/BtPortMessage.h: New class.
  9946. * src/BtRejectMessage.h: New class.
  9947. * src/BtBitfieldMessage.h: New class.
  9948. * src/BtRequestMessage.h: New class.
  9949. * src/DefaultBtRequestFactory.h: New class.
  9950. * src/DefaultBtMessageReceiver.h: New class.
  9951. * src/BtInteractive.h: New class.
  9952. * src/BtMessageDispatcher.h: New class.
  9953. * src/DefaultBtMessageDispatcher.h: New class.
  9954. * src/DefaultBtInteractive.h: New class.
  9955. * src/BitfieldManFactory.h: New class.
  9956. * src/HandleRegistry.h: New class.
  9957. * src/BtMessageFactory.h: New class.
  9958. * src/BtMessageReceiver.h: New class.
  9959. * src/DefaultBtMessageFactory.h: New class.
  9960. * src/PeerObject.h: New class.
  9961. * src/BtRequestFactory.h: New class.
  9962. * src/SuggestPieceMessage.h: Removed.
  9963. * src/PortMessage.h: Removed.
  9964. * src/SuggestPieceMessage.h: Removed.
  9965. * src/KeepAliveMessage.h: Removed.
  9966. * src/HandshakeMessage.h: Removed.
  9967. * src/PeerInteraction.h: Removed.
  9968. * src/UnchokeMessage.h: Removed.
  9969. * src/PieceMessage.h: Removed.
  9970. * src/RequestMessage.h: Removed.
  9971. * src/InterestedMessage.h: Removed.
  9972. * src/HaveMessage.h: Removed.
  9973. * src/CancelMessage.h: Removed.
  9974. * src/RejectMessage.h: Removed.
  9975. * src/AllowedFastMessage.h: Removed.
  9976. * src/HaveNoneMessage.h: Removed.
  9977. * src/SimplePeerMessage.h: Removed.
  9978. * src/HaveAllMessage.h: Removed.
  9979. * src/BitfieldMessage.h: Removed.
  9980. * src/PeerMessageFactory.h: Removed.
  9981. * src/NotInterestedMessage.h: Removed.
  9982. * src/ChokeMessage.h: Removed.
  9983. * src/PeerMessage.h: Removed.
  9984. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9985. To know root cause of exception:
  9986. * src/Exception.h
  9987. (cause): New variable.
  9988. (Exception): Added a parameter.
  9989. (getMsg): Return const reference to msg.
  9990. (getCause): New function.
  9991. * src/DlRetryEx.h
  9992. (DlRetryEx): Added a parameter 'cause'.
  9993. Added an overloaded constructor.
  9994. (DlAbortEx): Added a parameter 'cause'.
  9995. Added an overloaded constructor.
  9996. * src/SimpleLogger.cc
  9997. (writeLog): Log nested exception messages recursively.
  9998. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9999. * src/DefaultBtProgressInfoFile.cc
  10000. (load): Fixed memory leak when the infohash doesn't match.
  10001. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10002. * src/DefaultPeerStorage.cc
  10003. (calculateStat): Simplified the code by combining 2 loops into 1.
  10004. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10005. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  10006. for BitTorrent download:
  10007. * src/PeerAbstractCommand.cc
  10008. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  10009. * src/main.cc:
  10010. (timeoutSpecified): Removed.
  10011. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  10012. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  10013. * src/TorrentRequestInfo.cc
  10014. (timeoutSpecified): Removed.
  10015. (torrentHandler): Removed timeoutSpecified and the adjustment of
  10016. timeout value.
  10017. * src/prefs.h
  10018. (PREF_BT_TIMEOUT): New definition.
  10019. Delete unused variables:
  10020. * src/TorrentRequestInfo.cc
  10021. (requestInfo): Removed.
  10022. Move setSignalHander to Util::setGlobalSignalHandler:
  10023. * src/TorrentRequestInfo.cc:
  10024. setSignalHander -> Util::setGlobalSignalHandler
  10025. * src/main.cc
  10026. (setSignalHander): Removed.
  10027. (main): setSignalHander -> Util::setGlobalSignalHandler
  10028. * src/Util.h
  10029. (setGlobalSignalHandler): New function.
  10030. * src/Util.cc
  10031. (setGlobalSignalHandler): New function.
  10032. * src/UrlRequestInfo.cc:
  10033. setSignalHander -> Util::setGlobalSignalHandler
  10034. Reset peer status in order to exit gracefully:
  10035. * src/PeerAbstractCommand.cc
  10036. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  10037. To fix the bug that causes the number of bytes uploaded is not saved
  10038. to .aria2 file:
  10039. * src/DefaultPeerStorage.h
  10040. (removedPeerSessionDownloadLength): New variable.
  10041. (removedPeerSessionUploadLength): New variable.
  10042. * src/DefaultPeerStorage.cc
  10043. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  10044. removedPeerSessionUploadLength(0).
  10045. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  10046. through all peers, and then add removedPeerSessionDownloadLength(
  10047. removedPeerSessionUploadLength) to it.
  10048. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  10049. (to) the peer to removedPeerSessionDownloadLength
  10050. (removedPeerSessionUploadLength).
  10051. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10052. To add Metalink location option:
  10053. * src/MetalinkRequestInfo.cc
  10054. (execute): Call MetalinkEntry::setLocationPreference()
  10055. * src/main.cc
  10056. (showUsage): Added the help message for --metalink-location option.
  10057. (main): Added --metalink-location option.
  10058. * src/prefs.h
  10059. (PREF_METALINK_LOCATION): New definition.
  10060. * src/MetalinkEntry.cc
  10061. (AddLocationPreference): New function object.
  10062. (setLocationPreference): New function.
  10063. * src/Xml2MetalinkProcessor.cc
  10064. (getResource): Set location attribute to MetalinkResource
  10065. To show URLs to download
  10066. * src/UrlRequestInfo.h
  10067. (printUrls): New function.
  10068. To add multiple <file> Metalink support:
  10069. * src/MetalinkEntry.h
  10070. (MetalinkResources): Removed.
  10071. (setLocationPreference): New function.
  10072. (MetalinkEntryHandle): New type definition.
  10073. (MetalinkEntries): New type definition.
  10074. * src/Xml2MetalinkProcessor.h
  10075. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  10076. (getResource): MetalinkResource* -> MetalinkResourceHandle
  10077. (parseFile): Metalinker* -> MetalinkerHandle
  10078. * src/UrlRequestInfo.h
  10079. (execute): RequestInfo* -> RequestInfos
  10080. * src/MetalinkRequestInfo.cc
  10081. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  10082. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  10083. (execute): RequestInfo* -> RequestInfos
  10084. Added multiple <file> support. Print filename when it is queued.
  10085. * src/MetalinkRequestInfo.h
  10086. (execute): RequestInfo* -> RequestInfos
  10087. (getDownloadEngine): Removed.
  10088. * src/RequestInfo.h
  10089. (RequestInfoHandle): New type definition.
  10090. (RequestInfos): New type definition.
  10091. (execute): RequestInfo* -> RequestInfos
  10092. (getDownloadEngine): Removed.
  10093. * src/MetalinkResource.h
  10094. (MetalinkResourceHandle): New type definition.
  10095. (MetalinkResources): New type definition.
  10096. * src/MetalinkEntry.cc
  10097. (~MetalinkEntry): Removed the deletion of the elements of resources,
  10098. because the element is now of type MetalinkResourceHandle.
  10099. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  10100. (Supported): MetalinkResource* -> MetalinkResourceHandle
  10101. (dropUnsupportedResource): Removed the deletion of the elements of
  10102. resources because the element is now of type MetalinkResourceHandle.
  10103. * src/Xml2MetalinkProcessor.cc
  10104. (parseFile): Metalinker* -> MetalinkerHandle
  10105. MetalinkEntry* -> MetalinkEntryHandle
  10106. Removed try-catch block.
  10107. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  10108. MetalinkResource* -> MetalinkResourceHandle
  10109. Removed try-catch block.
  10110. (getResource): MetalinkResource* -> MetalinkResourceHandle
  10111. Free result by using xmlXPathFreeObject()
  10112. * src/Metalinker.cc
  10113. (~Metalinker): Removed the deletion of entries.
  10114. MetalinkEntry* -> MetalinkEntryHandle
  10115. (queryEntry): Add multiple <file> Metalink support.
  10116. * src/Metalinker.h
  10117. (MetalinkEntries): Removed.
  10118. (queryEntry): MetalinkEntry* -> MetalinkEntries
  10119. * src/MetalinkProcessor.h
  10120. (parseFile): Metalinker* -> MetalinkerHandle
  10121. Bug fixes:
  10122. * src/PeerChokeCommand.cc
  10123. (execute): cat01->cat02
  10124. * src/DefaultPieceStorage.cc
  10125. (DefaultPieceStorage): Added diskAdaptor(0)
  10126. * src/TrackerWatcherComand.cc:
  10127. (execute): Use btAnnounce->noMoreAnnounce()
  10128. to determin whether the function returns true or not.
  10129. * src/TrackerUpdateCommand.cc:
  10130. (execute): Use btAnnounce->noMoreAnnounce()
  10131. to determin whether the function returns true or not.
  10132. * src/FtpConnection.cc
  10133. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  10134. This is the fix of the busy loop bug.
  10135. * src/DownloadCommand.cc
  10136. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  10137. cached PeerStat.
  10138. The value of "name" entry in torrent file is now set by
  10139. *DiskAdaptor::setTopDir(...) methods.
  10140. * src/MultiDiskAdaptor.h
  10141. (topDir): New variable.
  10142. (setTopDir): New function.
  10143. (getTopDir): New function.
  10144. * src/MultiDiskAdaptor.cc
  10145. (getFilePath): Concat storDir, "/" and topDir.
  10146. (mkdir): Use getFilePath() to get the directory path for output.
  10147. * src/DefaultPieceStorage.cc
  10148. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  10149. CopyDiskAdaptor.
  10150. * src/CopyDiskAdaptor.h
  10151. (topDir): New variable.
  10152. (setTopDir): New function.
  10153. (getTopDir): New function.
  10154. * src/CopyDiskAdaptor.cc
  10155. (fixFilename): Updated.
  10156. Misc
  10157. * src/UrlRequestInfo.h
  10158. (e): Removed.
  10159. (UrlRequestInfo): Removed e.
  10160. (getDownloadEngine): Removed.
  10161. * src/UrlRequestInfo.cc
  10162. (handler): Rewritten.
  10163. (printUrls): New function.
  10164. (execute): Call printUrls().
  10165. * src/HandshakeMessage.cc
  10166. (check): peerinteraction->getBtContext() -> btContext
  10167. * src/PeerInteraction.h
  10168. (getBtContext): Removed.
  10169. * src/TorrentRequestInfo.h
  10170. (execute): RequestInfo* -> RequestInfos
  10171. (getDownloadEngine): Removed.
  10172. * src/TorrentRequestInfo.cc
  10173. (haltRequested): Removed.
  10174. (btHaltRequested): New variable.
  10175. (torrentHandler): haltRequested -> btHaltRequested
  10176. (execute): RequestInfo* -> RequestInfos
  10177. * src/TorrentConsoleDownloadEngine.cc
  10178. (afterEachIteration): haltRequested -> btHaltRequested.
  10179. * src/ConsoleDownloadEngine.h
  10180. (initStatistics): Added virtual.
  10181. (calculateStatistics): Added virtual.
  10182. (onEndOfRun): Added virtual.
  10183. (afterEachIteration): Added virtual.
  10184. * src/ConsoleDownloadEngine.cc
  10185. (haltRequested): New variable.
  10186. (afterEachIteration): New function.
  10187. * src/main.cc
  10188. (requestInfo): Removed.
  10189. * src/SegmentMan.cc
  10190. (findSlowerSegmentEntry): Refactored.
  10191. * Release 0.9.0
  10192. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10193. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  10194. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  10195. * src/TorrentMan.h: Removed.
  10196. * src/TorrentMan.cc: Removed.
  10197. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  10198. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  10199. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  10200. * src/PeerAbstractCommand.cc: Use btRuntime.
  10201. * src/BtContextAwareCommand.h: New class.
  10202. * src/FileEntry.h: Added accessor methods for following variables.
  10203. (path): Made private.
  10204. (length): Made private.
  10205. (offset): Made private.
  10206. (extracted): Made private.
  10207. (requested): Made private.
  10208. (FileEntries): New definition.
  10209. (FileEntryHandle): New definition.
  10210. * src/FileEntry.cc: New file.
  10211. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  10212. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  10213. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  10214. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  10215. * src/PieceStorage.h: New file.
  10216. * src/PeerInteractionCommand.h: Use btContext.
  10217. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  10218. btRuntime.
  10219. * src/DefaultBtProgressInfoFile.h: New file.
  10220. * src/DefaultBtProgressInfoFile.cc: New file.
  10221. * src/File.cc
  10222. (Util.h): New include.
  10223. (mkdirs): New function.
  10224. * src/MultiDiskAdaptor.h
  10225. (mkdir): New function.
  10226. * src/PeerListProcessor.h
  10227. (Peers): Removed.
  10228. * src/PeerInteraction.h
  10229. (torrentMan): Removed.
  10230. (btContext): New variable.
  10231. (peerStorage): New variable.
  10232. (pieceStorage): New variable.
  10233. (btAnnounce): New variable.
  10234. (getTorrentMan): Removed.
  10235. (getBtContext): New function.
  10236. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  10237. btAnnounce.
  10238. * src/HandshakeMessage.h
  10239. (TorrentMan.h): Removed.
  10240. * src/HandshakeMessage.cc: Use btContext.
  10241. * src/DefaultBtAnnounce.cc: New file.
  10242. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  10243. * src/DefaultPieceStorage.cc: New file.
  10244. * src/DefaultBtContext.h: New file.
  10245. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  10246. Use the accessor methods of FileEntry.
  10247. * src/CookieBox.cc: Updated to use Util::slice().
  10248. * src/PieceMessage.cc: Use btContext, pieceStorage.
  10249. * src/common.h (SharedHandle.h): New include.
  10250. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  10251. pieceStorage.
  10252. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  10253. * src/DiskAdaptor.h
  10254. (topDir): Removed.
  10255. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  10256. (setTopDir): Removed.
  10257. (getTopDir): Removed.
  10258. * src/BtContext.h: New file.
  10259. * src/DefaultPeerStorage.h: New file.
  10260. * src/PieceMessage.h (TorrentMan.h): Removed.
  10261. * src/RequestMessage.h (TorrentMan.h): Removed.
  10262. * src/TorrentDownloadEngine.h
  10263. (uploadLength): New variable.
  10264. (btContext): New variable.
  10265. (btRuntime): New variable.
  10266. (pieceStorage): New variable.
  10267. (peerStorage): New variable.
  10268. (btAnnounce): New variable.
  10269. (btProgressInfoFile): New variable.
  10270. (torrentMan): Removed.
  10271. (setBtContext): New function.
  10272. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  10273. peerStorage, btAnnounce, btProgressInfoFile.
  10274. * src/Piece.h
  10275. (toString): New function.
  10276. (Pieces): New type definition.
  10277. * src/Peer.h
  10278. (active): New variable.
  10279. (Peer): Added active.
  10280. (activate): Set active to true.
  10281. (deactivate): Set active to false.
  10282. (isActive): New function.
  10283. (Peers): New type definition.
  10284. * src/DirectDiskAdaptor.cc
  10285. (getFilePath): Use the accessor methods of FileEntry.
  10286. * src/TorrentConsoleDownloadEngine.h
  10287. (afterEachIteration): New function.
  10288. * src/TorrentConsoleDownloadEngine.cc
  10289. (haltRequested): New variable.
  10290. (sendStatistics): Use pieceStorage, btRuntime.
  10291. (afterEachIteration): New function.
  10292. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  10293. * src/Directry.h
  10294. (Directory): New function.
  10295. (DirectoryHandle): New type definition.
  10296. * src/BtProgressInfoFile.h: New file.
  10297. * src/RequestMessage.cc: Use pieceStorage.
  10298. * src/BtRuntime.h: New file.
  10299. * src/DefaultBtContext.cc: New file.
  10300. * src/BitfieldMan.h
  10301. (getCompletedLength): New function(private).
  10302. (getCompletedLength): New function.
  10303. (getFilteredCompletedLength): New function.
  10304. * src/BitfieldMan.h
  10305. (getCompletedLength): New function(private).
  10306. (getCompletedLength): New function.
  10307. (getFilteredCompletedLength): New function.
  10308. * src/MultiDiskAdaptor.cc
  10309. (mkdir): New function.
  10310. (openFile): Call mkdir().
  10311. (initAndOpenFile): Call mkdir().
  10312. * src/CancelMessage.h
  10313. (TorrentMan.h): Removed.
  10314. * src/RejectMessage.h
  10315. (TorrentMan.h): Removed.
  10316. * src/DownloadEngineFactory.cc
  10317. (DefaultPieceStorage.h): New include.
  10318. (DefaultPeerStorage.h): New include.
  10319. (DefaultBtAnnounce.h): New include.
  10320. (DefaultBtProgressInfoFile.h): New include.
  10321. (newTorrentConsoleEngine): Rewritten.
  10322. * src/ShareRatioSeedCriteria.h
  10323. (torrentMan): Removed.
  10324. (btContext): New variable.
  10325. (peerStorage): New variable.
  10326. (btRuntime): New variable.
  10327. (evaluate): Use btContext, btRuntime, peerStorage.
  10328. * src/AnnounceTier.h: New file.
  10329. * src/BtAnnounce.h: New file.
  10330. * src/BtRegistry.h: New file.
  10331. * src/PeerInitiateConnectionCommand.h: Added btContext.
  10332. * src/PeerConnection.h (TorrentMan.h): Removed.
  10333. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  10334. * src/Util.h
  10335. (slice): Added an argument.
  10336. * src/Util.cc
  10337. (slice): Added an argument to control whether trim is made or not.
  10338. * src/PeerStorage.h: New file.
  10339. * src/BtRegistry.cc: New file.
  10340. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  10341. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  10342. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  10343. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  10344. * src/TorrentRequestInfo.h
  10345. (e): Removed.
  10346. (showFileEntry): Added an argument.
  10347. (getDownloadEngine): Return 0.
  10348. * src/DefaultBtAnnounce.h: New file.
  10349. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  10350. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  10351. * src/PeerMessageFactory.h
  10352. (btContext): New variable.
  10353. (pieceStorage): New variable.
  10354. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  10355. btAnnounce.
  10356. * src/DiskAdaptor.cc
  10357. (DiskAdaptor): Removed topDir.
  10358. (~DiskAdaptor): Removed topDir.
  10359. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  10360. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  10361. * src/File.h (mkdirs): New function.
  10362. * src/DefaultPeerStorage): New file.
  10363. * src/DownloadEngineFactory.h
  10364. (newTorrentConsoleEngine): Use btContext.
  10365. * src/BtContextAwareCommand.cc: New file.
  10366. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  10367. * src/PeerMessage.h
  10368. (btContext): New variable.
  10369. (peerStorage): New variable.
  10370. (pieceStorage): New variable.
  10371. (setBtContext): New function.
  10372. * src/Directry.cc
  10373. (Directory): New function.
  10374. (createDir): Do nothing if name.size() == 0.
  10375. * src/AnnounceList.h
  10376. (AnnounceTier): Removed.
  10377. (AnnounceTiers): Removed.
  10378. * src/DefaultPieceStorage.h: New file.
  10379. * src/Piece.cc (toString): New function.
  10380. To fix typo:
  10381. * src/main.cc (showVersion): Fixed typo.
  10382. To fix compile warning:
  10383. * src/DelegatingPeerListProcessor.cc
  10384. (canHandle): Added "return false".
  10385. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10386. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  10387. make the process of announce request testable.
  10388. * src/TrackerWatcherCommand.h
  10389. (TimeA2.h): Removed.
  10390. (interval): Removed.
  10391. (checkPoint): Removed.
  10392. (createRequestCommand): Added an argument 'url'.
  10393. (TrackerWatherCommand): Removed interval.
  10394. (createCommand): New function.
  10395. * src/DownloadEngineFactory.cc
  10396. (newTorrentConsoleEngine): Updated according to the changes in
  10397. TrackerWatherCommand.
  10398. * src/TorrentMan.cc
  10399. (DelegatingPeerListProcessor.h): New includes.
  10400. (TorrentMan): Added the initialization of announceInterval.
  10401. (isStoppedAnnounceReady): New function.
  10402. (isCompletedAnnounceReady): New function.
  10403. (isDefaultAnnounceReady): New function.
  10404. (isAnnounceReady): New function.
  10405. (getAnnounceUrl): New function.
  10406. (announceStart): New function.
  10407. (announceFailure): New function.
  10408. (announceSuccess): New function.
  10409. (isAllAnnounceFailed): New function.
  10410. (resetAnnounce): New function.
  10411. (processAnnounceResponse): New function.
  10412. (needMorePeerConnection): New function.
  10413. (noMoreAnnounce): New function.
  10414. * src/TrackerUpdateCommand.h
  10415. (getTrackerResponse): int->size_t
  10416. * src/TorrentMan.h
  10417. (isStoppedAnnounceReady): New function.
  10418. (isCompletedAnnounceReady): New function.
  10419. (isDefaultAnnounceReady): New function.
  10420. (announceInterval): New variable.
  10421. (isAnnounceReady): New function.
  10422. (getAnnounceUrl): New function.
  10423. (announceStart): New function.
  10424. (announceFailure): New function.
  10425. (announceSuccess): New function.
  10426. (isAllAnnounceFailed): New function.
  10427. (resetAnnounce): New function.
  10428. (processAnnounceResponse): New function.
  10429. (needMorePeerConnection): New function.
  10430. (noMoreAnnounce): New function.
  10431. * src/TrackerWatcherCommand.cc
  10432. (TrackerWatherCommand): Removed interval and checkPoint.
  10433. (execute): Rewritten.
  10434. (createCommand): New function.
  10435. (createRequestCommand): Rewritten.
  10436. * src/TrackerUpdateCommand.cc
  10437. (MetaFileUtil.h): Removed.
  10438. (DelegatingPeerListProcessor.h): Removed.
  10439. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  10440. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10441. Request -> RequestHandle:
  10442. * src/HttpResponseCommand.h: Request->RequestHandle
  10443. * src/AbstractCommand.cc: Request->RequestHandle
  10444. * src/HttpDownloadCommand.cc: Request->RequestHandle
  10445. * src/HttpRequestCommand.cc: Request->RequestHandle
  10446. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  10447. * src/AbstractCommand.h: Request->RequestHandle
  10448. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  10449. * src/HttpResponseCommand.cc: Request->RequestHandle
  10450. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  10451. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  10452. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  10453. * src/HttpConnection.h: Request->RequestHandle
  10454. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  10455. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  10456. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  10457. * src/DownloadCommand.h: Request->RequestHandle
  10458. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  10459. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  10460. * src/HttpRequestCommand.h: Request->RequestHandle
  10461. * src/FtpNegotiateCommand.h: Request->RequestHandle
  10462. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  10463. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  10464. * src/HttpDownloadCommand.h: Request->RequestHandle
  10465. * src/FtpConnection.cc: Request->RequestHandle
  10466. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  10467. * src/UrlRequestInfo.cc: Request->RequestHandle
  10468. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  10469. * src/HttpConnection.h: Request->RequestHandle
  10470. * src/DownloadCommand.cc: Request->RequestHandle
  10471. * src/FtpConnection.h: Request->RequestHandle
  10472. * src/FtpDowndloadCommand.h: Request->RequestHandle
  10473. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  10474. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  10475. * src/Request.h
  10476. (SharedHandle.h): New include.
  10477. (RequestHandle): New type definition.
  10478. (Requests): Redefined.
  10479. To add MULTITRACKER support:
  10480. * src/TrackerWatcherCommand.h
  10481. (createRequestCommand): New function.
  10482. * src/DownloadEngineFactory.cc
  10483. (newTorrentConsoleEngine): Removed req.
  10484. * src/prefs.h
  10485. (PREF_TRACKER_MAX_TRIES): New definition.
  10486. * src/TorrentMan.cc
  10487. (TorrentMan): Removed req. Added trackerNumTry.
  10488. (~TorrentMan): Removed req.
  10489. (setupInternal1): Added announceList.
  10490. * src/TorrentRequestInfo.cc
  10491. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  10492. announces is now specified by PREF_TRACKER_MAX_TRIES.
  10493. * src/main.cc
  10494. (main): Added PREF_TRACKER_MAX_TRIES.
  10495. * src/TorrentMan.h
  10496. (Request.h): Removed.
  10497. (AnnounceList.h): New include.
  10498. (trackerNumTry): New variable.
  10499. (req): Removed.
  10500. (announceList): New variable.
  10501. * src/TrackerWatcherCommand.cc
  10502. (execute): Rewritten.
  10503. (createRequestCommand): New function.
  10504. * src/TrackerUpdateCommand.cc
  10505. (execute): Updated with the use of AnnounceList.
  10506. * src/AnnounceList.cc: New class.
  10507. * src/AnnounceList.h: New class.
  10508. To fix typo:
  10509. * src/prefs.h
  10510. (PREF_MAX_TRIES): max_try->max_tries
  10511. To not to decode "+" as space in URL decode:
  10512. * src/Util.cc
  10513. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  10514. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10515. To add timeout to async name resolution:
  10516. * src/AbstractCommand.h
  10517. (nameResolveFinished): New function. This is not elegant way. It needs
  10518. to be more refined.
  10519. (nameResolverCheck): New variable.
  10520. * src/AbstractCommand.cc
  10521. (AbstractCommand): Added nameResolverCheck.
  10522. (execute): Added the check whether the name resolution has finished.
  10523. (setNameResolverCheck): Set nameResolverCheck to true.
  10524. (disableNameResolverCheck): Set nameResolverCheck to false.
  10525. (nameResolverFinished): New function.
  10526. * src/FtpInitiateConnectionCommand.h
  10527. (nameResolverFinished): New function.
  10528. * src/FtpInitiateConnectionCommand.cc
  10529. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  10530. * src/HttpInitiateConnectionCommand.h
  10531. (nameResolverFinished): New function.
  10532. * src/HttpInitiateConnectionCommand.cc
  10533. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  10534. * src/prefs.h
  10535. (PREF_DNS_TIMEOUT): New definition.
  10536. * src/main.cc
  10537. (main): Added PREF_DNS_TIMEOUT.
  10538. To add the support for a non-compact response from a tracker:
  10539. * src/PeerListProcessor.h: New class.
  10540. * src/DefaultPeerListProcessor.h: New class.
  10541. * src/DefaultPeerListProcessor.cc: New class.
  10542. * src/CompactPeerListProcessor.h: New class.
  10543. * src/CompactPeerListProcessor.cc: New class.
  10544. * src/DelegatingPeerListProcessor.h: New class.
  10545. * src/DelegatingPeerListProcessor.cc: New class.
  10546. * src/TorrentMan.cc
  10547. (addPeer): New function(overload).
  10548. (addPeer): Delete unused peers only when new peer is added.
  10549. * src/TorrentMan.h
  10550. (PeerListProcessor.h): Included.
  10551. (Peers): Removed.
  10552. (addPeer): New function(overload).
  10553. * src/TrackerUpdateCommand.cc
  10554. (netinet/in.h): Removed.
  10555. (DelegatingPeerListProcessor.h): Included.
  10556. (execute): Updated to use DelegatingPeerListProcessor.
  10557. To fix the memory leak in TorrentMan::peers:
  10558. * src/PeerAbstractCommand.cc
  10559. (onAbort): Added peer->resetStatus().
  10560. * src/Peer.h
  10561. (resetStatus): Made public.
  10562. To improve the precision of the speed calculation:
  10563. * src/SpeedCalc.h
  10564. (nextInterval): New variable.
  10565. * src/SpeedCalc.cc
  10566. (reset): Added nextInterval.
  10567. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  10568. (changeSw): Set nextInterval to 15 seconds relative to the current
  10569. instant time.
  10570. * src/main.cc
  10571. (showVersion): Updated.
  10572. (showUsage): Updated.
  10573. * Release 0.8.1
  10574. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10575. * src/main.cc
  10576. (showUsage): Commented out --min-segment-size option.
  10577. (main): Commented out --min-segment-size option.
  10578. * Release 0.8.0
  10579. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10580. * src/*.{h,cc}:
  10581. Added an exception to the license which allows linking with OpenSSL.
  10582. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10583. * src/AbstractCommand.cc
  10584. (execute): Check whether the download has finished before checking
  10585. socket status.
  10586. Return true if peerStat->getStatus() == REQUEST_IDLE.
  10587. Do not exit even if no segment is available.
  10588. * src/prefs.h
  10589. (PREF_STARTUP_IDLE_TIME): New definition.
  10590. * src/PeerInteractionCommand.cc
  10591. (executeInternal): Removed max speed limit. Because it performs bad.
  10592. (receiveMessages): Added max speed limit. This was better than above,
  10593. but still a little bit to be desired. Sometimes the download speed
  10594. became much faster than I specified.
  10595. * src/SpeedCalc.h
  10596. (start): New variable.
  10597. (accumulatedLength): New variable.
  10598. (getAvgSpeed): New function.
  10599. * src/SpeedCalc.cc
  10600. (reset): Added start, accumulatedLength.
  10601. (update): Added calculation of an average speed.
  10602. (getAvgSpeed): New function.
  10603. * src/DownloadCommand.h
  10604. (sw): Removed.
  10605. * src/main.cc
  10606. (main): Added PREF_STARTUP_IDLE_TIME.
  10607. * src/PeerStat.h
  10608. (STATUS): Added REQUEST_IDLE.
  10609. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  10610. (getAvgDownloadSpeed): New function
  10611. (requestIdle): New function.
  10612. * src/SegmentMan.h
  10613. (SegmentEntryHandle): New type definition.
  10614. (SegmentEntries): Now holds SegmentEntryHandle.
  10615. (findSlowerSegmentEntry): New funtion.
  10616. * src/SegmentMan.cc
  10617. (save): Updated according to the changes in SegmentEntries.
  10618. (read): Updated according to the changes in SegmentEntries.
  10619. (FindSegmentEntryByIndex): Updated according to the changes in
  10620. SegmentEntries.
  10621. (FindSegmentEntryByCuid): Updated according to the changes in
  10622. SegmentEntries.
  10623. (checkoutSegment): Updated according to the changes in SegmentEntries.
  10624. (onNullBitfield): Updated according to the changes in SegmentEntries.
  10625. Renamed uitr as itr.
  10626. (findSlowerSegmentEntry): New function.
  10627. (getSegment): Updated according to the changes in SegmentEntries.
  10628. Added the feature that cancels the segment with slow server and fast
  10629. one takes it over.
  10630. (cancelSegment): Updated according to the changes in SegmentEntries.
  10631. (getDownloadLength): Updated according to the changes in
  10632. SegmentEntries.
  10633. (init): Assigned 0 to bitfield after deleting it.
  10634. * src/DownloadCommand.cc
  10635. (STARTUP_IDLE_TIME): Removed.
  10636. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  10637. * src/PeerChokeCommand.cc
  10638. (optUnchokingPeer): Updated according to the changes in Peer.
  10639. (ResetDelta): Removed.
  10640. (UploadFaster): Updated according to the changes in Peer.
  10641. (DownloadFaster): Updated according to the changes in Peer.
  10642. (execute): I clarify the meaning of "upload" and "download" here.
  10643. "upload" means the transfer from localhost to remote host.
  10644. "download" means the transfer from remote host to localhost.
  10645. Based on this rule, I swapped orderByUploadRate and
  10646. orderByDownloadRate.
  10647. * src/PeerInteractionCommand.cc
  10648. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  10649. (executeInternal): Removed the argument of
  10650. peerInteraction->sendMessages().
  10651. (receiveMessages): Rewritten download speed limit.
  10652. (sendKeepAlive): Removed peerInteraction->sendMessages().
  10653. * src/HttpResponseCommand.cc
  10654. (handleDefaultEncoding): If file size is unknown in torrent request,
  10655. do not call segmentMan->initBitfield() here.
  10656. Disabled persistent connection feature in torrent request.
  10657. * src/UrlRequestInfo.h
  10658. (UrlRequestInfo): Removed const qualifier from option.
  10659. * src/TorrentMan.h
  10660. (TransferStat): New class.
  10661. (deltaDownloadLength): Removed.
  10662. (deltaUploadLength): Removed.
  10663. (addDeltaDownloadLength): Removed.
  10664. (getDeltaDownloadLength): Removed.
  10665. (resetDeltaDownloadLength): Removed.
  10666. (addDeltaUploadLength): Removed.
  10667. (getDeltaUploadLength): Removed.
  10668. (resetDeltaUploadLength): Removed.
  10669. (addActivePeer): Added peer->activate().
  10670. (deleteActivePeer): Added peer->deactivate().
  10671. (calculateStat): New function.
  10672. * src/TorrentMan.cc
  10673. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  10674. (calculateStat): New function.
  10675. * src/PeerInteraction.h
  10676. (uploadLimit): Removed.
  10677. (option): New variable.
  10678. (setUploadLimit): Removed.
  10679. (getUploadSpeed): Removed.
  10680. (sendMessages): Removed the argument "currentUploadSpeed".
  10681. * src/PeerInteraction.cc
  10682. (prefs.h): Included.
  10683. (PeerInteraction): Removed uploadLimit. Added option.
  10684. (sendMessages): Rewritten upload speed limit.
  10685. (sendHandshake): Removed the argument from sendMessages().
  10686. (sendBitfield): Removed the argument from sendMessages().
  10687. * src/PeerAbstractCommand.cc
  10688. (execute): Commented out the portion of upload limit.
  10689. (onAbort): Removed peer->resetStatus().
  10690. * src/TorrentRequestInfo.cc
  10691. (timeoutSpecified): Declared extern.
  10692. (execute): Set timeout to 180 if timeout is not specified by.
  10693. command-line.
  10694. * src/PieceMessage.cc
  10695. (receivedAction): Added peer->updateDownloadLength().
  10696. Removed peer->addPeerUpload().
  10697. Removed torrentMan->addDeltaDownloadLength().
  10698. (send): Added peer->updateUploadLength().
  10699. Removed peer->addPeerDownload().
  10700. Removed torrentMan->addDeltaUploadLength().
  10701. * src/main.cc
  10702. (timeoutSpecified): New variable.
  10703. (main): Set timeoutSpecified to false.
  10704. If the command-line option "--upload-limit" is specified, then
  10705. timeoutSpecified is set to true. This option will remain in the next
  10706. release, but be deprecated in the future release.
  10707. * src/TorrentRequestInfo.h
  10708. (TorrentRequestInfo): Removed const qualifier from op.
  10709. * src/PeerStat.h
  10710. (uploadSpeed): New variable.
  10711. (PeerStat): Added default value to cuid.
  10712. (calculateUploadSpeed): New function.
  10713. (updateUploadLength): New function.
  10714. (getMaxUploadSpeed): New function.
  10715. (getAvgUploadSpeed): New function.
  10716. (reset): Added uploadSpeed. Set status to IDLE.
  10717. * src/TorrentDownloadEngine.h
  10718. (cp): Declared as Time.
  10719. (sessionDownloadLengthArray): Removed.
  10720. (sessionUploadLengthArray): Removed.
  10721. (currentCp): Removed.
  10722. (lastCalcStat): New variable
  10723. (lastElapsed): Removed.
  10724. (sessionDownloadLength): Removed.
  10725. (calculateStat): New function.
  10726. * src/TorrentDownloadEngine.cc
  10727. (initStatistics): Removed lastElapsed, cp[],
  10728. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  10729. currentCp, sessionDownloadLength.
  10730. Added cp.reset() and lastCalcStat.reset().
  10731. (calculateSpeed): Changed the name of the argument.
  10732. (calculateStatistics): Rewritten.
  10733. (calculateStat): New function.
  10734. * src/Peer.h
  10735. (PeerStat.h): Included.
  10736. (peerUpload): Removed.
  10737. (peerDownload): Removed.
  10738. (peerStat): New variable.
  10739. (sessionUploadLength): New variable.
  10740. (sessionDownloadLength): New variable.
  10741. (deltaUpload): Removed.
  10742. (deltaDownload): Removed.
  10743. (resetStatus): Made private.
  10744. (Peer): Added sessionUploadLength, sessionDownloadLength.
  10745. Removed peerUpload, peerDownload.
  10746. (updateUploadLength): New function.
  10747. (addDeltaUpload): Removed.
  10748. (updateDownloadLength): New function.
  10749. (resetDeltaUpload): Removed.
  10750. (getDeltaUpload): Removed.
  10751. (addDeltaDownload): Removed.
  10752. (calculateUploadSpeed): New function.
  10753. (resetDeltaDownload): Removed.
  10754. (getDeltaDownload): Removed.
  10755. (calculateDownloadSpeed): New function.
  10756. (getSessionUploadLength): New function.
  10757. (getSessionDownloadLength): New function.
  10758. (activate): New function.
  10759. (deactivate): New function.
  10760. (addPeerUpload): Removed.
  10761. (setPeerUpload): Removed.
  10762. (getPeerUpload): Removed.
  10763. (addPeerDownload): Removed.
  10764. (setPeerDownload): Removed.
  10765. (getPeerDownload): Removed.
  10766. * src/Peer.cc
  10767. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  10768. * src/MetalinkRequestInfo.h
  10769. (MetalinkRequestInfo): Removed const qualifier from op.
  10770. * src/RequestInfo.h
  10771. (op): Removed const qualifier.
  10772. (RequestInfo): Removed const qualifier from op.
  10773. * src/prefs.h
  10774. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  10775. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  10776. * src/PeerInteractionCommand.cc
  10777. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  10778. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  10779. * src/PeerInteraction.cc
  10780. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  10781. * src/main.cc
  10782. (showUsage): Updated the description of "--lowest-speed-limit" option.
  10783. Added the description of "--max-download-limit" option.
  10784. Removed the description of "--upload-limit" option.
  10785. Added the description of "--max-upload-limit" option.
  10786. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  10787. Added "--max-download-limit" option and "--max-upload-limit" option.
  10788. Added the warning message if "--upload-limit" option is used.
  10789. * src/DownloadCommand.cc
  10790. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  10791. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10792. To rewrite segment download mechanism for HTTP/FTP download.
  10793. Use BitfieldMan to manage segment download.
  10794. * src/HttpResponseCommand.h
  10795. (executeInternal): Pass the reference of segment.
  10796. * src/AbstractCommand.cc
  10797. (prepareForRetry): Call segmentMan->cancelSegment here.
  10798. (onAbort): Call segmentMan->cancelSegment here.
  10799. * src/HttpDownloadCommand.cc
  10800. (prepareForNextSegment): New function.
  10801. * src/DownloadEngineFactory.cc
  10802. (newConsoleEngine): Removed splitter.
  10803. (newTorrentConsoleEngine): Removed splitter.
  10804. * src/Request.h
  10805. (segment): Renamed from seg.
  10806. * src/FtpInitiateConnectionCommand.h
  10807. (executeInternal): Pass the reference of segment.
  10808. * src/AbstractCommand.h
  10809. (executeInternal): Pass the reference of segment.
  10810. * src/pref.h
  10811. (PREF_SEGMENT_SIZE): New definition.
  10812. * src/HttpProxyRequestCommand.h
  10813. (executeInternal): Pass the reference of segment.
  10814. * src/HttpResponseCommand.cc
  10815. (checkResponse): Allowed status 206 when a request range starts 0.
  10816. (handleDefaultEncoding): Rewritten the code related to Segment.
  10817. (handleOtherEncoding): Rewritten the code related to Segment.
  10818. * src/SegmentMan.h
  10819. (SegmentEntry): New class.
  10820. (SegmentEntries): New type definition.
  10821. (bitfield): New variable.
  10822. (usedSegmentEntries): New variable.
  10823. (onNullBitfield): New function.
  10824. (checkoutSegment): New function.
  10825. (segments): Removed.
  10826. (splitter): Removed.
  10827. (unregisterId): Removed.
  10828. (getSegment): New function(overload)
  10829. (getDownloadedSize): Removed.
  10830. (cancelSegment): New function.
  10831. (completeSegment): New function.
  10832. (initBitfield): New function.
  10833. (hasSegment): New function.
  10834. (getDownloadLength): New function.
  10835. * src/BitfieldMan.h
  10836. (getStartIndex): New function.
  10837. (getEndIndex): New function.
  10838. (getMissingUnusedIndex): New function(overload).
  10839. (getSparseMissingUnusedIndex): New function.
  10840. * src/BitfieldMan.cc
  10841. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  10842. (getMissingUnusedIndex): New function(overload).
  10843. (Range): New class.
  10844. (getStartIndex): New function.
  10845. (getEndIndex): New function.
  10846. (getSparseMissingUnusedIndex): New function.
  10847. (isBitSetInternal): Return false if the given index is less than 0.
  10848. * src/HttpInitiateConnectionCommand.h
  10849. (executeInternal): Pass the reference of segment.
  10850. * src/FtpNegotiateCommand.h
  10851. (executeInternal): Pass the reference of segment.
  10852. * src/FtpNegotiateCommand.cc
  10853. (recvSize): Initialize bitfield here.
  10854. * src/FtpTunnelResponseCommand.h
  10855. (executeInternal): Pass the reference of segment.
  10856. * src/HttpConnection.cc
  10857. (createRequest): Rewritten range header processing.
  10858. * src/DownloadCommand.h
  10859. (executeInternal): Pass the reference of segment.
  10860. (prepareForRetry): Removed.
  10861. (prepareForNextSegment): Added an argument segment. Made it a virtual
  10862. function.
  10863. * src/main.cc
  10864. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  10865. * src/SegmentMan.cc
  10866. (SegmentMan): Added bitfield. Removed splitter.
  10867. (~SegmentMan): Added bitfield. Removed splitter.
  10868. (unregisterId): Removed.
  10869. (getSegment): Rewritten.
  10870. (updateSegment): Rewritten.
  10871. (save): Rewritten.
  10872. (read): Rewritten.
  10873. (finished): Rewritten.
  10874. (getDownloadedSize): Removed.
  10875. (initBitfield): New function.
  10876. (FindSegmentEntryByIndex): New function object.
  10877. (FindSegmentEntryByCuid): New function object.
  10878. (checkoutSegment): New function.
  10879. (onNullBitfield): New function.
  10880. (getSegment): New function(overload).
  10881. (CancelSegment): New function object.
  10882. (cancelSegment): New function.
  10883. (completeSegment): New function.
  10884. (hasSegment): New function.
  10885. (getDownloadLength): New function.
  10886. * src/FtpInitiateConnectionCommand.cc
  10887. (executeInternal): Load .aria2 file after hostname resolution finishes.
  10888. * src/Segment.h: Rewritten.
  10889. * src/Segment.cc (operator<<): New function.
  10890. * src/HttpDownloadCommand.h
  10891. (prepareForNextSegment): New function.
  10892. * src/Request.cc
  10893. (resetUrl): Made segment null.
  10894. * src/DownloadEngine.cc
  10895. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  10896. * src/HttpProxyRequestCommand.h
  10897. (executeInternal): Pass the reference of segment.
  10898. * src/DownloadCommand.cc
  10899. (executeInternal): Rewritten the code related to Segment.
  10900. (prepareForRetry): Removed.
  10901. (prepareForNextSegment): Rewritten.
  10902. * src/FtpTunnelResponseCommand.h
  10903. (executeInternal): Pass the reference of segment.
  10904. To add HTTP 1.1 persistent connection support(experimental)
  10905. * src/HttpRequestCommand.cc
  10906. (executeInternal): Disable keep alive if it is disabled by
  10907. configuration.
  10908. * src/Request.h
  10909. (keepAlive): New variable.
  10910. (isKeepAlive): New function.
  10911. (setKeepAlive): New function.
  10912. * src/pref.h
  10913. (PREF_HTTP_KEEP_ALIVE): New definition.
  10914. * src/HttpResponseCommand.cc
  10915. (executeInternal): Check the remote server supports keep alive.
  10916. * src/HttpConnection.cc
  10917. (createRequest): Send "Connection: close" only if keep alive is
  10918. disabled.
  10919. * src/main.cc
  10920. (main):
  10921. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  10922. To add max download speed limit:
  10923. * src/pref.h
  10924. (PREF_MAX_SPEED_LIMIT): New definition.
  10925. * src/PeerInteractionCommand.cc
  10926. (executeInternal): Added max download speed limit. Not tested yet.
  10927. * src/SegmentMan.h
  10928. (PeerStats): New type definition.
  10929. (peerStats): New variable.
  10930. (registerPeerStat): New function.
  10931. (FindPeerStat): New function object.
  10932. (getPeerStat): New function.
  10933. (calculateDownloadSpeed): New function.
  10934. * src/SpeedCalc.h: New class.
  10935. * src/SpeedCalc.cc: New class.
  10936. * src/main.cc
  10937. (main):
  10938. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  10939. download speed is not restricted).
  10940. * src/PeerStat.h: New class.
  10941. * src/SegmentMan.cc
  10942. (registerPeerStat): New function.
  10943. (calculateDownloadSpeed): New function.
  10944. * src/DownloadCommand.cc
  10945. (STARTUP_IDLE_TIME): New definition.
  10946. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  10947. downloadStart.
  10948. (~DownloadCommand): Call peerStat->downloadStop.
  10949. (executeInternal): Added download speed limitter. Rewritten lowest
  10950. speed limitter.
  10951. * src/HttpConnection.cc
  10952. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  10953. * src/AbstractCommand.cc
  10954. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  10955. Added hostname to the error message.
  10956. * src/ConsoleDownloadEngine.cc
  10957. (calculateStatistics): Initialize psize with dlSize.
  10958. * src/PieceMessage.cc
  10959. (receivedAction): Do not call peerInteraction->abortPiece here.
  10960. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  10961. * src/BitfieldMan.h
  10962. (clearAllUseBit): New function.
  10963. (setAllUseBit): New function.
  10964. * src/BitfieldMan.cc
  10965. (clearAllBit): Do not clear useBitfield here.
  10966. (clearAllUseBit): New function.
  10967. (setAllUseBit): New function.
  10968. * src/Piece.cc
  10969. (clearAllBlock): Call bitfield->clearAllUseBit().
  10970. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10971. To make filename URL-decoded:
  10972. * src/HttpResponseCommand.h: Updated doc.
  10973. * src/HttpResponseCommand.cc
  10974. (determinFilename): Made filename URL-decoded.
  10975. * src/FtpInitiateConnectionCommand.cc
  10976. (executeInternal): Made filename URL-decoded.
  10977. * src/Util.h (urldecode): New function.
  10978. * src/Util.cc (urldecode): New function.
  10979. To fix a bug that caused assertion failure in ares_strerror:
  10980. * src/NameResolver.cc (callback): Fixed the bug.
  10981. * Release 0.7.3
  10982. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10983. To add --seed-time and --seed-ratio command-line option:
  10984. * src/Option.h (getAsDouble): New function.
  10985. * src/Option.cc (getAsDouble): New function.
  10986. * src/SeedCheckCommand.h: New class.
  10987. * src/SeedCheckCommand.cc: New class.
  10988. * src/DownloadEngineFactory.cc
  10989. (SeedCheckCommand.h): Included.
  10990. (UnionSeedCriteria.h): Included.
  10991. (TimeSeedCriteria.h): Included.
  10992. (ShareRatioSeedCriteria.h): Included.
  10993. (newTorrentConsoleEngine): Added the processing of seed option.
  10994. * src/SeedCriteria.h: New class.
  10995. * src/ShareRatioSeedCriteria.h: New class.
  10996. * src/TimeSeedCriteria.h: New class.
  10997. * src/UnionSeedCriteria.h: New class.
  10998. * src/prefs.h
  10999. (PREF_SEED_TIME): New definition.
  11000. (PREF_SEED_RATIO): New definition.
  11001. * src/main.cc
  11002. (showUsage): Added --seed-time and --seed-ratio option.
  11003. (main): Added --seed-time and --seed-ratio option.
  11004. Made default log file name "/dev/null".
  11005. * src/SharedHandle.h
  11006. (SharedHandle): Copy constructor. Made it assignable from the
  11007. SharedHandle of the subclasses.
  11008. (operator=): Made it assignable from the SharedHandle of the
  11009. subclasses.
  11010. (getRefCount): New function.
  11011. To add notice log level and the switch to write log to stdout. This
  11012. switch is configurable per log level.
  11013. * src/Logger.h
  11014. (notice): New function.
  11015. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  11016. constant.
  11017. * src/LogFactory.cc
  11018. (getInstance): The use of NullLogger was removed. A log message with
  11019. notice log level was made written to stdout along with log file.
  11020. * src/NullLogger.h
  11021. (notice): New function.
  11022. * src/SimpleLogger.h
  11023. (writeHeader): Added the 'file' argument.
  11024. (writeLog): Added the 'file' argument.
  11025. (writeFile): New function.
  11026. (stdoutField): New variable.
  11027. (SimpleLogger): Removed the default constructor.
  11028. (SimpleLogger): Made the default value of logfile 0.
  11029. (debug): Added 'virtual' keyword.
  11030. (info): Added 'virtual' keyword.
  11031. (warn): Added 'virtual' keyword.
  11032. (error): Added 'virtual' keyword.
  11033. (notice): New function.
  11034. (setStdout): New function.
  11035. * src/SimpleLogger.cc
  11036. (WRITE_LOG): Replaced writeLog with writeFile.
  11037. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  11038. (SimpleLogger): Removed the default constructor.
  11039. (setStdout): New function.
  11040. (writeLog): Added the handling of NOTICE log level.
  11041. (writeFile): New function.
  11042. (notice): New function.
  11043. * src/TorrentMan.h: Updated doc.
  11044. * src/BitfieldMan.h: Updated doc.
  11045. * src/TrackerWatcherCommand.cc
  11046. (execute): Return true if error occurred in the request to the tracker
  11047. and halt is requested.
  11048. * src/TrackerUpdateCommand.cc
  11049. (execute): Return true if error occurred in the request to the tracker
  11050. and halt is requested.
  11051. To call onDownloadComplete from TorrentMan::completePiece(), not from
  11052. DownloadEngine:
  11053. * src/TorrentConsoleDownloadEngine.h
  11054. (onSelectiveDownloadingCompletes): Removed.
  11055. * src/TorrentConsoleDownloadEngine.cc
  11056. (onSelectiveDownloadingCompletes): Removed.
  11057. * src/TorrentDownloadEngine.h
  11058. (onEndOfRun): Added 'virtual' keyword.
  11059. (afterEachIteration): Removed.
  11060. (onSelectiveDownloadingCompletes): Removed.
  11061. * src/TorrentDownloadEngine.cc
  11062. (onEndOfRun): Removed filenameFixed.
  11063. (afterEachIteration): Removed.
  11064. * src/TorrentMan.cc
  11065. (completePiece): Call onDownloadComplete here.
  11066. (onDownloadComplete): Added 2 log messages.
  11067. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11068. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  11069. * src/NameResolver.h: Added the prototype declaration of callback().
  11070. To support c-ares library:
  11071. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11072. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11073. * src/FtpInitiateConnectionCommand.h:
  11074. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11075. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11076. * src/HttpInitiateConnectionCommand.h:
  11077. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11078. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  11079. Added thes upport of c-ares's ares_strerror(the idea came from patch
  11080. #1542285 by tizianomueller)
  11081. * src/HttpInitiateConnectionCommand.cc:
  11082. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11083. * src/FtpInitiateConnectionCommand.cc:
  11084. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11085. * src/DownloadEngine.h:
  11086. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11087. * src/DownloadEngine.cc:
  11088. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11089. To fix the bug that causes compilation failure with metalink-support
  11090. disabled(bug#1543587):
  11091. * src/main.cc: Fixed with the patch by tizianomueller.
  11092. * Release 0.7.2
  11093. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11094. * src/main.cc
  11095. (main): Added a message to inform users that aria2 is starting to
  11096. verify checksum.
  11097. * src/RequestInfo.cc
  11098. (printDownloadAbortMessage): Added a message to inform users that
  11099. transfer can be resumed.
  11100. * src/FeatureConfig.cc
  11101. (FEATURE_ASYNC_DNS): New definition.
  11102. (FeatureConfig): Added aysnc DNS entry.
  11103. To replace CommandUuid with Command* in SocketEntry and
  11104. NameResolverEntry:
  11105. * src/DownloadEngine.h
  11106. (CommandUuids): Removed.
  11107. (SocketEntry::commandUuid): Removed.
  11108. (SocketEntry::command): New variable.
  11109. (SocketEntry::SocketEntry): Updated.
  11110. (SocketEntry::operator==): Updated.
  11111. (NameResolverEntry::commandUuid): Removed.
  11112. (NameResolverEntry::command): New variable.
  11113. (NameResolverEntry::NameResolverEntry): Updated.
  11114. (NameResolverEntry::operator==): Updated.
  11115. (waitData): Changed the argument type.
  11116. (addSocketForReadCheck): Changed the argument type.
  11117. (deleteSocketForReadCheck): Changed the argument type.
  11118. (addSocketForWriteCheck): Changed the argument type.
  11119. (deleteSocketForWriteCheck): Changed the argument type.
  11120. (addNameResolverCheck): Changed the argument type.
  11121. (deleteNameResolverCheck): Changed the argument type.
  11122. * src/DownloadEngine.cc
  11123. (FindCommand): Removed.
  11124. (run): Removed activeUuid. Added activeCommands instead.
  11125. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  11126. (AccumulateActiveCommand): New function object.
  11127. (waitData): Use AccumulateActiveCommand.
  11128. (addSocketForReadCheck): Use Command instead of CommandUuid.
  11129. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  11130. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  11131. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  11132. (addNameResolverCheck): Use Command instead of CommandUuid.
  11133. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  11134. * src/AbstractCommand.cc
  11135. (disableReadCheckSocket): Updated according to the changes in
  11136. DownloadEngine.
  11137. (setReadCheckSocket): Updated according to the changes in
  11138. DownloadEngine.
  11139. (disableWriteCheckSocket): Updated according to the changes in
  11140. DownloadEngine.
  11141. (setWriteCheckSocket): Updated according to the changes in
  11142. DownloadEngine.
  11143. (setNameResolverCheck): Updated according to the changes in
  11144. DownloadEngine.
  11145. (disableNameResolverCheck): Updated according to the changes in
  11146. DownloadEngine.
  11147. * src/AbstractCommand.cc
  11148. (disableReadCheckSocket): Updated according to the changes in
  11149. DownloadEngine.
  11150. (setReadCheckSocket): Updated according to the changes in
  11151. DownloadEngine.
  11152. (disableWriteCheckSocket): Updated according to the changes in
  11153. DownloadEngine.
  11154. (setWriteCheckSocket): Updated according to the changes in
  11155. DownloadEngine.
  11156. * release 0.7.1
  11157. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11158. To handle the case where some BitTorrent tracker requires all letters
  11159. except for [A-Za-z0-9] is URL encoded.
  11160. * src/Util.h
  11161. (torrentUrlencode): New function.
  11162. * src/Util.cc
  11163. (ctype.h): Included.
  11164. (torrentUrlencode): New function.
  11165. * src/TrackerWatcherCommand.cc
  11166. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  11167. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11168. To add asynchronous DNS support(libares):
  11169. * src/AbstractCommand.h
  11170. (setNameResolverCheck): New function.
  11171. (disableNameResolverCheck): New function
  11172. (resolveHostname): New function.
  11173. * src/AbstractCommand.cc
  11174. (setNameResolverCheck): New function.
  11175. (disableNameResolverCheck): New function
  11176. (resolveHostname): New function.
  11177. * src/FtpInitiateConnectionCommand.h
  11178. (nameResolver): New function.
  11179. * src/FtpInitiateConnectionCommand.cc
  11180. (Util.h): Included.
  11181. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  11182. disableWriteCheckSocket.
  11183. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  11184. (executeInternal): Added async DNS support.
  11185. * src/HttpInitiateConnectionCommand.h
  11186. (nameResolver): New function.
  11187. * src/HttpInitiateConnectionCommand.cc
  11188. (DlRetryEx.h): Included.
  11189. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  11190. disableWriteCheckSocket.
  11191. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  11192. (executeInternal): Added async DNS support.
  11193. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  11194. by extern "C" declaration.
  11195. * src/NameResolver.cc: New class.
  11196. * src/Util.h:
  11197. (isNumberAndDotsNotation): New function
  11198. * src/Util.cc
  11199. (isNumberAndDotsNotation): New function.
  11200. * src/DownloadEngine.h
  11201. (NameResolver.h): Included.
  11202. (NameResolverEntry): New class.
  11203. (NameResolverEntries): New type definition.
  11204. (addNameResolverCheck): New function.
  11205. (deleteNameResolverCheck): New function.
  11206. * src/DownloadEngine.cc
  11207. (run): Initialize cp with 0.
  11208. (SetDescriptor::operator()): Added for NameResolverEntry.
  11209. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  11210. (waitData): Check nameResolver entries.
  11211. (updateFdSet): Update fds in nameResolver entries.
  11212. (addNameResolverCheck): New function.
  11213. (deleteNameResolverCheck): new function.
  11214. * src/PeerInteractionCommand.cc
  11215. (executeInternal): Fixed wrong socket handling.
  11216. * src/main.cc
  11217. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  11218. * src/Util.cc
  11219. (fileChecksum): Removed the call to ctx.digestReset().
  11220. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11221. * po/ru.po: Azamat sent me Russian translation.
  11222. * src/FtpNegotiateCommand.cc
  11223. (recvGreeting): Call disableWriteCheckSocket just after
  11224. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  11225. (recvRetr): Recognized status code 125 as a acceptable response code.
  11226. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  11227. case-insesitive filesystem(BUG#1531057).
  11228. * src/Time.h: Renamed as TimeA2.h.
  11229. * src/Time.cc: Renamed as TimeA2.cc.
  11230. * src/TimeA2.h: New class.
  11231. * src/TimeA2.cc: New class.
  11232. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  11233. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  11234. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  11235. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  11236. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  11237. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  11238. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  11239. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  11240. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  11241. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  11242. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  11243. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  11244. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  11245. * release 0.7.0
  11246. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11247. * src/PeerChokeCommand.h
  11248. (PeerChokeCommand): Rearranged the arguments.
  11249. * src/PeerChokeCommand.cc
  11250. (PeerChokeCommand): Rearranged the arguments.
  11251. * src/MetalinkEntry.h
  11252. (Checksum.h): Included.
  11253. (md5): Removed.
  11254. (sha1): Removed.
  11255. (checksum): New variable.
  11256. (operator=): Updated.
  11257. (check): Removed.
  11258. * src/prefs.h
  11259. (PREF_LOWEST_SPEED_LIMIT): New definition.
  11260. (PREF_FOLLOW_TORRENT): New definition.
  11261. (PREF_SELECT_FILE): New definition.
  11262. (PREF_FOLLOW_METALINK): New definition.
  11263. * src/MetalinkResource.h
  11264. (TYPE_HTTPS): Added to enum TYPE.
  11265. * src/TorrentMan.cc
  11266. (~TorrentMan): Rewritten.
  11267. * src/MultiDiskWriter.cc
  11268. (MultiDiskAdaptor): Updated according to the changes in
  11269. MessageDigestContext.
  11270. (~MultiDiskAdaptor): Updated according to the changes in
  11271. MessageDigestContext.
  11272. (hashUpdate): Updated according to the changes in MessageDigestContext.
  11273. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11274. * src/Util.h
  11275. (fileChecksum): Updated according to the changes in
  11276. MessageDigestContext.
  11277. * src/Util.cc
  11278. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11279. (fileChecksum): Updated according to the changes in
  11280. MessageDigestContext.
  11281. * src/messageDigest.h: Rewritten.
  11282. * src/MetalinkEntry.cc
  11283. (check): Removed.
  11284. (Supported): Updated.
  11285. (dropUnsupportedResource): Fixed a memory leak.
  11286. * src/ShaVisitor.cc
  11287. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  11288. (~ShaVisitor): Updated according to the changes in
  11289. MessageDigestContext.
  11290. (visit): Updated according to the changes in MessageDigestContext.
  11291. * src/main.cc
  11292. (main): Rewritten the portion of download loop. --lowest-speed-limit
  11293. command-line option added.
  11294. * src/DownloadEngine.h
  11295. (SocketEntry): New class.
  11296. (SocketEntries): New definition.
  11297. (PairFind): Removed.
  11298. (SockCmdMap): Removed.
  11299. * src/DownloadEngine.cc
  11300. (DownloadEngine): Rewritten.
  11301. (~DownloadEngine): Rewritten.
  11302. (run): Renamed activeCommandUuids as activeUuids.
  11303. (SetDescriptor): Rewritten.
  11304. (AccumulateActiveCommandUuid): Removed.
  11305. (AccumulateActiveUuid): New function object.
  11306. (waitData): Rewritten.
  11307. (updateFdSet): Rewritten.
  11308. (addSocket): Rewritten.
  11309. (deleteSocket): Rewritten.
  11310. (addSocketForReadCheck): Rewritten.
  11311. (deleteSocketForReadCheck): Rewritten.
  11312. (addSocketForWriteCheck): Rewritten.
  11313. (deleteSocketForWriteCheck): Rewritten.
  11314. * src/Xml2MetalinkProcessor.cc
  11315. (getEntry): Rewritten the portion of MetalinkEntry creation.
  11316. * src/DownloadCommand.cc
  11317. (executeInternal): Added the check routine for lowest speed limit.
  11318. * src/AbstractDiskWriter.cc
  11319. (AbstractDiskWriter): Updated according to the changes in
  11320. MessageDigestContext.
  11321. (~AbstractDiskWriter): Updated according to the changes in
  11322. MessageDigestContext.
  11323. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11324. * src/RequestInfo.h: New class.
  11325. * src/UrlRequestInfo.h: New class.
  11326. * src/UrlRequestInfo.cc: New class.
  11327. * src/TorrentRequestInfo.h: New class.
  11328. * src/TorrentRequestInfo.cc: New class.
  11329. * src/MetalinkRequestInfo.h: New class.
  11330. * src/MetalinkRequestInfo.cc: New class.
  11331. * src/Checksum.h: New class.
  11332. * src/DownloadEngineFactory.h: New class.
  11333. * src/DownloadEngineFactory.cc: New class.
  11334. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11335. * src/Option.h
  11336. (getAsBool): New function.
  11337. * src/Option.cc
  11338. (prefs.h): Included.
  11339. (defined): 0-length value is now recognized as undefined.
  11340. (getAsInt): Rewritten.
  11341. (getAsLLInt): Rewritten.
  11342. (getAsBool): New function.
  11343. * src/FeatureConfig.h: Rewritten.
  11344. * src/FeatureConfig.cc: Rewritten.
  11345. * src/prefs.h
  11346. (PREF_STDOUT_LOG): New definition.
  11347. (PREF_LOG): New definition.
  11348. (PREF_DIR): New definition.
  11349. (PREF_OUT): New definition.
  11350. (PREF_SPLIT): New definition.
  11351. (PREF_DAEMON): New definition.
  11352. (PREF_REFERER): New definition.
  11353. (PREF_TORRENT_FILE): New definition.
  11354. (PREF_LISTEN_PORT): New definition.
  11355. (PREF_METALINK_FILE): New definition.
  11356. (PREF_METALINK_VERSION): New definition.
  11357. (PREF_METALINK_LANGUAGE): New definition.
  11358. (PREF_METALINK_OS): New definition.
  11359. (PREF_METALINK_SERVERS): New definition.
  11360. * src/main.cc
  11361. (main): Following command-line parameters are now put into Option
  11362. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  11363. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  11364. metalinkLanguage, metalinkOs, metalinkServers
  11365. To fix the bug that aria2 can not handle http response header properly.
  11366. * src/HttpHeader.cc
  11367. (put): Made name lowercased.
  11368. (defined): Made name lowercased.
  11369. (getFirst): Made name lowercased.
  11370. (get): Made name lowercased.
  11371. (getFirstAsInt): Rewritten.
  11372. (getFirstAsLLInt): Rewritten.
  11373. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11374. * src/TorrentMan.h:
  11375. (advertisePiece): Updated doc.
  11376. (getAdvertisedPieceIndexes): Updated doc.
  11377. (removeAdvertisedPiece); New function.
  11378. * src/TorrentMan.cc
  11379. (FindElapsedHave): New function object.
  11380. (removeAdvertisedPiece): New function.
  11381. * src/HaveEraseCommand.h: New class.
  11382. * src/HaveEraseCommand.cc: New class.
  11383. * src/FeatureConfig.h: New class.
  11384. * src/FeatureConfig.cc: New class.
  11385. * src/Request.h
  11386. (defaultPorts): Removed.
  11387. * src/Request.cc
  11388. (FeatureConfig.h): Included.
  11389. (Request): Removed the statements related to defaultPorts.
  11390. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  11391. A default port number is now retrieved from FeatureConfig.
  11392. * src/main.cc
  11393. (HaveEraseCommand.h): Included.
  11394. (showVersion): Added the output of feature list.
  11395. (main): Added HaveEraseCommand to command queue in BitTorrent
  11396. downloading.
  11397. * src/PeerInteractionCommand.h
  11398. (chokeCheckPoint): Commented out.
  11399. (periodicExecPoint): New variable.
  11400. * src/PeerInteractionCommand.cc
  11401. (executeInternal): Following methods are now called in at least every
  11402. 0.5 seconds to reduce CPU usage:
  11403. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  11404. checkHave(), sendKeepAlive().
  11405. (checkLongTimePeerChoking): Commented out.
  11406. * src/BitfieldMan.h
  11407. (getNthBitIndex): Changed the method signature.
  11408. (getMissingIndexRandomly): Changed the method signature.
  11409. * src/BitfieldMan.cc
  11410. (getNthBitIndex): Rewritten
  11411. (getMissingIndexRandomly): Rewritten.
  11412. (hasMissingPiece): Rewritten.
  11413. (getMissingIndex): Refactored.
  11414. (getMissingUnusedIndex); Refactored.
  11415. (getMissingIndex): Refactored.
  11416. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11417. * src/PeerMessage.h
  11418. (Piece.h): Included.
  11419. (SharedHandle.h): Included.
  11420. (invalidate): New variable.
  11421. (uploading): New variable.
  11422. (isInvalidate): New function.
  11423. (isUploading): New function.
  11424. (onPush): New function.
  11425. (onChoked): New function.
  11426. (onCanceled): New function.
  11427. (onAbortPiece): New function.
  11428. (PeerMessageHandle): New type definition.
  11429. * src/PeerMessage.cc
  11430. (PeerMessage): Added the initialization for invalidate and uploading.
  11431. * src/CancelMessage.h
  11432. (CancelMessage): Rewritten.
  11433. * src/RejectMessage.h
  11434. (RejectMessage): Rewritten.
  11435. * src/Metalinker.h
  11436. (operator=): Defined.
  11437. * src/MetaEntry.h
  11438. (operator=): Defined.
  11439. * src/MetalinkResource.h
  11440. (operator=): Defined.
  11441. * src/AllowedFastMessage.h
  11442. (AllowedFastMessage): Rewritten.
  11443. * src/HandshakeMessage.h
  11444. (HandshakeMessage): New function(overload).
  11445. * src/HandshakeMessage.cc
  11446. (HandshakeMessage): Rewritten.
  11447. (init): New function.
  11448. * src/HaveMessage.h
  11449. (HaveMessage): Rewritten.
  11450. * src/Time.h
  11451. (operator=): Defined the function body here.
  11452. * src/Time.cc
  11453. (operator=): Removed.
  11454. * src/SocketCore.h
  11455. (operator==): Defined here.
  11456. (operator!=): Defined here.
  11457. (operator<): Defined here.
  11458. * src/SocketCore.cc
  11459. (operator==): Removed.
  11460. (operator<): Removed.
  11461. * src/BitfieldMan.h
  11462. (operator=): Defined the function body here.
  11463. * src/BitfieldMan.cc
  11464. (operator=): Removed.
  11465. * src/TorrentMan.h
  11466. (deleteErrorPeer): Removed.
  11467. (deleteUnusedPeer); New function.
  11468. * src/TorrentMan.cc
  11469. (addPeer): Call deleteUnusedPeer.
  11470. (deleteErrorPeer): Removed.
  11471. (deleteUnusedPeer): New function.
  11472. * src/PeerAbstractCommand.h
  11473. (setNoCheck): New function.
  11474. (noCheck): New variable.
  11475. * src/PeerAbstractCommand.cc
  11476. (PeerAbstractCommand): Added the initialization of noCheck.
  11477. (execute): Added a check for noCheck.
  11478. (setNoCheck): New function.
  11479. * src/Util.h
  11480. (stdio.h): Included.
  11481. * src/Util.cc
  11482. (unistd.h): Included.
  11483. * src/DefaultDiskWriter.cc
  11484. (unistd.h): Included.
  11485. * src/Peer.h
  11486. (operator==): Defined the function body here.
  11487. (operator!=): Defined the function body here.
  11488. * src/Peer.cc
  11489. (operator==): Removed.
  11490. (operator!=): Removed.
  11491. * src/Piece.h
  11492. (Piece): Defined the function body here(copy constructor).
  11493. (operator=): Defined the function body here.
  11494. (operator==): Defined the function body here.
  11495. * src/Piece.cc
  11496. (Piece): Removed(copy constructor).
  11497. (operator=): Removed.
  11498. (operator==): Removed.
  11499. * src/PeerMessageUtil.h
  11500. (ChokeMessage.h): Removed.
  11501. (UnchokeMessage.h): Removed.
  11502. (InterestedMessage.h): Removed.
  11503. (NotInterestedMessage.h): Removed.
  11504. (HaveMessage.h): Removed.
  11505. (BitfieldMessage.h): Removed.
  11506. (RequestMessage.h): Removed.
  11507. (CancelMessage.h): Removed.
  11508. (PieceMessage.h): Removed.
  11509. (HandshakeMessage.h): Removed.
  11510. (KeepAliveMessage.h): Removed.
  11511. (PortMessage.h): Removed.
  11512. (HaveAllMessage.h): Removed.
  11513. (HaveNoneMessage.h): Removed.
  11514. (PeerConnection.h): Removed.
  11515. (HandshakeMessage.h): Included.
  11516. * src/BitfieldMessage.h
  11517. (init): New function.
  11518. (BitfieldMessage): Rewritten.
  11519. (BitfieldMessage): New function(overload).
  11520. * src/RequestSlot.h
  11521. (operator=): Defined the function body here.
  11522. (operator==): Defined the function body here.
  11523. * src/RequestSlot.cc
  11524. (operator=): Removed.
  11525. (operator==): Removed.
  11526. To remove the dependency on the PeerMessage subclass from
  11527. PeerInteraction:
  11528. * src/PeerMessageFactory.h: New class.
  11529. * src/PeerMessageFactory.cc: New class.
  11530. * src/SimplePeerMessage.cc
  11531. (send): If invalidate is true then do nothing.
  11532. * src/PeerInteractionCommand.cc
  11533. (HandshakeMessage.h): Included.
  11534. (KeepAliveMessage.h): Included.
  11535. (ChokeMessage.h): Included.
  11536. (UnchokeMessage.h): Included.
  11537. (HaveMessage.h): Included.
  11538. (executeInternal): Call setNoCheck().
  11539. Removed setWriteCheckSocket(socket).
  11540. * src/PeerInteraction.h
  11541. (ChokeMessage.h): Removed.
  11542. (UnchokeMessage.h): Removed.
  11543. (InterestedMessage.h): Removed.
  11544. (NotInterestedMessage.h): Removed.
  11545. (HaveMessage.h): Removed.
  11546. (BitfieldMessage.h): Removed.
  11547. (RequestMessage.h): Removed.
  11548. (CancelMessage.h): Removed.
  11549. (PieceMessage.h): Removed.
  11550. (HandshakeMessage.h): Removed.
  11551. (KeepAliveMessage.h): Removed.
  11552. (PortMessage.h): Removed.
  11553. (HaveAllMessage.h): Removed.
  11554. (HaveNoneMessage.h): Removed.
  11555. (RejectMessage.h): Removed.
  11556. (AllowedFastMessage.h): Removed.
  11557. (SuggestPieceMessage.h): Removed.
  11558. (PeerMessageFactory.h): Included.
  11559. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  11560. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  11561. (PeerMessageFactory): New variable.
  11562. (createPeerMessage): Removed.
  11563. (createHandshakeMessage): Removed.
  11564. (setPeerMessageCommonProperty): Removed.
  11565. (addRequestSlot): New function.
  11566. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  11567. (getPeerMessageFactory): New function.
  11568. (createRequestMessage): Removed.
  11569. (createCancelMessage): Removed.
  11570. (createPieceMessage): Removed.
  11571. (createHaveMessage): Removed.
  11572. (createChokeMessage): Removed.
  11573. (createUnchokeMessage): Removed.
  11574. (createInterestedMessage): Removed.
  11575. (createNotInterestedMessage): Removed.
  11576. (createBitfieldMessage): Removed.
  11577. (createKeepAliveMessage): Removed.
  11578. (createHaveAllMessage): Removed.
  11579. (createHaveNoneMessage): Removed.
  11580. (createRejectMessage): Removed.
  11581. (createAllowedFastMessage): Removed.
  11582. * src/PeerInteraction.cc
  11583. (PeerInteraction): Allocate PeerMessageFactory here.
  11584. (~PeerInteraction): Deallocate PeerMessageFactory here.
  11585. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  11586. PieceMessage::ID.
  11587. (addMessage): Simplified by using PeerMessage::onPush().
  11588. (addRequestSlot): New function.
  11589. (rejectAllPieceMessageInQueue): Simplified by using
  11590. PeerMessage::onChoked().
  11591. (rejectPieceMessageInQueue): Simplified by using
  11592. PeerMessage::onCanceled().
  11593. (abortPiece): Simplified by using PeerMessage::abortPiece().
  11594. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  11595. (createHandshakeMessage): Removed.
  11596. (createPeerMessage): Removed.
  11597. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  11598. (setPeerMessageCommonProperty): Removed.
  11599. (createRequestMessage): Removed.
  11600. (createCancelMessage): Removed.
  11601. (createPieceMessage): Removed.
  11602. (createHaveMessage): Removed.
  11603. (createChokeMessage): Removed.
  11604. (createUnchokeMessage): Removed.
  11605. (createInterestedMessage): Removed.
  11606. (createNotInterestedMessage): Removed.
  11607. (createBitfieldMessage): Removed.
  11608. (createKeepAliveMessage): Removed.
  11609. (createHaveAllMessage): Removed.
  11610. (createHaveNoneMessage): Removed.
  11611. (createRejectMessage): Removed.
  11612. (createAllowedFastMessage): Removed.
  11613. * src/PieceMessage.h
  11614. (createRejectMessage): New function.
  11615. (PieceMessage): Rewritten.
  11616. (onChoked): New function.
  11617. (onCanceled): New function.
  11618. * src/PieceMessage.cc
  11619. (send): If invalidate is true then do nothing, just return.
  11620. (createRejectMessage): New function.
  11621. (onChoked): New function.
  11622. (onCanceled): New function.
  11623. * src/RequestMessage.h
  11624. (RequestMessage): Rewritten.
  11625. (onPush): New function.
  11626. (onAbortPiece): New function.
  11627. * src/RequestMessage.cc
  11628. (onPush): New function.
  11629. (onAbortPiece): New function.
  11630. Update fd_set when a socket is added or deleted in order to improve
  11631. performance:
  11632. * src/DownloadEngine.h
  11633. (rfdset): New variable.
  11634. (wfdset): New variable.
  11635. (updateFdSet): New function.
  11636. * src/DownloadEngine.cc
  11637. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  11638. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  11639. (waitData): Copy rfdset and wfdset.
  11640. (updateFdSet): New function.
  11641. (addSocket): Call updateFdSet.
  11642. (deleteSocket): Call updateFdSet.
  11643. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11644. To add the support for Metalink3.0 backward compatible links:
  11645. * src/Request.h
  11646. (SAFE_CHARS): Added '#'.
  11647. (METALINK_MARK): New definition.
  11648. * src/Request.cc
  11649. (parseUrl): Added the support for Metalink3.0 backward compatible
  11650. links.
  11651. etc
  11652. * src/PeerInteraction.cc
  11653. (MsgPushBack): Removed.
  11654. (sendMessages): Use STL copy and back_inserter.
  11655. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  11656. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  11657. * src/TorrentMan.h
  11658. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  11659. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11660. * src/SharedHandle.h: New class.
  11661. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  11662. * src/HttpResponseCommand.h
  11663. (HttpResponseCommand): Wrapped Socket.
  11664. * src/SocketCore.h
  11665. (operator==): New function.
  11666. (operator!=): New function.
  11667. (operator<): New function.
  11668. (getSockfd): New function.
  11669. (isOpen): New function.
  11670. (writeData): New function.
  11671. * src/SocketCore.cc
  11672. (operator==): New function.
  11673. (operator!=): New function.
  11674. (operator<): New function.
  11675. * src/AbstractCommand.h
  11676. (socket): Changed its type to SocketHandle.
  11677. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11678. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11679. (disableReadCheckSocket): New function.
  11680. (disableWriteCheckSocket): New function.
  11681. (readCheckTarget): Changed its type to SocketHandle.
  11682. (writeCheckTarget): Changed its type to SocketHandle.
  11683. (AbstractCommand): Replaced Socket with SocketHandle.
  11684. * src/AbstractCommand.cc
  11685. (AbstractCommand): Replaced Socket with SocketHandle.
  11686. (~AbstractCommand): Removed the deallocation for Socket object.
  11687. (disableReadCheckSocket): New function.
  11688. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11689. (disableWriteCheckSocket): New function.
  11690. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11691. * src/HttpDownloadCommand.cc
  11692. (DownloadCommand): Replaced Socket with SocketHandle.
  11693. * src/PeerAbstractCommand.h
  11694. (socket): Changed its type to SocketHandle.
  11695. (peer): Changed its type to PeerHandle.
  11696. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11697. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11698. (disableReadCheckSocket): New function.
  11699. (disableWriteCheckSocket): New function.
  11700. (readCheckTarget): Changed its type to SocketHandle.
  11701. (writeCheckTarget): Changed its type to SocketHandle.
  11702. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11703. Replaced Peer with PeerHandle.
  11704. * src/HttpRequestCommand.cc
  11705. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11706. Use disableReadCheckSocket.
  11707. * src/PeerInitiateConnectionCommand.h
  11708. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11709. * src/PeerChokeCommand.cc
  11710. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  11711. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  11712. (execute): Use PeerHandle.
  11713. * src/PeerConnection.h
  11714. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  11715. (socket): Changed its type to SocketHandle.
  11716. (PeerConnection): Replaced Socket with SocketHandle.
  11717. * src/PeerConnection.cc
  11718. (PeerConnection): Replaced Socket with SocketHandle.
  11719. * src/PeerInteractionCommand.h
  11720. (PeerInteractionCommand): Replaced socket with SocketHandle.
  11721. Replaced Peer with PeerHandle.
  11722. * src/PeerInteractionCommand.cc
  11723. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  11724. Replaced Peer with PeerHandle.
  11725. (executeInternal): Use disableWriteCheckSocket.
  11726. Use HandshakeMessageHandle.
  11727. (receiveMessages): Use PeerMessageHandle.
  11728. (prepareForNextPeer): Use PeerHandle.
  11729. * src/HttpProxyRequestCommand.h
  11730. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11731. * src/HttpResponseCommand.cc
  11732. (HttpResponseCommand): Replaced Socket with SocketHandle.
  11733. * src/TorrentMan.cc
  11734. (nullPeer): Added external reference.
  11735. (~TorrentMan): Removed the deallocation of the elements of peers.
  11736. (addPeer): Rewritten.
  11737. (isPeerAvailable): Use nullPeer.
  11738. (deleteOldpeers): Replaced with deleteErrorPeer.
  11739. (deleteErrorPeer): New function.
  11740. (getPeer): Use PeerHandle and nullPeer.
  11741. (hasMissingPiece): Replaced Peer with PeerHandle.
  11742. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11743. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11744. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11745. (getMissingPiece): Replaced Peer with PeerHandle.
  11746. * src/FtpNegotiateCommand.cc
  11747. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  11748. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  11749. (recvGreeting): Use disableWriteCheckSocket.
  11750. (recvPasv): Removed the allocation of Socket.
  11751. Use disableReadCheckSocket.
  11752. (sendRestPasv): Use disableWriteCheckSocket.
  11753. (recvRetr): Changed assertion.
  11754. * src/PeerInteraction.h
  11755. (SharedHandle.h): Included SharedHandle.h.
  11756. (PeerMessageHandle): New type definition.
  11757. (HandshakeMessageHandle): New type definition.
  11758. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  11759. (peer): Changed its type to PeerHandle.
  11760. (createHandshakeMessage): Replaced HandshakeMessage with
  11761. HandshakeMessageHandle.
  11762. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  11763. (PeerInteraction): Replaced Peer with PeerHandle.
  11764. Replaced Socket with SocketHandle.
  11765. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11766. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11767. (receiveHandshake): Replaced HandshakeMessage with
  11768. HandshakeMessageHandle.
  11769. * src/PeerInteraction.cc
  11770. (PeerInteraction): Replaced Peer with PeerHandle.
  11771. Replaced Socket with SocketHandle.
  11772. (~PeerInteraction): Removed the deallocation of the elements of
  11773. messageQueue.
  11774. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  11775. (isSendingMessageInProgress): Replaced PeerMessage with
  11776. PeerMessageHandle.
  11777. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  11778. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11779. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  11780. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  11781. (abortPiece): Use PeerMessageHandle.
  11782. (receiveHandshake): Replaced HandshakeMessage with
  11783. HandshakeMessageHandle. Removed try-catch block.
  11784. (createHandshakeMessage): Replaced HandshakeMessage with
  11785. HandshakeMessageHandle.
  11786. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11787. Removed try-catch block.
  11788. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  11789. * src/HttpProxyResponseCommand.cc
  11790. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11791. * src/FtpTunnelResponseCommand.h
  11792. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11793. * src/HttpConnection.cc
  11794. (HttpConnection): Replaced Socket with SocketHandle.
  11795. * src/PeerAbstractCommand.cc
  11796. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11797. (~PeerAbstractCommand): Removed the deallocation of socket.
  11798. Use disableReadCheckSocket, disableWriteCheckSocket.
  11799. (disableReadCheckSocket): New function.
  11800. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11801. (disableWriteCheckSocket): New function.
  11802. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11803. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  11804. * src/FtpTunnelRequestCommand.cc
  11805. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11806. (~FtpTunnelRequestCommand): Corrected indentation.
  11807. * src/DownloadCommand.h
  11808. (DownloadCommand): Replaced Socket with SocketHandle.
  11809. * src/PeerListenCommand.cc
  11810. (PeerListenCommand): Removed the initialization of socket.
  11811. (~PeerListenCommand): Removed the deallocation of socket.
  11812. (bindPort): Use SocketHandle.
  11813. (execute): Use SocketHandle and PeerHandle.
  11814. * src/FtpDowndloadCommand.cc
  11815. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11816. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  11817. * src/main.cc
  11818. (main): Corrected indentation.
  11819. * src/HttpInitiateConnectionCommand.cc
  11820. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  11821. (executeInternal): Removed the allocation of socket.
  11822. * src/HttpRequestCommand.h
  11823. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11824. * src/FtpNegotiationCommand.h
  11825. (dataSocket): Changed its type to SocketHandle.
  11826. (serverSocket): Changed its type to SocketHandle.
  11827. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  11828. * src/TorrentMan.h
  11829. (MAX_PEER_UPDATE): Removed.
  11830. (MAX_PEERS): New definition.
  11831. (Peers): The element is now of type PeerHandle.
  11832. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  11833. (getPeer): Replaced Peer with PeerHandle.
  11834. (deleteOldErrorPeers): Removed.
  11835. (deleteErrorPeer): New function.
  11836. (hasMissingPiece): Replaced Peer with PeerHandle.
  11837. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11838. (getMissingPiece): Replaced Peer with PeerHandle.
  11839. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11840. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11841. (addActivePeer): Replaced Peer with PeerHandle.
  11842. (deleteActivePeer): Replaced Peer with PeerHandle.
  11843. Added a check for the return value of find.
  11844. * src/FtpTunnelResponseCommand.cc
  11845. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11846. * src/FtpInitiateConnectionCommand.cc
  11847. (executeInternal): Removed the allocation of socket.
  11848. * src/DownloadEngine.h
  11849. (Sockets): An element is now of type SocketHandle.
  11850. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  11851. (CommandUuids): New type definition.
  11852. (rsockets): Changed its type to SockCmdMap.
  11853. (wsockets): Changed its type to SockCmdMap.
  11854. (addSocket): Rewritten.
  11855. (deleteSocket): Rewritten.
  11856. (addSocketForReadCheck): Rewritten.
  11857. (deleteSocketForReadCheck): Rewritten.
  11858. (addSocketForWriteCheck): Rewritten.
  11859. (deleteSocketForWriteCheck): Rewritten.
  11860. (PairFind): New template class.
  11861. * src/HttpDownloadCommand.h
  11862. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  11863. * src/FtpConnection.cc
  11864. (FtpConnection): Replaced Socket with SocketHandle.
  11865. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  11866. block.
  11867. * src/InitiateConnectionCommandFactory.cc
  11868. (DlAbortEx.h): Included DlAbortEx.h.
  11869. (createInitiateConnectionCommand): Throw exception if the protocol of
  11870. requested URI is not supported.
  11871. * src/Peer.cc
  11872. (nullPeer): Changed its type to PeerHandle.
  11873. (operator==): New function.
  11874. (operator!=): New function.
  11875. * src/Peer.h
  11876. (SharedHandle.h): Included SharedHandle.h.
  11877. (operator==): New function.
  11878. (operator!=): New function.
  11879. (Peer): Added the default constructor.
  11880. Use resetStatus() to initialize member variables.
  11881. (nullPeer): Removed.
  11882. * src/TrackerUpdateCommand.cc
  11883. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  11884. with MIN_PEERS.
  11885. * src/PeerListenCommand.h
  11886. (socket): Changed its type to SocketHandle.
  11887. * src/Command.h
  11888. (CommandUuid): New type definition.
  11889. (uuid): New variable.
  11890. (uuidGen): New variable.
  11891. (Command): Added the initialization of uuid.
  11892. (getUuid): New function.
  11893. * src/Socket.h
  11894. (Socket): Removed.
  11895. (SocketHandle): New type definition.
  11896. * src/DownloadEngine.h
  11897. (FindCommand): New function object.
  11898. (run): The portion of socket check was rewritten.
  11899. (SetDescriptor): New function object.
  11900. (AccumulateActiveCommandUuid): New function object.
  11901. (waitData): Rewritten.
  11902. (addSocket): Rewritten.
  11903. (deleteSocket): Rewritten.
  11904. (addSocketForReadCheck): Rewritten.
  11905. (addSocketForWriteCheck): Rewritten.
  11906. (deleteSocketForReadCheck): Rewritten.
  11907. (deleteSocketForWriteCheck): Rewritten.
  11908. * src/HttpProxyResponseCommand.h
  11909. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  11910. * src/HttpConnection.h
  11911. (socket): Changed its type to SocketHandle.
  11912. (HttpConnection): Replaced Socket with SocketHandle.
  11913. * src/PeerInitiateConnectionCommand.cc
  11914. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11915. (executeInternal): Removed the allocation of socket.
  11916. (prepareForNextPeer): Use PeerHandle.
  11917. * src/PeerMessage.h
  11918. (peer): Changed its type to PeerHandle.
  11919. (getPeer): Replaced Peer with PeerHandle.
  11920. (setPeer): Replaced Peer with PeerHandle.
  11921. * src/DownloadCommand.cc
  11922. (DownloadCommand): Replaced Socket with SocketHandle.
  11923. * src/FtpConnection.h
  11924. (socket): Changed its type to SocketHandle.
  11925. (FtpConnection): Replaced Socket with SocketHandle.
  11926. (sendPort); Replaced Socket with SocketHandle.
  11927. * src/FtpDowndloadCommand.h
  11928. (ctrlSocket): Changed its type to SocketHandle.
  11929. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11930. * src/HttpProxyRequestCommand.cc
  11931. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11932. * src/FtpTunnelRequestCommand.h
  11933. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11934. etc
  11935. * src/PeerChokeCommand.h
  11936. (setAllPeerChoked): Removed.
  11937. (setAllPeerResetDelta): Removed.
  11938. * src/PeerChokeCommand.cc
  11939. (setAllPeerChoked): Removed.
  11940. (ChokePeer): New function object.
  11941. (setAllPeerResetDelta): Removed.
  11942. (ResetDelta): New function object.
  11943. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  11944. (execute): Show download speed when the local node is a seeder.
  11945. setAllPeerChoked and setAllPeerResetDelta were rewritten
  11946. using STL.
  11947. * src/TrackerWatcherCommand.h
  11948. (MIN_PEERS): Removed.
  11949. * src/TorrentMan.cc
  11950. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  11951. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11952. To fix the bug that .aria2 file is not saved if downloading is stopped
  11953. by the errors:it results that aria2 can not resume downloading:
  11954. * src/main.cc
  11955. (normalDownload): Added the call to save().
  11956. (main): Added the deletion of the elements in 'reserved'.
  11957. To fix log:
  11958. * src/PeerInteraction.cc
  11959. (receiveHandshake): Fixed log.
  11960. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11961. To improve download performance in BitTorrent:
  11962. * src/TorrentMan.cc
  11963. (getPeer): Check the number of connections. Return nullPeer if
  11964. it is greater than MAX_PEER_UPDATE.
  11965. This code was originally here, but was removed in 0.5.1.
  11966. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11967. To improve the conditional compilation:
  11968. * src/MultiDiskWriter.h:
  11969. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11970. * src/MultiDiskWriter.cc:
  11971. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11972. * src/Util.h:
  11973. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11974. Added ENABLE_BITTORRENT around computeFastSet().
  11975. * src/Util.cc:
  11976. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11977. Added ENABLE_BITTORRENT around computeFastSet().
  11978. * src/messageDigest.h:
  11979. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  11980. * src/ShaVisitor.h:
  11981. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11982. * src/ShaVisitor.cc:
  11983. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11984. * src/main.cc:
  11985. Added ENABLE_BITTORRENT around includes and blocks related to
  11986. BitTorrent.
  11987. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  11988. digest support is not available.
  11989. * src/AbstractDiskWriter.h:
  11990. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11991. * src/AbstractDiskWriter.cc:
  11992. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11993. * src/MetalinkEntry.cc
  11994. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  11995. support is not available.
  11996. To add command-line options for Metalink:
  11997. * src/main.cc:
  11998. Added metalink-version, metalink-language, metalink-os,
  11999. follow-metalink.
  12000. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  12001. * src/main.cc: Use these definition.
  12002. * Release 0.6.0
  12003. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12004. To add Metalink support(http/ftp only):
  12005. * src/AbstractCommand.h
  12006. (tryReserved): New function.
  12007. * src/AbstractCommand.cc
  12008. (execute): Call tryReserved().
  12009. (tryReserved): New function.
  12010. * src/Request.h
  12011. (Requests): New type definition.
  12012. * src/SegmentMan.h
  12013. (reserved): New variable.
  12014. * src/Util.h
  12015. (fileChecksum): New function.
  12016. (toUpper): New function.
  12017. (toLower): New function.
  12018. * src/Util.cc
  12019. (messageDigest.h): Included.
  12020. (trim): Trim \r\n\t.
  12021. (fileChecksum): New function.
  12022. (toUpper): New function.
  12023. (toLower): New function.
  12024. * src/main.cc
  12025. (normalDownload): New function.
  12026. (main): Added 2 command-line options: metalink-file,
  12027. metalink-connection. Their usage has not been written yet.
  12028. * src/MetalinkProcessor.h: New class.
  12029. * src/Xml2MetalinkProcessor.h: New class.
  12030. * src/Xml2MetalinkProcessor.cc: New class.
  12031. * src/MetalinkEntry.h: New class.
  12032. * src/MetalinkEntry.cc: New class.
  12033. * src/MetalinkResource.h: New class.
  12034. * src/MetalinkResource.cc: New class.
  12035. To add md5 message digest checking:
  12036. * src/messageDigest.h: Rewritten.
  12037. * src/MultiDiskWriter.cc: Updated according to the changes in
  12038. messageDigest.h.
  12039. * src/ShaVisitor.cc: Updated according to the changes in
  12040. messageDigest.h.
  12041. * src/Util.cc: Updated according to the changes in messageDigest.h.
  12042. * src/AbstractDiskWriter.cc: Updated according to the changes in
  12043. messageDigest.h.
  12044. To fix a bug that causes segfault when the payload length in peer
  12045. message is less than 0:
  12046. * src/PeerConnection.cc:
  12047. (receiveMessage): Fixed the bug.
  12048. * src/PeerMessageUtil.cc
  12049. (checkLength): Throw an exception if length is less than or equals to
  12050. 0.
  12051. To add new interfaces to Base64 encoding/decoding:
  12052. * src/Base64.h
  12053. (part_encode): Changed the method signature.
  12054. (encode): New function(overload).
  12055. (decode): New function(overload).
  12056. * src/Base64.cc
  12057. (part_encode): Rewritten.
  12058. (encode): Rewritten.
  12059. (encode): New function(overload).
  12060. To prevent a peer to download same piece if there is an error in
  12061. checksum:
  12062. * src/PieceMessage.cc
  12063. (receivedAction): Call peerInteraction->abortPiece().
  12064. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12065. To fix the bug that causes same have message is sent many times to
  12066. a single peer.
  12067. * src/Time.cc
  12068. (isNewer): Use Util::difftv().
  12069. * src/Util.cc
  12070. (difftv): Added a cast to (long long int).
  12071. * src/TorrentMan.cc
  12072. (advertisePiece): Use push_front.
  12073. (getAdvertisedPieceIndexes): A performance improvement was made.
  12074. To fix the bug that sends tracker requests without a sleep interval
  12075. when the number of connections is less than 15.
  12076. * src/TrackerWatcherCommand.cc
  12077. (execute): Now the number of connections is not a factor to decide
  12078. whether or not a tracker request should be sent or not.
  12079. * src/Time.h
  12080. (setTimeInSec): New function.
  12081. * src/Time.cc
  12082. (setTimeInSec): New function.
  12083. etc.
  12084. * src/ChokeMessage.cc
  12085. (receivedAction): Removed peer->snubbing = false
  12086. * src/PeerConnection.h
  12087. (receiveHandshake): Updated doc.
  12088. * src/TorrentMan.h
  12089. (getAdvertisedPieceIndexes): Updated the method signature.
  12090. * src/TorrentMan.cc
  12091. (getAdvertisedPieceIndexes): Updated the method signature.
  12092. * src/Time.h
  12093. (getTimeInMicros): Added a cast to (long long int).
  12094. (getTimeInMillis): Added a cast to (long long int).
  12095. * Release 0.5.2
  12096. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12097. To make a listening socket non-block:
  12098. * src/SocketCore.h
  12099. (setNonBlockingMode): New function.
  12100. * src/SocketCore.cc
  12101. (setNonBlockingMode): New function.
  12102. (beginListen): Added a call to setNonBlockingMode().
  12103. (acceptConnection): Call setNonBlockingMode().
  12104. (setBlockingMode): Updated.
  12105. To handle tracker's NAT-checking:
  12106. * src/PeerConnection.cc
  12107. (receiveHandshake): 'msg' param is filled with received data and
  12108. its length is assigned to 'length' param, even if all handshake
  12109. message is not yet received.
  12110. * src/PeerInteractionCommand.cc
  12111. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  12112. a new peer connects to localhost.
  12113. A call to peerInteraction->sendHandshake() was removed because
  12114. it is called from peerInteraction->receiveHandshake(true).
  12115. * src/PeerInteraction.h
  12116. (quickReplied): New variable.
  12117. (receiveHandshake): Added an argument.
  12118. * src/PeerInteraction.cc
  12119. (PeerInteraction): Added the initialization of quickReplied.
  12120. (receiveHandshake): Send handshake message as soon as the info hash
  12121. in a handshake message from a peer is correct.
  12122. To change the random part of peer id and key parameter:
  12123. * src/TorrentMan.h
  12124. (key): New variable.
  12125. * src/TorrentMan.cc
  12126. (setupInternal1): Use Util::randomAlpha() to generate random part
  12127. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  12128. key is also generated by Util::randomAlpha() and it is now 8 character
  12129. long.
  12130. * src/Util.h
  12131. (randomAlpha): New function.
  12132. * src/Util.cc
  12133. (randomAlpha): New function.
  12134. * src/TrackerWatcherCommand.cc
  12135. (execute): In a tracker request: Use torrentMan->key as key parameter.
  12136. Added no_peer_id=1.
  12137. Set snubbing flag to false when a choke message is received from a
  12138. snubbed peer.
  12139. * src/ChokeMessage.cc
  12140. (receivedAction): Set snubbing flag to false.
  12141. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12142. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  12143. * src/SimpleLogger.h (writeHeader): New function.
  12144. * src/SimpleLogger.cc (writeHeader): New function.
  12145. (writeLog): Fixed the bug that causes segfaults if exception message
  12146. contains an unescaped "%" character.
  12147. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  12148. when a tracker request fails.
  12149. * src/Request.cc (parseUrl): Query string is now handled properly.
  12150. * Release 0.5.1
  12151. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12152. To add Time class which represents a specific instant in time and
  12153. its precision is microseconds. Time checking procedures were rewritten
  12154. using this object.
  12155. * src/Time.h: New class.
  12156. * src/Time.cc: New class.
  12157. * src/AbstractCommand.h
  12158. (updateCheckPoint): Removed.
  12159. (isTimeoutDetected): Removed.
  12160. (checkPoint): Changed the type to Time.
  12161. (timeout): New variable.
  12162. (setTimeout): New function.
  12163. * src/AbstractCommand.cc
  12164. (AbstractCommand): Removed the initialization of checkPoint.
  12165. Added the initialization of timeout.
  12166. (updateCheckPoint): Removed.
  12167. (isTimeoutDetected): Removed.
  12168. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12169. * src/PeerChokeCommand.h
  12170. (checkPoint): Changed the type to Time.
  12171. * src/PeerChokeCommand.cc
  12172. (PeerChokeCommand): Removed the initialization of checkPoint.
  12173. (execute): Rewritten using Time object.
  12174. * src/TrackerWatcherCommand.h
  12175. (checkPoint): Changed the type to Time.
  12176. * src/TrackerWatcherCommand.cc
  12177. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  12178. (execute): Rewritten.
  12179. * src/ConsoleDownloadEngine.h
  12180. (cp): Changed the type to Time.
  12181. (startup): Changed the type to Time.
  12182. * src/ConsoleDownloadEngine.cc
  12183. (initStatistics): Use cp.reset(), startup.reset().
  12184. (calculateStatistics): Rewritten using Time object.
  12185. * src/PeerAbstractCommand.h
  12186. (updateCheckPoint): Removed.
  12187. (isTimeoutDetected): Removed.
  12188. (checkPoint): Changed the type to Time.
  12189. * src/PeerAbstractCommand.cc
  12190. (PeerAbstractCommand): Removed the initialization of checkPoint.
  12191. (updateCheckPoint): Removed.
  12192. (isTimeoutDetected): Removed.
  12193. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12194. * src/PeerInteractionCommand.cc
  12195. (PeerInteractionCommand): Removed the initializations of struct
  12196. timeval variables.
  12197. * src/PeerInteractionCommand.h
  12198. (keepAliveCheckPoint): Changed the type to Time.
  12199. (chokeCheckPoint): Changed the type to Time.
  12200. (freqCheckPoint): Changed the type to Time.
  12201. (haveCheckTime): Changed the type to Time.
  12202. * src/PeerInteractionCommand.cc
  12203. (executeInternal): Rewritten using Time object.
  12204. (detectMessageFlooding): Rewritten using Time object.
  12205. (checkLongTimePeerChoking): Rewritten using Time object.
  12206. (sendKeepAlive): Rewritten using Time object.
  12207. (checkHave): Rewritten using Time object.
  12208. * src/SleepCommand.h
  12209. (checkPoint): Changed the type to Time.
  12210. * src/SleepCommand.cc
  12211. (SleepCommand): Removed the initialization of checkPoint.
  12212. (execute): Rewritten using Time object.
  12213. * src/TorrentAutoSaveCommand.h
  12214. (checkPoint): Changed the type to Time.
  12215. * src/TorrentAutoSaveCommand.cc
  12216. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  12217. (execute): Rewritten.
  12218. * src/DownloadCommand.h
  12219. (sw): Changed the type to Time.
  12220. * src/DownloadCommand.cc
  12221. (DownloadCommand): Removed the initialization of sw.
  12222. (executeInternal): Rewritten.
  12223. * src/RequestSlot.h
  12224. (dispatchedTime): Changed the type to Time.
  12225. * src/RequestSlot.cc
  12226. (RequestSlot): Removed the call to setDispatchedTime().
  12227. (setDispatchedTime): Rewirtten.
  12228. (isTimeout): Rewritten.
  12229. (getLatencyInMillis): Rewritten.
  12230. * src/TorrentDownloadEngine.h
  12231. (cp): Changed the type to Time[2].
  12232. (startup): Changed the type to Time.
  12233. * src/TorrentDownloadEngine.cc
  12234. (initStatistics): Rewritten.
  12235. (calculateStatistics): Rewritten.
  12236. * src/DownloadEngine.cc
  12237. (run): Rewritten.
  12238. To detect all attempts to connect to the tracker are failed:
  12239. * src/AbstractCommand.cc
  12240. (execute): Increment e->segmentMan->errors if a command aborted.
  12241. * src/SegmentMan.h
  12242. (errors): New variable.
  12243. * src/SegmentMan.cc
  12244. (SegmentMan): Added the initialization of errors.
  12245. (init): Added the initialization of errors.
  12246. * src/TrackerWatcherCommand.cc
  12247. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  12248. request was failed.
  12249. To handle snubbed peers:
  12250. * src/PeerChokeCommand.cc
  12251. (optUnchokingPeer): Snubbed peers don't get unchoked.
  12252. (execute): Snubbed peers don't get unchoked.
  12253. * src/PeerInteraction.h
  12254. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  12255. * src/PeerInteraction.cc
  12256. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  12257. back the requested 16k block in 60 seconds.
  12258. * src/PieceMessage.cc
  12259. (receivedAction): A peer's snubbed state is cleard if it sends
  12260. the requested 16k block in 60 seconds.
  12261. * src/Peer.h
  12262. (snubbing): New variable.
  12263. * src/Peer.cc
  12264. (resetStatus): Added snubbed = false.
  12265. To fix the bug that causes have message is not sent:
  12266. * src/PeerInteractionCommand.cc
  12267. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  12268. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  12269. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  12270. * src/TorrentMan.h
  12271. (HaveEntry): New class.
  12272. (advertisePiece): Rewritten.
  12273. (getAdvertisedPieceIndexes): Rewritten.
  12274. (Haves): Changed the type.
  12275. (getAdvertisedPieceIndexes): Added an argument.
  12276. Others:
  12277. * src/TorrentMan.h
  12278. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  12279. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  12280. * src/TorrentMan.cc
  12281. (getPeer): Don't check the number of connections here.
  12282. (setupInternal1): Changed peerId.
  12283. * src/PeerInteractionCommand.h
  12284. (KEEP_ALIVE_INTERVAL): New definition.
  12285. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  12286. * src/main.cc
  12287. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  12288. * src/DownloadEngine.h: Removed unnecessary header includes.
  12289. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12290. To fix the bug that causes segfaults if a tracker returns a zero-length
  12291. list as "peers":
  12292. * src/TrackerUpdateCommand.cc
  12293. (execute): Added a check to see wether the type of peers is Data*.
  12294. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12295. * Release 0.5.0
  12296. To fix compile issue with gcc3:
  12297. * src/CancelMessage.h
  12298. (ID): Renamed as ID_t
  12299. (ID_t): New enum.
  12300. * src/RejectMessage.h
  12301. (ID): Renamed as ID_t
  12302. (ID_t): New enum.
  12303. * src/SuggestPieceMessage.h
  12304. (ID): Renamed as ID_t
  12305. (ID_t): New enum.
  12306. * src/AllowedFastMessage.h
  12307. (ID): Renamed as ID_t
  12308. (ID_t): New enum.
  12309. * src/PortMessage.h
  12310. (ID): Renamed as ID_t
  12311. (ID_t): New enum.
  12312. * src/HaveNoneMessage.h
  12313. (ID): Renamed as ID_t
  12314. (ID_t): New enum.
  12315. * src/KeepAliveMessage.h
  12316. (ID): Renamed as ID_t
  12317. (ID_t): New enum.
  12318. * src/HaveAllMessage.h
  12319. (ID): Renamed as ID_t
  12320. (ID_t): New enum.
  12321. * src/UnchokeMessage.h
  12322. (ID): Renamed as ID_t
  12323. (ID_t): New enum.
  12324. * src/BitfieldMessage.h
  12325. (ID): Renamed as ID_t
  12326. (ID_t): New enum.
  12327. * src/PieceMessage.h
  12328. (ID): Renamed as ID_t
  12329. (ID_t): New enum.
  12330. * src/RequestMessage.h
  12331. (ID): Renamed as ID_t
  12332. (ID_t): New enum.
  12333. * src/NotInterestedMessage.h
  12334. (ID): Renamed as ID_t
  12335. (ID_t): New enum.
  12336. * src/ChokeMessage.h
  12337. (ID): Renamed as ID_t
  12338. (ID_t): New enum.
  12339. * src/InterestedMessage.h
  12340. (ID): Renamed as ID_t
  12341. (ID_t): New enum.
  12342. * src/HaveMessage.h
  12343. (ID): Renamed as ID_t
  12344. (ID_t): New enum.
  12345. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12346. * src/PeerAbstractCommand.h
  12347. (beforeSocketCheck): Removed.
  12348. * src/PeerAbstractCommand.cc
  12349. Modified in order to call executeInternal() even if socket check
  12350. and upload limit check fail.
  12351. * src/PeerInteractionCommand.h
  12352. (keepAlive): Removed.
  12353. (sendKeepAlive): New function.
  12354. (checkHave): New function.
  12355. (beforeSocketCheck): Removed.
  12356. * src/PeerInteractionCommand.cc
  12357. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  12358. calls to checkHave() and sendKeepAlive().
  12359. (keepAlive): Renamed to sendKeepAlive().
  12360. (sendKeepAlive): New function.
  12361. (beforeSocketCheck): Removed.
  12362. (checkHave): New function.
  12363. * src/BitfieldMan.cc
  12364. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  12365. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  12366. 0.
  12367. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  12368. * src/TorrentMan.h
  12369. (UsedPieces): Removed.
  12370. (Pieces): New type definition.
  12371. * src/Piece.h: Updated doc.
  12372. * src/Peer.h
  12373. (totalLength): Removed.
  12374. * src/Peer.cc
  12375. (updateLatency): Fixed the latency calculation.
  12376. * src/TorrentMan.cc
  12377. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  12378. than or equal to MAX_PEER_LIST_SIZE.
  12379. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  12380. then return false.
  12381. (deleteOldErrorPeers): Rewritten.
  12382. (deleteUsedPiece): Fixed the miss use of STL remove.
  12383. * src/PeerInteraction.h
  12384. (Pieces): Removed.
  12385. (deleteTimeoutRequestSlot): Removed.
  12386. (deleteCompletedRequestSlot): Removed.
  12387. (checkRequestSlot): New function.
  12388. * src/PeerInteraction.cc
  12389. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  12390. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  12391. (checkRequestSlot): New function.
  12392. * src/DownloadEngine.cc
  12393. (run): Clear activeSockets before calling waitData().
  12394. (waitData): Removed a call to activeSockets.clear().
  12395. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12396. To attempt to handle EINTR:
  12397. * src/SocketCore.cc
  12398. (isReadable): Added EINTR handling.
  12399. (isWritable): Added EINTR handling.
  12400. To improve the performance:
  12401. * src/AbstractCommand.cc
  12402. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  12403. * src/PeerInteractionCommand.h
  12404. (receiveMessage): Renamed as receiveMessages().
  12405. (receiveMessages): New function.
  12406. * src/PeerInteractionCommand.cc
  12407. (executeInternal): receiveMessage loop is moved to new receiveMessages
  12408. () function. detectMessageFlooding() is moved here.
  12409. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  12410. (). The flooding detection for have message is comment out.
  12411. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  12412. Util::difftv().
  12413. (receiveMessage): Renamed as receiveMessages().
  12414. (receiveMessages): New function.
  12415. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  12416. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  12417. * src/SleepCommand.cc
  12418. (execute): Use Util::difftvsec() instead of Util::difftv().
  12419. * src/BitfieldMan.h
  12420. (getNthBitIndex): New function.
  12421. (hasMissingPiece): New function.
  12422. (getAllMissingIndexes): New function.
  12423. * src/BitfieldMan.cc
  12424. (countSetBit): Rewritten.
  12425. (getNthBitIndex): New function.
  12426. (getMissingIndexRandomly): Rewritten.
  12427. (hasMissingPiece): New function.
  12428. (getAllMissingIndexes): New function.
  12429. * src/TorrentMan.cc
  12430. (hasMissingPiece): New function.
  12431. (deleteUsedPiece): Rewritten using STL.
  12432. * src/PeerInteraction.cc
  12433. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  12434. is a little bit faster then TorrentMan::getMissingPieceIndex().
  12435. (addRequests): Updated the number of pending requests.
  12436. * src/PeerAbstractCommand.cc
  12437. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  12438. (execute): Returns true if TorrentMan::isHalt() is true.
  12439. Corrected the condition of upload limit checking.
  12440. * src/Util.h
  12441. (countBit): New function.
  12442. * src/Util.cc
  12443. (nbits): New variable.
  12444. (countBit): New function.
  12445. * src/DownloadEngine.h
  12446. (SockCmdMap): New type definition.
  12447. (waitData): Added an argument.
  12448. (addSocket): Added an argument.
  12449. (addSocketForReadCheck): Added an argument.
  12450. (addSocketForWriteCheck): Added an argument.
  12451. * src/DownloadEngine.cc
  12452. (run): Executes only commands whose sockets are ready to read or write.
  12453. All commands are executed in every 1 second.
  12454. (waitData): Calls select() again if it returned
  12455. EINTR.
  12456. (addSocket): Saves socket and command object pair to the map.
  12457. (deleteSocket): Deletes socket and command object pair from the map.
  12458. (addSocketForReadCheck): Added an argument.
  12459. (addSocketForWriteCheck): Added an argument.
  12460. * src/DownloadCommand.cc
  12461. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  12462. To send "event=stopped" to the tracker when the application finishes:
  12463. * src/PeerChokeCommand.h
  12464. (checkPoint): New variable.
  12465. * src/PeerChokeCommand.cc
  12466. (PeerChokeCommand): Added the initialization of checkPoint.
  12467. (execute): The interval check is now done by checkPoint, not
  12468. SleepCommand. Return true if TorrentMan::isHalt() is true.
  12469. * src/TorrentMan.h
  12470. (halt): New function.
  12471. (hasMissingPiece): New function.
  12472. (isHalt): New function.
  12473. (setHalt): New function.
  12474. * src/TorrentMan.cc
  12475. (TorrentMan): Added the initialization of halt.
  12476. * src/TorrentAutoSaveCommand.h
  12477. (checkPoint): New variable.
  12478. * src/PeerListenCommand.cc
  12479. (execute): Returns true if TorrentMan::isHalt() is true.
  12480. * src/main.cc
  12481. (setSignalHander): Added flags argument.
  12482. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  12483. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  12484. Removed printDownloadAbortMessage() after torrent downloading loop.
  12485. * src/TorrentAutoSaveCommand.cc
  12486. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  12487. (execute): Returns true if TorrentMan::isHalt() is true.
  12488. The interval check is now done by checkPoint, not SleepCommand.
  12489. * src/TrackerWatcherCommand.cc
  12490. (execute): If TorrentMan::isHalt(), then create a tracker request with
  12491. event=stopped.
  12492. * src/TrackerUpdateCommand.cc
  12493. (prepareForRetry): Do not use SleepCommand here.
  12494. (execute): Returns true if TorrentMan::isHalt() is true.
  12495. Others:
  12496. * src/TorrentMan.cc
  12497. (getMissingPieceIndex): Updated log message.
  12498. * src/PeerInteraction.cc
  12499. (createPeerMessag): Updated log message.
  12500. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12501. To add the ability to download several pieces in mix in a command and
  12502. increase the number of request slots according to request-cancel
  12503. latency:
  12504. * src/PeerInteractionCommand.cc
  12505. (executeInternal): The number of messages to be received at a time
  12506. is increased from 10 to 50.
  12507. * src/LogFactory
  12508. (getInstance): Added NullLogger.
  12509. * src/NullLogger.h: New class.
  12510. * src/BitfieldMan.h
  12511. (getMissingIndex): New function.
  12512. * src/BitfieldMan.cc
  12513. (getMissingIndex): New function.
  12514. * src/TorrentMan.h
  12515. (checkOutPiece): New function.
  12516. (getMissingPieceIndex): New function.
  12517. (getMissingFastPieceIndex): New function.
  12518. (getMissingFastPiece): New function.
  12519. * src/TorrentMan.cc
  12520. (updatePiece): Rewritten using STL.
  12521. (syncPiece): Rewritten using STL.
  12522. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  12523. checkOutPiece().
  12524. (getMissingPieceIndex): New function.
  12525. (getMissingFastPieceIndex): New function.
  12526. (getMissingFastPiece): New function.
  12527. (checkOutPiece): New function.
  12528. * src/PeerInteraction.h
  12529. (Pieces): New type definition.
  12530. (piece): Removed.
  12531. (pieces): New variable.
  12532. (getNewPieceAndSendInterest): Added the "piece" argument.
  12533. (abortPiece): Added the "piece" argument.
  12534. (abortAllPieces): New function.
  12535. (isInRequestSlot): New function.
  12536. (hasDownloadPiece): Added the "index" argument.
  12537. (setDownloadPiece): Removed.
  12538. (getDownloadPiece): Added the "index" argument.
  12539. (updatePiece): New function.
  12540. (createRequestMessage): Added the "index" argument.
  12541. * src/PeerInteraction.cc
  12542. (onChoked): Rewritten.
  12543. (abortPiece): Rewirtten.
  12544. (abortAllPieces): New function.
  12545. (deleteTimeoutRequestSlot): Rewritten.
  12546. Clarified code a little bit.
  12547. (deleteCompletedRequestSlot): Rewritten.
  12548. (isInRequestSlot): New function.
  12549. (syncPiece): Rewritten.
  12550. (updatePiece): New function.
  12551. (getNewPieceAndSendInterest): Rewritten.
  12552. (addRequests): Rewritten.
  12553. (getDownloadPiece): Rewritten.
  12554. (hasDownloadPiece): Rewritten.
  12555. (createRequestMessage): Added the "index" argument.
  12556. * src/common.h
  12557. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  12558. (DIV_FLOOR): New definition.
  12559. * src/PieceMessage.cc
  12560. (receivedAction): Update request-piece latency here.
  12561. * src/RequestSlot.h
  12562. (getLatencyInMillis): New function.
  12563. * src/RequestSlot.cc
  12564. (isTimeout): Rewritten using getLatencyInMillis.
  12565. (getLatencyInMillis): New function.
  12566. * src/Piece.h
  12567. (operator==): New function.
  12568. (getMissingBlockIndex): New function.
  12569. * src/Piece.cc
  12570. (operator==): New function.
  12571. (getMissingBlockIndex): New function.
  12572. * src/Peer.h
  12573. (DEFAULT_LATENCY): New definition.
  12574. (latency): New variable.
  12575. (updateLatency): New function.
  12576. (getLatency): New function.
  12577. * src/Peer.cc
  12578. (resetStatus): Reset latecy.
  12579. (updateLatency): New function.
  12580. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12581. * src/SocketCore.cc
  12582. (isReadable): Added secure to the condition.
  12583. * src/HttpConnection.cc
  12584. (receiveResponse): Fixed a bug that causes no response header
  12585. exception.
  12586. * src/Peer.h
  12587. (getFastSet): Fixed the return value type.
  12588. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12589. To remove a wait from download loop:
  12590. * src/DownloadEngine.cc
  12591. (run): Comment out shortSleep.
  12592. To rewrite the message handling:
  12593. * src/SimplePeerMessage.h: New class.
  12594. * src/SimplePeerMessage.cc: New class.
  12595. * src/CancelMessage.h: Derived from SimplePeerMessage.
  12596. (msg): New variable.
  12597. (create): New function.
  12598. (send): Removed.
  12599. (getMessage): New function.
  12600. (getMessageLength): New function.
  12601. * src/CancelMessage.cc
  12602. (create): New function.
  12603. (receivedAction): Replaced deleteRequestMessageInQueue with
  12604. rejectPieceMessageInQueue.
  12605. (send): Removed.
  12606. (getMessage): New function.
  12607. (getMessageLength): New function.
  12608. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  12609. (msg): New variable.
  12610. (msgLength): New variable.
  12611. (~BitfieldMessage): Deleted msg.
  12612. (send): Removed.
  12613. (getMessage): New function.
  12614. (getMessageLength): New function.
  12615. * src/BitfieldMessage.cc
  12616. (create): New function.
  12617. (send): Removed.
  12618. (getMessage): New function.
  12619. (getMessageLength): New function.
  12620. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  12621. (msg): New variable.
  12622. (sendPredicate): New function.
  12623. (onSendComplete): New function.
  12624. (send): Removed.
  12625. (getMessage): New function.
  12626. (getMessageLength): New function.
  12627. (create): New function.
  12628. * src/ChokeMessage.cc
  12629. (create): New function.
  12630. (send): Removed.
  12631. (sendPredicate): New function.
  12632. (getMessage): New function.
  12633. (getMessageLength): New function.
  12634. (onSendComplete): New function.
  12635. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  12636. (msg): New variable.
  12637. (send): Removed.
  12638. (getMessage): New function.
  12639. (getMessageLength): New function.
  12640. * src/KeepAliveMessage.cc
  12641. (send): Removed.
  12642. (getMessage): New function.
  12643. (getMessageLength): New function.
  12644. * src/PortMessage.h
  12645. (create): New function.
  12646. (receivedAction): Updated log message.
  12647. * src/PortMessage.cc: New file.
  12648. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  12649. (msg): New variable.
  12650. (sendPredicate): New function.
  12651. (onSendComplete): New function.
  12652. (create): New function.
  12653. (send): Removed.
  12654. (getMessage): New function.
  12655. (getMessageLength): New function.
  12656. * src/UnchokeMessage.cc
  12657. (create): New function.
  12658. (send): Removed.
  12659. (sendPredicate): New function.
  12660. (getMessage): New function.
  12661. (getMessageLength): New function.
  12662. (onSendComplete): New function.
  12663. * src/PieceMessage.h
  12664. (leftPieceDataLength): Removed.
  12665. (leftDataLength): New variable.
  12666. (headerSend): New variable.
  12667. (pendingCount): New variable.
  12668. (msgHeader): New variable.
  12669. (sendPieceData): New function.
  12670. (incrementPendingCount): New function.
  12671. (isPendingCountMax): New function.
  12672. (create): New function.
  12673. (getMessageHeader): New function.
  12674. (getMessageHeaderLength): New function.
  12675. * src/PieceMessage.cc
  12676. (create): New function.
  12677. (getMessageHeader): New function.
  12678. (getMessageHeaderLength): New function.
  12679. (send): Rewritten.
  12680. (sendPieceData): New function.
  12681. * src/HaveMessage.h: Derived from SimplePeerMessage.
  12682. (msg): New variable.
  12683. (create): New function.
  12684. (getMessage): New function.
  12685. (getMessageLength): New function.
  12686. * src/HaveMessage.cc
  12687. (create): New function.
  12688. (send): Removed.
  12689. (sendPieceData): New function.
  12690. (getMessage): New function.
  12691. (getMessageLength): New function.
  12692. * src/RequestMessage.h: Derived from SimplePeerMessage.
  12693. (msg): New variable.
  12694. (create): New function.
  12695. (send): Removed.
  12696. (getMessage): New function.
  12697. (getMessageLength): New function.
  12698. * src/RequestMessage.cc
  12699. (create): New function.
  12700. (receivedAction): Added the handling of fast extension.
  12701. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  12702. (send): Removed.
  12703. (getMessage): New function.
  12704. (getMessageLength): New function.
  12705. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  12706. (msg): New variable.
  12707. (sendPredicate): New function.
  12708. (onSendComplete): New function.
  12709. (create): New function.
  12710. (getMessage): New function.
  12711. (getMessageLength): New function.
  12712. * src/InterestedMessage.cc
  12713. (create): New function.
  12714. (send): Removed.
  12715. (sendPieceData): New function.
  12716. (getMessage): New function.
  12717. (getMessageLength): New function.
  12718. (onSendComplete): New function.
  12719. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  12720. (msg): New variable.
  12721. (sendPieceData): New function.
  12722. (onSendComplete): New function.
  12723. (create): New function.
  12724. (send): Removed.
  12725. (getMessage): New function.
  12726. (getMessageLength): New function.
  12727. * src/NotInterestedMessage.cc
  12728. (create): New function.
  12729. (send): Removed.
  12730. (sendPredicate): New function.
  12731. (getMessage): New function.
  12732. (getMessageLength): New function.
  12733. (onSendComplete): New function.
  12734. * src/AllowedFastMessage.h: New class.
  12735. * src/AllowedFastMessage.cc: New class.
  12736. * src/RejectMessage.h: New class.
  12737. * src/RejectMessage.cc: New class.
  12738. * src/SuggestPieceMessage.h: New class.
  12739. * src/SuggestPieceMessage.cc: New class.
  12740. * src/HaveAllMessage.h: New class.
  12741. * src/HaveAllMessage.cc: New class.
  12742. * src/HaveNoneMessage.h: New class.
  12743. * src/HaveNoneMessage.cc: New class.
  12744. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  12745. (msg): New variable.
  12746. (reserved): New variable.
  12747. (create): New function.
  12748. (getId): New function.
  12749. (receivedAction): New function.
  12750. (getMessage): New function.
  12751. (getMessageLength): New function.
  12752. (isFastExtensionSupported): New function.
  12753. * src/HandshakeMessage.cc
  12754. (HandshakeMessage): Moved here from HandshakeMessage.h.
  12755. (create): New function.
  12756. (getMessage): New function.
  12757. (getMessageLength): New function.
  12758. (toString): Added the output of reserved field.
  12759. (check): Added const qualifier.
  12760. (isFastExtensionSupported): New function.
  12761. * src/PeerMessageUtil.h
  12762. (createChokeMessage): Removed.
  12763. (createUnchokeMessage): Removed.
  12764. (createInterestedMessage): Removed.
  12765. (createNotInterestedMessage): Removed.
  12766. (createHaveMessage): Removed.
  12767. (createBitfieldMessage): Removed.
  12768. (createRequestMessage): Removed.
  12769. (createCancelMessage): Removed.
  12770. (createPieceMessage): Removed.
  12771. (createPortMessage): Removed.
  12772. (createChokeMessage): Removed.
  12773. (createUnchokeMessage): Removed.
  12774. (createInterestedMessage): Removed.
  12775. (createNotInterestedMessage): Removed.
  12776. (createHaveMessage): Removed.
  12777. (createBitfieldMessage): Removed.
  12778. (createRequestMessage): Removed.
  12779. (createCancelMessage): Removed.
  12780. (createPieceMessage): Removed.
  12781. (createKeepAliveMessage): Removed.
  12782. (createHandshakeMessage): Removed.
  12783. (setIntParam): New function.
  12784. (createPeerMessageString): New function.
  12785. * src/PeerMessageUtil.cc
  12786. (createChokeMessage): Removed.
  12787. (createUnchokeMessage): Removed.
  12788. (createInterestedMessage): Removed.
  12789. (createNotInterestedMessage): Removed.
  12790. (createHaveMessage): Removed.
  12791. (createBitfieldMessage): Removed.
  12792. (createRequestMessage): Removed.
  12793. (createCancelMessage): Removed.
  12794. (createPieceMessage): Removed.
  12795. (createPortMessage): Removed.
  12796. (createRequestMessage): Removed.
  12797. (createCancelMessage): Removed.
  12798. (createPieceMessage): Removed.
  12799. (createHaveMessage): Removed.
  12800. (createChokeMessage): Removed.
  12801. (createUnchokeMessage): Removed.
  12802. (createInterestedMessage): Removed.
  12803. (createNotInterestedMessage): Removed.
  12804. (createBitfieldMessage): Removed.
  12805. (createKeepAliveMessage): Removed.
  12806. (createHandshakeMessage): Removed.
  12807. (setIntParam): New function.
  12808. (createPeerMessageString): New function.
  12809. * src/PeerConnection.h
  12810. (peer): Removed.
  12811. (torrentMan): Removed.
  12812. (createNLengthMessage): Removed.
  12813. (setIntParam): Removed.
  12814. (writeOutgoingMessageLog): Removed all overloaded functions.
  12815. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12816. (sendMessage): New function.
  12817. (sendHandshake): Removed.
  12818. (sendKeepAlive): Removed.
  12819. (sendChoke): Removed.
  12820. (sendUnchoke): Removed.
  12821. (sendInterested): Removed.
  12822. (sendNotInterested): Removed.
  12823. (sendHave): Removed.
  12824. (sendBitfield): Removed.
  12825. (sendRequest): Removed.
  12826. (sendPiece): Removed.
  12827. (sendPieceHeader): Removed.
  12828. (sendPieceData): Removed.
  12829. (sendCancel): Removed.
  12830. (getPeer): Removed.
  12831. * src/PeerConnection.cc
  12832. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12833. (sendHandshake): Removed.
  12834. (sendKeepAlive): Removed.
  12835. (createNLengthMessage): Removed.
  12836. (setIntParam): Removed.
  12837. (writeOutgoingMessageLog): Removed all overloaded functions.
  12838. (sendChoke): Removed.
  12839. (sendUnchoke): Removed.
  12840. (sendInterested): Removed.
  12841. (sendNotInterested): Removed.
  12842. (sendHave): Removed.
  12843. (sendBitfield): Removed.
  12844. (sendRequest): Removed.
  12845. (sendPiece): Removed.
  12846. (sendPieceHeader): Removed.
  12847. (sendPieceData): Removed.
  12848. (sendMessage): New function.
  12849. (sendCancel): Removed.
  12850. * src/PeerInteractionCommand.cc
  12851. (PeerInteractionCommand): Call setUploadLimit.
  12852. (executeInternal): Call setUploadLimit.
  12853. Added the handling of "inProgress" state of handshake message.
  12854. Call sendBitfield() or sendAllowdFast() instead of deprecated
  12855. sendNow().
  12856. (keepAlive): Call addMessage and sendMessage instead of deprecated
  12857. sendNow().
  12858. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  12859. * src/TorrentMan.h
  12860. (PEER_ID_LENGTH): New definition.
  12861. (hasAllPieces): New function.
  12862. * src/TorrentMan.cc
  12863. (getMissingPiece): Added the handling of fast extension.
  12864. (cancelPiece): Call updatePiece().
  12865. (hasAllPieces): New function.
  12866. * src/PeerInteraction.h
  12867. (fastSet): New variable.
  12868. (getNewPieceAndSendInterest): Changed the return type to void.
  12869. (send): Renamed as sendMessages.
  12870. (deleteAllRequestSlot): Removed.
  12871. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12872. (cancelAllRequest): Removed all overloaded functions.
  12873. (deleteAllRequestSlot): Removed.
  12874. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12875. (rejectPieceMessageInQueue): New function.
  12876. (rejectAllPieceMessageInQueue): New function.
  12877. (onChoked): New function.
  12878. (isSendingMessageInProgress): New function.
  12879. (getCorrespondingRequestSlot): Changed its arguments.
  12880. (isInFastSet): New function.
  12881. (addFastSetIndex): New function.
  12882. (addRequests): New function.
  12883. (sendNow): Removed.
  12884. (trySendNow): Removed.
  12885. (sendBitfield): New function.
  12886. (sendAllowdFast): New function.
  12887. (createHaveAllMessage): New function.
  12888. (createHaveNoneMessage): New function.
  12889. (createRejectMessage): New function.
  12890. (createAllowedFastMessage): New function.
  12891. * src/PeerInteraction.cc
  12892. (send): Renamed as sendMessages.
  12893. (sendMessages): New function.
  12894. (MsgPushBack): New class.
  12895. (isSendingMessageInProgress): New function.
  12896. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12897. (rejectAllPieceMessageInQueue): New function.
  12898. Added the handling of fast extension.
  12899. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12900. (rejectPieceMessageInQueue): New function.
  12901. Added the handling of fast extension.
  12902. (deleteRequestSlot): Replaced for loop with std::find.
  12903. (onChoked): New function.
  12904. (deleteAllRequestSlot): Removed.
  12905. (abortPiece): Rewirtten.
  12906. (deleteTimeoutRequestSlot): Updated log messages.
  12907. (getCorrespondingRequestSlot): Changed its arguments.
  12908. (cancelAllRequest): Removed all overloaded functions.
  12909. (receiveHandshake): Added the check to see whether an incoming peer
  12910. supports fast extension.
  12911. (createHandshakeMessage): Use HandshakeMessage::create instead of
  12912. PeerMessageUtil.
  12913. (createPeerMessage): Use create() of each message class instead of
  12914. PeerMessageUtil.
  12915. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  12916. AllowedFastMessage were added.
  12917. (getNewPieceAndSendInterest): Changed its return value type to void.
  12918. Added the handling of fast extension.
  12919. (addRequests): New function.
  12920. (sendNow): Removed.
  12921. (sendHandshake): Rewritten.
  12922. (trySendNow): Removed.
  12923. (sendBitfield): New function.
  12924. (sendAllowdFast): New function.
  12925. (isInFastSet): New function.
  12926. (addFastSetIndex): New function.
  12927. (createRequestMessage): Use RequestMessage::create instead of
  12928. PeerMessageUtil.
  12929. (createCancelMessage): Use CancelMessage::create instead of
  12930. PeerMessageUtil.
  12931. (createPieceMessage): Use PieceMessage::create instead of
  12932. PeerMessageUtil.
  12933. (createHaveMessage): Use HaveMessage::create instead of
  12934. PeerMessageUtil.
  12935. (createChokeMessage): Use ChokeMessage::create instead of
  12936. PeerMessageUtil.
  12937. (createUnchokeMessage): Use UnchokeMessage::create instead of
  12938. PeerMessageUtil.
  12939. (createInterestedMessage): Use InterestedMessage::create instead of
  12940. PeerMessageUtil.
  12941. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  12942. of PeerMessageUtil.
  12943. (createBitfieldMessage): Use BitfieldMessage::create instead of
  12944. PeerMessageUtil.
  12945. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  12946. PeerMessageUtil.
  12947. (createHaveAllMessage): New function.
  12948. (createHaveNoneMessage): New function.
  12949. (createRejectMessage): New function.
  12950. (createAllowedFastMessage: New function.
  12951. * src/Util.h
  12952. (sha1Sum): New function.
  12953. (computeFastSet): New function.
  12954. * src/Util.cc
  12955. (sha1Sum): New function.
  12956. (computeFastSet): New function.
  12957. * src/Peer.h
  12958. (fastExtensionEnabled): New variable.
  12959. (fastSet): New variable.
  12960. (setAllBitfield): New function.
  12961. (setFastExtensionEnabled): New function.
  12962. (isFastExtensionEnabled): New function.
  12963. (addFastSetIndex): New function.
  12964. (getFastSet): New function.
  12965. (isInFastSet): New function.
  12966. (countFastSet): New function.
  12967. * src/Peer.cc
  12968. (isInFastSet): New function.
  12969. (addFastSetIndex): New function.
  12970. (setAllBitfield): New function.
  12971. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  12972. sockets.
  12973. * src/PeerAbstractCommand.cc
  12974. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  12975. and uploadLimit.
  12976. (execute): Changed the procedure of checking sockets. The upload speed
  12977. checking were added.
  12978. (setUploadLimit): New function.
  12979. (setUploadLimitCheck): New function.
  12980. * src/PeerAbstractCommand.h
  12981. (setUploadLimit): New function.
  12982. (setUploadLimitCheck): New function.
  12983. (uploadLimit): New variable.
  12984. (uploadLimitCheck): New variable.
  12985. To contact a tracker regularly:
  12986. * src/TrackerWatcherCommand.h (interval): New variable.
  12987. (checkPoint): New variable.
  12988. (TrackerWatcherCommand): Added interval argument.
  12989. * src/TrackerWatcherCommand.cc
  12990. (TrackerWatcherCommand): Initialized checkPoint.
  12991. (execute): Now a tracker is contacted in every specified period.
  12992. If peer list is not needed, send request with numwant=0.
  12993. * src/TrackerUpdateCommand.cc
  12994. (execute): Updated log messages.
  12995. * src/DownloadEngine.cc
  12996. (~DownloadEngine): Removed two asserts.
  12997. (waitData): Uncommented wfds. May be a bug fix.
  12998. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12999. * src/PeerInteractionCommand.h
  13000. (checkInactiveConnection): Removed.
  13001. * src/PeerInteractionCommand.cc
  13002. (executeInternal): Removed following function calls:
  13003. detectMessageFlooding(), checkLongTimePeerChoking and
  13004. checkInactiveConnection().
  13005. (checkInactiveConnection): Removed.
  13006. (detectMessageFlooding): Removed function call to
  13007. checkInactiveConnection().
  13008. * src/PeerMessageUtil.h
  13009. (createChokeMessage): New function. Overload.
  13010. (createUnchokeMessage): New function. Overload.
  13011. (createInterestedMessage): New function. Overload.
  13012. (createNotInterestedMessage): New function. Overload.
  13013. (createHaveMessage): New function. Overload.
  13014. (createBitfieldMessage): New function. Overload.
  13015. (createRequestMessage): New function. Overload.
  13016. (createCancelMessage): New function. Overload.
  13017. (createPieceMessage): New function. Overload.
  13018. (createKeepAliveMessage): New function. Overload.
  13019. * src/PeerMessageUtil.cc
  13020. (createChokeMessage): New function. Overload.
  13021. (createUnchokeMessage): New function. Overload.
  13022. (createInterestedMessage): New function. Overload.
  13023. (createNotInterestedMessage): New function. Overload.
  13024. (createHaveMessage): New function. Overload.
  13025. (createBitfieldMessage): New function. Overload.
  13026. (createRequestMessage): New function. Overload.
  13027. (createCancelMessage): New function. Overload.
  13028. (createPieceMessage): New function. Overload.
  13029. (createKeepAliveMessage): New function. Overload.
  13030. * src/SendMessageQueue.cc
  13031. (createRequestMessage): Use PeerMessageUtil.
  13032. (createCancelMessage): Use PeerMessageUtil.
  13033. (createPieceMessage): Use PeerMessageUtil.
  13034. (createHaveMessage): Use PeerMessageUtil.
  13035. (createChokeMessage): Use PeerMessageUtil.
  13036. (createUnchokeMessage): Use PeerMessageUtil.
  13037. (createInterestedMessage): Use PeerMessageUtil.
  13038. (createNotInterestedMessage): Use PeerMessageUtil.
  13039. (createBitfieldMessage): Use PeerMessageUtil.
  13040. (createKeepAliveMessage): Use PeerMessageUtil.
  13041. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  13042. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  13043. * src/PeerInteraction.h: New class.
  13044. * src/PeerInteraction.cc: New class.
  13045. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13046. Each peer message has its own class.
  13047. * src/PendingMessages.h: Removed.
  13048. * src/PendingMessages.cc: Removed. The sending process was moved to
  13049. each message class.
  13050. * src/RequestSlotMan.h: Removed.
  13051. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  13052. SendMessageQueue.
  13053. * src/RequestMessage.h: New class.
  13054. * src/RequestMessage.cc: New class.
  13055. * src/CancelMessage.h: New class.
  13056. * src/CancelMessage.cc: New class.
  13057. * src/BitfieldMessage.h: New class.
  13058. * src/BitfieldMessage.cc: New class.
  13059. * src/ChokeMessage.h: New class.
  13060. * src/ChokeMessage.cc: New class.
  13061. * src/KeepAliveMessage.h: New class.
  13062. * src/KeepAliveMessage.cc: New class.
  13063. * src/PortMessage.h: New class.
  13064. * src/UnchokeMessage.h: New class.
  13065. * src/UnchokeMessage.cc: New class.
  13066. * src/PieceMessage.h: New class.
  13067. * src/PieceMessage.cc: New class.
  13068. * src/HaveMessage.h: New class.
  13069. * src/HaveMessage.cc: New class.
  13070. * src/BitfieldMessage.h: New class.
  13071. * src/BitfieldMessage.cc: New class.
  13072. * src/NotInterestedMessage.h: New class.
  13073. * src/NotInterestedMessage.cc: New class.
  13074. * src/InterestedMessage.h: New class.
  13075. * src/InterestedMessage.cc: New class.
  13076. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  13077. (getSendMessageQueue): New function.
  13078. (setSendMessageQueue): New function.
  13079. * src/HandshakeMessage.cc: New class.
  13080. * src/PeerConnection.h (receiveMessage): Changed return value and
  13081. arguments.
  13082. (receiveHandshake): Changed return value and arguments.
  13083. * src/PeerConnection.cc (receiveMessage): Do not create message class
  13084. here.
  13085. (receiveHandshake): Do not create handshake class here.
  13086. * src/PeerInteractionCommand.h (peerConnection): Removed.
  13087. (piece): Removed.
  13088. (syncPiece): Removed.
  13089. (sendInterest): Removed.
  13090. (sendMessages): Removed.
  13091. (createRequestPendingMessage): Removed.
  13092. (checkPieceHash): Removed.
  13093. (erasePieceOnDisk): Removed.
  13094. (getNewPieceAndSendInterest): Removed.
  13095. (onGotNewPice): Removed.
  13096. (onGotWrongPiece): Removed.
  13097. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  13098. Removed peerConnection, piece.
  13099. (~PeerInteractionCommand): Removed peerConnection.
  13100. (executeInternal): Use sendMessageQueue instead of peerConnection.
  13101. (syncPiece): Moved to SendMessageQueue.
  13102. (decideChoking): Removed PendingMessage.
  13103. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  13104. The action after receiving peer message was moved to each message
  13105. class.
  13106. (onGotNewPice): Moved to SendMessageQueue.
  13107. (onGotWrongPiece): Moved to SendMessageQueue.
  13108. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  13109. (sendInterest): Moved to SendMessageQueue.
  13110. (createRequestPendingMessage): Removed.
  13111. (sendMessages): Moved to SendMessageQueue.
  13112. (onAbort): Use SendMessageQueue::abortPiece()
  13113. (keepAlive): Use sendMessageQueue instead of peerConnection.
  13114. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  13115. (checkPieceHash): Moved to SendMessageQueue.
  13116. (erasePieceOnDisk): Moved to SendMessageQueue.
  13117. * src/PeerMessageUtil.h
  13118. (createBitfieldMessage): Removed.
  13119. (createHaveMessage): Changed return value and arguments.
  13120. (createBitfieldMessage): Changed return value and arguments.
  13121. (createRequestCancelMessage): Removed.
  13122. (createPieceMessage): Changed return value and arguments.
  13123. (getShortIntParam): New function.
  13124. (checkIndex): Changed arguments.
  13125. (checkBegin): Changed arguments.
  13126. (checkLength): Changed arguments.
  13127. (checkPieceOffset): Removed.
  13128. (checkRange): New function.
  13129. (checkBitfield): Changed arguments.
  13130. (createPeerMessage): Removed.
  13131. (checkIntegrity): Removed.
  13132. (createHandshakeMessage): Changed arguments.
  13133. (createChokeMessage): New function.
  13134. (createUnchokeMessage): New function.
  13135. (createInterestedMessage): New function.
  13136. (createNotInterestedMessage): New function.
  13137. (createRequestMessage): New function.
  13138. (createCancelMessage): New function.
  13139. (createPortMessage): New function.
  13140. * src/PeerMessageUtil.cc
  13141. (createBitfieldMessage): Removed.
  13142. (createHaveMessage): Changed return value and arguments.
  13143. (createBitfieldMessage): Changed return value and arguments.
  13144. (createRequestCancelMessage): Removed.
  13145. (createPieceMessage): Changed return value and arguments.
  13146. (getShortIntParam): New function.
  13147. (checkIndex): Changed arguments.
  13148. (checkBegin): Changed arguments.
  13149. (checkLength): Changed arguments.
  13150. (checkPieceOffset): Removed.
  13151. (checkRange): New function.
  13152. (checkBitfield): Changed arguments.
  13153. (createPeerMessage): Removed.
  13154. (checkIntegrity): Removed.
  13155. (createHandshakeMessage): Changed arguments.
  13156. (createChokeMessage): New function.
  13157. (createUnchokeMessage): New function.
  13158. (createInterestedMessage): New function.
  13159. (createNotInterestedMessage): New function.
  13160. (createRequestMessage): New function.
  13161. (createCancelMessage): New function.
  13162. (createPortMessage): New function.
  13163. * src/PeerMessage.h
  13164. (id): Removed.
  13165. (index): Removed.
  13166. (begin): Removed.
  13167. (length): Removed.
  13168. (bitfield): Removed.
  13169. (bitfieldLength): Removed.
  13170. (block): Removed.
  13171. (blockLength): Removed.
  13172. (inProgress): New variable.
  13173. (cuid): New variable.
  13174. (peer): New variable.
  13175. (sendMessageQueue): New variable.
  13176. (logger): New variable.
  13177. (setBitfield): Removed.
  13178. (getBitfield): Removed.
  13179. (setBlock): Removed.
  13180. (getBlock): Removed.
  13181. (getBitfieldLength): Removed.
  13182. (getBlockLength): Removed.
  13183. (isInProgress): New function.
  13184. (toString): Made pure virtual.
  13185. (check): New function.
  13186. (send): New function.
  13187. (receivedAction): New function.
  13188. (getId): Made pure virtual.
  13189. (setId): Removed.
  13190. (getIndex): Removed.
  13191. (setIndex): Removed.
  13192. (getBegin): Removed.
  13193. (setBegin): Removed.
  13194. (getLength): Removed.
  13195. (setLength): Removed.
  13196. (getCuid): New function.
  13197. (setCuid): New function.
  13198. (getPeer): New function.
  13199. (setPeer): New function.
  13200. (getSendMessageQueue): New function.
  13201. (setSendMessageQueue): New function.
  13202. (ID): Removed.
  13203. * src/PeerMessage.cc
  13204. (setBitfield): Removed.
  13205. (setBlock): Removed.
  13206. (toString): Removed.
  13207. * src/TorrentMan.h
  13208. (getPieceLength): New function.
  13209. (getPieceLength): New function.
  13210. * src/SendMessageQueue.h
  13211. (REQUEST_TIME_OUT): New definition.
  13212. (RequestSlots): New definition.
  13213. (MessageQueue): New definition.
  13214. (requestSlotMan): Removed.
  13215. (pendingMessages): Removed.
  13216. (requestSlots): New variable.
  13217. (messageQueue): New variable.
  13218. (torrentMan): New variable.
  13219. (peerConnection): New variable.
  13220. (peer): New variable.
  13221. (piece): New variable.
  13222. (getNewPieceAndSendInterest): New function.
  13223. (createPeerMessage): New function.
  13224. (createHandshakeMessage): New function.
  13225. (send): Made private.
  13226. (setPeerMessageCommonProperty): New function.
  13227. (deleteAllRequestSlot): New function.
  13228. (deleteRequestMessageInQueue): New function.
  13229. (cancelAllRequest): Made private.
  13230. (cancelAllRequest): Made private.
  13231. (countRequestSlot): Made private.
  13232. (addPendingMessage): Removed.
  13233. (deletePendingPieceMessage): Removed.
  13234. (deletePendingRequestMessage): Removed.
  13235. (addMessage): New function.
  13236. (deletePieceMessageInQueue): New function.
  13237. (deleteTimeoutRequestSlot): Changed argument.
  13238. (deleteCompletedRequestSlot): Changed argument.
  13239. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  13240. (getCorrespondingRequestSlot): New function.
  13241. (countPendingMessage): Removed.
  13242. (countMessageInQueue): New function.
  13243. (getTorrentMan): New function.
  13244. (getPeerConnection): New function.
  13245. (hasDownloadPiece): New function.
  13246. (getDownloadPiece): New function.
  13247. (setDownloadPiece): New function.
  13248. (syncPiece): New function.
  13249. (sendMessages): New function.
  13250. (sendNow): New function.
  13251. (trySendNow): New function.
  13252. (abortPiece): New function.
  13253. (sendHandshake): New function.
  13254. (receiveMessage): New function.
  13255. (receiveHandshake): New function.
  13256. (createRequestMessage): New function.
  13257. (createCancelMessage): New function.
  13258. (createPieceMessage): New function.
  13259. (createHaveMessage): New function.
  13260. (createChokeMessage): New function.
  13261. (createUnchokeMessage): New function.
  13262. (createInterestedMessage): New function.
  13263. (createNotInterestedMessage): New function.
  13264. (createBitfieldMessage): New function.
  13265. (createKeepAliveMessage): New function.
  13266. * src/SendMessageQueue.cc
  13267. (SendMessageQueue): Removed requestSlotMan.
  13268. Instantiated peerConnection here.
  13269. (~SendMessageQueue): Removed requestSlotMan.
  13270. Added deletion of peerConnection and the contents of messageQueue.
  13271. (send): Updated according to the change of messageQueue.
  13272. (addPendingMessage): Renamed to addMessage.
  13273. (addMessage): New function.
  13274. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  13275. (deletePieceMessageInQueue): New function.
  13276. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  13277. (deleteRequestMessageInQueue): New function.
  13278. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  13279. here.
  13280. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  13281. (...) was moved here.
  13282. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  13283. moved here.
  13284. (deleteCompletedRequestSlot):
  13285. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  13286. (getCorrespondingRequestSlot):
  13287. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  13288. And renamed to getCorrespondingRequestSlot, correcting a typo.
  13289. (countPendingMessage): Renamed to countMessageInQueue.
  13290. (countMessageInQueue): New function.
  13291. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  13292. (receiveHandshake): New function.
  13293. (createHandshakeMessage): New function.
  13294. (receiveMessage): New function.
  13295. (createPeerMessage): New function.
  13296. (syncPiece): New function.
  13297. (getNewPieceAndSendInterest): New function.
  13298. (sendMessages): New function.
  13299. (sendNow): New function.
  13300. (trySendNow): New function.
  13301. (sendHandshake): New function.
  13302. (abortPiece): New function.
  13303. (getDownloadPiece): New function.
  13304. (getPeerMessageCommonProperty): New function.
  13305. (createRequestMessage): New function.
  13306. (createCancelMessage): New function.
  13307. (createPieceMessage): New function.
  13308. (createHaveMessage): New function.
  13309. (createChokeMessage): New function.
  13310. (createUnchokeMessage): New function.
  13311. (createInterestedMessage): New function.
  13312. (createNotInterestedMessage): New function.
  13313. (createBitfieldMessage): New function.
  13314. (createKeepAliveMessage): New function.
  13315. To add simple Content-Disposition support:
  13316. * src/HttpResponseCommand.h (determinFilename): New function.
  13317. * src/HttpResponseCommand.cc (executeInternal):
  13318. Use determinFilename(headers) instead of req->getFile() when comparing
  13319. filename.
  13320. (determinFilename): New function.
  13321. (handleDefaultEncoding): Use determinFilename(headers) instead of
  13322. req->getFile().
  13323. (handleOtherEncoding): Use determinFilename(headers) instead of
  13324. req->getFile().
  13325. * src/Util.h (getContentDispositionFilename): New function.
  13326. * src/Util.cc (getContentDispositionFilename): New function.
  13327. * src/LogFactory.h (release): New function.
  13328. * src/LogFactory.cc (release): New function.
  13329. To fix a bug that causes out-of-bound exception when HTTP status
  13330. line is wrong:
  13331. * src/HttpConnection.cc (receiveResponse): Added a check for header
  13332. size.
  13333. * src/common.h (Deleter): New class.
  13334. * src/SegmentMan.cc
  13335. (~SegmentMan): Added deletion of splitter and diskWriter.
  13336. * src/DownloadEngine.h
  13337. (Commands): Use deque.
  13338. (clearQueue): New function.
  13339. * src/DownloadEngine.cc
  13340. (~DownloadEngine): Added deletion of segmentMan.
  13341. (cleanQueue): New function.
  13342. * src/TorrentDownloadEngine.h
  13343. (TorrentDownloadEngine): The implementation was moved to
  13344. TorrentDownloadEngine.cc.
  13345. (~TorrentDownloadEngine): The implementation was moved to
  13346. TorrentDownloadEngine.cc.
  13347. * src/TorrentDownloadEngine.cc
  13348. (~TorrentDownloadEngine): Added deletion of torrentMan.
  13349. * src/main.cc
  13350. (clearRequest): Removed.
  13351. (handler): Added deletion of e.
  13352. (torrentHandler): Added deletion of te.
  13353. (main): Do not share splitter.
  13354. Use Deleter instead of clearRequest.
  13355. Deletion of classes were updated.
  13356. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13357. * src/main.cc (main): Fixed typo.
  13358. * src/message.h: Fixed typo.
  13359. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  13360. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13361. To add --select-file command-line option:
  13362. * src/Util.cc
  13363. (unfoldRange): New function.
  13364. (getNum): New function.
  13365. (unfoldSubRange): New function
  13366. * src/main.cc
  13367. (showUsage): Added help message.
  13368. (main): Added --select-file command-line option. Updated the layout of
  13369. file listing.
  13370. * src/common.h
  13371. (Integers): New definition.
  13372. * src/SocketCore.cc
  13373. (writeData): Removed timeout argument.
  13374. (readData): Removed timeout argument.
  13375. (peekData): Removed timeout argument.
  13376. * src/Socket.cc
  13377. (writeData): Removed timeout argument.
  13378. (readData): Removed timeout argument.
  13379. (peekData): Removed timeout argument.
  13380. * Release 0.4.1
  13381. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13382. To deploy upload rate based choking algorithm:
  13383. * src/PeerInteractionCommand.cc
  13384. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  13385. peer currently used.
  13386. (decideChoking): Deleted the choke/unchoke decision algorithm when
  13387. download completes. Simplified.
  13388. (receiveMessage): Updated.
  13389. * src/TorrentMan.h
  13390. (activePeers): New variable.
  13391. (addActivePeer): New function.
  13392. (getActivePeers): New function.
  13393. (deleteActivePeer): New function.
  13394. * src/TorrentMan.cc
  13395. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  13396. * src/PeerAbstractCommand.cc
  13397. (onAbort): Use peer->resetStatus().
  13398. * src/main.cc
  13399. (PeerChokeCommand.h): Included.
  13400. (main): Added the instance of ChokingCommand to the command queue.
  13401. * src/Peer.h
  13402. (amChoking): Renamed from amChocking
  13403. (chokingRequired): New variable.
  13404. (optUnchoking): New variable.
  13405. (deltaUpload): New variable.
  13406. (deltaDownload): New variable.
  13407. (addDeltaUpload): New function.
  13408. (resetDeltaUpload): New function.
  13409. (addDeltaDownload): New function.
  13410. (resetDeltaDownload): New function.
  13411. (addPeerUpload): Added a call to addDeltaUpload.
  13412. (addPeerDownload): Added a call to addDeltaDownload.
  13413. * src/Peer.cc
  13414. (shouldBeChoking): Renamed from shouldChoke.
  13415. (resetStatus): New function.
  13416. * src/PeerChokeCommand.h: New class.
  13417. * src/PeerChokeCommand.cc: New class.
  13418. To add lazy upload speed limiter:
  13419. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  13420. statistics calculation to TorrentDownloadEngine.
  13421. * src/TorrentConsoleDownloadEngine.cc
  13422. (sendStatistics): Renamed from printStatistics.
  13423. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  13424. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  13425. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  13426. * src/TorrentDownloadEngine.h: Added the variables for statistics
  13427. calculation.
  13428. (sendStatistics): New function as pure virtual function.
  13429. (getUploadSpeed): New function.
  13430. * src/TorrentDownloadEngine.cc
  13431. (initStatistics): New function.
  13432. (calculateSpeed): New function.
  13433. (calculateStatistics): New function.
  13434. * src/SendMessageQueue.h
  13435. (uploadLength): New variable.
  13436. (send): Added an argument.
  13437. (setUploadLimit): New function.
  13438. (getUploadLimit): New function.
  13439. * src/SendMessageQueue.cc
  13440. (send): Added upload speed limiter.
  13441. * src/prefs.h
  13442. (PREF_UPLOAD_LIMIT): New definition.
  13443. * src/PeerInteractionCommand.cc
  13444. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  13445. * src/main.cc
  13446. (main): Added --upload-limit option
  13447. For bug fixes:
  13448. * src/main.cc
  13449. (showUsage): Corrected --listen-port help
  13450. Other changes:
  13451. * src/TorrentMan.cc
  13452. (getPeer): Return nullPeer if connection is grather than
  13453. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  13454. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13455. To add some useful information to the exception message:
  13456. * src/SocketCore.cc : Updated messages.
  13457. * src/SegmentMan.cc :
  13458. * src/TorrentMan.cc : Updated messages.
  13459. * src/MultiDiskWriter.cc : Updated messages.
  13460. * src/Util.cc : Updated messages.
  13461. * src/AbstractDiskWriter.cc : Updated messages.
  13462. * src/PreAllocationDiskWriter.cc : Updated messages.
  13463. * src/message.cc : Added new messages. Updated some messages.
  13464. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  13465. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  13466. Updated threshold from 30 to 15.
  13467. * src/AbstractDiskWriter.h (filename): New variable.
  13468. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  13469. (createFile): Assigned filename.
  13470. * src/main.cc: Updated the help message for http-auth-scheme.
  13471. * Release 0.4.0
  13472. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13473. To add TrackerUpdateCommand with which replaces
  13474. CompactTrackerResponseProcessor:
  13475. * src/TrackerWatcherCommand.h (req): Removed.
  13476. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  13477. if the number of peer connections are less than 30.
  13478. * src/ByteArrayDiskWriter.h (readData): Implemented.
  13479. * src/SegmentMan.h (diskWriter): New function.
  13480. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  13481. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  13482. (main): Use TrackerUpdateCommand.
  13483. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  13484. (req): New variable.
  13485. (setTrackerResponseProcessor): Removed.
  13486. (getTrackerResponseProcessor): Removed.
  13487. (processTrackerResponse): Removed.
  13488. * src/DownloadEngine.h (diskWriter): Removed.
  13489. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  13490. to torrentMan->processTrackerResponse().
  13491. To add Util::expandBuffer:
  13492. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  13493. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  13494. * src/Util.h (expandBuffer): New function.
  13495. To fix the bug that causes segmentation fault when "-l ." is specified
  13496. in command-line option:
  13497. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  13498. (openFile): New function.
  13499. (closeFile): New function.
  13500. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  13501. (~SimpleLogger): Call closeFile();
  13502. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  13503. * src/main.cc (main): Added a check to see logger is configured
  13504. properly.
  13505. To enable HTTP authentication without specifying "--http-auth-scheme"
  13506. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  13507. * src/HttpConnection.cc (createRequest): Send Authorization header
  13508. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  13509. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  13510. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  13511. * src/Peer.cc (shouldChoke): Updated algorithm.
  13512. * src/message.h (EX_AUTH_FAILED): New definition.
  13513. (EX_FILE_OPEN): New definition.
  13514. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  13515. if status == 401.
  13516. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  13517. if req->isTorrent == true.
  13518. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  13519. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  13520. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  13521. (createFile): Updated message.
  13522. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13523. To add a readout of estimated remaining time to normal HTTP/FTP
  13524. downloads:
  13525. * src/ConsoleDownloadEngine.h (startup): New variable.
  13526. (startupLength): New variable.
  13527. (isStartupLengthSet): New variable.
  13528. (avgSpeed): New variable.
  13529. (eta): New variable.
  13530. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  13531. estimated remaining time.
  13532. (initStatistics): Initialized newly added variables.
  13533. (calculateStatistics): Calculate average speed and estimated remaining
  13534. time.
  13535. To decouple TorrentDownloadEngine from HttpResponseCommand:
  13536. * src/TrackerDownloadCommand.h: Removed.
  13537. * src/TrackerDownloadCommand.cc: Removed.
  13538. * src/TrackerInitCommand.h: Removed.
  13539. * src/TrackerInitCommand.cc: Removed.
  13540. * src/TrackerUpdateCommand.h: Removed.
  13541. * src/TrackerUpdateCommand.cc: Removed.
  13542. * src/TrackerWatcherCommand.cc (execute): The construction of request
  13543. url written in TrackerInitCommand was moved here. Do not create
  13544. tracker request command if torrentMan->trackers != 0.
  13545. * src/CompactTrackerResponseProcessor.h: New class.
  13546. * src/CompactTrackerResponseProcessor.cc: New class.
  13547. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  13548. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  13549. Decoupled TorrentDownloadEngine from this.
  13550. * src/SegmentMan.h (init): New function.
  13551. * src/SegmentMan.cc (init): New function.
  13552. * src/TorrentMan.h (responseProcessor): New variable.
  13553. (trackers): New variable.
  13554. (setTrackerResponseProcessor): New function.
  13555. (getTrackerResponseProcessor): New function.
  13556. (processTrackerResponse): New function.
  13557. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  13558. (processTrackerResponse): New function.
  13559. * src/main.cc (main): Use ByteArrayDiskWriter and
  13560. CompactTrackerResponseProcessor.
  13561. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  13562. processTrackerResponse().
  13563. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  13564. readout.
  13565. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  13566. which indicates download has completed.
  13567. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  13568. (closeFile): fd >= 0, not fd > 0
  13569. * src/main.cc (main): Added short cut for show-files.
  13570. Added short cut for torrent-file.
  13571. Added new command-line option listen-port.
  13572. Updated i18n messages.
  13573. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13574. To add LogFactory which creates singleton logger:
  13575. * src/LogFactory.h: New class.
  13576. * src/LogFactory.cc: New class.
  13577. * src/Command.h (logger): New variable.
  13578. (Constructor): Use LogFactory.
  13579. * src/AbstractCommand.cc: Use Command::logger
  13580. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  13581. Use LogFactory.
  13582. * src/SegmentSplitter.h : Made logger protected.
  13583. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  13584. * src/SegmentMan.cc (Constructor): Use LogFactory.
  13585. * src/DownloadEngine.h : Made logger protected.
  13586. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  13587. * src/PeerInteractionCommand.cc : Use Command::logger.
  13588. * src/HttpResponseCommand.cc : Use Command::logger.
  13589. * src/SegmentMan.h : Made logger private.
  13590. * src/TorrentMan.h : Made logger private.
  13591. * src/TorrentMan.cc : Use LogFactory.
  13592. * src/FtpNegotiateCommand.cc : Use Command::logger.
  13593. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  13594. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  13595. Use LogFactory.
  13596. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  13597. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  13598. Use LogFactory.
  13599. * src/DownloadCommand.cc : Use Command::logger.
  13600. * src/PeerAbstractCommand.cc : Use Command::logger.
  13601. * src/PeerListenCommand.cc : Use Command::logger.
  13602. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  13603. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  13604. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  13605. * src/TrackerWatcherCommand.cc : Use Command::logger.
  13606. * src/TrackerUpdateCommand.cc : Use Command::logger.
  13607. * src/TrackerDownloadCommand.cc : Use Command::logger.
  13608. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  13609. Use LogFactory.
  13610. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  13611. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  13612. Use LogFactory.
  13613. * src/main.cc (main): Use LogFactory.
  13614. * src/DiskAdaptor.h (logger): New variable.
  13615. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  13616. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  13617. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13618. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  13619. parameter to a tracker request.
  13620. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  13621. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  13622. * src/main.cc (setSignalHander): New function.
  13623. (main): Added a handler for SIGTERM.
  13624. (handler): Updated message.
  13625. (torrentHandler): Updated message.
  13626. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13627. * src/TorrentConsoleDownloadEngine.cc
  13628. (onPartialDownloadingCompletes): Renamed as
  13629. onSelectiveDownloadingCompletes.
  13630. (onSelectiveDownloadingCompletes): Updated message.
  13631. To add DiskAdaptor which abstract DiskWriter family:
  13632. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  13633. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  13634. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  13635. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  13636. MultiDiskAdaptor.h.
  13637. (readFileEntry): Changed its arguments.
  13638. (setup): setupDiskWriter is merged into this function.
  13639. (setupDiskWriter): Removed.
  13640. (setFileFilter): New function.
  13641. (readFileEntryFromMetaInfoFile): Updated according to the changes
  13642. made in readFileEntry.
  13643. (getFilePath): Removed.
  13644. (getTempFilePath): Removed.
  13645. (getSegmentFilePath): Updated due to the removal of getFilePath.
  13646. (fixFilename): Removed.
  13647. (copySingleFile): Removed.
  13648. (splitMultiFile): Removed.
  13649. (deleteTempFile): Removed.
  13650. (setFileEntriesToDownload): Removed.
  13651. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  13652. (isSelectiveDownloadingMode): New function.
  13653. (setAllMultiFileRequestedState): Removed.
  13654. (finishPartialDownloadingMode): Renamed as
  13655. finishSelectiveDownloadingMode.
  13656. (finishSelectiveDownloadingMode): New function.
  13657. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  13658. (getSelectedTotalLength): New function.
  13659. (onDownloadComplete): Use diskAdaptor.
  13660. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  13661. (Range): Removed.
  13662. (setMultiFileEntries): Renamed as setFileEntries.
  13663. (setFileEntries): New function.
  13664. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  13665. (pieceLength): New variable.
  13666. * src/main.cc (printDownloadCompeleteMessage): New function.
  13667. (torrentHandler): Use diskAdaptor instead of diskWriter.
  13668. (main): Renamed torrent-show-files to show-files.
  13669. Rewritten file contents listing.
  13670. * src/TorrentMan.h (FileEntry): Removed.
  13671. (multiFileTopDir): Removed.
  13672. (multiFileEntries): Removed.
  13673. (diskWriter): Removed.
  13674. (diskAdaptor): New variable.
  13675. * src/DefaultDiskWriter.h (totalLength): New variable.
  13676. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  13677. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  13678. diskWriter.
  13679. * src/TorrentConsoleDownloadEngine.h
  13680. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  13681. (partialTotalLength): Renamed as selectedTotalLength.
  13682. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  13683. openExistingFile, otherwise call initAndOpenFile.
  13684. (closeFile): fd > 0, not fd != 0.
  13685. * src/DirectDiskAdaptor.h: New class.
  13686. * src/DirectDiskAdaptor.cc: New class.
  13687. * src/MultiDiskAdaptor.h: New class.
  13688. * src/MultiDiskAdaptor.cc: New class.
  13689. * src/CopyDiskAdaptor.h: New class.
  13690. * src/CopyDiskAdaptor.cc: New class.
  13691. * src/DiskAdaptor.h: New class.
  13692. * src/DiskAdaptor.cc: New class.
  13693. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  13694. (PREF_SHOW_FILES): New definition.
  13695. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13696. To add the ability to download multi torrent into respective files
  13697. directly:
  13698. * src/DiskWriter.h (openFile): New function.
  13699. (seek): Removed.
  13700. * src/MultiDiskWriter.h: New class.
  13701. * src/MultiDiskWriter.cc: New class.
  13702. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  13703. protected.
  13704. (openFile): New function.
  13705. * src/AbstractDiskWriter.cc (openFile): New function.
  13706. * src/prefs.h (V_FALSE): New definition.
  13707. (PREF_DIRECT_FILE_MAPPING): New definition.
  13708. * src/TorrentMan.h (setupDiskWriter): New function.
  13709. (setAllMultiFileRequestedState): New function.
  13710. (onDownloadComplete): New function.
  13711. * src/TorrentMan.cc : Included MultiDiskWriter.h
  13712. (setupDiskWriter): New function.
  13713. (getFilePath): Updated.
  13714. (getTempFilePath): Updated.
  13715. (getSegmentFilePath): Updated.
  13716. (fixFilename): Updated.
  13717. (deleteTempFile): Updated.
  13718. (setAllMultiFileRequestedState): New function.
  13719. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  13720. (finishPartialDownloadingMode): Reset requested flags.
  13721. (onDownloadComplete): New function.
  13722. * src/main.cc: Added --direct-file-mapping option.
  13723. Use TorrentMan::setupDiskWriter().
  13724. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  13725. onDownloadComplete().
  13726. To fix ETA bug:
  13727. * src/Util.h (difftvsec): New function.
  13728. * src/Util.cc (difftvsec): New function.
  13729. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  13730. type of "elapsed" instead of long long int.
  13731. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  13732. The updates of statistics takes place every 1 seconds.
  13733. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  13734. (calculateSpeed): Changed its argument signature.
  13735. * src/PeerMessage.cc (toString): Fixed message.
  13736. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13737. To print ETA:
  13738. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  13739. completion handling when dealing with
  13740. TorrentMan::isPartialDownloadingMode() == true.
  13741. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  13742. New function.
  13743. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  13744. (sessionDownloadLength): New variable.
  13745. (avgSpeed): New variable.
  13746. (eta): New variable.
  13747. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  13748. new variables: eta, avgSpeed, startup.
  13749. (calculateSpeed): Calculate average speed and ETA.
  13750. (printStatistics): Added ETA.
  13751. * src/Util.h (secfmt): New function.
  13752. * src/Util.cc (secfmt): New function.
  13753. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13754. To detect "keep alive" flooding:
  13755. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  13756. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  13757. variable: keepAliveCount.
  13758. (detectMessageFlooding): Added "keep alive" flooding detection.
  13759. (receiveMessage): Increase keepAliveCount when "keep alive" message
  13760. received.
  13761. To add the ability to download only specified files in multi-file
  13762. torrent:
  13763. * src/BitfieldMan.h (filterBitfield): New variable.
  13764. (filterEnabled): New variable.
  13765. (setFilterBit): New function.
  13766. (enableFilter): New function.
  13767. (disableFilter): New function.
  13768. (isFilterEnabled): New function.
  13769. (getFilteredTotalLength): New function.
  13770. (getCompletedLength): New function.
  13771. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  13772. filterBitfield, filterEnabled.
  13773. (CopyConstructor): Added filterBitfield and filterEnabled.
  13774. (operator==): Added filterBitfield and filterEnabled.
  13775. (Destructor): Added filterBitfield.
  13776. (getMissingIndex): Use filterBitfield.
  13777. (getMissingUnusedIndex): Use filterBitfield.
  13778. (getFirstMissingUnusedIndex): Use filterBitfield.
  13779. (getFirstMissingUnusedIndex): Use filterBitfield.
  13780. (getAllMissingIndexes): Use filterBitfield.
  13781. (countMissingBlock): Use filterBitfield.
  13782. (countBlock): Use filterBitfield.
  13783. (setBitInternal): Added new argument on.
  13784. (setUseBit): Use setBitInternal.
  13785. (unsetUseBit): Use setBitInternal.
  13786. (setBit): Use setBitInternal.
  13787. (unsetBit): Use setBitInternal.
  13788. (isAllBitSet): Use filterBitfield.
  13789. (setFilterBit): New function.
  13790. (addFilter): New function.
  13791. (enableFilter): New function.
  13792. (disableFilter): New function.
  13793. (clearFilter): New function.
  13794. (isFilterEnabled): New function.
  13795. (getFilteredTotalLength): New function.
  13796. (getCompletedLength): New function.
  13797. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  13798. Initalized newly added variables.
  13799. [FileEntry](offset): New variable.
  13800. [FileEntry](extracted): New variable.
  13801. [FileEntry](requested): New variable.
  13802. (readFileEntry): New function.
  13803. (option): New variable.
  13804. (splitMultiFile): Removed const qualifier.
  13805. (fixFilename): Removed const qualifier.
  13806. (readFileEntryFromMetaInfoFile): New function.
  13807. (finishPartialDownloadingMode): New function.
  13808. (isPartialDownloadingMode): New function.
  13809. (setFileEntriesToDownload): New function.
  13810. (getCompletedLength): New function.
  13811. (getPartialTotalLength): New function.
  13812. * src/TorrentMan.cc (readFileEntry): New function.
  13813. (setup): Use readFileEntry. If no-preallocation option is specified,
  13814. use DefaultDiskWriter.
  13815. (readFileEntryFromMetaInfoFile): New function.
  13816. (fixFilename): Removed const qualifier.
  13817. (splitMultiFile): Removed const qualifier.
  13818. (setFileEntriesToDownload): New function.
  13819. (isPartialDownloadingMode): New function.
  13820. (finishPartialDownloadingMode): New function.
  13821. (getCompletedLength): New function.
  13822. (getPartialTotalLength): New function.
  13823. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  13824. New variable.
  13825. (partialTotalLength): New variable.
  13826. (downloadLength): New variable.
  13827. (totalLength): New variable.
  13828. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  13829. Added log.
  13830. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  13831. partialTotalLength, downloadLength, totalLength.
  13832. (calculate): Calculate downloadLength and totalLength.
  13833. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  13834. * src/main.cc (addCommand): Changed argument signature.
  13835. (main): Added new variable: args. Added new option "torrent-show-files"
  13836. "no-preallocation". Usage is not updated yet.
  13837. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13838. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  13839. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13840. Attempt to add the ability to listing file entries in a .torrent file.
  13841. This feature is not yet complete.
  13842. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  13843. * src/TorrentMan.cc (getMultiFileEntries): New function.
  13844. (getName): New function.
  13845. * src/TorrentMan.h (getMultiFileEntries): New function.
  13846. (getName): New function.
  13847. * src/main.cc (main): Use above 2 funtion.
  13848. * Release 0.3.2
  13849. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13850. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  13851. (detectMessageFlooding): Updated threshold value.
  13852. (checkLongTimePeerChoking): Updated timeout value.
  13853. (getNewPieceAndSendInterest): Added debug log.
  13854. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  13855. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  13856. (getPeer): Updated.
  13857. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  13858. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  13859. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  13860. is localhost.
  13861. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  13862. * src/PendingMessage.cc (processMessage): Not to send piece message
  13863. if peer is not interested in the pieces localhost has.
  13864. * src/Peer.cc (shouldChoke): Updated.
  13865. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  13866. * src/Util.cc (isPowerOf): New function.
  13867. * src/Util.h (isPowerOf): New function.
  13868. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  13869. whether or not it is power of 2.
  13870. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13871. Added new class SendMessageQueue that includes PendingMessages and
  13872. RequestSlotMan.
  13873. * src/SendMessageQueue.h: New class.
  13874. * src/SendMessageQueue.cc: New class.
  13875. * src/PendingMessage.h: Added new member variable blockIndex and its
  13876. accessors.
  13877. (createRequestMessage): Updated.
  13878. * src/PendingMessage.cc (createRequestMessage): Updated.
  13879. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  13880. SendMessageQueue.
  13881. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  13882. (receiveMessage): Updated with SendMessageQueue.
  13883. (deletePendingPieceMessage): Removed.
  13884. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  13885. (sendInterest): Updated with SendMessageQueue.
  13886. (createRequestPendingMessage): Updated with SendMessageQueue.
  13887. (sendMessages): Updated with SendMessageQueue.
  13888. (onAbort): Updated with SendMessageQueue.
  13889. (keepAlive): Updated with SendMessageQueue.
  13890. (beforeSocketCheck): Updated SendMessageQueue.
  13891. * src/PeerInteractionCommand (sendMessages): Shuffle
  13892. missingBLockIndexes before using it.
  13893. Added its own timeout for peer connection.
  13894. * src/PeerAbstractCommand.h: Added member variable timeout and its
  13895. setter.
  13896. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  13897. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  13898. Added setTimeout() call.
  13899. (executeInternal): Added setTimeout() call.
  13900. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  13901. Added timeout.
  13902. (isTimeoutDetected): Updated.
  13903. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  13904. option.
  13905. Added *simple* message flooding checker.
  13906. * src/PeerInteractionCommand.cc (executeInternal):
  13907. Added detectMessageFlooding() call.
  13908. (detectMessageFlooding): New function.
  13909. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  13910. (beforeSocketCheck): Added detectMessageFlooding() call.
  13911. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  13912. chokeUnchokeCount, haveCount, detectMessageFlooding().
  13913. Removed deletePendingPieceMessage(), getRequestSlot(),
  13914. deleteRequestSlot(), deleteAllRequestSlot().
  13915. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  13916. Added checkLongTimePeerChoking() call.
  13917. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  13918. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  13919. if duplicate == false.
  13920. The parameter "uploaded" and "downloaded" in the tracker request are
  13921. the size since the client sent the "started" event to the tracker.
  13922. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  13923. uploaded size to preDownloadedSize, preUploadedSize respectively.
  13924. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  13925. getSessionDownloadedSize(), getSessionUploadedSize().
  13926. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  13927. getSessionUploadedSize() instead of getDownloadedSize(),
  13928. getUploadedSize().
  13929. * src/PendingMessage.cc (processMessage): Do not send request message
  13930. if the peer is choking the client.
  13931. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  13932. less than interval.
  13933. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13934. * configure.in: Added gnutls support. Added several CPP macros.
  13935. * m4/openssl.m4: Added.
  13936. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  13937. readData(), peekData(). Added gnutls support.
  13938. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  13939. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  13940. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  13941. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  13942. Instead, added a check for whether setup method has executed
  13943. successfully.
  13944. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  13945. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  13946. * src/Makefile.am: Updated.
  13947. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  13948. using whether OpenSSL or gcrypt, depending on the result of configure
  13949. script.
  13950. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  13951. messageDigest.h.
  13952. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  13953. * src/PeerListenCommand.cc: Added log about port binded successfully.
  13954. Fixed memory leak.
  13955. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  13956. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  13957. Removed instantiation of TrackerInitCommand. Instead,
  13958. TrackerWatcherCommand is instantiated and pushed to the command queue.
  13959. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  13960. ENABLE_SSL.
  13961. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  13962. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  13963. If a piece is already acquired by another command, delete the request
  13964. slots for the piece.
  13965. * src/TrackerUpdateCommand.cc (execute):
  13966. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  13967. Added a check whether peer list is null.
  13968. Fixed the bug that causes sending completed event to the tracker
  13969. several times.
  13970. * src/TrackerInitCommand.cc (execute):
  13971. Fixed the bug that causes sending completed event to the tracker
  13972. several times.
  13973. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  13974. by using messageDigest.h.
  13975. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13976. * PeerConnection.cc: Replaced log message "keep-alive" with
  13977. "keep alive".
  13978. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  13979. localhost long time.
  13980. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  13981. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  13982. at most 100 failure entry from the list. If with duplicate = false,
  13983. MAX_PEER_LIST is not checked.
  13984. * PeerListenCommand.cc: Fixed the argument order of log message.
  13985. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13986. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  13987. Added warn().
  13988. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  13989. Implemented warn().
  13990. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  13991. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13992. * Request.h: Added AFTER_COMPLETED event.
  13993. * TorrentDownloadEngine.cc: Prints "Download complete" message
  13994. instead of downloaded size and progress(%) after download completes.
  13995. * PeerInteractionCommand.cc: After download completes, sends unchoke
  13996. message to the peer if it is interested in what localhost has
  13997. downloaded.
  13998. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  13999. destination instead of just renaming it.
  14000. * TorrentMan.cc: Added deleteTempFile().
  14001. * PeerAbstractCommand.cc: do not stop execution after download
  14002. completes. This makes localhost a seeder.
  14003. * Util.{h,cc}: Added fileCopy().
  14004. * PeerListenCommand.cc: do not stop execution after download completes.
  14005. This makes localhost a seeder.
  14006. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  14007. Added TorrentMan::deleteTempFile() to torrentHandler.
  14008. Initialized the variable dir as ".".
  14009. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  14010. Deleted renameSingleFile().
  14011. Added copySingleFile(), deleteTempFile().
  14012. * DownloadEngine.h: Added virtual function afterEachIteration().
  14013. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  14014. in onEndOfRun() to afterEachIteration().
  14015. In onEndOfRun(), changed if condition to check whether filenameFixed is
  14016. true.
  14017. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  14018. In rangedFileCopy(), added try-catch block to properly close file
  14019. descriptors.
  14020. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  14021. Added afterEachIteration(), isFilenameFixed().
  14022. * Peer.cc: Changed choking strategy.
  14023. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  14024. * TrackerInitCommand.cc: Send completed event only once.
  14025. * DownloadEngine.cc: Added a call to afterEachIteration().
  14026. * TrackerUpdateCommand.cc: Do not stop execution after download
  14027. completes.
  14028. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  14029. connect the peers at most MAX_PEER_UPDATE when a peer list is
  14030. received from a tracker.
  14031. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  14032. Decreased the number of failure peers to delete to 0(just comment out
  14033. the line).
  14034. * Release 0.3.1
  14035. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14036. * PeerInteractionCommand.cc: added a call to
  14037. TorrentMan::unadvertisePiece in Destructor.
  14038. * PeerInteractionCommand.cc: make have message sent immediately
  14039. if the size of pending message queue is zero.
  14040. * TorrentMan.cc: set the maximum size of peer list to 250.
  14041. * TorrentMan.h: changed the container type of Peers and UsedPieces
  14042. to deque.
  14043. * Util.cc: fixed rangedFileCopy.
  14044. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  14045. to Constructor. Also, moved digest cleanup to Destructor.
  14046. * MetaFileUtil.cc: fixed memory leak
  14047. * replaced std::vector with std::deque.
  14048. * AbstractCommand.cc: casted timeout value to long long int.
  14049. * ChunkedEncoding.cc: fixed memory leak.
  14050. * PeerInteractionCommand.cc: casted timeout value to long long int.
  14051. * SleepCommand.cc: casted timeout value to long long int.
  14052. * Data.cc: fixed memory leak.
  14053. * Data.cc: fixed toLLInt().
  14054. * BitfieldMan.cc: fixed memory leak.
  14055. * TorrentMan.cc: initialized storeDir to ".".
  14056. * TorrentMan.cc: fixed memory leak.
  14057. * TorrentMan.cc: corrected file paths of splitted files.
  14058. * PeerAbstractCommand.cc: casted timeout to long long int.
  14059. * main.cc: added delete(req) and delete(te->diskWriter).
  14060. * RequestSlot.cc: casted timeout value to long long int.
  14061. * Request.cc: fixed memory leak.
  14062. * PendingMessage.cc: make HAVE messages sent only when peer does not
  14063. have the piece.
  14064. * Peer.{h,cc}: added hasPiece(int index).
  14065. * main.cc: corrected addCommand.
  14066. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14067. * BitTorrent protocol support added.
  14068. * Release 0.3.0
  14069. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14070. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  14071. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14072. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  14073. decoding did not work properly.
  14074. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14075. * DownloadEngine.h: included sys/time.h
  14076. * DownloadEngine.cc: remove sys/time.h
  14077. * Makefile.am (SUBDIRS): Add intl.
  14078. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  14079. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14080. * main.cc: correct help message for --http-auth-scheme.
  14081. * main.cc: changed e-mail address for bug reports.
  14082. * ja.po: added japanese translation.
  14083. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14084. * SimpleLogger.cc: flush log file instead of stdout.
  14085. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14086. * main.cc: Fixed command-line option: max-tries
  14087. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  14088. does not equal to seg.sp.
  14089. * DownloadCommand.cc: If EOF is got from the server and the total size
  14090. of file is not zero, then throw DlRetryEx.
  14091. * main.cc: Set the minium value of min-segment-size to 1024.
  14092. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  14093. fails because of a regression since 0.2.0 release.
  14094. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14095. * HttpConnection.cc:
  14096. * common.h: defined the user agent name as macro
  14097. * DownloadEngine.{h, cc}:
  14098. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  14099. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  14100. * main.cc: Download complete/abort message is now generated by main.
  14101. * Makefile.am (SUBDIRS): Add m4.
  14102. (ACLOCAL_AMFLAGS): New variable.
  14103. (EXTRA_DIST): New variable.
  14104. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  14105. * gettext: added gettext functionality
  14106. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14107. * AbstractCommand.cc:
  14108. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  14109. unregister its cuid from SegmentMan.
  14110. * DownloadEngine.cc: .aria2 file was written when a downloading
  14111. failed with errors.
  14112. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  14113. Added "User-Agent" header to CONNECT proxy request.
  14114. Fixed "Proxy-Authorization" header. Now proxy authorization works
  14115. properly.
  14116. * Logger.h:
  14117. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  14118. * ChunkedEncoding.cc: Added #include directive for strings.h
  14119. * Release 0.2.1
  14120. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14121. * Util.{h,cc}: added startsWith().
  14122. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  14123. Util::endsWith().
  14124. * SocketCore.cc: struct addrinfo is now zero-initialized.
  14125. * common.h: added #include directive of limit.h.
  14126. * DownloadEngine.cc: added #include directive of sys/time.h and
  14127. algorithm.
  14128. * Exception.h: added #include directive of stdio.h.
  14129. * AbstractCommand.h: added #include directive of sys/time.h.
  14130. * DownloadCommand.h: added #include directive of sys/time.h.
  14131. * *.h: added #include directive of common.h to all base classes.
  14132. subclasses' one was removed.
  14133. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  14134. does not define these macros.
  14135. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14136. * Release 0.2.0
  14137. * main.cc:
  14138. * HttpInitiateConnectionCommand.{h,cc}:
  14139. * prefs.h:
  14140. * HttpConnection.{h,cc}: added --http-proxy-method option.
  14141. We can now use GET command in http proxy.
  14142. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14143. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  14144. that splits slowest segment of SegmentMan::commands vector.
  14145. This is the default split algorithm of aria2.
  14146. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  14147. that splits first segment of SegmentMan::commands vector.
  14148. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  14149. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  14150. * Segment.h:
  14151. * SegmentMan.cc: Added speed field to Segment.h
  14152. * main.cc: -s option now affects all URLs in command-line arguemtns.
  14153. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  14154. * message.h: Change file size related %d to %lld.
  14155. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14156. * FtpInitiateConnectionCommand.{h,cc}:
  14157. * FtpNegotiationCommand.{h,cc}:
  14158. * FtpDownloadCommand.{h,cc}:
  14159. * FtpConnection.{h,cc}: Added FTP support
  14160. * SimpleLogger.cc: Log message now includes time information.
  14161. * main.cc: The value of --http-auth-scheme option is chagned from
  14162. 'BASIC' to 'basic'
  14163. * main.cc: Added --timeout command-line option.
  14164. * main.cc: Added --min-segment-size command-line option.
  14165. * main.cc: Added --max-retries command-line option.
  14166. * prefs.h: option string constants are now defined in prefs.h
  14167. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14168. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  14169. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  14170. with version 0.1.0's one.
  14171. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14172. * configure.in: Added --enable-ssl option to configure script.
  14173. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  14174. cannot permit absoluteURI as Request-URI.
  14175. * HttpConnection.cc: Added Referer support.
  14176. * main.cc: Added referer command-line option.
  14177. * main.cc: Added rety-wait command-line option.
  14178. * Exception.h: Fixed formating bug in Exception::setMsg()
  14179. * SocketCore.{h,cc}:
  14180. * Socket.{h, cc}:
  14181. * Request.cc:
  14182. * InitiateConnectionCommandFactory.cc:
  14183. * HttpRequestCommand.cc: Added HTTPS support.
  14184. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  14185. for SocketCore.
  14186. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  14187. size is wrong
  14188. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  14189. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  14190. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  14191. * Release 0.1.0